summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-08-20 15:11:08 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-08-20 15:11:08 +0200
commitcb612a12b952e349b96d427645aaeb55d15f509a (patch)
treef29298f41d2a7ea2a976616243aca64c2c2547ce /plugins
parente7be93745e4a2ff3aa255227bef7b9d3b733aafa (diff)
parent143bfc9f801c84428074312d661f8e08803df83b (diff)
Merge tag 'upstream/0.23.5'
Upstream version 0.23.5
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Makefile33
-rw-r--r--plugins/Makefile.plugin.mk80
-rw-r--r--plugins/common/Makefile20
-rw-r--r--plugins/common/RESTSupport.c9226
-rw-r--r--plugins/common/RESTSupport.vala3
-rw-r--r--plugins/common/Resources.c417
-rw-r--r--plugins/common/Resources.vala22
-rw-r--r--plugins/plugins.mk40
-rw-r--r--plugins/shotwell-data-imports/FSpotDatabase.c555
-rw-r--r--plugins/shotwell-data-imports/FSpotDatabaseBehavior.c2085
-rw-r--r--plugins/shotwell-data-imports/FSpotDatabaseTable.c992
-rw-r--r--plugins/shotwell-data-imports/FSpotImporter.c5345
-rw-r--r--plugins/shotwell-data-imports/FSpotImporter.vala8
-rw-r--r--plugins/shotwell-data-imports/FSpotMetaTable.c1461
-rw-r--r--plugins/shotwell-data-imports/FSpotMetaTable.vala2
-rw-r--r--plugins/shotwell-data-imports/FSpotPhotoTagsTable.c524
-rw-r--r--plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala2
-rw-r--r--plugins/shotwell-data-imports/FSpotPhotoVersionsTable.c2440
-rw-r--r--plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala2
-rw-r--r--plugins/shotwell-data-imports/FSpotPhotosTable.c3295
-rw-r--r--plugins/shotwell-data-imports/FSpotPhotosTable.vala2
-rw-r--r--plugins/shotwell-data-imports/FSpotRollsTable.c995
-rw-r--r--plugins/shotwell-data-imports/FSpotRollsTable.vala4
-rw-r--r--plugins/shotwell-data-imports/FSpotTableBehavior.c102
-rw-r--r--plugins/shotwell-data-imports/FSpotTagsTable.c1169
-rw-r--r--plugins/shotwell-data-imports/FSpotTagsTable.vala12
-rw-r--r--plugins/shotwell-data-imports/Makefile32
-rw-r--r--plugins/shotwell-data-imports/SqliteSupport.c644
-rw-r--r--plugins/shotwell-data-imports/VersionNumber.c1053
-rw-r--r--plugins/shotwell-data-imports/org.gnome.Shotwell.Imports.gresource.xml6
-rw-r--r--plugins/shotwell-data-imports/shotwell-data-imports.c356
-rw-r--r--plugins/shotwell-plugin-common.h382
-rw-r--r--plugins/shotwell-plugin-common.vapi139
-rw-r--r--plugins/shotwell-plugin-dev-1.0.h900
-rw-r--r--plugins/shotwell-plugin-dev-1.0.vapi401
-rw-r--r--plugins/shotwell-publishing-extras/GalleryConnector.c13000
-rw-r--r--plugins/shotwell-publishing-extras/GalleryConnector.vala20
-rw-r--r--plugins/shotwell-publishing-extras/Makefile34
-rw-r--r--plugins/shotwell-publishing-extras/RajcePublishing.c11473
-rw-r--r--plugins/shotwell-publishing-extras/RajcePublishing.vala11
-rw-r--r--plugins/shotwell-publishing-extras/TumblrPublishing.c8413
-rw-r--r--plugins/shotwell-publishing-extras/TumblrPublishing.vala16
-rw-r--r--plugins/shotwell-publishing-extras/YandexPublishing.c5224
-rw-r--r--plugins/shotwell-publishing-extras/YandexPublishing.vala5
-rw-r--r--plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui (renamed from plugins/shotwell-publishing-extras/gallery3_authentication_pane.glade)2
-rw-r--r--plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui (renamed from plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.glade)2
-rw-r--r--plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml15
-rw-r--r--plugins/shotwell-publishing-extras/rajce_authentication_pane.ui (renamed from plugins/shotwell-publishing-extras/rajce_authentication_pane.glade)2
-rw-r--r--plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui (renamed from plugins/shotwell-publishing-extras/rajce_publishing_options_pane.glade)4
-rw-r--r--plugins/shotwell-publishing-extras/shotwell-publishing-extras.c504
-rw-r--r--plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui (renamed from plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade)2
-rw-r--r--plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.ui (renamed from plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade)2
-rw-r--r--plugins/shotwell-publishing-extras/yandex_publish_model.ui (renamed from plugins/shotwell-publishing-extras/yandex_publish_model.glade)0
-rw-r--r--plugins/shotwell-publishing/FacebookPublishing.c11997
-rw-r--r--plugins/shotwell-publishing/FacebookPublishing.vala8
-rw-r--r--plugins/shotwell-publishing/FlickrPublishing.c10304
-rw-r--r--plugins/shotwell-publishing/FlickrPublishing.vala15
-rw-r--r--plugins/shotwell-publishing/Makefile37
-rw-r--r--plugins/shotwell-publishing/PicasaPublishing.c7773
-rw-r--r--plugins/shotwell-publishing/PicasaPublishing.vala8
-rw-r--r--plugins/shotwell-publishing/PiwigoPublishing.c11929
-rw-r--r--plugins/shotwell-publishing/PiwigoPublishing.vala17
-rw-r--r--plugins/shotwell-publishing/YouTubePublishing.c4475
-rw-r--r--plugins/shotwell-publishing/YouTubePublishing.vala7
-rw-r--r--plugins/shotwell-publishing/facebook_publishing_options_pane.ui (renamed from plugins/shotwell-publishing/facebook_publishing_options_pane.glade)2
-rw-r--r--plugins/shotwell-publishing/flickr_pin_entry_pane.ui (renamed from plugins/shotwell-publishing/flickr_pin_entry_pane.glade)0
-rw-r--r--plugins/shotwell-publishing/flickr_publishing_options_pane.ui (renamed from plugins/shotwell-publishing/flickr_publishing_options_pane.glade)2
-rw-r--r--plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml17
-rw-r--r--plugins/shotwell-publishing/picasa_publishing_options_pane.ui (renamed from plugins/shotwell-publishing/picasa_publishing_options_pane.glade)0
-rw-r--r--plugins/shotwell-publishing/piwigo_authentication_pane.ui (renamed from plugins/shotwell-publishing/piwigo_authentication_pane.glade)2
-rw-r--r--plugins/shotwell-publishing/piwigo_publishing_options_pane.ui (renamed from plugins/shotwell-publishing/piwigo_publishing_options_pane.glade)0
-rw-r--r--plugins/shotwell-publishing/shotwell-publishing.c524
-rw-r--r--plugins/shotwell-publishing/youtube_publishing_options_pane.ui (renamed from plugins/shotwell-publishing/youtube_publishing_options_pane.glade)0
-rw-r--r--plugins/shotwell-transitions/BlindsEffect.c828
-rw-r--r--plugins/shotwell-transitions/ChessEffect.c769
-rw-r--r--plugins/shotwell-transitions/CircleEffect.c524
-rw-r--r--plugins/shotwell-transitions/CirclesEffect.c658
-rw-r--r--plugins/shotwell-transitions/ClockEffect.c638
-rw-r--r--plugins/shotwell-transitions/CrumbleEffect.c857
-rw-r--r--plugins/shotwell-transitions/FadeEffect.c493
-rw-r--r--plugins/shotwell-transitions/Makefile25
-rw-r--r--plugins/shotwell-transitions/SlideEffect.c614
-rw-r--r--plugins/shotwell-transitions/SquaresEffect.c704
-rw-r--r--plugins/shotwell-transitions/StripesEffect.c713
-rw-r--r--plugins/shotwell-transitions/org.gnome.Shotwell.Transitions.gresource.xml6
-rw-r--r--plugins/shotwell-transitions/shotwell-transitions.c1086
-rw-r--r--plugins/shotwell-transitions/shotwell-transitions.vala3
87 files changed, 126128 insertions, 385 deletions
diff --git a/plugins/Makefile b/plugins/Makefile
deleted file mode 100644
index c622063..0000000
--- a/plugins/Makefile
+++ /dev/null
@@ -1,33 +0,0 @@
-
-include plugins.mk
-
-DIST_FILES := \
- Makefile \
- Makefile.plugin.mk \
- plugins.mk
-
-.PHONY: all
-all: $(ALL_PLUGINS)
-
-.PHONY: $(ALL_PLUGINS)
-$(ALL_PLUGINS):
- @$(MAKE) --directory=$@ PLUGINS_VERSION="$(PLUGINS_VERSION)" USER_VALAFLAGS="$(USER_VALAFLAGS)" \
- PLUGIN_CFLAGS="$(PLUGIN_CFLAGS)"
-
-.PHONY: clean
-clean:
- $(foreach plugin,$(ALL_PLUGINS),$(MAKE) --directory=$(plugin) clean;)
-
-.PHONY: cleantemps
-cleantemps:
- $(foreach plugin,$(ALL_PLUGINS),$(MAKE) --directory=$(plugin) cleantemps;)
-
-.PHONY: distclean
-distclean:
- $(foreach plugin,$(ALL_PLUGINS),$(MAKE) --directory=$(plugin) distclean;)
-
-.PHONY: listfiles
-listfiles:
- @printf "$(foreach file,$(DIST_FILES), plugins/$(file)) "
- @$(foreach plugin,$(ALL_PLUGINS),$(MAKE) --directory=$(plugin) --no-print-directory listfiles;)
-
diff --git a/plugins/Makefile.plugin.mk b/plugins/Makefile.plugin.mk
deleted file mode 100644
index c26c672..0000000
--- a/plugins/Makefile.plugin.mk
+++ /dev/null
@@ -1,80 +0,0 @@
-
-# Generic plug-in Makefile for Shotwell standard plugins.
-#
-# Requires PLUGIN and SRC_FILES be set to the name of the plugin binary (minus extension) and that
-# the directory is registered in plugins.mk.
-#
-# To use, include this file in each plug-in directory's Makefile after setting appropriate variables.
-# Also be sure that each plug-in has a dummy_main() function to satisfy valac's linkage.
-#
-# NOTE: This file is called from the cwd of each directory, hence the relative paths should be
-# read as such.
-
-ifndef VALAC
-VALAC := valac
-endif
-MAKE_FILES := Makefile ../Makefile.plugin.mk ../plugins.mk
-HEADER_FILES := ../shotwell-plugin-dev-1.0.vapi ../shotwell-plugin-dev-1.0.h \
- ../shotwell-plugin-dev-1.0.deps
-
-include ../plugins.mk
-
-# automatically include shotwell-plugin-dev-1.0's dependencies
-# NOTE: This line will generate an error when running "make dist" from the master Makefile.
-# It can be safely ignored.
-PKGS := $(shell sed ':a;N;$$!ba;s/\n/ /g' ../shotwell-plugin-dev-1.0.deps) $(PKGS)
-
-# automatically include the shotwell-plugin-dev-1.0 package as a local dependency
-EXT_PKGS := $(PKGS)
-PKGS := shotwell-plugin-dev-1.0 $(PKGS) $(PLUGIN_PKGS)
-
-CFILES := $(notdir $(SRC_FILES:.vala=.c))
-OFILES := $(notdir $(SRC_FILES:.vala=.o))
-
-CFLAGS := $(shell pkg-config --print-errors --cflags $(EXT_PKGS) $(PLUGIN_PKGS)) \
- -nostdlib -export-dynamic $(PLUGIN_CFLAGS)
-LIBS := $(shell pkg-config --print-errors --libs $(EXT_PKGS) $(PLUGIN_PKGS))
-DEFINES := -D_VERSION='"$(PLUGINS_VERSION)"' -DGETTEXT_PACKAGE='"shotwell"'
-
-all: $(PLUGIN).so
-
-PLUGIN_EXTRAFLAGS ?= --vapidir=../common --pkg shotwell-plugin-common
-PLUGIN_EXTRALINKFLAGS ?= -L../common/ -lshotwell-plugin-common
-
-.stamp: $(SRC_FILES) $(MAKE_FILES) $(HEADER_FILES)
- $(VALAC) --target-glib=$(MIN_GLIB_VERSION) -g --enable-checking --fatal-warnings --ccode --enable-deprecated \
- --vapidir=../ $(foreach pkg,$(PKGS),--pkg=$(pkg)) $(foreach pkg,$(CUSTOM_VAPI_PKGS),--pkg=$(pkg)) \
- $(USER_VALAFLAGS) \
- $(PLUGIN_EXTRAFLAGS) \
- --vapidir=../../vapi \
- $(SRC_FILES)
- @touch .stamp
-
-$(CFILES): .stamp
- @
-
-.c.o:
- $(CC) -c $(CFLAGS) $(DEFINES) -I../.. -I ../common $<
-
-$(PLUGIN).so: $(OFILES)
- $(CC) $(LDFLAGS) -shared $(OFILES) $(LIBS) $(PLUGIN_EXTRALINKFLAGS) -o $@
-
-.PHONY: cleantemps
-cleantemps:
- @rm -f $(notdir $(SRC_FILES:.vala=.c)) $(notdir $(SRC_FILES:.vala=.o))
- @rm -f .stamp
-
-.PHONY: clean
-clean: cleantemps
- @rm -f $(PLUGIN).so $(OFILES) $(CFILES)
-
-.PHONY: distclean
-distclean: clean
-
-PLUGIN_DIR ?= $(PLUGIN)
-
-.PHONY: listfiles
-listfiles:
- @printf "plugins/$(PLUGIN_DIR)/Makefile $(foreach file,$(SRC_FILES),plugins/$(PLUGIN_DIR)/$(file)) "
- @printf "$(foreach rc,$(RC_FILES),plugins/$(PLUGIN_DIR)/$(rc)) "
-
diff --git a/plugins/common/Makefile b/plugins/common/Makefile
deleted file mode 100644
index 90714a0..0000000
--- a/plugins/common/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-
-PLUGIN := libshotwell-plugin-common
-PLUGIN_DIR := common
-
-PLUGIN_PKGS := \
- gee-0.8 \
- libxml-2.0 \
- libsoup-2.4 \
- json-glib-1.0 \
- webkit2gtk-4.0
-
-SRC_FILES := Resources.vala RESTSupport.vala
-
-PLUGIN_EXTRAFLAGS := --vapi=shotwell-plugin-common.vapi \
- --header=shotwell-plugin-common.h
-
-PLUGIN_EXTRALINKFLAGS :=
-
-include ../Makefile.plugin.mk
-
diff --git a/plugins/common/RESTSupport.c b/plugins/common/RESTSupport.c
new file mode 100644
index 0000000..fe85fe6
--- /dev/null
+++ b/plugins/common/RESTSupport.c
@@ -0,0 +1,9226 @@
+/* RESTSupport.c generated by valac 0.32.1, the Vala compiler
+ * generated from RESTSupport.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 <stdlib.h>
+#include <string.h>
+#include <libsoup/soup.h>
+#include "shotwell-plugin-dev-1.0.h"
+#include <gee.h>
+#include <gio/gio.h>
+#include <glib/gstdio.h>
+#include <glib/gi18n-lib.h>
+#include <libxml/tree.h>
+#include <libxml/parser.h>
+#include <float.h>
+#include <math.h>
+#include <json-glib/json-glib.h>
+#include <webkit2/webkit2.h>
+#include <gtk/gtk.h>
+#include <gdk/gdk.h>
+#include <gobject/gvaluecollector.h>
+
+#define _g_hmac_unref0(var) ((var == NULL) ? NULL : (var = (g_hmac_unref (var), NULL)))
+
+#define PUBLISHING_REST_SUPPORT_TYPE_SESSION (publishing_rest_support_session_get_type ())
+#define PUBLISHING_REST_SUPPORT_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))
+#define PUBLISHING_REST_SUPPORT_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass))
+#define PUBLISHING_REST_SUPPORT_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION))
+#define PUBLISHING_REST_SUPPORT_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION))
+#define PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass))
+
+typedef struct _PublishingRESTSupportSession PublishingRESTSupportSession;
+typedef struct _PublishingRESTSupportSessionClass PublishingRESTSupportSessionClass;
+typedef struct _PublishingRESTSupportSessionPrivate PublishingRESTSupportSessionPrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+typedef struct _PublishingRESTSupportParamSpecSession PublishingRESTSupportParamSpecSession;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_HTTP_METHOD (publishing_rest_support_http_method_get_type ())
+
+#define PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT (publishing_rest_support_argument_get_type ())
+#define PUBLISHING_REST_SUPPORT_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument))
+#define PUBLISHING_REST_SUPPORT_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass))
+#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT))
+#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT))
+#define PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass))
+
+typedef struct _PublishingRESTSupportArgument PublishingRESTSupportArgument;
+typedef struct _PublishingRESTSupportArgumentClass PublishingRESTSupportArgumentClass;
+typedef struct _PublishingRESTSupportArgumentPrivate PublishingRESTSupportArgumentPrivate;
+#define _publishing_rest_support_argument_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_argument_unref (var), NULL)))
+typedef struct _PublishingRESTSupportParamSpecArgument PublishingRESTSupportParamSpecArgument;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION (publishing_rest_support_transaction_get_type ())
+#define PUBLISHING_REST_SUPPORT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction))
+#define PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass))
+#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass))
+
+typedef struct _PublishingRESTSupportTransaction PublishingRESTSupportTransaction;
+typedef struct _PublishingRESTSupportTransactionClass PublishingRESTSupportTransactionClass;
+typedef struct _PublishingRESTSupportTransactionPrivate PublishingRESTSupportTransactionPrivate;
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL)))
+typedef struct _PublishingRESTSupportParamSpecTransaction PublishingRESTSupportParamSpecTransaction;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_upload_transaction_get_type ())
+#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction))
+#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass))
+#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass))
+
+typedef struct _PublishingRESTSupportUploadTransaction PublishingRESTSupportUploadTransaction;
+typedef struct _PublishingRESTSupportUploadTransactionClass PublishingRESTSupportUploadTransactionClass;
+typedef struct _PublishingRESTSupportUploadTransactionPrivate PublishingRESTSupportUploadTransactionPrivate;
+#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
+#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL)))
+#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL)))
+
+#define PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT (publishing_rest_support_xml_document_get_type ())
+#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocument))
+#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass))
+#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT))
+#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT))
+#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass))
+
+typedef struct _PublishingRESTSupportXmlDocument PublishingRESTSupportXmlDocument;
+typedef struct _PublishingRESTSupportXmlDocumentClass PublishingRESTSupportXmlDocumentClass;
+typedef struct _PublishingRESTSupportXmlDocumentPrivate PublishingRESTSupportXmlDocumentPrivate;
+#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL)))
+typedef struct _PublishingRESTSupportParamSpecXmlDocument PublishingRESTSupportParamSpecXmlDocument;
+#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
+
+#define PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER (publishing_rest_support_batch_uploader_get_type ())
+#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader))
+#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass))
+#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER))
+#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER))
+#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass))
+
+typedef struct _PublishingRESTSupportBatchUploader PublishingRESTSupportBatchUploader;
+typedef struct _PublishingRESTSupportBatchUploaderClass PublishingRESTSupportBatchUploaderClass;
+typedef struct _PublishingRESTSupportBatchUploaderPrivate PublishingRESTSupportBatchUploaderPrivate;
+#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL)))
+#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL)))
+typedef struct _PublishingRESTSupportParamSpecBatchUploader PublishingRESTSupportParamSpecBatchUploader;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION (publishing_rest_support_google_session_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass))
+#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION))
+#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass))
+
+typedef struct _PublishingRESTSupportGoogleSession PublishingRESTSupportGoogleSession;
+typedef struct _PublishingRESTSupportGoogleSessionClass PublishingRESTSupportGoogleSessionClass;
+typedef struct _PublishingRESTSupportGoogleSessionPrivate PublishingRESTSupportGoogleSessionPrivate;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER (publishing_rest_support_google_publisher_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass))
+#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER))
+#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass))
+
+typedef struct _PublishingRESTSupportGooglePublisher PublishingRESTSupportGooglePublisher;
+typedef struct _PublishingRESTSupportGooglePublisherClass PublishingRESTSupportGooglePublisherClass;
+typedef struct _PublishingRESTSupportGooglePublisherPrivate PublishingRESTSupportGooglePublisherPrivate;
+
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL (publishing_rest_support_google_publisher_google_session_impl_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GOOGLE_SESSION_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GOOGLE_SESSION_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImplClass))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_GOOGLE_SESSION_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_GOOGLE_SESSION_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GOOGLE_SESSION_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImplClass))
+
+typedef struct _PublishingRESTSupportGooglePublisherGoogleSessionImpl PublishingRESTSupportGooglePublisherGoogleSessionImpl;
+typedef struct _PublishingRESTSupportGooglePublisherGoogleSessionImplClass PublishingRESTSupportGooglePublisherGoogleSessionImplClass;
+
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE (publishing_rest_support_google_publisher_web_authentication_pane_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, PublishingRESTSupportGooglePublisherWebAuthenticationPane))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, PublishingRESTSupportGooglePublisherWebAuthenticationPaneClass))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, PublishingRESTSupportGooglePublisherWebAuthenticationPaneClass))
+
+typedef struct _PublishingRESTSupportGooglePublisherWebAuthenticationPane PublishingRESTSupportGooglePublisherWebAuthenticationPane;
+typedef struct _PublishingRESTSupportGooglePublisherWebAuthenticationPaneClass PublishingRESTSupportGooglePublisherWebAuthenticationPaneClass;
+typedef struct _PublishingRESTSupportGooglePublisherGoogleSessionImplPrivate PublishingRESTSupportGooglePublisherGoogleSessionImplPrivate;
+
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GET_ACCESS_TOKENS_TRANSACTION (publishing_rest_support_google_publisher_get_access_tokens_transaction_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_ACCESS_TOKENS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GET_ACCESS_TOKENS_TRANSACTION, PublishingRESTSupportGooglePublisherGetAccessTokensTransaction))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_ACCESS_TOKENS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GET_ACCESS_TOKENS_TRANSACTION, PublishingRESTSupportGooglePublisherGetAccessTokensTransactionClass))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_GET_ACCESS_TOKENS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GET_ACCESS_TOKENS_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_GET_ACCESS_TOKENS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GET_ACCESS_TOKENS_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_ACCESS_TOKENS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GET_ACCESS_TOKENS_TRANSACTION, PublishingRESTSupportGooglePublisherGetAccessTokensTransactionClass))
+
+typedef struct _PublishingRESTSupportGooglePublisherGetAccessTokensTransaction PublishingRESTSupportGooglePublisherGetAccessTokensTransaction;
+typedef struct _PublishingRESTSupportGooglePublisherGetAccessTokensTransactionClass PublishingRESTSupportGooglePublisherGetAccessTokensTransactionClass;
+
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION (publishing_rest_support_google_publisher_refresh_access_token_transaction_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_REFRESH_ACCESS_TOKEN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_REFRESH_ACCESS_TOKEN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, PublishingRESTSupportGooglePublisherRefreshAccessTokenTransactionClass))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_REFRESH_ACCESS_TOKEN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_REFRESH_ACCESS_TOKEN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_REFRESH_ACCESS_TOKEN_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, PublishingRESTSupportGooglePublisherRefreshAccessTokenTransactionClass))
+
+typedef struct _PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction;
+typedef struct _PublishingRESTSupportGooglePublisherRefreshAccessTokenTransactionClass PublishingRESTSupportGooglePublisherRefreshAccessTokenTransactionClass;
+#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL)))
+
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION (publishing_rest_support_google_publisher_authenticated_transaction_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransaction))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass))
+
+typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction PublishingRESTSupportGooglePublisherAuthenticatedTransaction;
+typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass;
+
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_USERNAME_FETCH_TRANSACTION (publishing_rest_support_google_publisher_username_fetch_transaction_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_USERNAME_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_USERNAME_FETCH_TRANSACTION, PublishingRESTSupportGooglePublisherUsernameFetchTransaction))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_USERNAME_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_USERNAME_FETCH_TRANSACTION, PublishingRESTSupportGooglePublisherUsernameFetchTransactionClass))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_USERNAME_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_USERNAME_FETCH_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_USERNAME_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_USERNAME_FETCH_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_USERNAME_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_USERNAME_FETCH_TRANSACTION, PublishingRESTSupportGooglePublisherUsernameFetchTransactionClass))
+
+typedef struct _PublishingRESTSupportGooglePublisherUsernameFetchTransaction PublishingRESTSupportGooglePublisherUsernameFetchTransaction;
+typedef struct _PublishingRESTSupportGooglePublisherUsernameFetchTransactionClass PublishingRESTSupportGooglePublisherUsernameFetchTransactionClass;
+typedef struct _PublishingRESTSupportGooglePublisherWebAuthenticationPanePrivate PublishingRESTSupportGooglePublisherWebAuthenticationPanePrivate;
+typedef struct _PublishingRESTSupportGooglePublisherGetAccessTokensTransactionPrivate PublishingRESTSupportGooglePublisherGetAccessTokensTransactionPrivate;
+typedef struct _PublishingRESTSupportGooglePublisherRefreshAccessTokenTransactionPrivate PublishingRESTSupportGooglePublisherRefreshAccessTokenTransactionPrivate;
+typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate;
+typedef struct _PublishingRESTSupportGooglePublisherUsernameFetchTransactionPrivate PublishingRESTSupportGooglePublisherUsernameFetchTransactionPrivate;
+#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 _PublishingRESTSupportSession {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRESTSupportSessionPrivate * priv;
+};
+
+struct _PublishingRESTSupportSessionClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRESTSupportSession *self);
+ gboolean (*is_authenticated) (PublishingRESTSupportSession* self);
+};
+
+struct _PublishingRESTSupportSessionPrivate {
+ gchar* endpoint_url;
+ SoupSession* soup_session;
+ gboolean transactions_stopped;
+};
+
+struct _PublishingRESTSupportParamSpecSession {
+ GParamSpec parent_instance;
+};
+
+typedef enum {
+ PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET,
+ PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST,
+ PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT
+} PublishingRESTSupportHttpMethod;
+
+struct _PublishingRESTSupportArgument {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRESTSupportArgumentPrivate * priv;
+ gchar* key;
+ gchar* value;
+};
+
+struct _PublishingRESTSupportArgumentClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRESTSupportArgument *self);
+};
+
+struct _PublishingRESTSupportParamSpecArgument {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingRESTSupportTransaction {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRESTSupportTransactionPrivate * priv;
+};
+
+struct _PublishingRESTSupportTransactionClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRESTSupportTransaction *self);
+ void (*add_header) (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value);
+ void (*execute) (PublishingRESTSupportTransaction* self, GError** error);
+};
+
+struct _PublishingRESTSupportTransactionPrivate {
+ PublishingRESTSupportArgument** arguments;
+ gint arguments_length1;
+ gint _arguments_size_;
+ gboolean is_executed;
+ PublishingRESTSupportSession* parent_session;
+ SoupMessage* message;
+ gint bytes_written;
+ GError* err;
+ gchar* endpoint_url;
+ gboolean use_custom_payload;
+};
+
+struct _PublishingRESTSupportParamSpecTransaction {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingRESTSupportUploadTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingRESTSupportUploadTransactionPrivate * priv;
+ GHashTable* binary_disposition_table;
+ SpitPublishingPublishable* publishable;
+ gchar* mime_type;
+ GeeHashMap* message_headers;
+};
+
+struct _PublishingRESTSupportUploadTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingRESTSupportXmlDocument {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRESTSupportXmlDocumentPrivate * priv;
+};
+
+struct _PublishingRESTSupportXmlDocumentClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRESTSupportXmlDocument *self);
+};
+
+struct _PublishingRESTSupportXmlDocumentPrivate {
+ xmlDoc* document;
+};
+
+typedef gchar* (*PublishingRESTSupportXmlDocumentCheckForErrorResponse) (PublishingRESTSupportXmlDocument* doc, void* user_data);
+struct _PublishingRESTSupportParamSpecXmlDocument {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingRESTSupportBatchUploader {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRESTSupportBatchUploaderPrivate * priv;
+};
+
+struct _PublishingRESTSupportBatchUploaderClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRESTSupportBatchUploader *self);
+ PublishingRESTSupportTransaction* (*create_transaction) (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable);
+};
+
+struct _PublishingRESTSupportBatchUploaderPrivate {
+ gint current_file;
+ SpitPublishingPublishable** publishables;
+ gint publishables_length1;
+ gint _publishables_size_;
+ PublishingRESTSupportSession* session;
+ SpitPublishingProgressCallback status_updated;
+ gpointer status_updated_target;
+};
+
+struct _PublishingRESTSupportParamSpecBatchUploader {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingRESTSupportGoogleSession {
+ PublishingRESTSupportSession parent_instance;
+ PublishingRESTSupportGoogleSessionPrivate * priv;
+};
+
+struct _PublishingRESTSupportGoogleSessionClass {
+ PublishingRESTSupportSessionClass parent_class;
+ gchar* (*get_user_name) (PublishingRESTSupportGoogleSession* self);
+ gchar* (*get_access_token) (PublishingRESTSupportGoogleSession* self);
+ gchar* (*get_refresh_token) (PublishingRESTSupportGoogleSession* self);
+ void (*deauthenticate) (PublishingRESTSupportGoogleSession* self);
+};
+
+struct _PublishingRESTSupportGooglePublisher {
+ GObject parent_instance;
+ PublishingRESTSupportGooglePublisherPrivate * priv;
+};
+
+struct _PublishingRESTSupportGooglePublisherClass {
+ GObjectClass parent_class;
+ void (*on_login_flow_complete) (PublishingRESTSupportGooglePublisher* self);
+ void (*do_logout) (PublishingRESTSupportGooglePublisher* self);
+ gboolean (*is_running) (PublishingRESTSupportGooglePublisher* self);
+ void (*start) (PublishingRESTSupportGooglePublisher* self);
+ void (*stop) (PublishingRESTSupportGooglePublisher* self);
+};
+
+struct _PublishingRESTSupportGooglePublisherPrivate {
+ gchar* scope;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* session;
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane* web_auth_pane;
+ SpitPublishingPluginHost* host;
+ SpitPublishingService* service;
+};
+
+struct _PublishingRESTSupportGooglePublisherGoogleSessionImpl {
+ PublishingRESTSupportGoogleSession parent_instance;
+ PublishingRESTSupportGooglePublisherGoogleSessionImplPrivate * priv;
+ gchar* access_token;
+ gchar* user_name;
+ gchar* refresh_token;
+};
+
+struct _PublishingRESTSupportGooglePublisherGoogleSessionImplClass {
+ PublishingRESTSupportGoogleSessionClass parent_class;
+};
+
+struct _PublishingRESTSupportGooglePublisherWebAuthenticationPane {
+ GObject parent_instance;
+ PublishingRESTSupportGooglePublisherWebAuthenticationPanePrivate * priv;
+};
+
+struct _PublishingRESTSupportGooglePublisherWebAuthenticationPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingRESTSupportGooglePublisherWebAuthenticationPanePrivate {
+ WebKitWebView* webview;
+ GtkBox* pane_widget;
+ gchar* auth_sequence_start_url;
+};
+
+struct _PublishingRESTSupportGooglePublisherGetAccessTokensTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingRESTSupportGooglePublisherGetAccessTokensTransactionPrivate * priv;
+};
+
+struct _PublishingRESTSupportGooglePublisherGetAccessTokensTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingRESTSupportGooglePublisherRefreshAccessTokenTransactionPrivate * priv;
+};
+
+struct _PublishingRESTSupportGooglePublisherRefreshAccessTokenTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate * priv;
+};
+
+struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingRESTSupportGooglePublisherUsernameFetchTransaction {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance;
+ PublishingRESTSupportGooglePublisherUsernameFetchTransactionPrivate * priv;
+};
+
+struct _PublishingRESTSupportGooglePublisherUsernameFetchTransactionClass {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class;
+};
+
+
+static gpointer publishing_rest_support_session_parent_class = NULL;
+static gpointer publishing_rest_support_argument_parent_class = NULL;
+static gpointer publishing_rest_support_transaction_parent_class = NULL;
+static gpointer publishing_rest_support_upload_transaction_parent_class = NULL;
+static gpointer publishing_rest_support_xml_document_parent_class = NULL;
+static gpointer publishing_rest_support_batch_uploader_parent_class = NULL;
+static gpointer publishing_rest_support_google_session_parent_class = NULL;
+static gpointer publishing_rest_support_google_publisher_parent_class = NULL;
+static gpointer publishing_rest_support_google_publisher_google_session_impl_parent_class = NULL;
+static gpointer publishing_rest_support_google_publisher_web_authentication_pane_parent_class = NULL;
+static gboolean publishing_rest_support_google_publisher_web_authentication_pane_cache_dirty;
+static gboolean publishing_rest_support_google_publisher_web_authentication_pane_cache_dirty = FALSE;
+static SpitPublishingDialogPaneIface* publishing_rest_support_google_publisher_web_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_rest_support_google_publisher_get_access_tokens_transaction_parent_class = NULL;
+static gpointer publishing_rest_support_google_publisher_refresh_access_token_transaction_parent_class = NULL;
+static gpointer publishing_rest_support_google_publisher_authenticated_transaction_parent_class = NULL;
+static gpointer publishing_rest_support_google_publisher_username_fetch_transaction_parent_class = NULL;
+static SpitPublishingPublisherIface* publishing_rest_support_google_publisher_spit_publishing_publisher_parent_iface = NULL;
+
+#define PUBLISHING_REST_SUPPORT_SHA1_HMAC_LENGTH 20
+gchar* publishing_rest_support_hmac_sha1 (const gchar* key, const gchar* message);
+gpointer publishing_rest_support_session_ref (gpointer instance);
+void publishing_rest_support_session_unref (gpointer instance);
+GParamSpec* publishing_rest_support_param_spec_session (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rest_support_value_set_session (GValue* value, gpointer v_object);
+void publishing_rest_support_value_take_session (GValue* value, gpointer v_object);
+gpointer publishing_rest_support_value_get_session (const GValue* value);
+GType publishing_rest_support_session_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_REST_SUPPORT_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionPrivate))
+enum {
+ PUBLISHING_REST_SUPPORT_SESSION_DUMMY_PROPERTY
+};
+PublishingRESTSupportSession* publishing_rest_support_session_construct (GType object_type, const gchar* endpoint_url);
+void publishing_rest_support_session_notify_wire_message_unqueued (PublishingRESTSupportSession* self, SoupMessage* message);
+void publishing_rest_support_session_notify_authenticated (PublishingRESTSupportSession* self);
+void publishing_rest_support_session_notify_authentication_failed (PublishingRESTSupportSession* self, GError* err);
+gboolean publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self);
+static gboolean publishing_rest_support_session_real_is_authenticated (PublishingRESTSupportSession* self);
+gchar* publishing_rest_support_session_get_endpoint_url (PublishingRESTSupportSession* self);
+void publishing_rest_support_session_stop_transactions (PublishingRESTSupportSession* self);
+gboolean publishing_rest_support_session_are_transactions_stopped (PublishingRESTSupportSession* self);
+void publishing_rest_support_session_send_wire_message (PublishingRESTSupportSession* self, SoupMessage* message);
+static void _publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued (SoupSession* _sender, SoupMessage* msg, gpointer self);
+static void publishing_rest_support_session_finalize (PublishingRESTSupportSession* obj);
+GType publishing_rest_support_http_method_get_type (void) G_GNUC_CONST;
+gchar* publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self);
+PublishingRESTSupportHttpMethod publishing_rest_support_http_method_from_string (const gchar* str);
+gpointer publishing_rest_support_argument_ref (gpointer instance);
+void publishing_rest_support_argument_unref (gpointer instance);
+GParamSpec* publishing_rest_support_param_spec_argument (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rest_support_value_set_argument (GValue* value, gpointer v_object);
+void publishing_rest_support_value_take_argument (GValue* value, gpointer v_object);
+gpointer publishing_rest_support_value_get_argument (const GValue* value);
+GType publishing_rest_support_argument_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_REST_SUPPORT_ARGUMENT_DUMMY_PROPERTY
+};
+PublishingRESTSupportArgument* publishing_rest_support_argument_new (const gchar* key, const gchar* value);
+PublishingRESTSupportArgument* publishing_rest_support_argument_construct (GType object_type, const gchar* key, const gchar* value);
+gint publishing_rest_support_argument_compare (PublishingRESTSupportArgument* arg1, PublishingRESTSupportArgument* arg2);
+PublishingRESTSupportArgument** publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, int inputArray_length1, int* result_length1);
+static gint _publishing_rest_support_argument_compare_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
+gchar* publishing_rest_support_argument_to_string (PublishingRESTSupportArgument* self);
+static void publishing_rest_support_argument_finalize (PublishingRESTSupportArgument* obj);
+gpointer publishing_rest_support_transaction_ref (gpointer instance);
+void publishing_rest_support_transaction_unref (gpointer instance);
+GParamSpec* publishing_rest_support_param_spec_transaction (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rest_support_value_set_transaction (GValue* value, gpointer v_object);
+void publishing_rest_support_value_take_transaction (GValue* value, gpointer v_object);
+gpointer publishing_rest_support_value_get_transaction (const GValue* value);
+GType publishing_rest_support_transaction_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionPrivate))
+enum {
+ PUBLISHING_REST_SUPPORT_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, PublishingRESTSupportHttpMethod method);
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct (GType object_type, PublishingRESTSupportSession* parent_session, PublishingRESTSupportHttpMethod method);
+static void publishing_rest_support_transaction_on_wrote_body_data (PublishingRESTSupportTransaction* self, SoupBuffer* written_data);
+static void _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, SoupBuffer* chunk, gpointer self);
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method);
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, PublishingRESTSupportSession* parent_session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method);
+static void publishing_rest_support_transaction_on_message_unqueued (PublishingRESTSupportTransaction* self, SoupMessage* message);
+void publishing_rest_support_transaction_check_response (PublishingRESTSupportTransaction* self, SoupMessage* message, GError** error);
+gchar* publishing_rest_support_transaction_get_response (PublishingRESTSupportTransaction* self);
+gchar* publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self);
+PublishingRESTSupportArgument** publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, int* result_length1);
+static PublishingRESTSupportArgument** _vala_array_dup1 (PublishingRESTSupportArgument** self, int length);
+PublishingRESTSupportArgument** publishing_rest_support_transaction_get_sorted_arguments (PublishingRESTSupportTransaction* self, int* result_length1);
+void publishing_rest_support_transaction_set_is_executed (PublishingRESTSupportTransaction* self, gboolean is_executed);
+void publishing_rest_support_transaction_send (PublishingRESTSupportTransaction* self, GError** error);
+static void _publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued (PublishingRESTSupportSession* _sender, SoupMessage* message, gpointer self);
+PublishingRESTSupportHttpMethod publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self);
+void publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value);
+static void publishing_rest_support_transaction_real_add_header (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value);
+void publishing_rest_support_transaction_set_custom_payload (PublishingRESTSupportTransaction* self, const gchar* custom_payload, const gchar* payload_content_type, gulong payload_length);
+void publishing_rest_support_transaction_set_message (PublishingRESTSupportTransaction* self, SoupMessage* message);
+gboolean publishing_rest_support_transaction_get_is_executed (PublishingRESTSupportTransaction* self);
+guint publishing_rest_support_transaction_get_status_code (PublishingRESTSupportTransaction* self);
+void publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, GError** error);
+static void publishing_rest_support_transaction_real_execute (PublishingRESTSupportTransaction* self, GError** error);
+static void _vala_SoupURI_free (SoupURI* self);
+SoupMessageHeaders* publishing_rest_support_transaction_get_response_headers (PublishingRESTSupportTransaction* self);
+SoupMessage* publishing_rest_support_transaction_get_message (PublishingRESTSupportTransaction* self);
+void publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, const gchar* name, const gchar* value);
+static void _vala_array_add1 (PublishingRESTSupportArgument*** array, int* length, int* size, PublishingRESTSupportArgument* value);
+PublishingRESTSupportSession* publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self);
+static void g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void publishing_rest_support_transaction_finalize (PublishingRESTSupportTransaction* obj);
+GType publishing_rest_support_upload_transaction_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new (PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable);
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct (GType object_type, PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable);
+static gchar* publishing_rest_support_upload_transaction_media_type_to_mime_type (SpitPublishingPublisherMediaType media_type);
+static GHashTable* publishing_rest_support_upload_transaction_create_default_binary_disposition_table (PublishingRESTSupportUploadTransaction* self);
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable, const gchar* endpoint_url);
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable, const gchar* endpoint_url);
+static void publishing_rest_support_upload_transaction_real_add_header (PublishingRESTSupportTransaction* base, const gchar* key, const gchar* value);
+const gchar* spit_publishing_publisher_media_type_to_string (SpitPublishingPublisherMediaType self);
+static void _g_free0_ (gpointer var);
+void publishing_rest_support_upload_transaction_set_binary_disposition_table (PublishingRESTSupportUploadTransaction* self, GHashTable* new_disp_table);
+static void publishing_rest_support_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error);
+static void _vala_SoupMultipart_free (SoupMultipart* self);
+static void _vala_SoupBuffer_free (SoupBuffer* self);
+static void publishing_rest_support_upload_transaction_finalize (PublishingRESTSupportTransaction* obj);
+gpointer publishing_rest_support_xml_document_ref (gpointer instance);
+void publishing_rest_support_xml_document_unref (gpointer instance);
+GParamSpec* publishing_rest_support_param_spec_xml_document (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rest_support_value_set_xml_document (GValue* value, gpointer v_object);
+void publishing_rest_support_value_take_xml_document (GValue* value, gpointer v_object);
+gpointer publishing_rest_support_value_get_xml_document (const GValue* value);
+GType publishing_rest_support_xml_document_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentPrivate))
+enum {
+ PUBLISHING_REST_SUPPORT_XML_DOCUMENT_DUMMY_PROPERTY
+};
+static PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_new (xmlDoc* doc);
+static PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_construct (GType object_type, xmlDoc* doc);
+xmlNode* publishing_rest_support_xml_document_get_root_node (PublishingRESTSupportXmlDocument* self);
+xmlNode* publishing_rest_support_xml_document_get_named_child (PublishingRESTSupportXmlDocument* self, xmlNode* parent, const gchar* child_name, GError** error);
+gchar* publishing_rest_support_xml_document_get_property_value (PublishingRESTSupportXmlDocument* self, xmlNode* node, const gchar* property_key, GError** error);
+PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_parse_string (const gchar* input_string, PublishingRESTSupportXmlDocumentCheckForErrorResponse check_for_error_response, void* check_for_error_response_target, GError** error);
+static void publishing_rest_support_xml_document_finalize (PublishingRESTSupportXmlDocument* obj);
+gchar* publishing_rest_support_decimal_entity_encode (const gchar* source);
+gpointer publishing_rest_support_batch_uploader_ref (gpointer instance);
+void publishing_rest_support_batch_uploader_unref (gpointer instance);
+GParamSpec* publishing_rest_support_param_spec_batch_uploader (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rest_support_value_set_batch_uploader (GValue* value, gpointer v_object);
+void publishing_rest_support_value_take_batch_uploader (GValue* value, gpointer v_object);
+gpointer publishing_rest_support_value_get_batch_uploader (const GValue* value);
+GType publishing_rest_support_batch_uploader_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderPrivate))
+enum {
+ PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_DUMMY_PROPERTY
+};
+PublishingRESTSupportBatchUploader* publishing_rest_support_batch_uploader_construct (GType object_type, PublishingRESTSupportSession* session, SpitPublishingPublishable** publishables, int publishables_length1);
+static SpitPublishingPublishable** _vala_array_dup2 (SpitPublishingPublishable** self, int length);
+static void publishing_rest_support_batch_uploader_send_files (PublishingRESTSupportBatchUploader* self);
+PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_create_transaction (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable);
+static void publishing_rest_support_batch_uploader_on_chunk_transmitted (PublishingRESTSupportBatchUploader* self, gint bytes_written_so_far, gint total_bytes);
+static void _publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted (PublishingRESTSupportTransaction* _sender, gint bytes_written_so_far, gint total_bytes, gpointer self);
+PublishingRESTSupportSession* publishing_rest_support_batch_uploader_get_session (PublishingRESTSupportBatchUploader* self);
+SpitPublishingPublishable* publishing_rest_support_batch_uploader_get_current_publishable (PublishingRESTSupportBatchUploader* self);
+static PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable);
+void publishing_rest_support_batch_uploader_upload (PublishingRESTSupportBatchUploader* self, SpitPublishingProgressCallback status_updated, void* status_updated_target);
+static void publishing_rest_support_batch_uploader_finalize (PublishingRESTSupportBatchUploader* obj);
+gchar* publishing_rest_support_asciify_string (const gchar* s);
+GType publishing_rest_support_google_session_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_DUMMY_PROPERTY
+};
+gchar* publishing_rest_support_google_session_get_user_name (PublishingRESTSupportGoogleSession* self);
+static gchar* publishing_rest_support_google_session_real_get_user_name (PublishingRESTSupportGoogleSession* self);
+gchar* publishing_rest_support_google_session_get_access_token (PublishingRESTSupportGoogleSession* self);
+static gchar* publishing_rest_support_google_session_real_get_access_token (PublishingRESTSupportGoogleSession* self);
+gchar* publishing_rest_support_google_session_get_refresh_token (PublishingRESTSupportGoogleSession* self);
+static gchar* publishing_rest_support_google_session_real_get_refresh_token (PublishingRESTSupportGoogleSession* self);
+void publishing_rest_support_google_session_deauthenticate (PublishingRESTSupportGoogleSession* self);
+static void publishing_rest_support_google_session_real_deauthenticate (PublishingRESTSupportGoogleSession* self);
+PublishingRESTSupportGoogleSession* publishing_rest_support_google_session_construct (GType object_type);
+GType publishing_rest_support_google_publisher_get_type (void) G_GNUC_CONST;
+static GType publishing_rest_support_google_publisher_google_session_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+static GType publishing_rest_support_google_publisher_web_authentication_pane_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherPrivate))
+enum {
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_DUMMY_PROPERTY
+};
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_ID "1073902228337-gm4uf5etk25s0hnnm0g7uv2tm2bm1j0b.apps.googleusercontent." \
+"com"
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_SECRET "_kA4RZz72xqed4DqfO7xMmMN"
+PublishingRESTSupportGooglePublisher* publishing_rest_support_google_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host, const gchar* scope);
+static PublishingRESTSupportGooglePublisherGoogleSessionImpl* publishing_rest_support_google_publisher_google_session_impl_new (void);
+static PublishingRESTSupportGooglePublisherGoogleSessionImpl* publishing_rest_support_google_publisher_google_session_impl_construct (GType object_type);
+static void publishing_rest_support_google_publisher_on_web_auth_pane_authorized (PublishingRESTSupportGooglePublisher* self, const gchar* auth_code);
+static void _publishing_rest_support_google_publisher_on_web_auth_pane_authorized_publishing_rest_support_google_publisher_web_authentication_pane_authorized (PublishingRESTSupportGooglePublisherWebAuthenticationPane* _sender, const gchar* auth_code, gpointer self);
+gboolean publishing_rest_support_google_publisher_is_running (PublishingRESTSupportGooglePublisher* self);
+static void publishing_rest_support_google_publisher_do_get_access_tokens (PublishingRESTSupportGooglePublisher* self, const gchar* auth_code);
+static void publishing_rest_support_google_publisher_on_get_access_tokens_complete (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_rest_support_google_publisher_on_get_access_tokens_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_rest_support_google_publisher_on_get_access_tokens_error (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn, GError* err);
+static void _publishing_rest_support_google_publisher_on_get_access_tokens_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_rest_support_google_publisher_do_extract_tokens (PublishingRESTSupportGooglePublisher* self, const gchar* response_body);
+static void publishing_rest_support_google_publisher_on_refresh_access_token_transaction_completed (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_rest_support_google_publisher_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_rest_support_google_publisher_on_refresh_access_token_transaction_error (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn, GError* err);
+static void _publishing_rest_support_google_publisher_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+void publishing_rest_support_google_publisher_do_logout (PublishingRESTSupportGooglePublisher* self);
+static void publishing_rest_support_google_publisher_on_refresh_token_available (PublishingRESTSupportGooglePublisher* self, const gchar* token);
+static void publishing_rest_support_google_publisher_on_access_token_available (PublishingRESTSupportGooglePublisher* self, const gchar* token);
+static void publishing_rest_support_google_publisher_do_fetch_username (PublishingRESTSupportGooglePublisher* self);
+static void publishing_rest_support_google_publisher_on_fetch_username_transaction_completed (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_rest_support_google_publisher_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_rest_support_google_publisher_on_fetch_username_transaction_error (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn, GError* err);
+static void _publishing_rest_support_google_publisher_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_rest_support_google_publisher_do_extract_username (PublishingRESTSupportGooglePublisher* self, const gchar* response_body);
+static GType publishing_rest_support_google_publisher_get_access_tokens_transaction_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+static PublishingRESTSupportGooglePublisherGetAccessTokensTransaction* publishing_rest_support_google_publisher_get_access_tokens_transaction_new (PublishingRESTSupportSession* session, const gchar* auth_code);
+static PublishingRESTSupportGooglePublisherGetAccessTokensTransaction* publishing_rest_support_google_publisher_get_access_tokens_transaction_construct (GType object_type, PublishingRESTSupportSession* session, const gchar* auth_code);
+static void publishing_rest_support_google_publisher_do_hosted_web_authentication (PublishingRESTSupportGooglePublisher* self);
+static PublishingRESTSupportGooglePublisherWebAuthenticationPane* publishing_rest_support_google_publisher_web_authentication_pane_new (const gchar* auth_sequence_start_url);
+static PublishingRESTSupportGooglePublisherWebAuthenticationPane* publishing_rest_support_google_publisher_web_authentication_pane_construct (GType object_type, const gchar* auth_sequence_start_url);
+static void publishing_rest_support_google_publisher_do_exchange_refresh_token_for_access_token (PublishingRESTSupportGooglePublisher* self);
+static GType publishing_rest_support_google_publisher_refresh_access_token_transaction_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+static PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction* publishing_rest_support_google_publisher_refresh_access_token_transaction_new (PublishingRESTSupportSession* session);
+static PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction* publishing_rest_support_google_publisher_refresh_access_token_transaction_construct (GType object_type, PublishingRESTSupportSession* session);
+GType publishing_rest_support_google_publisher_authenticated_transaction_get_type (void) G_GNUC_CONST;
+static GType publishing_rest_support_google_publisher_username_fetch_transaction_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+static PublishingRESTSupportGooglePublisherUsernameFetchTransaction* publishing_rest_support_google_publisher_username_fetch_transaction_new (PublishingRESTSupportGoogleSession* session);
+static PublishingRESTSupportGooglePublisherUsernameFetchTransaction* publishing_rest_support_google_publisher_username_fetch_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session);
+void publishing_rest_support_google_publisher_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self);
+SpitPublishingPluginHost* publishing_rest_support_google_publisher_get_host (PublishingRESTSupportGooglePublisher* self);
+PublishingRESTSupportGoogleSession* publishing_rest_support_google_publisher_get_session (PublishingRESTSupportGooglePublisher* self);
+void publishing_rest_support_google_publisher_start_oauth_flow (PublishingRESTSupportGooglePublisher* self, const gchar* refresh_token);
+static gboolean publishing_rest_support_google_publisher_web_authentication_pane_is_cache_dirty (void);
+static void publishing_rest_support_google_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self);
+static void publishing_rest_support_google_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* self);
+static gboolean publishing_rest_support_google_publisher_real_is_running (PublishingRESTSupportGooglePublisher* self);
+void publishing_rest_support_google_publisher_start (PublishingRESTSupportGooglePublisher* self);
+static void publishing_rest_support_google_publisher_real_start (PublishingRESTSupportGooglePublisher* self);
+void publishing_rest_support_google_publisher_stop (PublishingRESTSupportGooglePublisher* self);
+static void publishing_rest_support_google_publisher_real_stop (PublishingRESTSupportGooglePublisher* self);
+static SpitPublishingService* publishing_rest_support_google_publisher_real_get_service (SpitPublishingPublisher* base);
+enum {
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GOOGLE_SESSION_IMPL_DUMMY_PROPERTY
+};
+static gboolean publishing_rest_support_google_publisher_google_session_impl_real_is_authenticated (PublishingRESTSupportSession* base);
+static gchar* publishing_rest_support_google_publisher_google_session_impl_real_get_user_name (PublishingRESTSupportGoogleSession* base);
+static gchar* publishing_rest_support_google_publisher_google_session_impl_real_get_access_token (PublishingRESTSupportGoogleSession* base);
+static gchar* publishing_rest_support_google_publisher_google_session_impl_real_get_refresh_token (PublishingRESTSupportGoogleSession* base);
+static void publishing_rest_support_google_publisher_google_session_impl_real_deauthenticate (PublishingRESTSupportGoogleSession* base);
+static void publishing_rest_support_google_publisher_google_session_impl_finalize (PublishingRESTSupportSession* obj);
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_WEB_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, PublishingRESTSupportGooglePublisherWebAuthenticationPanePrivate))
+enum {
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_WEB_AUTHENTICATION_PANE_DUMMY_PROPERTY
+};
+static void publishing_rest_support_google_publisher_web_authentication_pane_on_page_load_changed (PublishingRESTSupportGooglePublisherWebAuthenticationPane* self, WebKitLoadEvent load_event);
+static void _publishing_rest_support_google_publisher_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed (WebKitWebView* _sender, WebKitLoadEvent load_event, gpointer self);
+static gboolean __lambda4_ (PublishingRESTSupportGooglePublisherWebAuthenticationPane* self);
+static gboolean ___lambda4__webkit_web_view_context_menu (WebKitWebView* _sender, WebKitContextMenu* context_menu, GdkEvent* event, WebKitHitTestResult* hit_test_result, gpointer self);
+static void publishing_rest_support_google_publisher_web_authentication_pane_on_page_load (PublishingRESTSupportGooglePublisherWebAuthenticationPane* self);
+static void publishing_rest_support_google_publisher_web_authentication_pane_on_load_started (PublishingRESTSupportGooglePublisherWebAuthenticationPane* self);
+static SpitPublishingDialogPaneGeometryOptions publishing_rest_support_google_publisher_web_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static GtkWidget* publishing_rest_support_google_publisher_web_authentication_pane_real_get_widget (SpitPublishingDialogPane* base);
+static void publishing_rest_support_google_publisher_web_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_rest_support_google_publisher_web_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void publishing_rest_support_google_publisher_web_authentication_pane_finalize (GObject* obj);
+enum {
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_ACCESS_TOKENS_TRANSACTION_DUMMY_PROPERTY
+};
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_ACCESS_TOKENS_TRANSACTION_ENDPOINT_URL "https://accounts.google.com/o/oauth2/token"
+enum {
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_REFRESH_ACCESS_TOKEN_TRANSACTION_DUMMY_PROPERTY
+};
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_REFRESH_ACCESS_TOKEN_TRANSACTION_ENDPOINT_URL "https://accounts.google.com/o/oauth2/token"
+enum {
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_DUMMY_PROPERTY
+};
+static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new_with_endpoint_url (PublishingRESTSupportGoogleSession* session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method);
+static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct_with_endpoint_url (GType object_type, PublishingRESTSupportGoogleSession* session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method);
+PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new (PublishingRESTSupportGoogleSession* session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method);
+PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method);
+enum {
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_USERNAME_FETCH_TRANSACTION_DUMMY_PROPERTY
+};
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_USERNAME_FETCH_TRANSACTION_ENDPOINT_URL "https://www.googleapis.com/oauth2/v1/userinfo"
+static void publishing_rest_support_google_publisher_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 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 774 "RESTSupport.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 780 "RESTSupport.c"
+}
+
+
+gchar* publishing_rest_support_hmac_sha1 (const gchar* key, const gchar* message) {
+ gchar* result = NULL;
+ guint8 buffer[PUBLISHING_REST_SUPPORT_SHA1_HMAC_LENGTH] = {0};
+ gsize len = 0UL;
+ GHmac* mac = NULL;
+ const gchar* _tmp0_ = NULL;
+ guint8* _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ guint8* _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ GHmac* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ guint8* _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ guint8* _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ gsize _tmp7_ = 0UL;
+ gchar* _tmp8_ = NULL;
+#line 14 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (key != NULL, NULL);
+#line 14 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (message != NULL, NULL);
+#line 16 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ len = (gsize) PUBLISHING_REST_SUPPORT_SHA1_HMAC_LENGTH;
+#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = key;
+#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = string_get_data (_tmp0_, &_tmp1__length1);
+#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp1_;
+#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2__length1 = _tmp1__length1;
+#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = g_hmac_new (G_CHECKSUM_SHA1, _tmp2_, _tmp2__length1);
+#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ mac = _tmp3_;
+#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = message;
+#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = string_get_data (_tmp4_, &_tmp5__length1);
+#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = _tmp5_;
+#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6__length1 = _tmp5__length1;
+#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_hmac_update (mac, _tmp6_, (gssize) _tmp6__length1);
+#line 20 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_hmac_get_digest (mac, buffer, &len);
+#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = len;
+#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = g_base64_encode (buffer + 0, ((gint) _tmp7_) - 0);
+#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp8_;
+#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_hmac_unref0 (mac);
+#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 842 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportSession* publishing_rest_support_session_construct (GType object_type, const gchar* endpoint_url) {
+ PublishingRESTSupportSession* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ SoupSessionAsync* _tmp2_ = NULL;
+ SoupSession* _tmp3_ = NULL;
+#line 34 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportSession*) g_type_create_instance (object_type);
+#line 35 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = endpoint_url;
+#line 35 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 35 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->priv->endpoint_url);
+#line 35 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->endpoint_url = _tmp1_;
+#line 36 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = (SoupSessionAsync*) soup_session_async_new ();
+#line 36 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->soup_session);
+#line 36 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->soup_session = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, soup_session_get_type (), SoupSession);
+#line 37 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = self->priv->soup_session;
+#line 37 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_set (_tmp3_, "ssl-use-system-ca-file", TRUE, NULL);
+#line 34 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 874 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_session_notify_wire_message_unqueued (PublishingRESTSupportSession* self, SoupMessage* message) {
+ SoupMessage* _tmp0_ = NULL;
+#line 40 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self));
+#line 40 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (SOUP_IS_MESSAGE (message));
+#line 41 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = message;
+#line 41 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_emit_by_name (self, "wire-message-unqueued", _tmp0_);
+#line 888 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_session_notify_authenticated (PublishingRESTSupportSession* self) {
+#line 44 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self));
+#line 45 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_emit_by_name (self, "authenticated");
+#line 897 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_session_notify_authentication_failed (PublishingRESTSupportSession* self, GError* err) {
+ GError* _tmp0_ = NULL;
+#line 48 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self));
+#line 49 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = err;
+#line 49 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_emit_by_name (self, "authentication-failed", _tmp0_);
+#line 909 "RESTSupport.c"
+}
+
+
+static gboolean publishing_rest_support_session_real_is_authenticated (PublishingRESTSupportSession* self) {
+#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_session_is_authenticated'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return FALSE;
+#line 918 "RESTSupport.c"
+}
+
+
+gboolean publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self) {
+#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self), FALSE);
+#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS (self)->is_authenticated (self);
+#line 927 "RESTSupport.c"
+}
+
+
+gchar* publishing_rest_support_session_get_endpoint_url (PublishingRESTSupportSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 54 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self), NULL);
+#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->endpoint_url;
+#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp1_;
+#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 945 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_session_stop_transactions (PublishingRESTSupportSession* self) {
+ SoupSession* _tmp0_ = NULL;
+#line 58 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self));
+#line 59 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->transactions_stopped = TRUE;
+#line 60 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->soup_session;
+#line 60 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_session_abort (_tmp0_);
+#line 959 "RESTSupport.c"
+}
+
+
+gboolean publishing_rest_support_session_are_transactions_stopped (PublishingRESTSupportSession* self) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 63 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self), FALSE);
+#line 64 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->transactions_stopped;
+#line 64 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp0_;
+#line 64 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 974 "RESTSupport.c"
+}
+
+
+static void _publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued (SoupSession* _sender, SoupMessage* msg, gpointer self) {
+#line 71 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_session_notify_wire_message_unqueued ((PublishingRESTSupportSession*) self, msg);
+#line 981 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_session_send_wire_message (PublishingRESTSupportSession* self, SoupMessage* message) {
+ gboolean _tmp0_ = FALSE;
+ SoupSession* _tmp1_ = NULL;
+ SoupSession* _tmp2_ = NULL;
+ SoupMessage* _tmp3_ = NULL;
+ SoupSession* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+#line 67 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self));
+#line 67 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (SOUP_IS_MESSAGE (message));
+#line 68 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = publishing_rest_support_session_are_transactions_stopped (self);
+#line 68 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp0_) {
+#line 69 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 1002 "RESTSupport.c"
+ }
+#line 71 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->soup_session;
+#line 71 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect (_tmp1_, "request-unqueued", (GCallback) _publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued, self);
+#line 72 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = self->priv->soup_session;
+#line 72 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = message;
+#line 72 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_session_send_message (_tmp2_, _tmp3_);
+#line 74 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = self->priv->soup_session;
+#line 74 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("request-unqueued", soup_session_get_type (), &_tmp5_, NULL, FALSE);
+#line 74 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued, self);
+#line 1020 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_value_session_init (GValue* value) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 1027 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_value_session_free_value (GValue* value) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (value->data[0].v_pointer) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_session_unref (value->data[0].v_pointer);
+#line 1036 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_value_session_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (src_value->data[0].v_pointer) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ dest_value->data[0].v_pointer = publishing_rest_support_session_ref (src_value->data[0].v_pointer);
+#line 1046 "RESTSupport.c"
+ } else {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1050 "RESTSupport.c"
+ }
+}
+
+
+static gpointer publishing_rest_support_value_session_peek_pointer (const GValue* value) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return value->data[0].v_pointer;
+#line 1058 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_value_session_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (collect_values[0].v_pointer) {
+#line 1065 "RESTSupport.c"
+ PublishingRESTSupportSession* object;
+ object = collect_values[0].v_pointer;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1072 "RESTSupport.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 1076 "RESTSupport.c"
+ }
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = publishing_rest_support_session_ref (object);
+#line 1080 "RESTSupport.c"
+ } else {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 1084 "RESTSupport.c"
+ }
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 1088 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_value_session_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingRESTSupportSession** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!object_p) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1099 "RESTSupport.c"
+ }
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!value->data[0].v_pointer) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = NULL;
+#line 1105 "RESTSupport.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1109 "RESTSupport.c"
+ } else {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = publishing_rest_support_session_ref (value->data[0].v_pointer);
+#line 1113 "RESTSupport.c"
+ }
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 1117 "RESTSupport.c"
+}
+
+
+GParamSpec* publishing_rest_support_param_spec_session (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingRESTSupportParamSpecSession* spec;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_SESSION), NULL);
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return G_PARAM_SPEC (spec);
+#line 1131 "RESTSupport.c"
+}
+
+
+gpointer publishing_rest_support_value_get_session (const GValue* value) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_SESSION), NULL);
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return value->data[0].v_pointer;
+#line 1140 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_value_set_session (GValue* value, gpointer v_object) {
+ PublishingRESTSupportSession* old;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_SESSION));
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old = value->data[0].v_pointer;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (v_object) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_SESSION));
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_session_ref (value->data[0].v_pointer);
+#line 1160 "RESTSupport.c"
+ } else {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 1164 "RESTSupport.c"
+ }
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (old) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_session_unref (old);
+#line 1170 "RESTSupport.c"
+ }
+}
+
+
+void publishing_rest_support_value_take_session (GValue* value, gpointer v_object) {
+ PublishingRESTSupportSession* old;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_SESSION));
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old = value->data[0].v_pointer;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (v_object) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_SESSION));
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 1189 "RESTSupport.c"
+ } else {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 1193 "RESTSupport.c"
+ }
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (old) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_session_unref (old);
+#line 1199 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_session_class_init (PublishingRESTSupportSessionClass * klass) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_session_parent_class = g_type_class_peek_parent (klass);
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rest_support_session_finalize;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRESTSupportSessionPrivate));
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = publishing_rest_support_session_real_is_authenticated;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_new ("wire_message_unqueued", PUBLISHING_REST_SUPPORT_TYPE_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, soup_message_get_type ());
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_new ("authenticated", PUBLISHING_REST_SUPPORT_TYPE_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_new ("authentication_failed", PUBLISHING_REST_SUPPORT_TYPE_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER);
+#line 1219 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_session_instance_init (PublishingRESTSupportSession * self) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv = PUBLISHING_REST_SUPPORT_SESSION_GET_PRIVATE (self);
+#line 26 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->endpoint_url = NULL;
+#line 27 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->soup_session = NULL;
+#line 28 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->transactions_stopped = FALSE;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->ref_count = 1;
+#line 1234 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_session_finalize (PublishingRESTSupportSession* obj) {
+ PublishingRESTSupportSession * self;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession);
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_destroy (self);
+#line 26 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->priv->endpoint_url);
+#line 27 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->soup_session);
+#line 1248 "RESTSupport.c"
+}
+
+
+GType publishing_rest_support_session_get_type (void) {
+ static volatile gsize publishing_rest_support_session_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_session_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_session_init, publishing_rest_support_value_session_free_value, publishing_rest_support_value_session_copy_value, publishing_rest_support_value_session_peek_pointer, "p", publishing_rest_support_value_session_collect_value, "p", publishing_rest_support_value_session_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportSession), 0, (GInstanceInitFunc) publishing_rest_support_session_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 publishing_rest_support_session_type_id;
+ publishing_rest_support_session_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportSession", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
+ g_once_init_leave (&publishing_rest_support_session_type_id__volatile, publishing_rest_support_session_type_id);
+ }
+ return publishing_rest_support_session_type_id__volatile;
+}
+
+
+gpointer publishing_rest_support_session_ref (gpointer instance) {
+ PublishingRESTSupportSession* self;
+ self = instance;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return instance;
+#line 1273 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_session_unref (gpointer instance) {
+ PublishingRESTSupportSession* self;
+ self = instance;
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS (self)->finalize (self);
+#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1286 "RESTSupport.c"
+ }
+}
+
+
+gchar* publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self) {
+ gchar* result = NULL;
+#line 84 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ switch (self) {
+#line 84 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET:
+#line 1297 "RESTSupport.c"
+ {
+ gchar* _tmp0_ = NULL;
+#line 86 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = g_strdup ("GET");
+#line 86 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp0_;
+#line 86 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 1306 "RESTSupport.c"
+ }
+#line 84 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT:
+#line 1310 "RESTSupport.c"
+ {
+ gchar* _tmp1_ = NULL;
+#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = g_strdup ("PUT");
+#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp1_;
+#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 1319 "RESTSupport.c"
+ }
+#line 84 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST:
+#line 1323 "RESTSupport.c"
+ {
+ gchar* _tmp2_ = NULL;
+#line 92 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = g_strdup ("POST");
+#line 92 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp2_;
+#line 92 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 1332 "RESTSupport.c"
+ }
+ default:
+ {
+#line 95 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_error ("RESTSupport.vala:95: unrecognized HTTP method enumeration value");
+#line 1338 "RESTSupport.c"
+ }
+ }
+}
+
+
+PublishingRESTSupportHttpMethod publishing_rest_support_http_method_from_string (const gchar* str) {
+ PublishingRESTSupportHttpMethod result = 0;
+ const gchar* _tmp0_ = NULL;
+#line 99 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (str != NULL, 0);
+#line 100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = str;
+#line 100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_strcmp0 (_tmp0_, "GET") == 0) {
+#line 101 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET;
+#line 101 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 1357 "RESTSupport.c"
+ } else {
+ const gchar* _tmp1_ = NULL;
+#line 102 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = str;
+#line 102 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_strcmp0 (_tmp1_, "PUT") == 0) {
+#line 103 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT;
+#line 103 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 1368 "RESTSupport.c"
+ } else {
+ const gchar* _tmp2_ = NULL;
+#line 104 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = str;
+#line 104 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_strcmp0 (_tmp2_, "POST") == 0) {
+#line 105 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST;
+#line 105 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 1379 "RESTSupport.c"
+ } else {
+ const gchar* _tmp3_ = NULL;
+#line 107 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = str;
+#line 107 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_error ("RESTSupport.vala:107: unrecognized HTTP method name: %s", _tmp3_);
+#line 1386 "RESTSupport.c"
+ }
+ }
+ }
+}
+
+
+GType publishing_rest_support_http_method_get_type (void) {
+ static volatile gsize publishing_rest_support_http_method_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_http_method_type_id__volatile)) {
+ static const GEnumValue values[] = {{PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, "PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET", "get"}, {PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, "PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST", "post"}, {PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT, "PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT", "put"}, {0, NULL, NULL}};
+ GType publishing_rest_support_http_method_type_id;
+ publishing_rest_support_http_method_type_id = g_enum_register_static ("PublishingRESTSupportHttpMethod", values);
+ g_once_init_leave (&publishing_rest_support_http_method_type_id__volatile, publishing_rest_support_http_method_type_id);
+ }
+ return publishing_rest_support_http_method_type_id__volatile;
+}
+
+
+PublishingRESTSupportArgument* publishing_rest_support_argument_construct (GType object_type, const gchar* key, const gchar* value) {
+ PublishingRESTSupportArgument* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 116 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (key != NULL, NULL);
+#line 116 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (value != NULL, NULL);
+#line 116 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportArgument*) g_type_create_instance (object_type);
+#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = key;
+#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->key);
+#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->key = _tmp1_;
+#line 118 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = value;
+#line 118 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 118 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->value);
+#line 118 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->value = _tmp3_;
+#line 116 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 1435 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportArgument* publishing_rest_support_argument_new (const gchar* key, const gchar* value) {
+#line 116 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_argument_construct (PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, key, value);
+#line 1442 "RESTSupport.c"
+}
+
+
+gint publishing_rest_support_argument_compare (PublishingRESTSupportArgument* arg1, PublishingRESTSupportArgument* arg2) {
+ gint result = 0;
+ GCompareFunc _tmp0_ = NULL;
+ PublishingRESTSupportArgument* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRESTSupportArgument* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_ARGUMENT (arg1), 0);
+#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_ARGUMENT (arg2), 0);
+#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = g_strcmp0;
+#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = arg1;
+#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp1_->key;
+#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = arg2;
+#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = _tmp3_->key;
+#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = _tmp0_ (_tmp2_, _tmp4_);
+#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp5_;
+#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 1474 "RESTSupport.c"
+}
+
+
+static gint _publishing_rest_support_argument_compare_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
+ gint result;
+ result = publishing_rest_support_argument_compare ((PublishingRESTSupportArgument*) a, (PublishingRESTSupportArgument*) b);
+#line 126 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 1483 "RESTSupport.c"
+}
+
+
+static gpointer _publishing_rest_support_argument_ref0 (gpointer self) {
+#line 128 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self ? publishing_rest_support_argument_ref (self) : NULL;
+#line 1490 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportArgument** publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, int inputArray_length1, int* result_length1) {
+ PublishingRESTSupportArgument** result = NULL;
+ GeeTreeSet* sorted_args = NULL;
+ GeeTreeSet* _tmp0_ = NULL;
+ PublishingRESTSupportArgument** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ GeeTreeSet* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ gpointer* _tmp7_ = NULL;
+ PublishingRESTSupportArgument** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+#line 126 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = gee_tree_set_new (PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, (GBoxedCopyFunc) publishing_rest_support_argument_ref, publishing_rest_support_argument_unref, _publishing_rest_support_argument_compare_gcompare_data_func, NULL, NULL);
+#line 126 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ sorted_args = _tmp0_;
+#line 128 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = inputArray;
+#line 128 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1__length1 = inputArray_length1;
+#line 1513 "RESTSupport.c"
+ {
+ PublishingRESTSupportArgument** arg_collection = NULL;
+ gint arg_collection_length1 = 0;
+ gint _arg_collection_size_ = 0;
+ gint arg_it = 0;
+#line 128 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ arg_collection = _tmp1_;
+#line 128 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ arg_collection_length1 = _tmp1__length1;
+#line 128 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ for (arg_it = 0; arg_it < _tmp1__length1; arg_it = arg_it + 1) {
+#line 1525 "RESTSupport.c"
+ PublishingRESTSupportArgument* _tmp2_ = NULL;
+ PublishingRESTSupportArgument* arg = NULL;
+#line 128 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]);
+#line 128 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ arg = _tmp2_;
+#line 1532 "RESTSupport.c"
+ {
+ GeeTreeSet* _tmp3_ = NULL;
+ PublishingRESTSupportArgument* _tmp4_ = NULL;
+#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = sorted_args;
+#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = arg;
+#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp4_);
+#line 128 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_argument_unref0 (arg);
+#line 1544 "RESTSupport.c"
+ }
+ }
+ }
+#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = sorted_args;
+#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp6_);
+#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = _tmp7_;
+#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8__length1 = _tmp6_;
+#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (result_length1) {
+#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *result_length1 = _tmp8__length1;
+#line 1560 "RESTSupport.c"
+ }
+#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp8_;
+#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (sorted_args);
+#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 1568 "RESTSupport.c"
+}
+
+
+gchar* publishing_rest_support_argument_to_string (PublishingRESTSupportArgument* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 134 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_ARGUMENT (self), NULL);
+#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->key;
+#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->value;
+#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = g_strdup_printf ("%s=%s", _tmp0_, _tmp1_);
+#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp2_;
+#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 1589 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_value_argument_init (GValue* value) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 1596 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_value_argument_free_value (GValue* value) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (value->data[0].v_pointer) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_argument_unref (value->data[0].v_pointer);
+#line 1605 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_value_argument_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (src_value->data[0].v_pointer) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ dest_value->data[0].v_pointer = publishing_rest_support_argument_ref (src_value->data[0].v_pointer);
+#line 1615 "RESTSupport.c"
+ } else {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1619 "RESTSupport.c"
+ }
+}
+
+
+static gpointer publishing_rest_support_value_argument_peek_pointer (const GValue* value) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return value->data[0].v_pointer;
+#line 1627 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_value_argument_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (collect_values[0].v_pointer) {
+#line 1634 "RESTSupport.c"
+ PublishingRESTSupportArgument* object;
+ object = collect_values[0].v_pointer;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1641 "RESTSupport.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 1645 "RESTSupport.c"
+ }
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = publishing_rest_support_argument_ref (object);
+#line 1649 "RESTSupport.c"
+ } else {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 1653 "RESTSupport.c"
+ }
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 1657 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_value_argument_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingRESTSupportArgument** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!object_p) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1668 "RESTSupport.c"
+ }
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!value->data[0].v_pointer) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = NULL;
+#line 1674 "RESTSupport.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1678 "RESTSupport.c"
+ } else {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = publishing_rest_support_argument_ref (value->data[0].v_pointer);
+#line 1682 "RESTSupport.c"
+ }
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 1686 "RESTSupport.c"
+}
+
+
+GParamSpec* publishing_rest_support_param_spec_argument (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingRESTSupportParamSpecArgument* spec;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT), NULL);
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return G_PARAM_SPEC (spec);
+#line 1700 "RESTSupport.c"
+}
+
+
+gpointer publishing_rest_support_value_get_argument (const GValue* value) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT), NULL);
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return value->data[0].v_pointer;
+#line 1709 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_value_set_argument (GValue* value, gpointer v_object) {
+ PublishingRESTSupportArgument* old;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT));
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old = value->data[0].v_pointer;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (v_object) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT));
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_argument_ref (value->data[0].v_pointer);
+#line 1729 "RESTSupport.c"
+ } else {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 1733 "RESTSupport.c"
+ }
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (old) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_argument_unref (old);
+#line 1739 "RESTSupport.c"
+ }
+}
+
+
+void publishing_rest_support_value_take_argument (GValue* value, gpointer v_object) {
+ PublishingRESTSupportArgument* old;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT));
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old = value->data[0].v_pointer;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (v_object) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT));
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 1758 "RESTSupport.c"
+ } else {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 1762 "RESTSupport.c"
+ }
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (old) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_argument_unref (old);
+#line 1768 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_argument_class_init (PublishingRESTSupportArgumentClass * klass) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_argument_parent_class = g_type_class_peek_parent (klass);
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportArgumentClass *) klass)->finalize = publishing_rest_support_argument_finalize;
+#line 1778 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_argument_instance_init (PublishingRESTSupportArgument * self) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->ref_count = 1;
+#line 1785 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_argument_finalize (PublishingRESTSupportArgument* obj) {
+ PublishingRESTSupportArgument * self;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument);
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_destroy (self);
+#line 113 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->key);
+#line 114 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->value);
+#line 1799 "RESTSupport.c"
+}
+
+
+GType publishing_rest_support_argument_get_type (void) {
+ static volatile gsize publishing_rest_support_argument_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_argument_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_argument_init, publishing_rest_support_value_argument_free_value, publishing_rest_support_value_argument_copy_value, publishing_rest_support_value_argument_peek_pointer, "p", publishing_rest_support_value_argument_collect_value, "p", publishing_rest_support_value_argument_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportArgumentClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_argument_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportArgument), 0, (GInstanceInitFunc) publishing_rest_support_argument_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 publishing_rest_support_argument_type_id;
+ publishing_rest_support_argument_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportArgument", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_rest_support_argument_type_id__volatile, publishing_rest_support_argument_type_id);
+ }
+ return publishing_rest_support_argument_type_id__volatile;
+}
+
+
+gpointer publishing_rest_support_argument_ref (gpointer instance) {
+ PublishingRESTSupportArgument* self;
+ self = instance;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return instance;
+#line 1824 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_argument_unref (gpointer instance) {
+ PublishingRESTSupportArgument* self;
+ self = instance;
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS (self)->finalize (self);
+#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1837 "RESTSupport.c"
+ }
+}
+
+
+static void _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, SoupBuffer* chunk, gpointer self) {
+#line 161 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_on_wrote_body_data ((PublishingRESTSupportTransaction*) self, chunk);
+#line 1845 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct (GType object_type, PublishingRESTSupportSession* parent_session, PublishingRESTSupportHttpMethod method) {
+ PublishingRESTSupportTransaction* self = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ PublishingRESTSupportSession* _tmp3_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp4_ = 0;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ PublishingRESTSupportSession* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ SoupMessage* _tmp10_ = NULL;
+ SoupMessage* _tmp11_ = NULL;
+#line 153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (parent_session), NULL);
+#line 153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportTransaction*) g_type_create_instance (object_type);
+#line 156 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = parent_session;
+#line 156 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = publishing_rest_support_session_get_endpoint_url (_tmp0_);
+#line 156 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp1_;
+#line 156 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp2_ != NULL, "parent_session.get_endpoint_url() != null");
+#line 156 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp2_);
+#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = parent_session;
+#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->parent_session = _tmp3_;
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = method;
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = publishing_rest_support_http_method_to_string (_tmp4_);
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = _tmp5_;
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = parent_session;
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = publishing_rest_support_session_get_endpoint_url (_tmp7_);
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = _tmp8_;
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = soup_message_new (_tmp6_, _tmp9_);
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->message);
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->message = _tmp10_;
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp9_);
+#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp6_);
+#line 161 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = self->priv->message;
+#line 161 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect (_tmp11_, "wrote-body-data", (GCallback) _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data, self);
+#line 153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 1909 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, PublishingRESTSupportHttpMethod method) {
+#line 153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_transaction_construct (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, parent_session, method);
+#line 1916 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, PublishingRESTSupportSession* parent_session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method) {
+ PublishingRESTSupportTransaction* self = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp3_ = 0;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ SoupMessage* _tmp7_ = NULL;
+#line 164 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (parent_session), NULL);
+#line 164 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (endpoint_url != NULL, NULL);
+#line 164 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportTransaction*) g_type_create_instance (object_type);
+#line 166 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = parent_session;
+#line 166 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->parent_session = _tmp0_;
+#line 167 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = endpoint_url;
+#line 167 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 167 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->priv->endpoint_url);
+#line 167 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->endpoint_url = _tmp2_;
+#line 168 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = method;
+#line 168 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishing_rest_support_http_method_to_string (_tmp3_);
+#line 168 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = _tmp4_;
+#line 168 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = endpoint_url;
+#line 168 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = soup_message_new (_tmp5_, _tmp6_);
+#line 168 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->message);
+#line 168 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->message = _tmp7_;
+#line 168 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp5_);
+#line 164 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 1966 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method) {
+#line 164 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_transaction_construct_with_endpoint_url (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, parent_session, endpoint_url, method);
+#line 1973 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_transaction_on_wrote_body_data (PublishingRESTSupportTransaction* self, SoupBuffer* written_data) {
+ gint _tmp0_ = 0;
+ SoupBuffer* _tmp1_ = NULL;
+ gsize _tmp2_ = 0UL;
+ gint _tmp3_ = 0;
+ SoupMessage* _tmp4_ = NULL;
+ SoupMessageBody* _tmp5_ = NULL;
+ gint64 _tmp6_ = 0LL;
+#line 171 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self));
+#line 171 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (written_data != NULL);
+#line 172 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->bytes_written;
+#line 172 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = written_data;
+#line 172 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp1_->length;
+#line 172 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->bytes_written = _tmp0_ + ((gint) _tmp2_);
+#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = self->priv->bytes_written;
+#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = self->priv->message;
+#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = _tmp4_->request_body;
+#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = _tmp5_->length;
+#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_emit_by_name (self, "chunk-transmitted", _tmp3_, (gint) _tmp6_);
+#line 2007 "RESTSupport.c"
+}
+
+
+static gpointer _g_error_copy0 (gpointer self) {
+#line 185 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self ? g_error_copy (self) : NULL;
+#line 2014 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_transaction_on_message_unqueued (PublishingRESTSupportTransaction* self, SoupMessage* message) {
+ SoupMessage* _tmp0_ = NULL;
+ SoupMessage* _tmp1_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self));
+#line 176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (SOUP_IS_MESSAGE (message));
+#line 177 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->message;
+#line 177 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = message;
+#line 177 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp0_ != _tmp1_) {
+#line 178 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2034 "RESTSupport.c"
+ }
+ {
+ SoupMessage* _tmp2_ = NULL;
+#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = message;
+#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_check_response (self, _tmp2_, &_inner_error_);
+#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2046 "RESTSupport.c"
+ goto __catch0_spit_publishing_publishing_error;
+ }
+#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2055 "RESTSupport.c"
+ }
+ }
+ goto __finally0;
+ __catch0_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ err = _inner_error_;
+#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = NULL;
+#line 183 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = err;
+#line 183 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = _tmp3_->message;
+#line 183 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_warning ("RESTSupport.vala:183: Publishing error: %s", _tmp4_);
+#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (self);
+#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = _tmp5_;
+#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_warning ("RESTSupport.vala:184: response validation failed. bad response = '%s'.", _tmp6_);
+#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp6_);
+#line 185 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = err;
+#line 185 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = _g_error_copy0 (_tmp7_);
+#line 185 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (self->priv->err);
+#line 185 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->err = _tmp8_;
+#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (err);
+#line 2096 "RESTSupport.c"
+ }
+ __finally0:
+#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2107 "RESTSupport.c"
+ }
+}
+
+
+void publishing_rest_support_transaction_check_response (PublishingRESTSupportTransaction* self, SoupMessage* message, GError** error) {
+ SoupMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ guint _tmp2_ = 0U;
+ gboolean _tmp42_ = FALSE;
+ SoupMessage* _tmp43_ = NULL;
+ SoupMessageBody* _tmp44_ = NULL;
+ guint8* _tmp45_ = NULL;
+ gint _tmp45__length1 = 0;
+ GError * _inner_error_ = NULL;
+#line 189 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self));
+#line 189 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (SOUP_IS_MESSAGE (message));
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = message;
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_get (_tmp0_, "status-code", &_tmp1_, NULL);
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp1_;
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ switch (_tmp2_) {
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case SOUP_STATUS_OK:
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case SOUP_STATUS_CREATED:
+#line 2138 "RESTSupport.c"
+ {
+#line 194 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ break;
+#line 2142 "RESTSupport.c"
+ }
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case SOUP_STATUS_CANT_RESOLVE:
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case SOUP_STATUS_CANT_RESOLVE_PROXY:
+#line 2148 "RESTSupport.c"
+ {
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ SoupMessage* _tmp5_ = NULL;
+ guint _tmp6_ = 0U;
+ guint _tmp7_ = 0U;
+ GError* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = publishing_rest_support_transaction_get_endpoint_url (self);
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = _tmp3_;
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = message;
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_get (_tmp5_, "status-code", &_tmp6_, NULL);
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = _tmp6_;
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to resolve %s (error code %u)", _tmp4_, _tmp7_);
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = _tmp8_;
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp4_);
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp9_;
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2181 "RESTSupport.c"
+ } else {
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2189 "RESTSupport.c"
+ }
+ }
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case SOUP_STATUS_CANT_CONNECT:
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case SOUP_STATUS_CANT_CONNECT_PROXY:
+#line 2196 "RESTSupport.c"
+ {
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ SoupMessage* _tmp12_ = NULL;
+ guint _tmp13_ = 0U;
+ guint _tmp14_ = 0U;
+ GError* _tmp15_ = NULL;
+ GError* _tmp16_ = NULL;
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = publishing_rest_support_transaction_get_endpoint_url (self);
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = _tmp10_;
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = message;
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_get (_tmp12_, "status-code", &_tmp13_, NULL);
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = _tmp13_;
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to connect to %s (error code %u)", _tmp11_, _tmp14_);
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp16_ = _tmp15_;
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp11_);
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp16_;
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2229 "RESTSupport.c"
+ } else {
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2237 "RESTSupport.c"
+ }
+ }
+#line 190 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case SOUP_STATUS_SSL_FAILED:
+#line 2242 "RESTSupport.c"
+ {
+ gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ GError* _tmp19_ = NULL;
+ GError* _tmp20_ = NULL;
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp17_ = publishing_rest_support_transaction_get_endpoint_url (self);
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp18_ = _tmp17_;
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp19_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED, "Unable to connect to %s: Secure connection failed", _tmp18_);
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp20_ = _tmp19_;
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp18_);
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp20_;
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2266 "RESTSupport.c"
+ } else {
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 206 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2274 "RESTSupport.c"
+ }
+ }
+ default:
+ {
+ SoupMessage* _tmp21_ = NULL;
+ guint _tmp22_ = 0U;
+ guint _tmp23_ = 0U;
+#line 211 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp21_ = message;
+#line 211 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_get (_tmp21_, "status-code", &_tmp22_, NULL);
+#line 211 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp23_ = _tmp22_;
+#line 211 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp23_ >= ((guint) 100)) {
+#line 2290 "RESTSupport.c"
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ SoupMessage* _tmp26_ = NULL;
+ guint _tmp27_ = 0U;
+ guint _tmp28_ = 0U;
+ SoupMessage* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+ GError* _tmp33_ = NULL;
+ GError* _tmp34_ = NULL;
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp24_ = publishing_rest_support_transaction_get_endpoint_url (self);
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp25_ = _tmp24_;
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp26_ = message;
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_get (_tmp26_, "status-code", &_tmp27_, NULL);
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp28_ = _tmp27_;
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp29_ = message;
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_get (_tmp29_, "reason-phrase", &_tmp30_, NULL);
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp31_ = _tmp30_;
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp32_ = _tmp31_;
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp33_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Service %s returned HTTP status code %u %s", _tmp25_, _tmp28_, _tmp32_);
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp34_ = _tmp33_;
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp32_);
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp25_);
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp34_;
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2336 "RESTSupport.c"
+ } else {
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2344 "RESTSupport.c"
+ }
+ } else {
+ gchar* _tmp35_ = NULL;
+ gchar* _tmp36_ = NULL;
+ SoupMessage* _tmp37_ = NULL;
+ guint _tmp38_ = 0U;
+ guint _tmp39_ = 0U;
+ GError* _tmp40_ = NULL;
+ GError* _tmp41_ = NULL;
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp35_ = publishing_rest_support_transaction_get_endpoint_url (self);
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp36_ = _tmp35_;
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp37_ = message;
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_get (_tmp37_, "status-code", &_tmp38_, NULL);
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp39_ = _tmp38_;
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp40_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Failure communicating with %s (error code %u)", _tmp36_, _tmp39_);
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp41_ = _tmp40_;
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp36_);
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp41_;
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2378 "RESTSupport.c"
+ } else {
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2386 "RESTSupport.c"
+ }
+ }
+ }
+ }
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp43_ = message;
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp44_ = _tmp43_->response_body;
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp45_ = _tmp44_->data;
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp45__length1 = (gint) _tmp44_->length;
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp45_ == NULL) {
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp42_ = TRUE;
+#line 2403 "RESTSupport.c"
+ } else {
+ SoupMessage* _tmp46_ = NULL;
+ SoupMessageBody* _tmp47_ = NULL;
+ guint8* _tmp48_ = NULL;
+ gint _tmp48__length1 = 0;
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp46_ = message;
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp47_ = _tmp46_->response_body;
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp48_ = _tmp47_->data;
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp48__length1 = (gint) _tmp47_->length;
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp42_ = _tmp48__length1 == 0;
+#line 2419 "RESTSupport.c"
+ }
+#line 221 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp42_) {
+#line 2423 "RESTSupport.c"
+ gchar* _tmp49_ = NULL;
+ gchar* _tmp50_ = NULL;
+ GError* _tmp51_ = NULL;
+ GError* _tmp52_ = NULL;
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp49_ = publishing_rest_support_transaction_get_endpoint_url (self);
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp50_ = _tmp49_;
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp51_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "No response data from %s", _tmp50_);
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp52_ = _tmp51_;
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp50_);
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp52_;
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2446 "RESTSupport.c"
+ } else {
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2454 "RESTSupport.c"
+ }
+ }
+}
+
+
+static PublishingRESTSupportArgument** _vala_array_dup1 (PublishingRESTSupportArgument** self, int length) {
+ PublishingRESTSupportArgument** result;
+ int i;
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = g_new0 (PublishingRESTSupportArgument*, length + 1);
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ for (i = 0; i < length; i++) {
+#line 2467 "RESTSupport.c"
+ PublishingRESTSupportArgument* _tmp0_ = NULL;
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = _publishing_rest_support_argument_ref0 (self[i]);
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result[i] = _tmp0_;
+#line 2473 "RESTSupport.c"
+ }
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 2477 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportArgument** publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, int* result_length1) {
+ PublishingRESTSupportArgument** result = NULL;
+ PublishingRESTSupportArgument** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingRESTSupportArgument** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingRESTSupportArgument** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+#line 226 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL);
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->arguments;
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0__length1 = self->priv->arguments_length1;
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup1 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp1_;
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2__length1 = _tmp1__length1;
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (result_length1) {
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *result_length1 = _tmp2__length1;
+#line 2507 "RESTSupport.c"
+ }
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp2_;
+#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 2513 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportArgument** publishing_rest_support_transaction_get_sorted_arguments (PublishingRESTSupportTransaction* self, int* result_length1) {
+ PublishingRESTSupportArgument** result = NULL;
+ gint _tmp0_ = 0;
+ PublishingRESTSupportArgument** _tmp1_ = NULL;
+ PublishingRESTSupportArgument** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ gint _tmp3_ = 0;
+ PublishingRESTSupportArgument** _tmp4_ = NULL;
+ PublishingRESTSupportArgument** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ PublishingRESTSupportArgument** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+#line 230 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL);
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = publishing_rest_support_transaction_get_arguments (self, &_tmp0_);
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp1_;
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2__length1 = _tmp0_;
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishing_rest_support_argument_sort (_tmp2_, _tmp0_, &_tmp3_);
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = _tmp4_;
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5__length1 = _tmp3_;
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = _tmp5_;
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6__length1 = _tmp5__length1;
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (result_length1) {
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *result_length1 = _tmp6__length1;
+#line 2553 "RESTSupport.c"
+ }
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp6_;
+#line 231 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 2559 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_transaction_set_is_executed (PublishingRESTSupportTransaction* self, gboolean is_executed) {
+ gboolean _tmp0_ = FALSE;
+#line 234 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self));
+#line 235 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = is_executed;
+#line 235 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->is_executed = _tmp0_;
+#line 2571 "RESTSupport.c"
+}
+
+
+static void _publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued (PublishingRESTSupportSession* _sender, SoupMessage* message, gpointer self) {
+#line 239 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_on_message_unqueued ((PublishingRESTSupportTransaction*) self, message);
+#line 2578 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_transaction_send (PublishingRESTSupportTransaction* self, GError** error) {
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ SoupMessage* _tmp1_ = NULL;
+ PublishingRESTSupportSession* _tmp2_ = NULL;
+ SoupMessage* _tmp3_ = NULL;
+ PublishingRESTSupportSession* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+ SoupMessage* _tmp6_ = NULL;
+ guint _tmp7_ = 0U;
+ GError* _tmp8_ = NULL;
+ GError* _tmp10_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 238 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self));
+#line 239 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->parent_session;
+#line 239 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect (_tmp0_, "wire-message-unqueued", (GCallback) _publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued, self);
+#line 240 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->message;
+#line 240 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect (_tmp1_, "wrote-body-data", (GCallback) _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data, self);
+#line 241 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = self->priv->parent_session;
+#line 241 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = self->priv->message;
+#line 241 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_session_send_wire_message (_tmp2_, _tmp3_);
+#line 243 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = self->priv->parent_session;
+#line 243 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("wire-message-unqueued", PUBLISHING_REST_SUPPORT_TYPE_SESSION, &_tmp5_, NULL, FALSE);
+#line 243 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued, self);
+#line 244 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = self->priv->message;
+#line 244 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("wrote-body-data", soup_message_get_type (), &_tmp7_, NULL, FALSE);
+#line 244 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data, self);
+#line 246 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = self->priv->err;
+#line 246 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp8_ != NULL) {
+#line 2626 "RESTSupport.c"
+ GError* _tmp9_ = NULL;
+#line 247 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = self->priv->err;
+#line 247 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_emit_by_name (self, "network-error", _tmp9_);
+#line 2632 "RESTSupport.c"
+ } else {
+#line 249 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_emit_by_name (self, "completed");
+#line 2636 "RESTSupport.c"
+ }
+#line 251 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = self->priv->err;
+#line 251 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp10_ != NULL) {
+#line 2642 "RESTSupport.c"
+ GError* _tmp11_ = NULL;
+ GError* _tmp12_ = NULL;
+#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = self->priv->err;
+#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = _g_error_copy0 (_tmp11_);
+#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp12_;
+#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2657 "RESTSupport.c"
+ } else {
+#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2665 "RESTSupport.c"
+ }
+ }
+}
+
+
+PublishingRESTSupportHttpMethod publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self) {
+ PublishingRESTSupportHttpMethod result = 0;
+ SoupMessage* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp4_ = 0;
+ PublishingRESTSupportHttpMethod _tmp5_ = 0;
+#line 255 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), 0);
+#line 256 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->message;
+#line 256 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_get (_tmp0_, "method", &_tmp1_, NULL);
+#line 256 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp1_;
+#line 256 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = _tmp2_;
+#line 256 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishing_rest_support_http_method_from_string (_tmp3_);
+#line 256 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = _tmp4_;
+#line 256 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp3_);
+#line 256 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp5_;
+#line 256 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 2699 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_transaction_real_add_header (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value) {
+ SoupMessage* _tmp0_ = NULL;
+ SoupMessageHeaders* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (key != NULL);
+#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (value != NULL);
+#line 260 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->message;
+#line 260 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _tmp0_->request_headers;
+#line 260 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = key;
+#line 260 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = value;
+#line 260 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_message_headers_append (_tmp1_, _tmp2_, _tmp3_);
+#line 2722 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value) {
+#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self));
+#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS (self)->add_header (self, key, value);
+#line 2731 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_transaction_set_custom_payload (PublishingRESTSupportTransaction* self, const gchar* custom_payload, const gchar* payload_content_type, gulong payload_length) {
+ PublishingRESTSupportHttpMethod _tmp0_ = 0;
+ const gchar* _tmp1_ = NULL;
+ gulong _tmp2_ = 0UL;
+ gulong _tmp3_ = 0UL;
+ gulong length = 0UL;
+ SoupMessage* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ guint8* _tmp11_ = NULL;
+ gint _tmp11__length1 = 0;
+ guint8* _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ gulong _tmp13_ = 0UL;
+#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self));
+#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (payload_content_type != NULL);
+#line 273 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_method (self);
+#line 273 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp0_ != PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, "get_method() != HttpMethod.GET");
+#line 275 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = custom_payload;
+#line 275 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp1_ == NULL) {
+#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->use_custom_payload = FALSE;
+#line 277 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2765 "RESTSupport.c"
+ }
+#line 280 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = payload_length;
+#line 280 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp3_ > ((gulong) 0)) {
+#line 2771 "RESTSupport.c"
+ gulong _tmp4_ = 0UL;
+#line 280 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = payload_length;
+#line 280 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp4_;
+#line 2777 "RESTSupport.c"
+ } else {
+ const gchar* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ gint _tmp7_ = 0;
+#line 280 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = custom_payload;
+#line 280 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = strlen (_tmp5_);
+#line 280 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = _tmp6_;
+#line 280 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = (gulong) _tmp7_;
+#line 2790 "RESTSupport.c"
+ }
+#line 280 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ length = _tmp2_;
+#line 281 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = self->priv->message;
+#line 281 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = payload_content_type;
+#line 281 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = custom_payload;
+#line 281 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = string_get_data (_tmp10_, &_tmp11__length1);
+#line 281 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = _tmp11_;
+#line 281 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12__length1 = _tmp11__length1;
+#line 281 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = length;
+#line 281 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_message_set_request (_tmp8_, _tmp9_, SOUP_MEMORY_COPY, _tmp12_ + 0, (gsize) (((gint) _tmp13_) - 0));
+#line 283 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->use_custom_payload = TRUE;
+#line 2812 "RESTSupport.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 292 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 2819 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_transaction_set_message (PublishingRESTSupportTransaction* self, SoupMessage* message) {
+ SoupMessage* _tmp0_ = NULL;
+ SoupMessage* _tmp1_ = NULL;
+#line 291 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self));
+#line 291 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (SOUP_IS_MESSAGE (message));
+#line 292 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = message;
+#line 292 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 292 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->message);
+#line 292 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->message = _tmp1_;
+#line 2838 "RESTSupport.c"
+}
+
+
+gboolean publishing_rest_support_transaction_get_is_executed (PublishingRESTSupportTransaction* self) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), FALSE);
+#line 296 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->is_executed;
+#line 296 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp0_;
+#line 296 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 2853 "RESTSupport.c"
+}
+
+
+guint publishing_rest_support_transaction_get_status_code (PublishingRESTSupportTransaction* self) {
+ guint result = 0U;
+ gboolean _tmp0_ = FALSE;
+ SoupMessage* _tmp1_ = NULL;
+ guint _tmp2_ = 0U;
+ guint _tmp3_ = 0U;
+#line 299 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), 0U);
+#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_is_executed (self);
+#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp0_, "get_is_executed()");
+#line 301 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->message;
+#line 301 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_get (_tmp1_, "status-code", &_tmp2_, NULL);
+#line 301 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = _tmp2_;
+#line 301 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp3_;
+#line 301 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 2879 "RESTSupport.c"
+}
+
+
+static void _vala_SoupURI_free (SoupURI* self) {
+#line 335 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_boxed_free (soup_uri_get_type (), self);
+#line 2886 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_transaction_real_execute (PublishingRESTSupportTransaction* self, GError** error) {
+ gboolean _tmp0_ = FALSE;
+ PublishingRESTSupportHttpMethod _tmp1_ = 0;
+ gchar* formdata_string = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* old_url = NULL;
+ gchar* url_with_query = NULL;
+ gboolean _tmp19_ = FALSE;
+ PublishingRESTSupportHttpMethod _tmp20_ = 0;
+ GError * _inner_error_ = NULL;
+#line 308 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->use_custom_payload;
+#line 308 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp0_) {
+#line 309 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->is_executed = TRUE;
+#line 310 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_send (self, &_inner_error_);
+#line 310 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 310 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 310 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 310 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2916 "RESTSupport.c"
+ } else {
+#line 310 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 310 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 310 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2924 "RESTSupport.c"
+ }
+ }
+#line 312 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 2929 "RESTSupport.c"
+ }
+#line 316 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = publishing_rest_support_transaction_get_method (self);
+#line 316 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp1_ == PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST) {
+#line 2935 "RESTSupport.c"
+ PublishingRESTSupportArgument** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+#line 317 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = self->priv->arguments;
+#line 317 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2__length1 = self->priv->arguments_length1;
+#line 317 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp2__length1 > 0, "arguments.length > 0");
+#line 2944 "RESTSupport.c"
+ }
+#line 320 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = g_strdup ("");
+#line 320 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ formdata_string = _tmp3_;
+#line 2950 "RESTSupport.c"
+ {
+ gint i = 0;
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ i = 0;
+#line 2955 "RESTSupport.c"
+ {
+ gboolean _tmp4_ = FALSE;
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = TRUE;
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ while (TRUE) {
+#line 2962 "RESTSupport.c"
+ gint _tmp6_ = 0;
+ PublishingRESTSupportArgument** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ const gchar* _tmp8_ = NULL;
+ PublishingRESTSupportArgument** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ gint _tmp10_ = 0;
+ PublishingRESTSupportArgument* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gint _tmp15_ = 0;
+ PublishingRESTSupportArgument** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp4_) {
+#line 2979 "RESTSupport.c"
+ gint _tmp5_ = 0;
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = i;
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ i = _tmp5_ + 1;
+#line 2985 "RESTSupport.c"
+ }
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = FALSE;
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = i;
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = self->priv->arguments;
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7__length1 = self->priv->arguments_length1;
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!(_tmp6_ < _tmp7__length1)) {
+#line 321 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ break;
+#line 2999 "RESTSupport.c"
+ }
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = formdata_string;
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = self->priv->arguments;
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9__length1 = self->priv->arguments_length1;
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = i;
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = _tmp9_[_tmp10_];
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = publishing_rest_support_argument_to_string (_tmp11_);
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = _tmp12_;
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = g_strconcat (_tmp8_, _tmp13_, NULL);
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (formdata_string);
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ formdata_string = _tmp14_;
+#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp13_);
+#line 323 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = i;
+#line 323 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp16_ = self->priv->arguments;
+#line 323 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp16__length1 = self->priv->arguments_length1;
+#line 323 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp15_ < (_tmp16__length1 - 1)) {
+#line 3031 "RESTSupport.c"
+ const gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+#line 324 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp17_ = formdata_string;
+#line 324 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp18_ = g_strconcat (_tmp17_, "&", NULL);
+#line 324 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (formdata_string);
+#line 324 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ formdata_string = _tmp18_;
+#line 3042 "RESTSupport.c"
+ }
+ }
+ }
+ }
+#line 330 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old_url = NULL;
+#line 331 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ url_with_query = NULL;
+#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp20_ = publishing_rest_support_transaction_get_method (self);
+#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp20_ == PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET) {
+#line 3055 "RESTSupport.c"
+ PublishingRESTSupportArgument** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp21_ = self->priv->arguments;
+#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp21__length1 = self->priv->arguments_length1;
+#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp19_ = _tmp21__length1 > 0;
+#line 3064 "RESTSupport.c"
+ } else {
+#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp19_ = FALSE;
+#line 3068 "RESTSupport.c"
+ }
+#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp19_) {
+#line 3072 "RESTSupport.c"
+ SoupMessage* _tmp22_ = NULL;
+ SoupURI* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ SoupMessage* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ SoupURI* _tmp33_ = NULL;
+ SoupURI* _tmp34_ = NULL;
+#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp22_ = self->priv->message;
+#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp23_ = soup_message_get_uri (_tmp22_);
+#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp24_ = soup_uri_to_string (_tmp23_, FALSE);
+#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (old_url);
+#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old_url = _tmp24_;
+#line 334 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp25_ = publishing_rest_support_transaction_get_endpoint_url (self);
+#line 334 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp26_ = _tmp25_;
+#line 334 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp27_ = g_strconcat (_tmp26_, "?", NULL);
+#line 334 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp28_ = _tmp27_;
+#line 334 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp29_ = formdata_string;
+#line 334 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp30_ = g_strconcat (_tmp28_, _tmp29_, NULL);
+#line 334 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (url_with_query);
+#line 334 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ url_with_query = _tmp30_;
+#line 334 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp28_);
+#line 334 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp26_);
+#line 335 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp31_ = self->priv->message;
+#line 335 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp32_ = url_with_query;
+#line 335 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp33_ = soup_uri_new (_tmp32_);
+#line 335 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp34_ = _tmp33_;
+#line 335 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_message_set_uri (_tmp31_, _tmp34_);
+#line 335 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupURI_free0 (_tmp34_);
+#line 3128 "RESTSupport.c"
+ } else {
+ SoupMessage* _tmp35_ = NULL;
+ const gchar* _tmp36_ = NULL;
+ guint8* _tmp37_ = NULL;
+ gint _tmp37__length1 = 0;
+ guint8* _tmp38_ = NULL;
+ gint _tmp38__length1 = 0;
+#line 337 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp35_ = self->priv->message;
+#line 337 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp36_ = formdata_string;
+#line 337 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp37_ = string_get_data (_tmp36_, &_tmp37__length1);
+#line 337 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp38_ = _tmp37_;
+#line 337 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp38__length1 = _tmp37__length1;
+#line 337 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_message_set_request (_tmp35_, "application/x-www-form-urlencoded", SOUP_MEMORY_COPY, _tmp38_, (gsize) _tmp38__length1);
+#line 3148 "RESTSupport.c"
+ }
+#line 341 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->is_executed = TRUE;
+#line 3152 "RESTSupport.c"
+ {
+ SoupMessage* _tmp39_ = NULL;
+ SoupURI* _tmp40_ = NULL;
+ gchar* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+#line 344 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp39_ = self->priv->message;
+#line 344 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp40_ = soup_message_get_uri (_tmp39_);
+#line 344 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp41_ = soup_uri_to_string (_tmp40_, FALSE);
+#line 344 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp42_ = _tmp41_;
+#line 344 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:344: sending message to URI = '%s'", _tmp42_);
+#line 344 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp42_);
+#line 345 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_send (self, &_inner_error_);
+#line 345 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 3174 "RESTSupport.c"
+ goto __finally1;
+ }
+ }
+ __finally1:
+ {
+ const gchar* _tmp43_ = NULL;
+#line 348 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp43_ = old_url;
+#line 348 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp43_ != NULL) {
+#line 3185 "RESTSupport.c"
+ SoupMessage* _tmp44_ = NULL;
+ const gchar* _tmp45_ = NULL;
+ SoupURI* _tmp46_ = NULL;
+ SoupURI* _tmp47_ = NULL;
+#line 349 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp44_ = self->priv->message;
+#line 349 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp45_ = old_url;
+#line 349 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp46_ = soup_uri_new (_tmp45_);
+#line 349 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp47_ = _tmp46_;
+#line 349 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_message_set_uri (_tmp44_, _tmp47_);
+#line 349 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupURI_free0 (_tmp47_);
+#line 3202 "RESTSupport.c"
+ }
+ }
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (url_with_query);
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (old_url);
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (formdata_string);
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 3219 "RESTSupport.c"
+ } else {
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (url_with_query);
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (old_url);
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (formdata_string);
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 343 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 3233 "RESTSupport.c"
+ }
+ }
+#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (url_with_query);
+#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (old_url);
+#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (formdata_string);
+#line 3242 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, GError** error) {
+#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self));
+#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS (self)->execute (self, error);
+#line 3251 "RESTSupport.c"
+}
+
+
+gchar* publishing_rest_support_transaction_get_response (PublishingRESTSupportTransaction* self) {
+ gchar* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ SoupMessage* _tmp1_ = NULL;
+ SoupMessageBody* _tmp2_ = NULL;
+ guint8* _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ gchar* _tmp4_ = NULL;
+#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL);
+#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_is_executed (self);
+#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp0_, "get_is_executed()");
+#line 355 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->message;
+#line 355 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp1_->response_body;
+#line 355 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = _tmp2_->data;
+#line 355 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3__length1 = (gint) _tmp2_->length;
+#line 355 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = g_strdup ((const gchar*) _tmp3_);
+#line 355 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp4_;
+#line 355 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 3283 "RESTSupport.c"
+}
+
+
+SoupMessageHeaders* publishing_rest_support_transaction_get_response_headers (PublishingRESTSupportTransaction* self) {
+ SoupMessageHeaders* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ SoupMessage* _tmp1_ = NULL;
+ SoupMessageHeaders* _tmp2_ = NULL;
+#line 358 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL);
+#line 359 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_is_executed (self);
+#line 359 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp0_, "get_is_executed()");
+#line 360 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->message;
+#line 360 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp1_->response_headers;
+#line 360 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp2_;
+#line 360 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 3306 "RESTSupport.c"
+}
+
+
+SoupMessage* publishing_rest_support_transaction_get_message (PublishingRESTSupportTransaction* self) {
+ SoupMessage* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ SoupMessage* _tmp1_ = NULL;
+ SoupMessage* _tmp2_ = NULL;
+#line 363 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL);
+#line 364 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_is_executed (self);
+#line 364 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp0_, "get_is_executed()");
+#line 365 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->message;
+#line 365 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _g_object_ref0 (_tmp1_);
+#line 365 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp2_;
+#line 365 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 3329 "RESTSupport.c"
+}
+
+
+static void _vala_array_add1 (PublishingRESTSupportArgument*** array, int* length, int* size, PublishingRESTSupportArgument* value) {
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if ((*length) == (*size)) {
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1);
+#line 3340 "RESTSupport.c"
+ }
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ (*array)[(*length)++] = value;
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ (*array)[*length] = NULL;
+#line 3346 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, const gchar* name, const gchar* value) {
+ PublishingRESTSupportArgument** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRESTSupportArgument* _tmp3_ = NULL;
+#line 368 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self));
+#line 368 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (name != NULL);
+#line 368 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (value != NULL);
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->arguments;
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0__length1 = self->priv->arguments_length1;
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = name;
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = value;
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = publishing_rest_support_argument_new (_tmp1_, _tmp2_);
+#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_array_add1 (&self->priv->arguments, &self->priv->arguments_length1, &self->priv->_arguments_size_, _tmp3_);
+#line 3374 "RESTSupport.c"
+}
+
+
+gchar* publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 372 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL);
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->endpoint_url;
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp1_ != NULL) {
+#line 3388 "RESTSupport.c"
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = self->priv->endpoint_url;
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp0_);
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = _tmp3_;
+#line 3399 "RESTSupport.c"
+ } else {
+ PublishingRESTSupportSession* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = self->priv->parent_session;
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = publishing_rest_support_session_get_endpoint_url (_tmp4_);
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp0_);
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = _tmp5_;
+#line 3411 "RESTSupport.c"
+ }
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp0_;
+#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 3417 "RESTSupport.c"
+}
+
+
+static gpointer _publishing_rest_support_session_ref0 (gpointer self) {
+#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self ? publishing_rest_support_session_ref (self) : NULL;
+#line 3424 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportSession* publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self) {
+ PublishingRESTSupportSession* result = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingRESTSupportSession* _tmp1_ = NULL;
+#line 376 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL);
+#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->parent_session;
+#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _publishing_rest_support_session_ref0 (_tmp0_);
+#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp1_;
+#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 3442 "RESTSupport.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1, gint arg_1, gint arg_2, gpointer data2);
+ register GMarshalFunc_VOID__INT_INT callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (n_param_values == 3);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ data1 = closure->data;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 3461 "RESTSupport.c"
+ } else {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ data2 = closure->data;
+#line 3467 "RESTSupport.c"
+ }
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ callback (data1, g_value_get_int (param_values + 1), g_value_get_int (param_values + 2), data2);
+#line 3473 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_value_transaction_init (GValue* value) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 3480 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_value_transaction_free_value (GValue* value) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (value->data[0].v_pointer) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_unref (value->data[0].v_pointer);
+#line 3489 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_value_transaction_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (src_value->data[0].v_pointer) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ dest_value->data[0].v_pointer = publishing_rest_support_transaction_ref (src_value->data[0].v_pointer);
+#line 3499 "RESTSupport.c"
+ } else {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 3503 "RESTSupport.c"
+ }
+}
+
+
+static gpointer publishing_rest_support_value_transaction_peek_pointer (const GValue* value) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return value->data[0].v_pointer;
+#line 3511 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_value_transaction_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (collect_values[0].v_pointer) {
+#line 3518 "RESTSupport.c"
+ PublishingRESTSupportTransaction* object;
+ object = collect_values[0].v_pointer;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 3525 "RESTSupport.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 3529 "RESTSupport.c"
+ }
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = publishing_rest_support_transaction_ref (object);
+#line 3533 "RESTSupport.c"
+ } else {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 3537 "RESTSupport.c"
+ }
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 3541 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_value_transaction_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingRESTSupportTransaction** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!object_p) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 3552 "RESTSupport.c"
+ }
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!value->data[0].v_pointer) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = NULL;
+#line 3558 "RESTSupport.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = value->data[0].v_pointer;
+#line 3562 "RESTSupport.c"
+ } else {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = publishing_rest_support_transaction_ref (value->data[0].v_pointer);
+#line 3566 "RESTSupport.c"
+ }
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 3570 "RESTSupport.c"
+}
+
+
+GParamSpec* publishing_rest_support_param_spec_transaction (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingRESTSupportParamSpecTransaction* spec;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION), NULL);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return G_PARAM_SPEC (spec);
+#line 3584 "RESTSupport.c"
+}
+
+
+gpointer publishing_rest_support_value_get_transaction (const GValue* value) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION), NULL);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return value->data[0].v_pointer;
+#line 3593 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_value_set_transaction (GValue* value, gpointer v_object) {
+ PublishingRESTSupportTransaction* old;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION));
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old = value->data[0].v_pointer;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (v_object) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION));
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_ref (value->data[0].v_pointer);
+#line 3613 "RESTSupport.c"
+ } else {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 3617 "RESTSupport.c"
+ }
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (old) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_unref (old);
+#line 3623 "RESTSupport.c"
+ }
+}
+
+
+void publishing_rest_support_value_take_transaction (GValue* value, gpointer v_object) {
+ PublishingRESTSupportTransaction* old;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION));
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old = value->data[0].v_pointer;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (v_object) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION));
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 3642 "RESTSupport.c"
+ } else {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 3646 "RESTSupport.c"
+ }
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (old) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_unref (old);
+#line 3652 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_transaction_class_init (PublishingRESTSupportTransactionClass * klass) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rest_support_transaction_finalize;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRESTSupportTransactionPrivate));
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->add_header = publishing_rest_support_transaction_real_add_header;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->execute = publishing_rest_support_transaction_real_execute;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_new ("chunk_transmitted", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_INT, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_INT);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_new ("network_error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_new ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 3674 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_transaction_instance_init (PublishingRESTSupportTransaction * self) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv = PUBLISHING_REST_SUPPORT_TRANSACTION_GET_PRIVATE (self);
+#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->is_executed = FALSE;
+#line 142 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->parent_session = NULL;
+#line 143 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->message = NULL;
+#line 144 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->bytes_written = 0;
+#line 145 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->err = NULL;
+#line 146 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->endpoint_url = NULL;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->ref_count = 1;
+#line 3695 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingRESTSupportTransaction * self;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_destroy (self);
+#line 140 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->arguments = (_vala_array_free (self->priv->arguments, self->priv->arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 143 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->message);
+#line 145 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (self->priv->err);
+#line 146 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->priv->endpoint_url);
+#line 3713 "RESTSupport.c"
+}
+
+
+GType publishing_rest_support_transaction_get_type (void) {
+ static volatile gsize publishing_rest_support_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_transaction_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_transaction_init, publishing_rest_support_value_transaction_free_value, publishing_rest_support_value_transaction_copy_value, publishing_rest_support_value_transaction_peek_pointer, "p", publishing_rest_support_value_transaction_collect_value, "p", publishing_rest_support_value_transaction_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportTransaction), 0, (GInstanceInitFunc) publishing_rest_support_transaction_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 publishing_rest_support_transaction_type_id;
+ publishing_rest_support_transaction_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportTransaction", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_rest_support_transaction_type_id__volatile, publishing_rest_support_transaction_type_id);
+ }
+ return publishing_rest_support_transaction_type_id__volatile;
+}
+
+
+gpointer publishing_rest_support_transaction_ref (gpointer instance) {
+ PublishingRESTSupportTransaction* self;
+ self = instance;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return instance;
+#line 3738 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_transaction_unref (gpointer instance) {
+ PublishingRESTSupportTransaction* self;
+ self = instance;
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS (self)->finalize (self);
+#line 139 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 3751 "RESTSupport.c"
+ }
+}
+
+
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct (GType object_type, PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable) {
+ PublishingRESTSupportUploadTransaction* self = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ SpitPublishingPublishable* _tmp1_ = NULL;
+ SpitPublishingPublishable* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ SpitPublishingPublisherMediaType _tmp4_ = 0;
+ gchar* _tmp5_ = NULL;
+ GHashTable* _tmp6_ = NULL;
+ GeeHashMap* _tmp7_ = NULL;
+#line 387 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL);
+#line 387 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 388 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = session;
+#line 388 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportUploadTransaction*) publishing_rest_support_transaction_construct (object_type, _tmp0_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 389 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = publishable;
+#line 389 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _g_object_ref0 (_tmp1_);
+#line 389 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->publishable);
+#line 389 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->publishable = _tmp2_;
+#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = publishable;
+#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = spit_publishing_publishable_get_media_type (_tmp3_);
+#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = publishing_rest_support_upload_transaction_media_type_to_mime_type (_tmp4_);
+#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->mime_type);
+#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->mime_type = _tmp5_;
+#line 392 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = publishing_rest_support_upload_transaction_create_default_binary_disposition_table (self);
+#line 392 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_hash_table_unref0 (self->binary_disposition_table);
+#line 392 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->binary_disposition_table = _tmp6_;
+#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->message_headers);
+#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->message_headers = _tmp7_;
+#line 387 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 3806 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new (PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable) {
+#line 387 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_upload_transaction_construct (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, session, publishable);
+#line 3813 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable, const gchar* endpoint_url) {
+ PublishingRESTSupportUploadTransaction* self = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ SpitPublishingPublishable* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ SpitPublishingPublishable* _tmp4_ = NULL;
+ SpitPublishingPublisherMediaType _tmp5_ = 0;
+ gchar* _tmp6_ = NULL;
+ GHashTable* _tmp7_ = NULL;
+ GeeHashMap* _tmp8_ = NULL;
+#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL);
+#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (endpoint_url != NULL, NULL);
+#line 399 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = session;
+#line 399 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = endpoint_url;
+#line 399 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportUploadTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, _tmp0_, _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 400 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = publishable;
+#line 400 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 400 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->publishable);
+#line 400 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->publishable = _tmp3_;
+#line 401 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishable;
+#line 401 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = spit_publishing_publishable_get_media_type (_tmp4_);
+#line 401 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = publishing_rest_support_upload_transaction_media_type_to_mime_type (_tmp5_);
+#line 401 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->mime_type);
+#line 401 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->mime_type = _tmp6_;
+#line 403 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = publishing_rest_support_upload_transaction_create_default_binary_disposition_table (self);
+#line 403 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_hash_table_unref0 (self->binary_disposition_table);
+#line 403 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->binary_disposition_table = _tmp7_;
+#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->message_headers);
+#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->message_headers = _tmp8_;
+#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 3872 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable, const gchar* endpoint_url) {
+#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_upload_transaction_construct_with_endpoint_url (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, session, publishable, endpoint_url);
+#line 3879 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_upload_transaction_real_add_header (PublishingRESTSupportTransaction* base, const gchar* key, const gchar* value) {
+ PublishingRESTSupportUploadTransaction * self;
+ GeeHashMap* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction);
+#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (key != NULL);
+#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (value != NULL);
+#line 409 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->message_headers;
+#line 409 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = key;
+#line 409 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = value;
+#line 409 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_, _tmp2_);
+#line 3902 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_upload_transaction_media_type_to_mime_type (SpitPublishingPublisherMediaType media_type) {
+ gchar* result = NULL;
+ SpitPublishingPublisherMediaType _tmp0_ = 0;
+#line 413 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = media_type;
+#line 413 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp0_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) {
+#line 3913 "RESTSupport.c"
+ gchar* _tmp1_ = NULL;
+#line 414 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = g_strdup ("image/jpeg");
+#line 414 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp1_;
+#line 414 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 3921 "RESTSupport.c"
+ } else {
+ SpitPublishingPublisherMediaType _tmp2_ = 0;
+#line 415 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = media_type;
+#line 415 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp2_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 3928 "RESTSupport.c"
+ gchar* _tmp3_ = NULL;
+#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = g_strdup ("video/mpeg");
+#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp3_;
+#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 3936 "RESTSupport.c"
+ } else {
+ SpitPublishingPublisherMediaType _tmp4_ = 0;
+ GEnumValue* _tmp5_;
+#line 418 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = media_type;
+#line 418 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = g_enum_get_value (g_type_class_ref (SPIT_PUBLISHING_PUBLISHER_TYPE_MEDIA_TYPE), _tmp4_);
+#line 418 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_error ("RESTSupport.vala:418: UploadTransaction: unknown media type %s.", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL);
+#line 3946 "RESTSupport.c"
+ }
+ }
+}
+
+
+static void _g_free0_ (gpointer var) {
+#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ var = (g_free (var), NULL);
+#line 3955 "RESTSupport.c"
+}
+
+
+static GHashTable* publishing_rest_support_upload_transaction_create_default_binary_disposition_table (PublishingRESTSupportUploadTransaction* self) {
+ GHashTable* result = NULL;
+ GHashTable* _result_ = NULL;
+ GHashFunc _tmp0_ = NULL;
+ GEqualFunc _tmp1_ = NULL;
+ GHashTable* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ SpitPublishingPublishable* _tmp4_ = NULL;
+ GFile* _tmp5_ = NULL;
+ GFile* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 421 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION (self), NULL);
+#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = g_str_hash;
+#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = g_str_equal;
+#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_free0_);
+#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _result_ = _tmp2_;
+#line 425 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = g_strdup ("filename");
+#line 425 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = self->publishable;
+#line 425 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = spit_publishing_publishable_get_serialized_file (_tmp4_);
+#line 425 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = _tmp5_;
+#line 425 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = g_file_get_basename (_tmp6_);
+#line 425 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = _tmp7_;
+#line 425 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = soup_uri_encode (_tmp8_, NULL);
+#line 425 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_hash_table_insert (_result_, _tmp3_, _tmp9_);
+#line 425 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp8_);
+#line 425 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (_tmp6_);
+#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _result_;
+#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 4006 "RESTSupport.c"
+}
+
+
+static gpointer _g_hash_table_ref0 (gpointer self) {
+#line 432 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self ? g_hash_table_ref (self) : NULL;
+#line 4013 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_upload_transaction_set_binary_disposition_table (PublishingRESTSupportUploadTransaction* self, GHashTable* new_disp_table) {
+ GHashTable* _tmp0_ = NULL;
+ GHashTable* _tmp1_ = NULL;
+#line 431 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION (self));
+#line 431 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (new_disp_table != NULL);
+#line 432 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = new_disp_table;
+#line 432 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _g_hash_table_ref0 (_tmp0_);
+#line 432 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_hash_table_unref0 (self->binary_disposition_table);
+#line 432 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->binary_disposition_table = _tmp1_;
+#line 4032 "RESTSupport.c"
+}
+
+
+static void _vala_SoupMultipart_free (SoupMultipart* self) {
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_boxed_free (soup_multipart_get_type (), self);
+#line 4039 "RESTSupport.c"
+}
+
+
+static void _vala_SoupBuffer_free (SoupBuffer* self) {
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_boxed_free (soup_buffer_get_type (), self);
+#line 4046 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) {
+ PublishingRESTSupportUploadTransaction * self;
+ PublishingRESTSupportArgument** request_arguments = NULL;
+ gint _tmp0_ = 0;
+ PublishingRESTSupportArgument** _tmp1_ = NULL;
+ gint request_arguments_length1 = 0;
+ gint _request_arguments_size_ = 0;
+ PublishingRESTSupportArgument** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ SoupMultipart* message_parts = NULL;
+ SoupMultipart* _tmp3_ = NULL;
+ PublishingRESTSupportArgument** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ gchar* payload = NULL;
+ gsize payload_length = 0UL;
+ gint payload_part_num = 0;
+ SoupMultipart* _tmp20_ = NULL;
+ gint _tmp21_ = 0;
+ SoupBuffer* bindable_data = NULL;
+ const gchar* _tmp22_ = NULL;
+ guint8* _tmp23_ = NULL;
+ gint _tmp23__length1 = 0;
+ guint8* _tmp24_ = NULL;
+ gint _tmp24__length1 = 0;
+ gsize _tmp25_ = 0UL;
+ SoupBuffer* _tmp26_ = NULL;
+ SoupMultipart* _tmp27_ = NULL;
+ SpitPublishingPublishable* _tmp28_ = NULL;
+ GFile* _tmp29_ = NULL;
+ GFile* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+ const gchar* _tmp33_ = NULL;
+ SoupBuffer* _tmp34_ = NULL;
+ SoupMessageHeaders* image_part_header = NULL;
+ SoupBuffer* image_part_body = NULL;
+ SoupMultipart* _tmp35_ = NULL;
+ gint _tmp36_ = 0;
+ SoupMessageHeaders* _tmp37_ = NULL;
+ SoupBuffer* _tmp38_ = NULL;
+ SoupMessageHeaders* _tmp39_ = NULL;
+ GHashTable* _tmp40_ = NULL;
+ SoupMessage* outbound_message = NULL;
+ gchar* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+ SoupMultipart* _tmp43_ = NULL;
+ SoupMessage* _tmp44_ = NULL;
+ SoupMessage* _tmp45_ = NULL;
+ GeeMapIterator* i = NULL;
+ GeeHashMap* _tmp46_ = NULL;
+ GeeMapIterator* _tmp47_ = NULL;
+ gboolean cont = FALSE;
+ GeeMapIterator* _tmp48_ = NULL;
+ gboolean _tmp49_ = FALSE;
+ SoupMessage* _tmp61_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 435 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction);
+#line 436 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = publishing_rest_support_transaction_get_arguments (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_tmp0_);
+#line 436 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ request_arguments = _tmp1_;
+#line 436 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ request_arguments_length1 = _tmp0_;
+#line 436 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _request_arguments_size_ = request_arguments_length1;
+#line 437 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = request_arguments;
+#line 437 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2__length1 = request_arguments_length1;
+#line 437 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp2__length1 > 0, "request_arguments.length > 0");
+#line 439 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = soup_multipart_new ("multipart/form-data");
+#line 439 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ message_parts = _tmp3_;
+#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = request_arguments;
+#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4__length1 = request_arguments_length1;
+#line 4130 "RESTSupport.c"
+ {
+ PublishingRESTSupportArgument** arg_collection = NULL;
+ gint arg_collection_length1 = 0;
+ gint _arg_collection_size_ = 0;
+ gint arg_it = 0;
+#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ arg_collection = _tmp4_;
+#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ arg_collection_length1 = _tmp4__length1;
+#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ for (arg_it = 0; arg_it < _tmp4__length1; arg_it = arg_it + 1) {
+#line 4142 "RESTSupport.c"
+ PublishingRESTSupportArgument* _tmp5_ = NULL;
+ PublishingRESTSupportArgument* arg = NULL;
+#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]);
+#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ arg = _tmp5_;
+#line 4149 "RESTSupport.c"
+ {
+ SoupMultipart* _tmp6_ = NULL;
+ PublishingRESTSupportArgument* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ PublishingRESTSupportArgument* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = message_parts;
+#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = arg;
+#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = _tmp7_->key;
+#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = arg;
+#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = _tmp9_->value;
+#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_multipart_append_form_string (_tmp6_, _tmp8_, _tmp10_);
+#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_argument_unref0 (arg);
+#line 4170 "RESTSupport.c"
+ }
+ }
+ }
+ {
+ SpitPublishingPublishable* _tmp11_ = NULL;
+ GFile* _tmp12_ = NULL;
+ GFile* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gsize _tmp17_ = 0UL;
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = self->publishable;
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = spit_publishing_publishable_get_serialized_file (_tmp11_);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = _tmp12_;
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = g_file_get_path (_tmp13_);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = _tmp14_;
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_file_get_contents (_tmp15_, &_tmp16_, &_tmp17_, &_inner_error_);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (payload);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ payload = _tmp16_;
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ payload_length = _tmp17_;
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp15_);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (_tmp13_);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == G_FILE_ERROR) {
+#line 4208 "RESTSupport.c"
+ goto __catch2_g_file_error;
+ }
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (payload);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 447 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 4223 "RESTSupport.c"
+ }
+ }
+ goto __finally2;
+ __catch2_g_file_error:
+ {
+ GError* e = NULL;
+ const gchar* _tmp18_ = NULL;
+ GError* _tmp19_ = NULL;
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ e = _inner_error_;
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = NULL;
+#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp18_ = _ ("A temporary file needed for publishing is unavailable");
+#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp19_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp18_);
+#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp19_;
+#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (e);
+#line 4244 "RESTSupport.c"
+ goto __finally2;
+ }
+ __finally2:
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (payload);
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 4262 "RESTSupport.c"
+ } else {
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (payload);
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 4276 "RESTSupport.c"
+ }
+ }
+#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp20_ = message_parts;
+#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp21_ = soup_multipart_get_length (_tmp20_);
+#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ payload_part_num = _tmp21_;
+#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp22_ = payload;
+#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp23_ = string_get_data (_tmp22_, &_tmp23__length1);
+#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp24_ = _tmp23_;
+#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp24__length1 = _tmp23__length1;
+#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp25_ = payload_length;
+#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp26_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp24_ + 0, ((gint) _tmp25_) - 0);
+#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ bindable_data = _tmp26_;
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp27_ = message_parts;
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp28_ = self->publishable;
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp29_ = spit_publishing_publishable_get_serialized_file (_tmp28_);
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp30_ = _tmp29_;
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp31_ = g_file_get_path (_tmp30_);
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp32_ = _tmp31_;
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp33_ = self->mime_type;
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp34_ = bindable_data;
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_multipart_append_form_file (_tmp27_, "", _tmp32_, _tmp33_, _tmp34_);
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp32_);
+#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (_tmp30_);
+#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp35_ = message_parts;
+#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp36_ = payload_part_num;
+#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_multipart_get_part (_tmp35_, _tmp36_, &_tmp37_, &_tmp38_);
+#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ image_part_header = _tmp37_;
+#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ image_part_body = _tmp38_;
+#line 463 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp39_ = image_part_header;
+#line 463 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp40_ = self->binary_disposition_table;
+#line 463 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_message_headers_set_content_disposition (_tmp39_, "form-data", _tmp40_);
+#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp41_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp42_ = _tmp41_;
+#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp43_ = message_parts;
+#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp44_ = soup_form_request_new_from_multipart (_tmp42_, _tmp43_);
+#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp45_ = _tmp44_;
+#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp42_);
+#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ outbound_message = _tmp45_;
+#line 468 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp46_ = self->message_headers;
+#line 468 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp47_ = gee_abstract_map_map_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
+#line 468 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ i = _tmp47_;
+#line 469 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp48_ = i;
+#line 469 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp49_ = gee_map_iterator_next (_tmp48_);
+#line 469 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ cont = _tmp49_;
+#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ while (TRUE) {
+#line 4365 "RESTSupport.c"
+ gboolean _tmp50_ = FALSE;
+ SoupMessage* _tmp51_ = NULL;
+ SoupMessageHeaders* _tmp52_ = NULL;
+ GeeMapIterator* _tmp53_ = NULL;
+ gpointer _tmp54_ = NULL;
+ gchar* _tmp55_ = NULL;
+ GeeMapIterator* _tmp56_ = NULL;
+ gpointer _tmp57_ = NULL;
+ gchar* _tmp58_ = NULL;
+ GeeMapIterator* _tmp59_ = NULL;
+ gboolean _tmp60_ = FALSE;
+#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp50_ = cont;
+#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp50_) {
+#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ break;
+#line 4383 "RESTSupport.c"
+ }
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp51_ = outbound_message;
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp52_ = _tmp51_->request_headers;
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp53_ = i;
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp54_ = gee_map_iterator_get_key (_tmp53_);
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp55_ = (gchar*) _tmp54_;
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp56_ = i;
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp57_ = gee_map_iterator_get_value (_tmp56_);
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp58_ = (gchar*) _tmp57_;
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ soup_message_headers_append (_tmp52_, _tmp55_, _tmp58_);
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp58_);
+#line 471 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp55_);
+#line 472 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp59_ = i;
+#line 472 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp60_ = gee_map_iterator_next (_tmp59_);
+#line 472 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ cont = _tmp60_;
+#line 4413 "RESTSupport.c"
+ }
+#line 474 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp61_ = outbound_message;
+#line 474 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp61_);
+#line 476 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_send (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (i);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (outbound_message);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupBuffer_free0 (bindable_data);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (payload);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 4443 "RESTSupport.c"
+ } else {
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (i);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (outbound_message);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupBuffer_free0 (bindable_data);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (payload);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 477 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 4463 "RESTSupport.c"
+ }
+ }
+#line 435 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (i);
+#line 435 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (outbound_message);
+#line 435 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupBuffer_free0 (bindable_data);
+#line 435 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (payload);
+#line 435 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 435 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 4478 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_upload_transaction_class_init (PublishingRESTSupportUploadTransactionClass * klass) {
+#line 381 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_upload_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 381 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rest_support_upload_transaction_finalize;
+#line 381 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->add_header = publishing_rest_support_upload_transaction_real_add_header;
+#line 381 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->execute = publishing_rest_support_upload_transaction_real_execute;
+#line 4491 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_upload_transaction_instance_init (PublishingRESTSupportUploadTransaction * self) {
+#line 382 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->binary_disposition_table = NULL;
+#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->publishable = NULL;
+#line 385 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->message_headers = NULL;
+#line 4502 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_upload_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingRESTSupportUploadTransaction * self;
+#line 381 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction);
+#line 382 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_hash_table_unref0 (self->binary_disposition_table);
+#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->publishable);
+#line 384 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->mime_type);
+#line 385 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->message_headers);
+#line 381 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_rest_support_upload_transaction_parent_class)->finalize (obj);
+#line 4520 "RESTSupport.c"
+}
+
+
+GType publishing_rest_support_upload_transaction_get_type (void) {
+ static volatile gsize publishing_rest_support_upload_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_upload_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportUploadTransaction), 0, (GInstanceInitFunc) publishing_rest_support_upload_transaction_instance_init, NULL };
+ GType publishing_rest_support_upload_transaction_type_id;
+ publishing_rest_support_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRESTSupportUploadTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rest_support_upload_transaction_type_id__volatile, publishing_rest_support_upload_transaction_type_id);
+ }
+ return publishing_rest_support_upload_transaction_type_id__volatile;
+}
+
+
+static PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_construct (GType object_type, xmlDoc* doc) {
+ PublishingRESTSupportXmlDocument* self = NULL;
+ xmlDoc* _tmp0_ = NULL;
+#line 489 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportXmlDocument*) g_type_create_instance (object_type);
+#line 490 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = doc;
+#line 490 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->document = _tmp0_;
+#line 489 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 4547 "RESTSupport.c"
+}
+
+
+static PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_new (xmlDoc* doc) {
+#line 489 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_xml_document_construct (PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, doc);
+#line 4554 "RESTSupport.c"
+}
+
+
+xmlNode* publishing_rest_support_xml_document_get_root_node (PublishingRESTSupportXmlDocument* self) {
+ xmlNode* result = NULL;
+ xmlDoc* _tmp0_ = NULL;
+ xmlNode* _tmp1_ = NULL;
+#line 497 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (self), NULL);
+#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->document;
+#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = xmlDocGetRootElement (_tmp0_);
+#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp1_;
+#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 4572 "RESTSupport.c"
+}
+
+
+xmlNode* publishing_rest_support_xml_document_get_named_child (PublishingRESTSupportXmlDocument* self, xmlNode* parent, const gchar* child_name, GError** error) {
+ xmlNode* result = NULL;
+ xmlNode* doc_node_iter = NULL;
+ xmlNode* _tmp0_ = NULL;
+ xmlNode* _tmp1_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ GError* _tmp11_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 501 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (self), NULL);
+#line 501 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (child_name != NULL, NULL);
+#line 503 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = parent;
+#line 503 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _tmp0_->children;
+#line 503 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ doc_node_iter = _tmp1_;
+#line 4594 "RESTSupport.c"
+ {
+ gboolean _tmp2_ = FALSE;
+#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = TRUE;
+#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ while (TRUE) {
+#line 4601 "RESTSupport.c"
+ xmlNode* _tmp5_ = NULL;
+ xmlNode* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp2_) {
+#line 4608 "RESTSupport.c"
+ xmlNode* _tmp3_ = NULL;
+ xmlNode* _tmp4_ = NULL;
+#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = doc_node_iter;
+#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = _tmp3_->next;
+#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ doc_node_iter = _tmp4_;
+#line 4617 "RESTSupport.c"
+ }
+#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = FALSE;
+#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = doc_node_iter;
+#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!(_tmp5_ != NULL)) {
+#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ break;
+#line 4627 "RESTSupport.c"
+ }
+#line 506 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = doc_node_iter;
+#line 506 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = _tmp6_->name;
+#line 506 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = child_name;
+#line 506 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_strcmp0 (_tmp7_, _tmp8_) == 0) {
+#line 4637 "RESTSupport.c"
+ xmlNode* _tmp9_ = NULL;
+#line 507 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = doc_node_iter;
+#line 507 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp9_;
+#line 507 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 4645 "RESTSupport.c"
+ }
+ }
+ }
+#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = child_name;
+#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Can't find XML node %s", _tmp10_);
+#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp11_;
+#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4661 "RESTSupport.c"
+ } else {
+#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4669 "RESTSupport.c"
+ }
+}
+
+
+gchar* publishing_rest_support_xml_document_get_property_value (PublishingRESTSupportXmlDocument* self, xmlNode* node, const gchar* property_key, GError** error) {
+ gchar* result = NULL;
+ gchar* value_string = NULL;
+ xmlNode* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (self), NULL);
+#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (property_key != NULL, NULL);
+#line 516 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = node;
+#line 516 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = property_key;
+#line 516 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = (gchar*) xmlGetProp (_tmp0_, (xmlChar*) _tmp1_);
+#line 516 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value_string = _tmp2_;
+#line 517 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = value_string;
+#line 517 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp3_ == NULL) {
+#line 4698 "RESTSupport.c"
+ const gchar* _tmp4_ = NULL;
+ xmlNode* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = property_key;
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = node;
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = _tmp5_->name;
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Can't find XML " "property %s on node %s", _tmp4_, _tmp6_);
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp7_;
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (value_string);
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4721 "RESTSupport.c"
+ } else {
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (value_string);
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 518 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4731 "RESTSupport.c"
+ }
+ }
+#line 521 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = value_string;
+#line 521 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 4738 "RESTSupport.c"
+}
+
+
+static gchar* string_chug (const gchar* self) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 1199 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1200 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strdup (self);
+#line 1200 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp0_;
+#line 1201 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _result_;
+#line 1201 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_strchug (_tmp1_);
+#line 1202 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _result_;
+#line 1202 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 4761 "RESTSupport.c"
+}
+
+
+static gchar* string_chomp (const gchar* self) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 1191 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1192 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strdup (self);
+#line 1192 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp0_;
+#line 1193 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _result_;
+#line 1193 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_strchomp (_tmp1_);
+#line 1194 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _result_;
+#line 1194 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 4784 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_parse_string (const gchar* input_string, PublishingRESTSupportXmlDocumentCheckForErrorResponse check_for_error_response, void* check_for_error_response_target, GError** error) {
+ PublishingRESTSupportXmlDocument* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+ gboolean _tmp13_ = FALSE;
+ xmlDoc* doc = NULL;
+ const gchar* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ gint _tmp24_ = 0;
+ xmlDoc* _tmp25_ = NULL;
+ xmlDoc* _tmp26_ = NULL;
+ xmlDoc* _tmp28_ = NULL;
+ xmlNode* _tmp29_ = NULL;
+ PublishingRESTSupportXmlDocument* rest_doc = NULL;
+ xmlDoc* _tmp31_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp32_ = NULL;
+ gchar* _result_ = NULL;
+ PublishingRESTSupportXmlDocumentCheckForErrorResponse _tmp33_ = NULL;
+ void* _tmp33__target = NULL;
+ PublishingRESTSupportXmlDocument* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+ const gchar* _tmp36_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 526 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = input_string;
+#line 526 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp1_ == NULL) {
+#line 526 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = TRUE;
+#line 4825 "RESTSupport.c"
+ } else {
+ const gchar* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+#line 526 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = input_string;
+#line 526 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = strlen (_tmp2_);
+#line 526 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = _tmp3_;
+#line 526 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = _tmp4_ == 0;
+#line 4838 "RESTSupport.c"
+ }
+#line 526 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp0_) {
+#line 4842 "RESTSupport.c"
+ GError* _tmp5_ = NULL;
+#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Empty XML string");
+#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp5_;
+#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4854 "RESTSupport.c"
+ } else {
+#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4862 "RESTSupport.c"
+ }
+ }
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = input_string;
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = string_chug (_tmp7_);
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = _tmp8_;
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = string_chomp (_tmp9_);
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = _tmp10_;
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = g_str_has_prefix (_tmp11_, "<");
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = !_tmp12_;
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp11_);
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp9_);
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp13_) {
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = TRUE;
+#line 4887 "RESTSupport.c"
+ } else {
+ const gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ gboolean _tmp19_ = FALSE;
+#line 531 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = input_string;
+#line 531 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = string_chug (_tmp14_);
+#line 531 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp16_ = _tmp15_;
+#line 531 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp17_ = string_chomp (_tmp16_);
+#line 531 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp18_ = _tmp17_;
+#line 531 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp19_ = g_str_has_suffix (_tmp18_, ">");
+#line 531 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = !_tmp19_;
+#line 531 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp18_);
+#line 531 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp16_);
+#line 4913 "RESTSupport.c"
+ }
+#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp6_) {
+#line 4917 "RESTSupport.c"
+ GError* _tmp20_ = NULL;
+#line 533 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp20_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to parse XML " "document");
+#line 533 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp20_;
+#line 533 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 533 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 533 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4929 "RESTSupport.c"
+ } else {
+#line 533 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 533 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 533 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4937 "RESTSupport.c"
+ }
+ }
+#line 539 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp21_ = input_string;
+#line 539 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp22_ = input_string;
+#line 539 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp23_ = strlen (_tmp22_);
+#line 539 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp24_ = _tmp23_;
+#line 539 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp25_ = xmlReadMemory (_tmp21_, (gint) _tmp24_, NULL, NULL, (gint) (XML_PARSE_NOBLANKS | XML_PARSE_RECOVER));
+#line 539 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ doc = _tmp25_;
+#line 541 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp26_ = doc;
+#line 541 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp26_ == NULL) {
+#line 4956 "RESTSupport.c"
+ GError* _tmp27_ = NULL;
+#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp27_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to parse XML " "document");
+#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp27_;
+#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4968 "RESTSupport.c"
+ } else {
+#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4976 "RESTSupport.c"
+ }
+ }
+#line 547 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp28_ = doc;
+#line 547 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp29_ = _tmp28_->children;
+#line 547 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp29_ == NULL) {
+#line 4985 "RESTSupport.c"
+ GError* _tmp30_ = NULL;
+#line 548 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp30_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to parse XML " "document");
+#line 548 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp30_;
+#line 548 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 548 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 548 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 4997 "RESTSupport.c"
+ } else {
+#line 548 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 548 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 548 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 5005 "RESTSupport.c"
+ }
+ }
+#line 552 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp31_ = doc;
+#line 552 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp32_ = publishing_rest_support_xml_document_new (_tmp31_);
+#line 552 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ rest_doc = _tmp32_;
+#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp33_ = check_for_error_response;
+#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp33__target = check_for_error_response_target;
+#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp34_ = rest_doc;
+#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp35_ = _tmp33_ (_tmp34_, _tmp33__target);
+#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _result_ = _tmp35_;
+#line 555 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp36_ = _result_;
+#line 555 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp36_ != NULL) {
+#line 5028 "RESTSupport.c"
+ const gchar* _tmp37_ = NULL;
+ GError* _tmp38_ = NULL;
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp37_ = _result_;
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp38_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR, "%s", _tmp37_);
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = _tmp38_;
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_result_);
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_xml_document_unref0 (rest_doc);
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 5047 "RESTSupport.c"
+ } else {
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_result_);
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_xml_document_unref0 (rest_doc);
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 556 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 5059 "RESTSupport.c"
+ }
+ }
+#line 558 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = rest_doc;
+#line 558 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_result_);
+#line 558 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 5068 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_value_xml_document_init (GValue* value) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 5075 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_value_xml_document_free_value (GValue* value) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (value->data[0].v_pointer) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_xml_document_unref (value->data[0].v_pointer);
+#line 5084 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_value_xml_document_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (src_value->data[0].v_pointer) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ dest_value->data[0].v_pointer = publishing_rest_support_xml_document_ref (src_value->data[0].v_pointer);
+#line 5094 "RESTSupport.c"
+ } else {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 5098 "RESTSupport.c"
+ }
+}
+
+
+static gpointer publishing_rest_support_value_xml_document_peek_pointer (const GValue* value) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return value->data[0].v_pointer;
+#line 5106 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_value_xml_document_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (collect_values[0].v_pointer) {
+#line 5113 "RESTSupport.c"
+ PublishingRESTSupportXmlDocument* object;
+ object = collect_values[0].v_pointer;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 5120 "RESTSupport.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 5124 "RESTSupport.c"
+ }
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = publishing_rest_support_xml_document_ref (object);
+#line 5128 "RESTSupport.c"
+ } else {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 5132 "RESTSupport.c"
+ }
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 5136 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_value_xml_document_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingRESTSupportXmlDocument** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!object_p) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 5147 "RESTSupport.c"
+ }
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!value->data[0].v_pointer) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = NULL;
+#line 5153 "RESTSupport.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = value->data[0].v_pointer;
+#line 5157 "RESTSupport.c"
+ } else {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = publishing_rest_support_xml_document_ref (value->data[0].v_pointer);
+#line 5161 "RESTSupport.c"
+ }
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 5165 "RESTSupport.c"
+}
+
+
+GParamSpec* publishing_rest_support_param_spec_xml_document (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingRESTSupportParamSpecXmlDocument* spec;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT), NULL);
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return G_PARAM_SPEC (spec);
+#line 5179 "RESTSupport.c"
+}
+
+
+gpointer publishing_rest_support_value_get_xml_document (const GValue* value) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT), NULL);
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return value->data[0].v_pointer;
+#line 5188 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_value_set_xml_document (GValue* value, gpointer v_object) {
+ PublishingRESTSupportXmlDocument* old;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT));
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old = value->data[0].v_pointer;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (v_object) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT));
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_xml_document_ref (value->data[0].v_pointer);
+#line 5208 "RESTSupport.c"
+ } else {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 5212 "RESTSupport.c"
+ }
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (old) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_xml_document_unref (old);
+#line 5218 "RESTSupport.c"
+ }
+}
+
+
+void publishing_rest_support_value_take_xml_document (GValue* value, gpointer v_object) {
+ PublishingRESTSupportXmlDocument* old;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT));
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old = value->data[0].v_pointer;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (v_object) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT));
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 5237 "RESTSupport.c"
+ } else {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 5241 "RESTSupport.c"
+ }
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (old) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_xml_document_unref (old);
+#line 5247 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_xml_document_class_init (PublishingRESTSupportXmlDocumentClass * klass) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_xml_document_parent_class = g_type_class_peek_parent (klass);
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportXmlDocumentClass *) klass)->finalize = publishing_rest_support_xml_document_finalize;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRESTSupportXmlDocumentPrivate));
+#line 5259 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_xml_document_instance_init (PublishingRESTSupportXmlDocument * self) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv = PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_PRIVATE (self);
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->ref_count = 1;
+#line 5268 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_xml_document_finalize (PublishingRESTSupportXmlDocument* obj) {
+ PublishingRESTSupportXmlDocument * self;
+ xmlDoc* _tmp0_ = NULL;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocument);
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_destroy (self);
+#line 494 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->document;
+#line 494 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ xmlFreeDoc (_tmp0_);
+#line 5283 "RESTSupport.c"
+}
+
+
+GType publishing_rest_support_xml_document_get_type (void) {
+ static volatile gsize publishing_rest_support_xml_document_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_xml_document_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_xml_document_init, publishing_rest_support_value_xml_document_free_value, publishing_rest_support_value_xml_document_copy_value, publishing_rest_support_value_xml_document_peek_pointer, "p", publishing_rest_support_value_xml_document_collect_value, "p", publishing_rest_support_value_xml_document_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportXmlDocumentClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_xml_document_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportXmlDocument), 0, (GInstanceInitFunc) publishing_rest_support_xml_document_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 publishing_rest_support_xml_document_type_id;
+ publishing_rest_support_xml_document_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportXmlDocument", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_rest_support_xml_document_type_id__volatile, publishing_rest_support_xml_document_type_id);
+ }
+ return publishing_rest_support_xml_document_type_id__volatile;
+}
+
+
+gpointer publishing_rest_support_xml_document_ref (gpointer instance) {
+ PublishingRESTSupportXmlDocument* self;
+ self = instance;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return instance;
+#line 5308 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_xml_document_unref (gpointer instance) {
+ PublishingRESTSupportXmlDocument* self;
+ self = instance;
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_CLASS (self)->finalize (self);
+#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 5321 "RESTSupport.c"
+ }
+}
+
+
+gchar* publishing_rest_support_decimal_entity_encode (const gchar* source) {
+ gchar* result = NULL;
+ GString* encoded_str_builder = NULL;
+ GString* _tmp0_ = NULL;
+ gchar* current_char = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ GString* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+#line 567 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (source != NULL, NULL);
+#line 568 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = g_string_new ("");
+#line 568 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ encoded_str_builder = _tmp0_;
+#line 569 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = source;
+#line 569 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 569 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ current_char = _tmp2_;
+#line 570 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ while (TRUE) {
+#line 5350 "RESTSupport.c"
+ gint current_char_value = 0;
+ const gchar* _tmp3_ = NULL;
+ gunichar _tmp4_ = 0U;
+ gint _tmp5_ = 0;
+ gboolean _tmp6_ = FALSE;
+ gboolean _tmp7_ = FALSE;
+ gboolean _tmp8_ = FALSE;
+ gint _tmp9_ = 0;
+ const gchar* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = current_char;
+#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = g_utf8_get_char_validated (_tmp3_, (gssize) -1);
+#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ current_char_value = (gint) _tmp4_;
+#line 574 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = current_char_value;
+#line 574 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp5_ < 1) {
+#line 575 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ break;
+#line 5374 "RESTSupport.c"
+ }
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = current_char_value;
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp9_ < 128) {
+#line 5380 "RESTSupport.c"
+ gint _tmp10_ = 0;
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = current_char_value;
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = _tmp10_ != ((gint) '&');
+#line 5386 "RESTSupport.c"
+ } else {
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = FALSE;
+#line 5390 "RESTSupport.c"
+ }
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp8_) {
+#line 5394 "RESTSupport.c"
+ gint _tmp11_ = 0;
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = current_char_value;
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = _tmp11_ != ((gint) '<');
+#line 5400 "RESTSupport.c"
+ } else {
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = FALSE;
+#line 5404 "RESTSupport.c"
+ }
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp7_) {
+#line 5408 "RESTSupport.c"
+ gint _tmp12_ = 0;
+#line 580 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = current_char_value;
+#line 580 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = _tmp12_ != ((gint) '>');
+#line 5414 "RESTSupport.c"
+ } else {
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = FALSE;
+#line 5418 "RESTSupport.c"
+ }
+#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp6_) {
+#line 5422 "RESTSupport.c"
+ GString* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ gunichar _tmp15_ = 0U;
+#line 581 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = encoded_str_builder;
+#line 581 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = current_char;
+#line 581 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = g_utf8_get_char_validated (_tmp14_, (gssize) -1);
+#line 581 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_string_append_unichar (_tmp13_, _tmp15_);
+#line 5434 "RESTSupport.c"
+ } else {
+ GString* _tmp16_ = NULL;
+ gint _tmp17_ = 0;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp16_ = encoded_str_builder;
+#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp17_ = current_char_value;
+#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp18_ = g_strdup_printf ("&#%d;", _tmp17_);
+#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp19_ = _tmp18_;
+#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_string_append (_tmp16_, _tmp19_);
+#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp19_);
+#line 5452 "RESTSupport.c"
+ }
+#line 585 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp20_ = current_char;
+#line 585 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp21_ = g_utf8_next_char (_tmp20_);
+#line 585 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp22_ = g_strdup (_tmp21_);
+#line 585 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (current_char);
+#line 585 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ current_char = _tmp22_;
+#line 5464 "RESTSupport.c"
+ }
+#line 588 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp23_ = encoded_str_builder;
+#line 588 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp24_ = _tmp23_->str;
+#line 588 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp25_ = g_strdup (_tmp24_);
+#line 588 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp25_;
+#line 588 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (current_char);
+#line 588 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_string_free0 (encoded_str_builder);
+#line 588 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 5480 "RESTSupport.c"
+}
+
+
+static SpitPublishingPublishable** _vala_array_dup2 (SpitPublishingPublishable** self, int length) {
+ SpitPublishingPublishable** result;
+ int i;
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = g_new0 (SpitPublishingPublishable*, length + 1);
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ for (i = 0; i < length; i++) {
+#line 5491 "RESTSupport.c"
+ SpitPublishingPublishable* _tmp0_ = NULL;
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result[i] = _tmp0_;
+#line 5497 "RESTSupport.c"
+ }
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 5501 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportBatchUploader* publishing_rest_support_batch_uploader_construct (GType object_type, PublishingRESTSupportSession* session, SpitPublishingPublishable** publishables, int publishables_length1) {
+ PublishingRESTSupportBatchUploader* self = NULL;
+ SpitPublishingPublishable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingRESTSupportSession* _tmp2_ = NULL;
+ PublishingRESTSupportSession* _tmp3_ = NULL;
+#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL);
+#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportBatchUploader*) g_type_create_instance (object_type);
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = publishables;
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0__length1 = publishables_length1;
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup2 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->publishables = _tmp1_;
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->publishables_length1 = _tmp1__length1;
+#line 601 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->_publishables_size_ = self->priv->publishables_length1;
+#line 602 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = session;
+#line 602 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = _publishing_rest_support_session_ref0 (_tmp2_);
+#line 602 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 602 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->session = _tmp3_;
+#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 5543 "RESTSupport.c"
+}
+
+
+static void _publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted (PublishingRESTSupportTransaction* _sender, gint bytes_written_so_far, gint total_bytes, gpointer self) {
+#line 623 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_batch_uploader_on_chunk_transmitted ((PublishingRESTSupportBatchUploader*) self, bytes_written_so_far, total_bytes);
+#line 5550 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_batch_uploader_send_files (PublishingRESTSupportBatchUploader* self) {
+ gboolean stop = FALSE;
+ SpitPublishingPublishable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gboolean _tmp23_ = FALSE;
+ GError * _inner_error_ = NULL;
+#line 605 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self));
+#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->current_file = 0;
+#line 607 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ stop = FALSE;
+#line 608 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->publishables;
+#line 608 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0__length1 = self->priv->publishables_length1;
+#line 5570 "RESTSupport.c"
+ {
+ SpitPublishingPublishable** publishable_collection = NULL;
+ gint publishable_collection_length1 = 0;
+ gint _publishable_collection_size_ = 0;
+ gint publishable_it = 0;
+#line 608 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishable_collection = _tmp0_;
+#line 608 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishable_collection_length1 = _tmp0__length1;
+#line 608 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ for (publishable_it = 0; publishable_it < _tmp0__length1; publishable_it = publishable_it + 1) {
+#line 5582 "RESTSupport.c"
+ SpitPublishingPublishable* _tmp1_ = NULL;
+ SpitPublishingPublishable* publishable = NULL;
+#line 608 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _g_object_ref0 (publishable_collection[publishable_it]);
+#line 608 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishable = _tmp1_;
+#line 5589 "RESTSupport.c"
+ {
+ GFile* file = NULL;
+ SpitPublishingPublishable* _tmp2_ = NULL;
+ GFile* _tmp3_ = NULL;
+ GFile* _tmp4_ = NULL;
+ gdouble fraction_complete = 0.0;
+ gint _tmp6_ = 0;
+ SpitPublishingPublishable** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ SpitPublishingProgressCallback _tmp8_ = NULL;
+ void* _tmp8__target = NULL;
+ PublishingRESTSupportTransaction* txn = NULL;
+ SpitPublishingPublishable** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ gint _tmp13_ = 0;
+ SpitPublishingPublishable* _tmp14_ = NULL;
+ PublishingRESTSupportTransaction* _tmp15_ = NULL;
+ PublishingRESTSupportTransaction* _tmp16_ = NULL;
+ PublishingRESTSupportTransaction* _tmp19_ = NULL;
+ guint _tmp20_ = 0U;
+ gboolean _tmp21_ = FALSE;
+ gint _tmp22_ = 0;
+#line 609 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = publishable;
+#line 609 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = spit_publishing_publishable_get_serialized_file (_tmp2_);
+#line 609 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ file = _tmp3_;
+#line 612 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = file;
+#line 612 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp4_ == NULL) {
+#line 5622 "RESTSupport.c"
+ gint _tmp5_ = 0;
+#line 613 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = self->priv->current_file;
+#line 613 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->current_file = _tmp5_ + 1;
+#line 614 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (file);
+#line 614 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (publishable);
+#line 614 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ continue;
+#line 5634 "RESTSupport.c"
+ }
+#line 617 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = self->priv->current_file;
+#line 617 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = self->priv->publishables;
+#line 617 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7__length1 = self->priv->publishables_length1;
+#line 617 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ fraction_complete = ((gdouble) _tmp6_) / _tmp7__length1;
+#line 618 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = self->priv->status_updated;
+#line 618 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8__target = self->priv->status_updated_target;
+#line 618 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp8_ != NULL) {
+#line 5650 "RESTSupport.c"
+ SpitPublishingProgressCallback _tmp9_ = NULL;
+ void* _tmp9__target = NULL;
+ gint _tmp10_ = 0;
+ gdouble _tmp11_ = 0.0;
+#line 619 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = self->priv->status_updated;
+#line 619 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9__target = self->priv->status_updated_target;
+#line 619 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = self->priv->current_file;
+#line 619 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = fraction_complete;
+#line 619 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ (_tmp10_ + 1, _tmp11_, _tmp9__target);
+#line 5665 "RESTSupport.c"
+ }
+#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = self->priv->publishables;
+#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12__length1 = self->priv->publishables_length1;
+#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = self->priv->current_file;
+#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = _tmp12_[_tmp13_];
+#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = publishing_rest_support_batch_uploader_create_transaction (self, _tmp14_);
+#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ txn = _tmp15_;
+#line 623 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp16_ = txn;
+#line 623 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect (_tmp16_, "chunk-transmitted", (GCallback) _publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted, self);
+#line 5683 "RESTSupport.c"
+ {
+ PublishingRESTSupportTransaction* _tmp17_ = NULL;
+#line 626 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp17_ = txn;
+#line 626 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_execute (_tmp17_, &_inner_error_);
+#line 626 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 626 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5694 "RESTSupport.c"
+ goto __catch3_spit_publishing_publishing_error;
+ }
+#line 626 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 626 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (file);
+#line 626 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (publishable);
+#line 626 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 626 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 626 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 5709 "RESTSupport.c"
+ }
+ }
+ goto __finally3;
+ __catch3_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp18_ = NULL;
+#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ err = _inner_error_;
+#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = NULL;
+#line 628 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp18_ = err;
+#line 628 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_emit_by_name (self, "upload-error", _tmp18_);
+#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ stop = TRUE;
+#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (err);
+#line 5729 "RESTSupport.c"
+ }
+ __finally3:
+#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (file);
+#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (publishable);
+#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 5746 "RESTSupport.c"
+ }
+#line 632 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp19_ = txn;
+#line 632 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("chunk-transmitted", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp20_, NULL, FALSE);
+#line 632 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp19_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) _publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted, self);
+#line 634 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp21_ = stop;
+#line 634 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp21_) {
+#line 635 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 635 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (file);
+#line 635 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (publishable);
+#line 635 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ break;
+#line 5766 "RESTSupport.c"
+ }
+#line 637 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp22_ = self->priv->current_file;
+#line 637 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->current_file = _tmp22_ + 1;
+#line 608 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 608 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (file);
+#line 608 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (publishable);
+#line 5778 "RESTSupport.c"
+ }
+ }
+ }
+#line 640 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp23_ = stop;
+#line 640 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp23_) {
+#line 5786 "RESTSupport.c"
+ gint _tmp24_ = 0;
+#line 641 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp24_ = self->priv->current_file;
+#line 641 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_emit_by_name (self, "upload-complete", _tmp24_);
+#line 5792 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_batch_uploader_on_chunk_transmitted (PublishingRESTSupportBatchUploader* self, gint bytes_written_so_far, gint total_bytes) {
+ gdouble file_span = 0.0;
+ SpitPublishingPublishable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gdouble this_file_fraction_complete = 0.0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+ gdouble fraction_complete = 0.0;
+ gint _tmp3_ = 0;
+ gdouble _tmp4_ = 0.0;
+ gdouble _tmp5_ = 0.0;
+ gdouble _tmp6_ = 0.0;
+ SpitPublishingProgressCallback _tmp7_ = NULL;
+ void* _tmp7__target = NULL;
+#line 644 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self));
+#line 645 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->publishables;
+#line 645 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0__length1 = self->priv->publishables_length1;
+#line 645 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ file_span = 1.0 / _tmp0__length1;
+#line 646 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = bytes_written_so_far;
+#line 646 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = total_bytes;
+#line 646 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ this_file_fraction_complete = ((gdouble) _tmp1_) / _tmp2_;
+#line 647 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = self->priv->current_file;
+#line 647 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = file_span;
+#line 647 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = this_file_fraction_complete;
+#line 647 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = file_span;
+#line 647 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ fraction_complete = (_tmp3_ * _tmp4_) + (_tmp5_ * _tmp6_);
+#line 650 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = self->priv->status_updated;
+#line 650 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7__target = self->priv->status_updated_target;
+#line 650 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp7_ != NULL) {
+#line 5841 "RESTSupport.c"
+ SpitPublishingProgressCallback _tmp8_ = NULL;
+ void* _tmp8__target = NULL;
+ gint _tmp9_ = 0;
+ gdouble _tmp10_ = 0.0;
+#line 651 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = self->priv->status_updated;
+#line 651 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8__target = self->priv->status_updated_target;
+#line 651 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = self->priv->current_file;
+#line 651 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = fraction_complete;
+#line 651 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ (_tmp9_ + 1, _tmp10_, _tmp8__target);
+#line 5856 "RESTSupport.c"
+ }
+}
+
+
+PublishingRESTSupportSession* publishing_rest_support_batch_uploader_get_session (PublishingRESTSupportBatchUploader* self) {
+ PublishingRESTSupportSession* result = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingRESTSupportSession* _tmp1_ = NULL;
+#line 654 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self), NULL);
+#line 655 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->session;
+#line 655 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _publishing_rest_support_session_ref0 (_tmp0_);
+#line 655 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp1_;
+#line 655 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 5875 "RESTSupport.c"
+}
+
+
+SpitPublishingPublishable* publishing_rest_support_batch_uploader_get_current_publishable (PublishingRESTSupportBatchUploader* self) {
+ SpitPublishingPublishable* result = NULL;
+ SpitPublishingPublishable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gint _tmp1_ = 0;
+ SpitPublishingPublishable* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self), NULL);
+#line 659 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->publishables;
+#line 659 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0__length1 = self->priv->publishables_length1;
+#line 659 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->current_file;
+#line 659 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = _tmp0_[_tmp1_];
+#line 659 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 659 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp3_;
+#line 659 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 5902 "RESTSupport.c"
+}
+
+
+static PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable) {
+#line 662 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_batch_uploader_create_transaction'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 662 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 5911 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_create_transaction (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable) {
+#line 662 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self), NULL);
+#line 662 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS (self)->create_transaction (self, publishable);
+#line 5920 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_batch_uploader_upload (PublishingRESTSupportBatchUploader* self, SpitPublishingProgressCallback status_updated, void* status_updated_target) {
+ SpitPublishingProgressCallback _tmp0_ = NULL;
+ void* _tmp0__target = NULL;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self));
+#line 665 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = status_updated;
+#line 665 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0__target = status_updated_target;
+#line 665 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->status_updated = _tmp0_;
+#line 665 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->status_updated_target = _tmp0__target;
+#line 667 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->publishables;
+#line 667 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1__length1 = self->priv->publishables_length1;
+#line 667 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp1__length1 > 0) {
+#line 668 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_batch_uploader_send_files (self);
+#line 5947 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_value_batch_uploader_init (GValue* value) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 5955 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_value_batch_uploader_free_value (GValue* value) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (value->data[0].v_pointer) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_batch_uploader_unref (value->data[0].v_pointer);
+#line 5964 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_value_batch_uploader_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (src_value->data[0].v_pointer) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ dest_value->data[0].v_pointer = publishing_rest_support_batch_uploader_ref (src_value->data[0].v_pointer);
+#line 5974 "RESTSupport.c"
+ } else {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 5978 "RESTSupport.c"
+ }
+}
+
+
+static gpointer publishing_rest_support_value_batch_uploader_peek_pointer (const GValue* value) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return value->data[0].v_pointer;
+#line 5986 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_value_batch_uploader_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (collect_values[0].v_pointer) {
+#line 5993 "RESTSupport.c"
+ PublishingRESTSupportBatchUploader* object;
+ object = collect_values[0].v_pointer;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 6000 "RESTSupport.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 6004 "RESTSupport.c"
+ }
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = publishing_rest_support_batch_uploader_ref (object);
+#line 6008 "RESTSupport.c"
+ } else {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 6012 "RESTSupport.c"
+ }
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 6016 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_value_batch_uploader_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingRESTSupportBatchUploader** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!object_p) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 6027 "RESTSupport.c"
+ }
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!value->data[0].v_pointer) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = NULL;
+#line 6033 "RESTSupport.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = value->data[0].v_pointer;
+#line 6037 "RESTSupport.c"
+ } else {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ *object_p = publishing_rest_support_batch_uploader_ref (value->data[0].v_pointer);
+#line 6041 "RESTSupport.c"
+ }
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 6045 "RESTSupport.c"
+}
+
+
+GParamSpec* publishing_rest_support_param_spec_batch_uploader (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingRESTSupportParamSpecBatchUploader* spec;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER), NULL);
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return G_PARAM_SPEC (spec);
+#line 6059 "RESTSupport.c"
+}
+
+
+gpointer publishing_rest_support_value_get_batch_uploader (const GValue* value) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER), NULL);
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return value->data[0].v_pointer;
+#line 6068 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_value_set_batch_uploader (GValue* value, gpointer v_object) {
+ PublishingRESTSupportBatchUploader* old;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER));
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old = value->data[0].v_pointer;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (v_object) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER));
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_batch_uploader_ref (value->data[0].v_pointer);
+#line 6088 "RESTSupport.c"
+ } else {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 6092 "RESTSupport.c"
+ }
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (old) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_batch_uploader_unref (old);
+#line 6098 "RESTSupport.c"
+ }
+}
+
+
+void publishing_rest_support_value_take_batch_uploader (GValue* value, gpointer v_object) {
+ PublishingRESTSupportBatchUploader* old;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER));
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ old = value->data[0].v_pointer;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (v_object) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER));
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 6117 "RESTSupport.c"
+ } else {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 6121 "RESTSupport.c"
+ }
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (old) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_batch_uploader_unref (old);
+#line 6127 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_batch_uploader_class_init (PublishingRESTSupportBatchUploaderClass * klass) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_batch_uploader_parent_class = g_type_class_peek_parent (klass);
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_rest_support_batch_uploader_finalize;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRESTSupportBatchUploaderPrivate));
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = publishing_rest_support_batch_uploader_real_create_transaction;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_new ("upload_complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_new ("upload_error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER);
+#line 6145 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_batch_uploader_instance_init (PublishingRESTSupportBatchUploader * self) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv = PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_PRIVATE (self);
+#line 592 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->current_file = 0;
+#line 593 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->publishables = NULL;
+#line 593 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->publishables_length1 = 0;
+#line 593 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->_publishables_size_ = self->priv->publishables_length1;
+#line 594 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->session = NULL;
+#line 595 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->status_updated = NULL;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->ref_count = 1;
+#line 6166 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_batch_uploader_finalize (PublishingRESTSupportBatchUploader* obj) {
+ PublishingRESTSupportBatchUploader * self;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader);
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_destroy (self);
+#line 593 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 594 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 6180 "RESTSupport.c"
+}
+
+
+GType publishing_rest_support_batch_uploader_get_type (void) {
+ static volatile gsize publishing_rest_support_batch_uploader_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_batch_uploader_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_batch_uploader_init, publishing_rest_support_value_batch_uploader_free_value, publishing_rest_support_value_batch_uploader_copy_value, publishing_rest_support_value_batch_uploader_peek_pointer, "p", publishing_rest_support_value_batch_uploader_collect_value, "p", publishing_rest_support_value_batch_uploader_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportBatchUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_batch_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportBatchUploader), 0, (GInstanceInitFunc) publishing_rest_support_batch_uploader_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 publishing_rest_support_batch_uploader_type_id;
+ publishing_rest_support_batch_uploader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportBatchUploader", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
+ g_once_init_leave (&publishing_rest_support_batch_uploader_type_id__volatile, publishing_rest_support_batch_uploader_type_id);
+ }
+ return publishing_rest_support_batch_uploader_type_id__volatile;
+}
+
+
+gpointer publishing_rest_support_batch_uploader_ref (gpointer instance) {
+ PublishingRESTSupportBatchUploader* self;
+ self = instance;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return instance;
+#line 6205 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_batch_uploader_unref (gpointer instance) {
+ PublishingRESTSupportBatchUploader* self;
+ self = instance;
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS (self)->finalize (self);
+#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 6218 "RESTSupport.c"
+ }
+}
+
+
+static gunichar string_get_char (const gchar* self, glong index) {
+ gunichar result = 0U;
+ glong _tmp0_ = 0L;
+ gunichar _tmp1_ = 0U;
+#line 1116 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, 0U);
+#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = index;
+#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = g_utf8_get_char (((gchar*) self) + _tmp0_);
+#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp1_;
+#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 6237 "RESTSupport.c"
+}
+
+
+gchar* publishing_rest_support_asciify_string (const gchar* s) {
+ gchar* result = NULL;
+ gchar* t = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ GString* b = NULL;
+ GString* _tmp2_ = NULL;
+ GString* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+#line 675 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (s != NULL, NULL);
+#line 676 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = s;
+#line 676 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = g_utf8_normalize (_tmp0_, (gssize) -1, G_NORMALIZE_DEFAULT);
+#line 676 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ t = _tmp1_;
+#line 678 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = g_string_new ("");
+#line 678 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ b = _tmp2_;
+#line 6263 "RESTSupport.c"
+ {
+ const gchar* u = NULL;
+ const gchar* _tmp3_ = NULL;
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = t;
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ u = _tmp3_;
+#line 6271 "RESTSupport.c"
+ {
+ gboolean _tmp4_ = FALSE;
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = TRUE;
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ while (TRUE) {
+#line 6278 "RESTSupport.c"
+ const gchar* _tmp7_ = NULL;
+ gunichar _tmp8_ = 0U;
+ gunichar c = 0U;
+ const gchar* _tmp9_ = NULL;
+ gunichar _tmp10_ = 0U;
+ gunichar _tmp11_ = 0U;
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp4_) {
+#line 6287 "RESTSupport.c"
+ const gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = u;
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = g_utf8_next_char (_tmp5_);
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ u = _tmp6_;
+#line 6296 "RESTSupport.c"
+ }
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = FALSE;
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = u;
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = string_get_char (_tmp7_, (glong) 0);
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!(_tmp8_ != ((gunichar) 0))) {
+#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ break;
+#line 6308 "RESTSupport.c"
+ }
+#line 680 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = u;
+#line 680 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = string_get_char (_tmp9_, (glong) 0);
+#line 680 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ c = _tmp10_;
+#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = c;
+#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (((gint) _tmp11_) < 128) {
+#line 6320 "RESTSupport.c"
+ GString* _tmp12_ = NULL;
+ gunichar _tmp13_ = 0U;
+#line 682 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = b;
+#line 682 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = c;
+#line 682 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_string_append_unichar (_tmp12_, _tmp13_);
+#line 6329 "RESTSupport.c"
+ }
+ }
+ }
+ }
+#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = b;
+#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = _tmp14_->str;
+#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp16_ = g_strdup (_tmp15_);
+#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp16_;
+#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_string_free0 (b);
+#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (t);
+#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 6348 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_google_session_real_get_user_name (PublishingRESTSupportGoogleSession* self) {
+#line 689 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_session_get_user_name'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 689 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 6357 "RESTSupport.c"
+}
+
+
+gchar* publishing_rest_support_google_session_get_user_name (PublishingRESTSupportGoogleSession* self) {
+#line 689 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (self), NULL);
+#line 689 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS (self)->get_user_name (self);
+#line 6366 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_google_session_real_get_access_token (PublishingRESTSupportGoogleSession* self) {
+#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_session_get_access_token'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 6375 "RESTSupport.c"
+}
+
+
+gchar* publishing_rest_support_google_session_get_access_token (PublishingRESTSupportGoogleSession* self) {
+#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (self), NULL);
+#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS (self)->get_access_token (self);
+#line 6384 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_google_session_real_get_refresh_token (PublishingRESTSupportGoogleSession* self) {
+#line 691 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_session_get_refresh_token'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 691 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return NULL;
+#line 6393 "RESTSupport.c"
+}
+
+
+gchar* publishing_rest_support_google_session_get_refresh_token (PublishingRESTSupportGoogleSession* self) {
+#line 691 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (self), NULL);
+#line 691 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS (self)->get_refresh_token (self);
+#line 6402 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_session_real_deauthenticate (PublishingRESTSupportGoogleSession* self) {
+#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_session_deauthenticate'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6411 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_google_session_deauthenticate (PublishingRESTSupportGoogleSession* self) {
+#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (self));
+#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS (self)->deauthenticate (self);
+#line 6420 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportGoogleSession* publishing_rest_support_google_session_construct (GType object_type) {
+ PublishingRESTSupportGoogleSession* self = NULL;
+#line 688 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportGoogleSession*) publishing_rest_support_session_construct (object_type, NULL);
+#line 688 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 6430 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_session_class_init (PublishingRESTSupportGoogleSessionClass * klass) {
+#line 688 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_session_parent_class = g_type_class_peek_parent (klass);
+#line 688 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGoogleSessionClass *) klass)->get_user_name = publishing_rest_support_google_session_real_get_user_name;
+#line 688 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGoogleSessionClass *) klass)->get_access_token = publishing_rest_support_google_session_real_get_access_token;
+#line 688 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGoogleSessionClass *) klass)->get_refresh_token = publishing_rest_support_google_session_real_get_refresh_token;
+#line 688 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGoogleSessionClass *) klass)->deauthenticate = publishing_rest_support_google_session_real_deauthenticate;
+#line 6445 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_session_instance_init (PublishingRESTSupportGoogleSession * self) {
+}
+
+
+GType publishing_rest_support_google_session_get_type (void) {
+ static volatile gsize publishing_rest_support_google_session_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_google_session_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGoogleSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGoogleSession), 0, (GInstanceInitFunc) publishing_rest_support_google_session_instance_init, NULL };
+ GType publishing_rest_support_google_session_type_id;
+ publishing_rest_support_google_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingRESTSupportGoogleSession", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
+ g_once_init_leave (&publishing_rest_support_google_session_type_id__volatile, publishing_rest_support_google_session_type_id);
+ }
+ return publishing_rest_support_google_session_type_id__volatile;
+}
+
+
+PublishingRESTSupportGooglePublisher* publishing_rest_support_google_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host, const gchar* scope) {
+ PublishingRESTSupportGooglePublisher * self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp2_ = NULL;
+ SpitPublishingService* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
+#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (scope != NULL, NULL);
+#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportGooglePublisher*) g_object_new (object_type, NULL);
+#line 872 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = scope;
+#line 872 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 872 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->priv->scope);
+#line 872 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->scope = _tmp1_;
+#line 873 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = publishing_rest_support_google_publisher_google_session_impl_new ();
+#line 873 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 873 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->session = _tmp2_;
+#line 874 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = service;
+#line 874 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->service = _tmp3_;
+#line 875 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = host;
+#line 875 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->host = _tmp4_;
+#line 876 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->web_auth_pane);
+#line 876 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->web_auth_pane = NULL;
+#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 6508 "RESTSupport.c"
+}
+
+
+static void _publishing_rest_support_google_publisher_on_web_auth_pane_authorized_publishing_rest_support_google_publisher_web_authentication_pane_authorized (PublishingRESTSupportGooglePublisherWebAuthenticationPane* _sender, const gchar* auth_code, gpointer self) {
+#line 880 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_on_web_auth_pane_authorized ((PublishingRESTSupportGooglePublisher*) self, auth_code);
+#line 6515 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_on_web_auth_pane_authorized (PublishingRESTSupportGooglePublisher* self, const gchar* auth_code) {
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+ const gchar* _tmp5_ = NULL;
+#line 879 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 879 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (auth_code != NULL);
+#line 880 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->web_auth_pane;
+#line 880 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("authorized", PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, &_tmp1_, NULL, FALSE);
+#line 880 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_web_auth_pane_authorized_publishing_rest_support_google_publisher_web_authentication_pane_authorized, self);
+#line 882 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = self->priv->scope;
+#line 882 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = auth_code;
+#line 882 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:882: EVENT: user authorized scope %s with auth_code %" \
+"s", _tmp2_, _tmp3_);
+#line 884 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (self);
+#line 884 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp4_) {
+#line 885 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6548 "RESTSupport.c"
+ }
+#line 887 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = auth_code;
+#line 887 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_do_get_access_tokens (self, _tmp5_);
+#line 6554 "RESTSupport.c"
+}
+
+
+static void _publishing_rest_support_google_publisher_on_get_access_tokens_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 891 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_on_get_access_tokens_complete ((PublishingRESTSupportGooglePublisher*) self, _sender);
+#line 6561 "RESTSupport.c"
+}
+
+
+static void _publishing_rest_support_google_publisher_on_get_access_tokens_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 892 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_on_get_access_tokens_error ((PublishingRESTSupportGooglePublisher*) self, _sender, err);
+#line 6568 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_on_get_access_tokens_complete (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 890 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 890 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 891 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = txn;
+#line 891 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 891 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_get_access_tokens_complete_publishing_rest_support_transaction_completed, self);
+#line 892 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = txn;
+#line 892 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 892 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_get_access_tokens_error_publishing_rest_support_transaction_network_error, self);
+#line 894 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:894: %s", "EVENT: network transaction to exchange authorization code for access t" \
+"okens " "completed successfully.");
+#line 897 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (self);
+#line 897 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp4_) {
+#line 898 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6605 "RESTSupport.c"
+ }
+#line 900 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = txn;
+#line 900 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_);
+#line 900 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = _tmp6_;
+#line 900 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_do_extract_tokens (self, _tmp7_);
+#line 900 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp7_);
+#line 6617 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_on_get_access_tokens_error (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ SpitPublishingPluginHost* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 903 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 903 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 905 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = txn;
+#line 905 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 905 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_get_access_tokens_complete_publishing_rest_support_transaction_completed, self);
+#line 906 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = txn;
+#line 906 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 906 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_get_access_tokens_error_publishing_rest_support_transaction_network_error, self);
+#line 908 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = txn;
+#line 908 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 908 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = _tmp5_;
+#line 908 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("EVENT: network transaction to exchange authorization code for access t" \
+"okens " "failed; response = '%s'", _tmp6_);
+#line 908 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp6_);
+#line 911 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = publishing_rest_support_google_publisher_is_running (self);
+#line 911 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp7_) {
+#line 912 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6664 "RESTSupport.c"
+ }
+#line 914 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = self->priv->host;
+#line 914 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = err;
+#line 914 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_post_error (_tmp8_, _tmp9_);
+#line 6672 "RESTSupport.c"
+}
+
+
+static void _publishing_rest_support_google_publisher_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 919 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_on_refresh_access_token_transaction_completed ((PublishingRESTSupportGooglePublisher*) self, _sender);
+#line 6679 "RESTSupport.c"
+}
+
+
+static void _publishing_rest_support_google_publisher_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 920 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_on_refresh_access_token_transaction_error ((PublishingRESTSupportGooglePublisher*) self, _sender, err);
+#line 6686 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_on_refresh_access_token_transaction_completed (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 917 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 917 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 919 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = txn;
+#line 919 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 919 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed, self);
+#line 920 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = txn;
+#line 920 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 920 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error, self);
+#line 922 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:922: EVENT: refresh access token transaction complete" \
+"d successfully.");
+#line 924 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (self);
+#line 924 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp4_) {
+#line 925 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6725 "RESTSupport.c"
+ }
+#line 927 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = self->priv->session;
+#line 927 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 927 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp6_) {
+#line 928 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6735 "RESTSupport.c"
+ }
+#line 930 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = txn;
+#line 930 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 930 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = _tmp8_;
+#line 930 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_do_extract_tokens (self, _tmp9_);
+#line 930 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp9_);
+#line 6747 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_on_refresh_access_token_transaction_error (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ guint _tmp8_ = 0U;
+ SpitPublishingPluginHost* _tmp9_ = NULL;
+ GError* _tmp10_ = NULL;
+#line 933 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 933 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 935 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = txn;
+#line 935 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 935 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed, self);
+#line 936 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = txn;
+#line 936 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 936 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error, self);
+#line 938 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:938: EVENT: refresh access token transaction caused a" \
+" network error.");
+#line 940 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (self);
+#line 940 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp4_) {
+#line 941 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6787 "RESTSupport.c"
+ }
+#line 943 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = self->priv->session;
+#line 943 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 943 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp6_) {
+#line 944 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6797 "RESTSupport.c"
+ }
+#line 948 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = txn;
+#line 948 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_status_code (_tmp7_);
+#line 948 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp8_ == ((guint) 400)) {
+#line 949 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_do_logout (self);
+#line 950 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6809 "RESTSupport.c"
+ }
+#line 953 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = self->priv->host;
+#line 953 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = err;
+#line 953 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_post_error (_tmp9_, _tmp10_);
+#line 6817 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_on_refresh_token_available (PublishingRESTSupportGooglePublisher* self, const gchar* token) {
+ const gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+#line 956 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 956 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (token != NULL);
+#line 957 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = token;
+#line 957 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:957: EVENT: an OAuth refresh token has become availab" \
+"le; token = '%s'.", _tmp0_);
+#line 959 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_is_running (self);
+#line 959 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp1_) {
+#line 960 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6841 "RESTSupport.c"
+ }
+#line 962 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = self->priv->session;
+#line 962 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = token;
+#line 962 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = g_strdup (_tmp3_);
+#line 962 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp2_->refresh_token);
+#line 962 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_->refresh_token = _tmp4_;
+#line 6853 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_on_access_token_available (PublishingRESTSupportGooglePublisher* self, const gchar* token) {
+ const gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+#line 965 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 965 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (token != NULL);
+#line 966 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = token;
+#line 966 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:966: EVENT: an OAuth access token has become availabl" \
+"e; token = '%s'.", _tmp0_);
+#line 968 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_is_running (self);
+#line 968 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp1_) {
+#line 969 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6877 "RESTSupport.c"
+ }
+#line 971 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = self->priv->session;
+#line 971 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = token;
+#line 971 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = g_strdup (_tmp3_);
+#line 971 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp2_->access_token);
+#line 971 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_->access_token = _tmp4_;
+#line 973 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_do_fetch_username (self);
+#line 6891 "RESTSupport.c"
+}
+
+
+static void _publishing_rest_support_google_publisher_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 977 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_on_fetch_username_transaction_completed ((PublishingRESTSupportGooglePublisher*) self, _sender);
+#line 6898 "RESTSupport.c"
+}
+
+
+static void _publishing_rest_support_google_publisher_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 978 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_on_fetch_username_transaction_error ((PublishingRESTSupportGooglePublisher*) self, _sender, err);
+#line 6905 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_on_fetch_username_transaction_completed (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 976 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 976 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 977 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = txn;
+#line 977 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 977 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed, self);
+#line 978 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = txn;
+#line 978 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 978 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error, self);
+#line 980 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:980: EVENT: username fetch transaction completed succ" \
+"essfully.");
+#line 982 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (self);
+#line 982 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp4_) {
+#line 983 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6942 "RESTSupport.c"
+ }
+#line 985 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = txn;
+#line 985 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_);
+#line 985 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = _tmp6_;
+#line 985 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_do_extract_username (self, _tmp7_);
+#line 985 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp7_);
+#line 6954 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_on_fetch_username_transaction_error (PublishingRESTSupportGooglePublisher* self, PublishingRESTSupportTransaction* txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+#line 988 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 988 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 990 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = txn;
+#line 990 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 990 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed, self);
+#line 991 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = txn;
+#line 991 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 991 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rest_support_google_publisher_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error, self);
+#line 993 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:993: EVENT: username fetch transaction caused a netwo" \
+"rk error");
+#line 995 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (self);
+#line 995 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp4_) {
+#line 996 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 6990 "RESTSupport.c"
+ }
+#line 998 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = self->priv->host;
+#line 998 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = err;
+#line 998 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_post_error (_tmp5_, _tmp6_);
+#line 6998 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_do_get_access_tokens (PublishingRESTSupportGooglePublisher* self, const gchar* auth_code) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRESTSupportGooglePublisherGetAccessTokensTransaction* tokens_txn = NULL;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRESTSupportGooglePublisherGetAccessTokensTransaction* _tmp3_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1001 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1001 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (auth_code != NULL);
+#line 1002 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:1002: ACTION: exchanging authorization code for acces" \
+"s & refresh tokens");
+#line 1004 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->host;
+#line 1004 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_install_login_wait_pane (_tmp0_);
+#line 1006 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->session;
+#line 1006 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = auth_code;
+#line 1006 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = publishing_rest_support_google_publisher_get_access_tokens_transaction_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp2_);
+#line 1006 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ tokens_txn = _tmp3_;
+#line 1007 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (tokens_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rest_support_google_publisher_on_get_access_tokens_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 1008 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (tokens_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rest_support_google_publisher_on_get_access_tokens_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 7031 "RESTSupport.c"
+ {
+#line 1011 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (tokens_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 1011 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1011 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 7039 "RESTSupport.c"
+ goto __catch4_spit_publishing_publishing_error;
+ }
+#line 1011 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (tokens_txn);
+#line 1011 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1011 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 1011 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7050 "RESTSupport.c"
+ }
+ }
+ goto __finally4;
+ __catch4_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 1010 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ err = _inner_error_;
+#line 1010 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = NULL;
+#line 1013 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = self->priv->host;
+#line 1013 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = err;
+#line 1013 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_);
+#line 1010 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (err);
+#line 7071 "RESTSupport.c"
+ }
+ __finally4:
+#line 1010 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1010 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (tokens_txn);
+#line 1010 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 1010 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 1010 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7084 "RESTSupport.c"
+ }
+#line 1001 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (tokens_txn);
+#line 7088 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_do_hosted_web_authentication (PublishingRESTSupportGooglePublisher* self) {
+ gchar* user_authorization_url = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane* _tmp27_ = NULL;
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane* _tmp28_ = NULL;
+ SpitPublishingPluginHost* _tmp29_ = NULL;
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane* _tmp30_ = NULL;
+#line 1017 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1018 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:1018: ACTION: running OAuth authentication flow in ho" \
+"sted web pane.");
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = soup_uri_encode ("urn:ietf:wg:oauth:2.0:oob", NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _tmp0_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = g_strconcat ("https://accounts.google.com/o/oauth2/auth?" "response_type=code&" "client_id=" PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_ID "&" "redirect_uri=", _tmp1_, NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = _tmp2_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = g_strconcat (_tmp3_, "&", NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = _tmp4_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = g_strconcat (_tmp5_, "scope=", NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = _tmp6_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = self->priv->scope;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = soup_uri_encode (_tmp8_, NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = _tmp9_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = g_strconcat (_tmp7_, _tmp10_, NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = _tmp11_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = g_strconcat (_tmp12_, "+", NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = _tmp13_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = soup_uri_encode ("https://www.googleapis.com/auth/userinfo.profile", NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp16_ = _tmp15_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp17_ = g_strconcat (_tmp14_, _tmp16_, NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp18_ = _tmp17_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp19_ = g_strconcat (_tmp18_, "&", NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp20_ = _tmp19_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp21_ = g_strconcat (_tmp20_, "state=connect&", NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp22_ = _tmp21_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp23_ = g_strconcat (_tmp22_, "access_type=offline&", NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp24_ = _tmp23_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp25_ = g_strconcat (_tmp24_, "approval_prompt=force", NULL);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp26_ = _tmp25_;
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp24_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp22_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp20_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp18_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp16_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp14_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp12_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp10_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp7_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp5_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp3_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp1_);
+#line 1020 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ user_authorization_url = _tmp26_;
+#line 1030 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp27_ = publishing_rest_support_google_publisher_web_authentication_pane_new (user_authorization_url);
+#line 1030 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->web_auth_pane);
+#line 1030 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->web_auth_pane = _tmp27_;
+#line 1031 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp28_ = self->priv->web_auth_pane;
+#line 1031 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect_object (_tmp28_, "authorized", (GCallback) _publishing_rest_support_google_publisher_on_web_auth_pane_authorized_publishing_rest_support_google_publisher_web_authentication_pane_authorized, self, 0);
+#line 1033 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp29_ = self->priv->host;
+#line 1033 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp30_ = self->priv->web_auth_pane;
+#line 1033 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp29_, G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 1017 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (user_authorization_url);
+#line 7227 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_do_exchange_refresh_token_for_access_token (PublishingRESTSupportGooglePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction* txn = NULL;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp1_ = NULL;
+ PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction* _tmp2_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1037 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1038 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:1038: ACTION: exchanging OAuth refresh token for OAut" \
+"h access token.");
+#line 1040 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->host;
+#line 1040 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_install_login_wait_pane (_tmp0_);
+#line 1042 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->session;
+#line 1042 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = publishing_rest_support_google_publisher_refresh_access_token_transaction_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1042 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ txn = _tmp2_;
+#line 1044 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rest_support_google_publisher_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed, self, 0);
+#line 1045 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rest_support_google_publisher_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 7255 "RESTSupport.c"
+ {
+#line 1048 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 1048 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1048 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 7263 "RESTSupport.c"
+ goto __catch5_spit_publishing_publishing_error;
+ }
+#line 1048 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 1048 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1048 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 1048 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7274 "RESTSupport.c"
+ }
+ }
+ goto __finally5;
+ __catch5_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ GError* _tmp4_ = NULL;
+#line 1047 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ err = _inner_error_;
+#line 1047 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = NULL;
+#line 1050 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = self->priv->host;
+#line 1050 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = err;
+#line 1050 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_post_error (_tmp3_, _tmp4_);
+#line 1047 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (err);
+#line 7295 "RESTSupport.c"
+ }
+ __finally5:
+#line 1047 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1047 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 1047 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 1047 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 1047 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7308 "RESTSupport.c"
+ }
+#line 1037 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 7312 "RESTSupport.c"
+}
+
+
+static gpointer _json_object_ref0 (gpointer self) {
+#line 1067 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self ? json_object_ref (self) : NULL;
+#line 7319 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_do_extract_tokens (PublishingRESTSupportGooglePublisher* self, const gchar* response_body) {
+ JsonParser* parser = NULL;
+ JsonParser* _tmp0_ = NULL;
+ JsonObject* response_obj = NULL;
+ JsonParser* _tmp10_ = NULL;
+ JsonNode* _tmp11_ = NULL;
+ JsonObject* _tmp12_ = NULL;
+ JsonObject* _tmp13_ = NULL;
+ gboolean _tmp14_ = FALSE;
+ JsonObject* _tmp15_ = NULL;
+ gboolean _tmp16_ = FALSE;
+ JsonObject* _tmp22_ = NULL;
+ gboolean _tmp23_ = FALSE;
+ JsonObject* _tmp29_ = NULL;
+ gboolean _tmp30_ = FALSE;
+ GError * _inner_error_ = NULL;
+#line 1054 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1054 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (response_body != NULL);
+#line 1055 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:1055: ACTION: extracting OAuth tokens from body of se" \
+"rver response");
+#line 1057 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = json_parser_new ();
+#line 1057 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ parser = _tmp0_;
+#line 7349 "RESTSupport.c"
+ {
+ JsonParser* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+#line 1060 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = parser;
+#line 1060 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = response_body;
+#line 1060 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ json_parser_load_from_data (_tmp1_, _tmp2_, (gssize) -1, &_inner_error_);
+#line 1060 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 7361 "RESTSupport.c"
+ goto __catch6_g_error;
+ }
+ }
+ goto __finally6;
+ __catch6_g_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ GError* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 1059 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ err = _inner_error_;
+#line 1059 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = NULL;
+#line 1062 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = self->priv->host;
+#line 1062 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = err;
+#line 1062 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = _tmp4_->message;
+#line 1062 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = g_strconcat ("Couldn't parse JSON response: ", _tmp5_, NULL);
+#line 1062 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = _tmp6_;
+#line 1062 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp7_);
+#line 1062 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = _tmp8_;
+#line 1062 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_post_error (_tmp3_, _tmp9_);
+#line 1062 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (_tmp9_);
+#line 1062 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp7_);
+#line 1064 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (err);
+#line 1064 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (parser);
+#line 1064 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7406 "RESTSupport.c"
+ }
+ __finally6:
+#line 1059 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1059 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (parser);
+#line 1059 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 1059 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 1059 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7419 "RESTSupport.c"
+ }
+#line 1067 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = parser;
+#line 1067 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = json_parser_get_root (_tmp10_);
+#line 1067 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = json_node_get_object (_tmp11_);
+#line 1067 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = _json_object_ref0 (_tmp12_);
+#line 1067 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ response_obj = _tmp13_;
+#line 1069 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = response_obj;
+#line 1069 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp16_ = json_object_has_member (_tmp15_, "access_token");
+#line 1069 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (!_tmp16_) {
+#line 7437 "RESTSupport.c"
+ JsonObject* _tmp17_ = NULL;
+ gboolean _tmp18_ = FALSE;
+#line 1069 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp17_ = response_obj;
+#line 1069 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp18_ = json_object_has_member (_tmp17_, "refresh_token");
+#line 1069 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = !_tmp18_;
+#line 7446 "RESTSupport.c"
+ } else {
+#line 1069 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = FALSE;
+#line 7450 "RESTSupport.c"
+ }
+#line 1069 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp14_) {
+#line 7454 "RESTSupport.c"
+ SpitPublishingPluginHost* _tmp19_ = NULL;
+ GError* _tmp20_ = NULL;
+ GError* _tmp21_ = NULL;
+#line 1070 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp19_ = self->priv->host;
+#line 1070 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp20_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "neither access_token nor refresh_token not present in server response");
+#line 1070 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp21_ = _tmp20_;
+#line 1070 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_post_error (_tmp19_, _tmp21_);
+#line 1070 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (_tmp21_);
+#line 1072 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _json_object_unref0 (response_obj);
+#line 1072 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (parser);
+#line 1072 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7474 "RESTSupport.c"
+ }
+#line 1075 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp22_ = response_obj;
+#line 1075 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp23_ = json_object_has_member (_tmp22_, "refresh_token");
+#line 1075 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp23_) {
+#line 7482 "RESTSupport.c"
+ gchar* refresh_token = NULL;
+ JsonObject* _tmp24_ = NULL;
+ const gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+#line 1076 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp24_ = response_obj;
+#line 1076 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp25_ = json_object_get_string_member (_tmp24_, "refresh_token");
+#line 1076 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp26_ = g_strdup (_tmp25_);
+#line 1076 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ refresh_token = _tmp26_;
+#line 1078 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp27_ = refresh_token;
+#line 1078 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_strcmp0 (_tmp27_, "") != 0) {
+#line 7500 "RESTSupport.c"
+ const gchar* _tmp28_ = NULL;
+#line 1079 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp28_ = refresh_token;
+#line 1079 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_on_refresh_token_available (self, _tmp28_);
+#line 7506 "RESTSupport.c"
+ }
+#line 1075 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (refresh_token);
+#line 7510 "RESTSupport.c"
+ }
+#line 1082 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp29_ = response_obj;
+#line 1082 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp30_ = json_object_has_member (_tmp29_, "access_token");
+#line 1082 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp30_) {
+#line 7518 "RESTSupport.c"
+ gchar* access_token = NULL;
+ JsonObject* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ gchar* _tmp33_ = NULL;
+ const gchar* _tmp34_ = NULL;
+#line 1083 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp31_ = response_obj;
+#line 1083 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp32_ = json_object_get_string_member (_tmp31_, "access_token");
+#line 1083 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp33_ = g_strdup (_tmp32_);
+#line 1083 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ access_token = _tmp33_;
+#line 1085 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp34_ = access_token;
+#line 1085 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_strcmp0 (_tmp34_, "") != 0) {
+#line 7536 "RESTSupport.c"
+ const gchar* _tmp35_ = NULL;
+#line 1086 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp35_ = access_token;
+#line 1086 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_on_access_token_available (self, _tmp35_);
+#line 7542 "RESTSupport.c"
+ }
+#line 1082 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (access_token);
+#line 7546 "RESTSupport.c"
+ }
+#line 1054 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _json_object_unref0 (response_obj);
+#line 1054 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (parser);
+#line 7552 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_do_fetch_username (PublishingRESTSupportGooglePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingRESTSupportGooglePublisherUsernameFetchTransaction* txn = NULL;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp2_ = NULL;
+ PublishingRESTSupportGooglePublisherUsernameFetchTransaction* _tmp3_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1090 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1091 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:1091: ACTION: running network transaction to fetch us" \
+"ername.");
+#line 1093 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->host;
+#line 1093 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_install_login_wait_pane (_tmp0_);
+#line 1094 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->host;
+#line 1094 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE);
+#line 1096 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = self->priv->session;
+#line 1096 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = publishing_rest_support_google_publisher_username_fetch_transaction_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession));
+#line 1096 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ txn = _tmp3_;
+#line 1097 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rest_support_google_publisher_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed, self, 0);
+#line 1098 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rest_support_google_publisher_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 7585 "RESTSupport.c"
+ {
+#line 1101 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 1101 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 7591 "RESTSupport.c"
+ goto __catch7_g_error;
+ }
+ }
+ goto __finally7;
+ __catch7_g_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 1100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ err = _inner_error_;
+#line 1100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = NULL;
+#line 1103 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = self->priv->host;
+#line 1103 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = err;
+#line 1103 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_);
+#line 1100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (err);
+#line 7613 "RESTSupport.c"
+ }
+ __finally7:
+#line 1100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 1100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 1100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 1100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7626 "RESTSupport.c"
+ }
+#line 1090 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 7630 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_do_extract_username (PublishingRESTSupportGooglePublisher* self, const gchar* response_body) {
+ JsonParser* parser = NULL;
+ JsonParser* _tmp0_ = NULL;
+ JsonObject* response_obj = NULL;
+ JsonParser* _tmp10_ = NULL;
+ JsonNode* _tmp11_ = NULL;
+ JsonObject* _tmp12_ = NULL;
+ JsonObject* _tmp13_ = NULL;
+ JsonObject* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+ JsonObject* _tmp23_ = NULL;
+ gboolean _tmp24_ = FALSE;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp32_ = NULL;
+ gboolean _tmp33_ = FALSE;
+ GError * _inner_error_ = NULL;
+#line 1107 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1107 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (response_body != NULL);
+#line 1108 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_debug ("RESTSupport.vala:1108: ACTION: extracting username from body of server" \
+" response");
+#line 1110 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = json_parser_new ();
+#line 1110 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ parser = _tmp0_;
+#line 7659 "RESTSupport.c"
+ {
+ JsonParser* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+#line 1113 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = parser;
+#line 1113 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = response_body;
+#line 1113 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ json_parser_load_from_data (_tmp1_, _tmp2_, (gssize) -1, &_inner_error_);
+#line 1113 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 7671 "RESTSupport.c"
+ goto __catch8_g_error;
+ }
+ }
+ goto __finally8;
+ __catch8_g_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ GError* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 1112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ err = _inner_error_;
+#line 1112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _inner_error_ = NULL;
+#line 1115 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = self->priv->host;
+#line 1115 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = err;
+#line 1115 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = _tmp4_->message;
+#line 1115 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = g_strconcat ("Couldn't parse JSON response: ", _tmp5_, NULL);
+#line 1115 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = _tmp6_;
+#line 1115 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp7_);
+#line 1115 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = _tmp8_;
+#line 1115 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_post_error (_tmp3_, _tmp9_);
+#line 1115 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (_tmp9_);
+#line 1115 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp7_);
+#line 1117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_error_free0 (err);
+#line 1117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (parser);
+#line 1117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7716 "RESTSupport.c"
+ }
+ __finally8:
+#line 1112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (parser);
+#line 1112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.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 1112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 1112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7729 "RESTSupport.c"
+ }
+#line 1120 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = parser;
+#line 1120 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = json_parser_get_root (_tmp10_);
+#line 1120 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = json_node_get_object (_tmp11_);
+#line 1120 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = _json_object_ref0 (_tmp12_);
+#line 1120 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ response_obj = _tmp13_;
+#line 1122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = response_obj;
+#line 1122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = json_object_has_member (_tmp14_, "name");
+#line 1122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp15_) {
+#line 7747 "RESTSupport.c"
+ gchar* username = NULL;
+ JsonObject* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+#line 1123 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp16_ = response_obj;
+#line 1123 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp17_ = json_object_get_string_member (_tmp16_, "name");
+#line 1123 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp18_ = g_strdup (_tmp17_);
+#line 1123 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ username = _tmp18_;
+#line 1125 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp19_ = username;
+#line 1125 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_strcmp0 (_tmp19_, "") != 0) {
+#line 7765 "RESTSupport.c"
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+#line 1126 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp20_ = self->priv->session;
+#line 1126 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp21_ = username;
+#line 1126 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp22_ = g_strdup (_tmp21_);
+#line 1126 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp20_->user_name);
+#line 1126 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp20_->user_name = _tmp22_;
+#line 7779 "RESTSupport.c"
+ }
+#line 1122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (username);
+#line 7783 "RESTSupport.c"
+ }
+#line 1129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp23_ = response_obj;
+#line 1129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp24_ = json_object_has_member (_tmp23_, "access_token");
+#line 1129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp24_) {
+#line 7791 "RESTSupport.c"
+ gchar* access_token = NULL;
+ JsonObject* _tmp25_ = NULL;
+ const gchar* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+#line 1130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp25_ = response_obj;
+#line 1130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp26_ = json_object_get_string_member (_tmp25_, "access_token");
+#line 1130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp27_ = g_strdup (_tmp26_);
+#line 1130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ access_token = _tmp27_;
+#line 1132 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp28_ = access_token;
+#line 1132 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (g_strcmp0 (_tmp28_, "") != 0) {
+#line 7809 "RESTSupport.c"
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp29_ = NULL;
+ const gchar* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+#line 1133 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp29_ = self->priv->session;
+#line 1133 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp30_ = access_token;
+#line 1133 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp31_ = g_strdup (_tmp30_);
+#line 1133 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp29_->access_token);
+#line 1133 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp29_->access_token = _tmp31_;
+#line 7823 "RESTSupport.c"
+ }
+#line 1129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (access_token);
+#line 7827 "RESTSupport.c"
+ }
+#line 1138 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp32_ = self->priv->session;
+#line 1138 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp33_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1138 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp33_, "session.is_authenticated()");
+#line 1140 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_on_login_flow_complete (self);
+#line 1107 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _json_object_unref0 (response_obj);
+#line 1107 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (parser);
+#line 7841 "RESTSupport.c"
+}
+
+
+SpitPublishingPluginHost* publishing_rest_support_google_publisher_get_host (PublishingRESTSupportGooglePublisher* self) {
+ SpitPublishingPluginHost* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+#line 1143 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), NULL);
+#line 1144 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->host;
+#line 1144 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp0_;
+#line 1144 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 7856 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportGoogleSession* publishing_rest_support_google_publisher_get_session (PublishingRESTSupportGooglePublisher* self) {
+ PublishingRESTSupportGoogleSession* result = NULL;
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp0_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+#line 1147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), NULL);
+#line 1148 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->session;
+#line 1148 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _publishing_rest_support_session_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession));
+#line 1148 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp1_;
+#line 1148 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 7874 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_google_publisher_start_oauth_flow (PublishingRESTSupportGooglePublisher* self, const gchar* refresh_token) {
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+#line 1151 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1152 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = refresh_token;
+#line 1152 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp1_ != NULL) {
+#line 7887 "RESTSupport.c"
+ const gchar* _tmp2_ = NULL;
+#line 1152 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = refresh_token;
+#line 1152 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = g_strcmp0 (_tmp2_, "") != 0;
+#line 7893 "RESTSupport.c"
+ } else {
+#line 1152 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = FALSE;
+#line 7897 "RESTSupport.c"
+ }
+#line 1152 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp0_) {
+#line 7901 "RESTSupport.c"
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 1153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = self->priv->session;
+#line 1153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = refresh_token;
+#line 1153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 1153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp3_->refresh_token);
+#line 1153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_->refresh_token = _tmp5_;
+#line 1154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_do_exchange_refresh_token_for_access_token (self);
+#line 7917 "RESTSupport.c"
+ } else {
+ gboolean _tmp6_ = FALSE;
+#line 1156 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = publishing_rest_support_google_publisher_web_authentication_pane_is_cache_dirty ();
+#line 1156 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp6_) {
+#line 7924 "RESTSupport.c"
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+#line 1157 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = self->priv->host;
+#line 1157 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = _ ("You have already logged in and out of a Google service during this Sho" \
+"twell session.\n" \
+"\n" \
+"To continue publishing to Google services, quit and restart Shotwell, " \
+"then try publishing again.");
+#line 1157 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ spit_publishing_plugin_host_install_static_message_pane (_tmp7_, _tmp8_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 1158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7935 "RESTSupport.c"
+ }
+#line 1161 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_do_hosted_web_authentication (self);
+#line 7939 "RESTSupport.c"
+ }
+}
+
+
+static void publishing_rest_support_google_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self) {
+#line 1165 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_on_login_flow_complete'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 1165 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7949 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_google_publisher_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self) {
+#line 1165 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1165 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->on_login_flow_complete (self);
+#line 7958 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* self) {
+#line 1167 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_do_logout'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 1167 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 7967 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_google_publisher_do_logout (PublishingRESTSupportGooglePublisher* self) {
+#line 1167 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1167 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->do_logout (self);
+#line 7976 "RESTSupport.c"
+}
+
+
+static gboolean publishing_rest_support_google_publisher_real_is_running (PublishingRESTSupportGooglePublisher* self) {
+#line 1169 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_is_running'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 1169 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return FALSE;
+#line 7985 "RESTSupport.c"
+}
+
+
+gboolean publishing_rest_support_google_publisher_is_running (PublishingRESTSupportGooglePublisher* self) {
+#line 1169 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), FALSE);
+#line 1169 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->is_running (self);
+#line 7994 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_real_start (PublishingRESTSupportGooglePublisher* self) {
+#line 1171 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_start'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 1171 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 8003 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_google_publisher_start (PublishingRESTSupportGooglePublisher* self) {
+#line 1171 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1171 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->start (self);
+#line 8012 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_real_stop (PublishingRESTSupportGooglePublisher* self) {
+#line 1173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_stop'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 1173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 8021 "RESTSupport.c"
+}
+
+
+void publishing_rest_support_google_publisher_stop (PublishingRESTSupportGooglePublisher* self) {
+#line 1173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self));
+#line 1173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->stop (self);
+#line 8030 "RESTSupport.c"
+}
+
+
+static SpitPublishingService* publishing_rest_support_google_publisher_real_get_service (SpitPublishingPublisher* base) {
+ PublishingRESTSupportGooglePublisher * self;
+ SpitPublishingService* result = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+#line 1175 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher);
+#line 1176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->service;
+#line 1176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 1176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp1_;
+#line 1176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 8049 "RESTSupport.c"
+}
+
+
+static PublishingRESTSupportGooglePublisherGoogleSessionImpl* publishing_rest_support_google_publisher_google_session_impl_construct (GType object_type) {
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl* self = NULL;
+#line 704 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportGooglePublisherGoogleSessionImpl*) publishing_rest_support_google_session_construct (object_type);
+#line 705 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->access_token);
+#line 705 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->access_token = NULL;
+#line 706 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->user_name);
+#line 706 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->user_name = NULL;
+#line 707 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->refresh_token);
+#line 707 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->refresh_token = NULL;
+#line 704 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 8071 "RESTSupport.c"
+}
+
+
+static PublishingRESTSupportGooglePublisherGoogleSessionImpl* publishing_rest_support_google_publisher_google_session_impl_new (void) {
+#line 704 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_google_publisher_google_session_impl_construct (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL);
+#line 8078 "RESTSupport.c"
+}
+
+
+static gboolean publishing_rest_support_google_publisher_google_session_impl_real_is_authenticated (PublishingRESTSupportSession* base) {
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl * self;
+ gboolean result = FALSE;
+ const gchar* _tmp0_ = NULL;
+#line 710 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl);
+#line 711 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->access_token;
+#line 711 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp0_ != NULL;
+#line 711 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 8094 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_google_publisher_google_session_impl_real_get_user_name (PublishingRESTSupportGoogleSession* base) {
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl * self;
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 714 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl);
+#line 715 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->user_name;
+#line 715 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp0_ != NULL, "user_name != null");
+#line 716 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->user_name;
+#line 716 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 716 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp2_;
+#line 716 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 8118 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_google_publisher_google_session_impl_real_get_access_token (PublishingRESTSupportGoogleSession* base) {
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl * self;
+ gchar* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 719 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl);
+#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp0_, "is_authenticated()");
+#line 721 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->access_token;
+#line 721 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 721 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp2_;
+#line 721 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 8142 "RESTSupport.c"
+}
+
+
+static gchar* publishing_rest_support_google_publisher_google_session_impl_real_get_refresh_token (PublishingRESTSupportGoogleSession* base) {
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl * self;
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl);
+#line 725 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->refresh_token;
+#line 725 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp0_ != NULL, "refresh_token != null");
+#line 726 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->refresh_token;
+#line 726 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 726 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp2_;
+#line 726 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 8166 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_google_session_impl_real_deauthenticate (PublishingRESTSupportGoogleSession* base) {
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl * self;
+#line 729 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl);
+#line 730 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->access_token);
+#line 730 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->access_token = NULL;
+#line 731 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->user_name);
+#line 731 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->user_name = NULL;
+#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->refresh_token);
+#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->refresh_token = NULL;
+#line 8186 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_google_session_impl_class_init (PublishingRESTSupportGooglePublisherGoogleSessionImplClass * klass) {
+#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_google_session_impl_parent_class = g_type_class_peek_parent (klass);
+#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rest_support_google_publisher_google_session_impl_finalize;
+#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = publishing_rest_support_google_publisher_google_session_impl_real_is_authenticated;
+#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGoogleSessionClass *) klass)->get_user_name = publishing_rest_support_google_publisher_google_session_impl_real_get_user_name;
+#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGoogleSessionClass *) klass)->get_access_token = publishing_rest_support_google_publisher_google_session_impl_real_get_access_token;
+#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGoogleSessionClass *) klass)->get_refresh_token = publishing_rest_support_google_publisher_google_session_impl_real_get_refresh_token;
+#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGoogleSessionClass *) klass)->deauthenticate = publishing_rest_support_google_publisher_google_session_impl_real_deauthenticate;
+#line 8205 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_google_session_impl_instance_init (PublishingRESTSupportGooglePublisherGoogleSessionImpl * self) {
+}
+
+
+static void publishing_rest_support_google_publisher_google_session_impl_finalize (PublishingRESTSupportSession* obj) {
+ PublishingRESTSupportGooglePublisherGoogleSessionImpl * self;
+#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl);
+#line 700 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->access_token);
+#line 701 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->user_name);
+#line 702 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->refresh_token);
+#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_rest_support_google_publisher_google_session_impl_parent_class)->finalize (obj);
+#line 8225 "RESTSupport.c"
+}
+
+
+static GType publishing_rest_support_google_publisher_google_session_impl_get_type (void) {
+ static volatile gsize publishing_rest_support_google_publisher_google_session_impl_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_google_publisher_google_session_impl_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherGoogleSessionImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_google_session_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisherGoogleSessionImpl), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_google_session_impl_instance_init, NULL };
+ GType publishing_rest_support_google_publisher_google_session_impl_type_id;
+ publishing_rest_support_google_publisher_google_session_impl_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, "PublishingRESTSupportGooglePublisherGoogleSessionImpl", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rest_support_google_publisher_google_session_impl_type_id__volatile, publishing_rest_support_google_publisher_google_session_impl_type_id);
+ }
+ return publishing_rest_support_google_publisher_google_session_impl_type_id__volatile;
+}
+
+
+static void _publishing_rest_support_google_publisher_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed (WebKitWebView* _sender, WebKitLoadEvent load_event, gpointer self) {
+#line 753 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_web_authentication_pane_on_page_load_changed ((PublishingRESTSupportGooglePublisherWebAuthenticationPane*) self, load_event);
+#line 8244 "RESTSupport.c"
+}
+
+
+static gboolean __lambda4_ (PublishingRESTSupportGooglePublisherWebAuthenticationPane* self) {
+ gboolean result = FALSE;
+#line 754 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = FALSE;
+#line 754 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 8254 "RESTSupport.c"
+}
+
+
+static gboolean ___lambda4__webkit_web_view_context_menu (WebKitWebView* _sender, WebKitContextMenu* context_menu, GdkEvent* event, WebKitHitTestResult* hit_test_result, gpointer self) {
+ gboolean result;
+ result = __lambda4_ ((PublishingRESTSupportGooglePublisherWebAuthenticationPane*) self);
+#line 754 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 8263 "RESTSupport.c"
+}
+
+
+static PublishingRESTSupportGooglePublisherWebAuthenticationPane* publishing_rest_support_google_publisher_web_authentication_pane_construct (GType object_type, const gchar* auth_sequence_start_url) {
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane * self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ GtkBox* _tmp2_ = NULL;
+ WebKitWebView* _tmp3_ = NULL;
+ WebKitWebView* _tmp4_ = NULL;
+ WebKitSettings* _tmp5_ = NULL;
+ WebKitWebView* _tmp6_ = NULL;
+ WebKitWebView* _tmp7_ = NULL;
+ GtkBox* _tmp8_ = NULL;
+ WebKitWebView* _tmp9_ = NULL;
+#line 745 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (auth_sequence_start_url != NULL, NULL);
+#line 745 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportGooglePublisherWebAuthenticationPane*) g_object_new (object_type, NULL);
+#line 746 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = auth_sequence_start_url;
+#line 746 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 746 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->priv->auth_sequence_start_url);
+#line 746 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->auth_sequence_start_url = _tmp1_;
+#line 748 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 748 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_ref_sink (_tmp2_);
+#line 748 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 748 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->pane_widget = _tmp2_;
+#line 750 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = (WebKitWebView*) webkit_web_view_new ();
+#line 750 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_object_ref_sink (_tmp3_);
+#line 750 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->webview);
+#line 750 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv->webview = _tmp3_;
+#line 751 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = self->priv->webview;
+#line 751 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = webkit_web_view_get_settings (_tmp4_);
+#line 751 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ webkit_settings_set_enable_plugins (_tmp5_, FALSE);
+#line 753 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = self->priv->webview;
+#line 753 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect_object (_tmp6_, "load-changed", (GCallback) _publishing_rest_support_google_publisher_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed, self, 0);
+#line 754 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = self->priv->webview;
+#line 754 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_connect_object (_tmp7_, "context-menu", (GCallback) ___lambda4__webkit_web_view_context_menu, self, 0);
+#line 756 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = self->priv->pane_widget;
+#line 756 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = self->priv->webview;
+#line 756 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ gtk_box_pack_start (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
+#line 745 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 8329 "RESTSupport.c"
+}
+
+
+static PublishingRESTSupportGooglePublisherWebAuthenticationPane* publishing_rest_support_google_publisher_web_authentication_pane_new (const gchar* auth_sequence_start_url) {
+#line 745 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_google_publisher_web_authentication_pane_construct (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, auth_sequence_start_url);
+#line 8336 "RESTSupport.c"
+}
+
+
+static gboolean publishing_rest_support_google_publisher_web_authentication_pane_is_cache_dirty (void) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 760 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_web_authentication_pane_cache_dirty;
+#line 760 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp0_;
+#line 760 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 8349 "RESTSupport.c"
+}
+
+
+static gint string_index_of (const gchar* self, const gchar* needle, gint start_index) {
+ gint result = 0;
+ gchar* _result_ = NULL;
+ gint _tmp0_ = 0;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 987 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, 0);
+#line 987 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (needle != NULL, 0);
+#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = start_index;
+#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = needle;
+#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = strstr (((gchar*) self) + _tmp0_, (gchar*) _tmp1_);
+#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp2_;
+#line 990 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = _result_;
+#line 990 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp3_ != NULL) {
+#line 8376 "RESTSupport.c"
+ gchar* _tmp4_ = NULL;
+#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = _result_;
+#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = (gint) (_tmp4_ - ((gchar*) self));
+#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 8384 "RESTSupport.c"
+ } else {
+#line 993 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = -1;
+#line 993 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 8390 "RESTSupport.c"
+ }
+}
+
+
+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 8414 "RESTSupport.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 8422 "RESTSupport.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 8434 "RESTSupport.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 8458 "RESTSupport.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 8464 "RESTSupport.c"
+ } else {
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = FALSE;
+#line 8468 "RESTSupport.c"
+ }
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp0_) {
+#line 8472 "RESTSupport.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 8484 "RESTSupport.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 8494 "RESTSupport.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 8500 "RESTSupport.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 8514 "RESTSupport.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 8524 "RESTSupport.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 8530 "RESTSupport.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 8539 "RESTSupport.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 8559 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_web_authentication_pane_on_page_load (PublishingRESTSupportGooglePublisherWebAuthenticationPane* self) {
+ GtkBox* _tmp0_ = NULL;
+ GdkWindow* _tmp1_ = NULL;
+ GdkCursor* _tmp2_ = NULL;
+ GdkCursor* _tmp3_ = NULL;
+ gchar* page_title = NULL;
+ WebKitWebView* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+#line 763 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_WEB_AUTHENTICATION_PANE (self));
+#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = gdk_cursor_new (GDK_LEFT_PTR);
+#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = _tmp2_;
+#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ gdk_window_set_cursor (_tmp1_, _tmp3_);
+#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (_tmp3_);
+#line 766 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = self->priv->webview;
+#line 766 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = webkit_web_view_get_title (_tmp4_);
+#line 766 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = g_strdup (_tmp5_);
+#line 766 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ page_title = _tmp6_;
+#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = page_title;
+#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = string_index_of (_tmp7_, "state=connect", 0);
+#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp8_ > 0) {
+#line 8602 "RESTSupport.c"
+ gint auth_code_field_start = 0;
+ const gchar* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ gint _tmp11_ = 0;
+ gchar* auth_code = NULL;
+ const gchar* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ gchar* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+#line 768 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = page_title;
+#line 768 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp10_ = string_index_of (_tmp9_, "code=", 0);
+#line 768 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ auth_code_field_start = _tmp10_;
+#line 769 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp11_ = auth_code_field_start;
+#line 769 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ if (_tmp11_ < 0) {
+#line 770 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (page_title);
+#line 770 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 8626 "RESTSupport.c"
+ }
+#line 772 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp12_ = page_title;
+#line 772 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp13_ = auth_code_field_start;
+#line 772 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp14_ = string_substring (_tmp12_, (glong) (_tmp13_ + 5), (glong) -1);
+#line 772 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ auth_code = _tmp14_;
+#line 775 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_web_authentication_pane_cache_dirty = TRUE;
+#line 777 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp15_ = auth_code;
+#line 777 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_emit_by_name (self, "authorized", _tmp15_);
+#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (auth_code);
+#line 8644 "RESTSupport.c"
+ }
+#line 763 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (page_title);
+#line 8648 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_web_authentication_pane_on_load_started (PublishingRESTSupportGooglePublisherWebAuthenticationPane* self) {
+ GtkBox* _tmp0_ = NULL;
+ GdkWindow* _tmp1_ = NULL;
+ GdkCursor* _tmp2_ = NULL;
+ GdkCursor* _tmp3_ = NULL;
+#line 781 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_WEB_AUTHENTICATION_PANE (self));
+#line 782 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 782 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 782 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = gdk_cursor_new (GDK_WATCH);
+#line 782 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = _tmp2_;
+#line 782 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ gdk_window_set_cursor (_tmp1_, _tmp3_);
+#line 782 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (_tmp3_);
+#line 8671 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_web_authentication_pane_on_page_load_changed (PublishingRESTSupportGooglePublisherWebAuthenticationPane* self, WebKitLoadEvent load_event) {
+ WebKitLoadEvent _tmp0_ = 0;
+#line 785 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_WEB_AUTHENTICATION_PANE (self));
+#line 786 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = load_event;
+#line 786 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ switch (_tmp0_) {
+#line 786 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case WEBKIT_LOAD_STARTED:
+#line 8685 "RESTSupport.c"
+ {
+#line 788 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_web_authentication_pane_on_load_started (self);
+#line 789 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ break;
+#line 8691 "RESTSupport.c"
+ }
+#line 786 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ case WEBKIT_LOAD_FINISHED:
+#line 8695 "RESTSupport.c"
+ {
+#line 791 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_web_authentication_pane_on_page_load (self);
+#line 792 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ break;
+#line 8701 "RESTSupport.c"
+ }
+ default:
+#line 786 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ break;
+#line 8706 "RESTSupport.c"
+ }
+#line 795 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return;
+#line 8710 "RESTSupport.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_rest_support_google_publisher_web_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 798 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, PublishingRESTSupportGooglePublisherWebAuthenticationPane);
+#line 799 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 799 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 8723 "RESTSupport.c"
+}
+
+
+static GtkWidget* publishing_rest_support_google_publisher_web_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 802 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, PublishingRESTSupportGooglePublisherWebAuthenticationPane);
+#line 803 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 803 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 803 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ result = _tmp1_;
+#line 803 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return result;
+#line 8742 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_web_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane * self;
+ WebKitWebView* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 806 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, PublishingRESTSupportGooglePublisherWebAuthenticationPane);
+#line 807 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = self->priv->webview;
+#line 807 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = self->priv->auth_sequence_start_url;
+#line 807 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ webkit_web_view_load_uri (_tmp0_, _tmp1_);
+#line 8758 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_web_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane * self;
+#line 810 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, PublishingRESTSupportGooglePublisherWebAuthenticationPane);
+#line 8766 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_web_authentication_pane_class_init (PublishingRESTSupportGooglePublisherWebAuthenticationPaneClass * klass) {
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_web_authentication_pane_parent_class = g_type_class_peek_parent (klass);
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRESTSupportGooglePublisherWebAuthenticationPanePrivate));
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_rest_support_google_publisher_web_authentication_pane_finalize;
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_signal_new ("authorized", PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
+#line 8779 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_web_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_web_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_rest_support_google_publisher_web_authentication_pane_real_get_preferred_geometry;
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_rest_support_google_publisher_web_authentication_pane_real_get_widget;
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_rest_support_google_publisher_web_authentication_pane_real_on_pane_installed;
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_rest_support_google_publisher_web_authentication_pane_real_on_pane_uninstalled;
+#line 8794 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_web_authentication_pane_instance_init (PublishingRESTSupportGooglePublisherWebAuthenticationPane * self) {
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv = PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_WEB_AUTHENTICATION_PANE_GET_PRIVATE (self);
+#line 8801 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_web_authentication_pane_finalize (GObject* obj) {
+ PublishingRESTSupportGooglePublisherWebAuthenticationPane * self;
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_WEB_AUTHENTICATION_PANE, PublishingRESTSupportGooglePublisherWebAuthenticationPane);
+#line 739 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->webview);
+#line 740 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 741 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->priv->auth_sequence_start_url);
+#line 736 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ G_OBJECT_CLASS (publishing_rest_support_google_publisher_web_authentication_pane_parent_class)->finalize (obj);
+#line 8817 "RESTSupport.c"
+}
+
+
+static GType publishing_rest_support_google_publisher_web_authentication_pane_get_type (void) {
+ static volatile gsize publishing_rest_support_google_publisher_web_authentication_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_google_publisher_web_authentication_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherWebAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_web_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisherWebAuthenticationPane), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_web_authentication_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_rest_support_google_publisher_web_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_rest_support_google_publisher_web_authentication_pane_type_id;
+ publishing_rest_support_google_publisher_web_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRESTSupportGooglePublisherWebAuthenticationPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_rest_support_google_publisher_web_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_rest_support_google_publisher_web_authentication_pane_type_id__volatile, publishing_rest_support_google_publisher_web_authentication_pane_type_id);
+ }
+ return publishing_rest_support_google_publisher_web_authentication_pane_type_id__volatile;
+}
+
+
+static PublishingRESTSupportGooglePublisherGetAccessTokensTransaction* publishing_rest_support_google_publisher_get_access_tokens_transaction_construct (GType object_type, PublishingRESTSupportSession* session, const gchar* auth_code) {
+ PublishingRESTSupportGooglePublisherGetAccessTokensTransaction* self = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 817 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL);
+#line 817 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (auth_code != NULL, NULL);
+#line 818 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = session;
+#line 818 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportGooglePublisherGetAccessTokensTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, _tmp0_, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_ACCESS_TOKENS_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 820 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = auth_code;
+#line 820 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "code", _tmp1_);
+#line 821 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_id", PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_ID);
+#line 822 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_secret", PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_SECRET);
+#line 823 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "redirect_uri", "urn:ietf:wg:oauth:2.0:oob");
+#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "grant_type", "authorization_code");
+#line 817 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 8861 "RESTSupport.c"
+}
+
+
+static PublishingRESTSupportGooglePublisherGetAccessTokensTransaction* publishing_rest_support_google_publisher_get_access_tokens_transaction_new (PublishingRESTSupportSession* session, const gchar* auth_code) {
+#line 817 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_google_publisher_get_access_tokens_transaction_construct (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GET_ACCESS_TOKENS_TRANSACTION, session, auth_code);
+#line 8868 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_get_access_tokens_transaction_class_init (PublishingRESTSupportGooglePublisherGetAccessTokensTransactionClass * klass) {
+#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_get_access_tokens_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 8875 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_get_access_tokens_transaction_instance_init (PublishingRESTSupportGooglePublisherGetAccessTokensTransaction * self) {
+}
+
+
+static GType publishing_rest_support_google_publisher_get_access_tokens_transaction_get_type (void) {
+ static volatile gsize publishing_rest_support_google_publisher_get_access_tokens_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_google_publisher_get_access_tokens_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherGetAccessTokensTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_get_access_tokens_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisherGetAccessTokensTransaction), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_get_access_tokens_transaction_instance_init, NULL };
+ GType publishing_rest_support_google_publisher_get_access_tokens_transaction_type_id;
+ publishing_rest_support_google_publisher_get_access_tokens_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRESTSupportGooglePublisherGetAccessTokensTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rest_support_google_publisher_get_access_tokens_transaction_type_id__volatile, publishing_rest_support_google_publisher_get_access_tokens_transaction_type_id);
+ }
+ return publishing_rest_support_google_publisher_get_access_tokens_transaction_type_id__volatile;
+}
+
+
+static PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction* publishing_rest_support_google_publisher_refresh_access_token_transaction_construct (GType object_type, PublishingRESTSupportSession* session) {
+ PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction* self = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingRESTSupportSession* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 831 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL);
+#line 832 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = session;
+#line 832 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, _tmp0_, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_REFRESH_ACCESS_TOKEN_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 834 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_id", PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_ID);
+#line 835 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_secret", PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_SECRET);
+#line 836 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = session;
+#line 836 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = publishing_rest_support_google_session_get_refresh_token (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession));
+#line 836 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = _tmp2_;
+#line 836 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "refresh_token", _tmp3_);
+#line 836 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp3_);
+#line 837 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "grant_type", "refresh_token");
+#line 831 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 8925 "RESTSupport.c"
+}
+
+
+static PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction* publishing_rest_support_google_publisher_refresh_access_token_transaction_new (PublishingRESTSupportSession* session) {
+#line 831 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_google_publisher_refresh_access_token_transaction_construct (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, session);
+#line 8932 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_refresh_access_token_transaction_class_init (PublishingRESTSupportGooglePublisherRefreshAccessTokenTransactionClass * klass) {
+#line 828 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_refresh_access_token_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 8939 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_refresh_access_token_transaction_instance_init (PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction * self) {
+}
+
+
+static GType publishing_rest_support_google_publisher_refresh_access_token_transaction_get_type (void) {
+ static volatile gsize publishing_rest_support_google_publisher_refresh_access_token_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_google_publisher_refresh_access_token_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherRefreshAccessTokenTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_refresh_access_token_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_refresh_access_token_transaction_instance_init, NULL };
+ GType publishing_rest_support_google_publisher_refresh_access_token_transaction_type_id;
+ publishing_rest_support_google_publisher_refresh_access_token_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRESTSupportGooglePublisherRefreshAccessTokenTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rest_support_google_publisher_refresh_access_token_transaction_type_id__volatile, publishing_rest_support_google_publisher_refresh_access_token_transaction_type_id);
+ }
+ return publishing_rest_support_google_publisher_refresh_access_token_transaction_type_id__volatile;
+}
+
+
+static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct_with_endpoint_url (GType object_type, PublishingRESTSupportGoogleSession* session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method) {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransaction* self = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp2_ = 0;
+#line 842 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL);
+#line 842 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (endpoint_url != NULL, NULL);
+#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = session;
+#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = endpoint_url;
+#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = method;
+#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportGooglePublisherAuthenticatedTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp2_);
+#line 842 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 8978 "RESTSupport.c"
+}
+
+
+static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new_with_endpoint_url (PublishingRESTSupportGoogleSession* session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method) {
+#line 842 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_google_publisher_authenticated_transaction_construct_with_endpoint_url (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, session, endpoint_url, method);
+#line 8985 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method) {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransaction* self = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp2_ = 0;
+ PublishingRESTSupportGoogleSession* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportGoogleSession* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 847 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL);
+#line 847 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (endpoint_url != NULL, NULL);
+#line 849 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = session;
+#line 849 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp1_ = endpoint_url;
+#line 849 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp2_ = method;
+#line 849 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportGooglePublisherAuthenticatedTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp2_);
+#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp3_ = session;
+#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp4_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _vala_assert (_tmp4_, "session.is_authenticated()");
+#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp5_ = session;
+#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp6_ = publishing_rest_support_google_session_get_access_token (_tmp5_);
+#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp7_ = _tmp6_;
+#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp8_ = g_strconcat ("Bearer ", _tmp7_, NULL);
+#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp9_ = _tmp8_;
+#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", _tmp9_);
+#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp9_);
+#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (_tmp7_);
+#line 847 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 9037 "RESTSupport.c"
+}
+
+
+PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new (PublishingRESTSupportGoogleSession* session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method) {
+#line 847 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_google_publisher_authenticated_transaction_construct (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, session, endpoint_url, method);
+#line 9044 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_authenticated_transaction_class_init (PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass * klass) {
+#line 841 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_authenticated_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 9051 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_authenticated_transaction_instance_init (PublishingRESTSupportGooglePublisherAuthenticatedTransaction * self) {
+}
+
+
+GType publishing_rest_support_google_publisher_authenticated_transaction_get_type (void) {
+ static volatile gsize publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_authenticated_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisherAuthenticatedTransaction), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_authenticated_transaction_instance_init, NULL };
+ GType publishing_rest_support_google_publisher_authenticated_transaction_type_id;
+ publishing_rest_support_google_publisher_authenticated_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRESTSupportGooglePublisherAuthenticatedTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile, publishing_rest_support_google_publisher_authenticated_transaction_type_id);
+ }
+ return publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile;
+}
+
+
+static PublishingRESTSupportGooglePublisherUsernameFetchTransaction* publishing_rest_support_google_publisher_username_fetch_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session) {
+ PublishingRESTSupportGooglePublisherUsernameFetchTransaction* self = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+#line 859 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL);
+#line 860 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _tmp0_ = session;
+#line 860 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = (PublishingRESTSupportGooglePublisherUsernameFetchTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, _tmp0_, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_USERNAME_FETCH_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 859 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return self;
+#line 9082 "RESTSupport.c"
+}
+
+
+static PublishingRESTSupportGooglePublisherUsernameFetchTransaction* publishing_rest_support_google_publisher_username_fetch_transaction_new (PublishingRESTSupportGoogleSession* session) {
+#line 859 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ return publishing_rest_support_google_publisher_username_fetch_transaction_construct (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_USERNAME_FETCH_TRANSACTION, session);
+#line 9089 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_username_fetch_transaction_class_init (PublishingRESTSupportGooglePublisherUsernameFetchTransactionClass * klass) {
+#line 856 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_username_fetch_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 9096 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_username_fetch_transaction_instance_init (PublishingRESTSupportGooglePublisherUsernameFetchTransaction * self) {
+}
+
+
+static GType publishing_rest_support_google_publisher_username_fetch_transaction_get_type (void) {
+ static volatile gsize publishing_rest_support_google_publisher_username_fetch_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_google_publisher_username_fetch_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherUsernameFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_username_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisherUsernameFetchTransaction), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_username_fetch_transaction_instance_init, NULL };
+ GType publishing_rest_support_google_publisher_username_fetch_transaction_type_id;
+ publishing_rest_support_google_publisher_username_fetch_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingRESTSupportGooglePublisherUsernameFetchTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rest_support_google_publisher_username_fetch_transaction_type_id__volatile, publishing_rest_support_google_publisher_username_fetch_transaction_type_id);
+ }
+ return publishing_rest_support_google_publisher_username_fetch_transaction_type_id__volatile;
+}
+
+
+static void publishing_rest_support_google_publisher_class_init (PublishingRESTSupportGooglePublisherClass * klass) {
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_parent_class = g_type_class_peek_parent (klass);
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRESTSupportGooglePublisherPrivate));
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->on_login_flow_complete = publishing_rest_support_google_publisher_real_on_login_flow_complete;
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->do_logout = publishing_rest_support_google_publisher_real_do_logout;
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->is_running = publishing_rest_support_google_publisher_real_is_running;
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->start = publishing_rest_support_google_publisher_real_start;
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->stop = publishing_rest_support_google_publisher_real_stop;
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_rest_support_google_publisher_finalize;
+#line 9133 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) {
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ publishing_rest_support_google_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface);
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ iface->is_running = (gboolean (*)(SpitPublishingPublisher*)) publishing_rest_support_google_publisher_is_running;
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ iface->start = (void (*)(SpitPublishingPublisher*)) publishing_rest_support_google_publisher_start;
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ iface->stop = (void (*)(SpitPublishingPublisher*)) publishing_rest_support_google_publisher_stop;
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ iface->get_service = (SpitPublishingService* (*)(SpitPublishingPublisher*)) publishing_rest_support_google_publisher_real_get_service;
+#line 9148 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_instance_init (PublishingRESTSupportGooglePublisher * self) {
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self->priv = PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_PRIVATE (self);
+#line 9155 "RESTSupport.c"
+}
+
+
+static void publishing_rest_support_google_publisher_finalize (GObject* obj) {
+ PublishingRESTSupportGooglePublisher * self;
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher);
+#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_free0 (self->priv->scope);
+#line 865 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 866 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ _g_object_unref0 (self->priv->web_auth_pane);
+#line 695 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala"
+ G_OBJECT_CLASS (publishing_rest_support_google_publisher_parent_class)->finalize (obj);
+#line 9171 "RESTSupport.c"
+}
+
+
+GType publishing_rest_support_google_publisher_get_type (void) {
+ static volatile gsize publishing_rest_support_google_publisher_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rest_support_google_publisher_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisher), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_rest_support_google_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_rest_support_google_publisher_type_id;
+ publishing_rest_support_google_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRESTSupportGooglePublisher", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
+ g_type_add_interface_static (publishing_rest_support_google_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info);
+ g_once_init_leave (&publishing_rest_support_google_publisher_type_id__volatile, publishing_rest_support_google_publisher_type_id);
+ }
+ return publishing_rest_support_google_publisher_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/plugins/common/RESTSupport.vala b/plugins/common/RESTSupport.vala
index d9bf2ce..838192e 100644
--- a/plugins/common/RESTSupport.vala
+++ b/plugins/common/RESTSupport.vala
@@ -202,6 +202,9 @@ public class Transaction {
case Soup.KnownStatusCode.CANT_CONNECT_PROXY:
throw new Spit.Publishing.PublishingError.NO_ANSWER("Unable to connect to %s (error code %u)",
get_endpoint_url(), message.status_code);
+ case Soup.KnownStatusCode.SSL_FAILED:
+ throw new Spit.Publishing.PublishingError.SSL_FAILED ("Unable to connect to %s: Secure connection failed",
+ get_endpoint_url ());
default:
// status codes below 100 are used by Soup, 100 and above are defined HTTP codes
diff --git a/plugins/common/Resources.c b/plugins/common/Resources.c
new file mode 100644
index 0000000..dc7428b
--- /dev/null
+++ b/plugins/common/Resources.c
@@ -0,0 +1,417 @@
+/* Resources.c generated by valac 0.32.1, the Vala compiler
+ * generated from Resources.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 <stdlib.h>
+#include <string.h>
+#include <glib/gi18n-lib.h>
+#include <gio/gio.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+
+
+
+#define RESOURCES_WEBSITE_NAME _ ("Visit the Shotwell home page")
+#define RESOURCES_WEBSITE_URL "https://wiki.gnome.org/Apps/Shotwell"
+#define RESOURCES_LICENSE "\n" \
+"Shotwell is free software; you can redistribute it and/or modify it un" \
+"der the \n" \
+"terms of the GNU Lesser General Public License as published by the Fre" \
+"e \n" \
+"Software Foundation; either version 2.1 of the License, or (at your op" \
+"tion) \n" \
+"any later version.\n" \
+"\n" \
+"Shotwell is distributed in the hope that it will be useful, but WITHOU" \
+"T \n" \
+"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " \
+"FITNESS\n" \
+"FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f" \
+"or \n" \
+"more details.\n" \
+"\n" \
+"You should have received a copy of the GNU Lesser General Public Licen" \
+"se \n" \
+"along with Shotwell; if not, write to the Free Software Foundation, In" \
+"c., \n" \
+"51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
+#define RESOURCES_TRANSLATORS _ ("translator-credits")
+GdkPixbuf** resources_load_icon_set (GFile* icon_file, int* result_length1);
+static void _vala_array_add2 (GdkPixbuf*** array, int* length, int* size, GdkPixbuf* value);
+GdkPixbuf** resources_load_from_resource (const gchar* resource_path, int* result_length1);
+static void _vala_array_add3 (GdkPixbuf*** array, int* length, int* size, GdkPixbuf* value);
+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 gpointer _g_object_ref0 (gpointer self) {
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 40 "Resources.c"
+}
+
+
+static void _vala_array_add2 (GdkPixbuf*** array, int* length, int* size, GdkPixbuf* value) {
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if ((*length) == (*size)) {
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ *array = g_renew (GdkPixbuf*, *array, (*size) + 1);
+#line 51 "Resources.c"
+ }
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ (*array)[(*length)++] = value;
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ (*array)[*length] = NULL;
+#line 57 "Resources.c"
+}
+
+
+GdkPixbuf** resources_load_icon_set (GFile* icon_file, int* result_length1) {
+ GdkPixbuf** result = NULL;
+ GdkPixbuf* icon = NULL;
+ GdkPixbuf* _tmp10_ = NULL;
+ GdkPixbuf** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+ GError * _inner_error_ = NULL;
+#line 40 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ g_return_val_if_fail ((icon_file == NULL) || G_IS_FILE (icon_file), NULL);
+#line 41 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ icon = NULL;
+#line 72 "Resources.c"
+ {
+ GdkPixbuf* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ GdkPixbuf* _tmp4_ = NULL;
+ GdkPixbuf* _tmp5_ = NULL;
+ GdkPixbuf* _tmp6_ = NULL;
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp1_ = icon_file;
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp2_ = g_file_get_path (_tmp1_);
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp3_ = _tmp2_;
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp4_ = gdk_pixbuf_new_from_file (_tmp3_, &_inner_error_);
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp5_ = _tmp4_;
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_free0 (_tmp3_);
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp0_ = _tmp5_;
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 97 "Resources.c"
+ goto __catch9_g_error;
+ }
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp6_ = _tmp0_;
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp0_ = NULL;
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_object_unref0 (icon);
+#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ icon = _tmp6_;
+#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_object_unref0 (_tmp0_);
+#line 110 "Resources.c"
+ }
+ goto __finally9;
+ __catch9_g_error:
+ {
+ GError* err = NULL;
+ GFile* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ err = _inner_error_;
+#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _inner_error_ = NULL;
+#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp7_ = icon_file;
+#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp8_ = g_file_get_path (_tmp7_);
+#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp9_ = _tmp8_;
+#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ g_warning ("Resources.vala:45: couldn't load icon set from %s.", _tmp9_);
+#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_free0 (_tmp9_);
+#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_error_free0 (err);
+#line 135 "Resources.c"
+ }
+ __finally9:
+#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_object_unref0 (icon);
+#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.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 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ g_clear_error (&_inner_error_);
+#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ return NULL;
+#line 148 "Resources.c"
+ }
+#line 48 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp10_ = icon;
+#line 48 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if (_tmp10_ != NULL) {
+#line 154 "Resources.c"
+ GdkPixbuf** icon_pixbuf_set = NULL;
+ GdkPixbuf** _tmp11_ = NULL;
+ gint icon_pixbuf_set_length1 = 0;
+ gint _icon_pixbuf_set_size_ = 0;
+ GdkPixbuf** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ GdkPixbuf* _tmp13_ = NULL;
+ GdkPixbuf* _tmp14_ = NULL;
+ GdkPixbuf** _tmp15_ = NULL;
+ gint _tmp15__length1 = 0;
+#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp11_ = g_new0 (GdkPixbuf*, 0 + 1);
+#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ icon_pixbuf_set = _tmp11_;
+#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ icon_pixbuf_set_length1 = 0;
+#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _icon_pixbuf_set_size_ = icon_pixbuf_set_length1;
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp12_ = icon_pixbuf_set;
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp12__length1 = icon_pixbuf_set_length1;
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp13_ = icon;
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp14_ = _g_object_ref0 (_tmp13_);
+#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _vala_array_add2 (&icon_pixbuf_set, &icon_pixbuf_set_length1, &_icon_pixbuf_set_size_, _tmp14_);
+#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp15_ = icon_pixbuf_set;
+#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp15__length1 = icon_pixbuf_set_length1;
+#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if (result_length1) {
+#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ *result_length1 = _tmp15__length1;
+#line 191 "Resources.c"
+ }
+#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ result = _tmp15_;
+#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_object_unref0 (icon);
+#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ return result;
+#line 199 "Resources.c"
+ }
+#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp16_ = NULL;
+#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp16__length1 = 0;
+#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if (result_length1) {
+#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ *result_length1 = _tmp16__length1;
+#line 209 "Resources.c"
+ }
+#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ result = _tmp16_;
+#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_object_unref0 (icon);
+#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ return result;
+#line 217 "Resources.c"
+}
+
+
+static void _vala_array_add3 (GdkPixbuf*** array, int* length, int* size, GdkPixbuf* value) {
+#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if ((*length) == (*size)) {
+#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ *array = g_renew (GdkPixbuf*, *array, (*size) + 1);
+#line 228 "Resources.c"
+ }
+#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ (*array)[(*length)++] = value;
+#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ (*array)[*length] = NULL;
+#line 234 "Resources.c"
+}
+
+
+GdkPixbuf** resources_load_from_resource (const gchar* resource_path, int* result_length1) {
+ GdkPixbuf** result = NULL;
+ GdkPixbuf* icon = NULL;
+ GdkPixbuf* _tmp5_ = NULL;
+ GdkPixbuf** _tmp11_ = NULL;
+ gint _tmp11__length1 = 0;
+ GError * _inner_error_ = NULL;
+#line 57 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ g_return_val_if_fail (resource_path != NULL, NULL);
+#line 58 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ icon = NULL;
+#line 249 "Resources.c"
+ {
+ GdkPixbuf* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ GdkPixbuf* _tmp2_ = NULL;
+ GdkPixbuf* _tmp3_ = NULL;
+#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp1_ = resource_path;
+#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp2_ = gdk_pixbuf_new_from_resource (_tmp1_, &_inner_error_);
+#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp0_ = _tmp2_;
+#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 263 "Resources.c"
+ goto __catch10_g_error;
+ }
+#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp3_ = _tmp0_;
+#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp0_ = NULL;
+#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_object_unref0 (icon);
+#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ icon = _tmp3_;
+#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_object_unref0 (_tmp0_);
+#line 276 "Resources.c"
+ }
+ goto __finally10;
+ __catch10_g_error:
+ {
+ GError* _error_ = NULL;
+ const gchar* _tmp4_ = NULL;
+#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _error_ = _inner_error_;
+#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _inner_error_ = NULL;
+#line 62 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp4_ = resource_path;
+#line 62 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ g_warning ("Resources.vala:62: Couldn't load icon set from %s", _tmp4_);
+#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_error_free0 (_error_);
+#line 293 "Resources.c"
+ }
+ __finally10:
+#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_object_unref0 (icon);
+#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.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 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ g_clear_error (&_inner_error_);
+#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ return NULL;
+#line 306 "Resources.c"
+ }
+#line 65 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp5_ = icon;
+#line 65 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if (_tmp5_ != NULL) {
+#line 312 "Resources.c"
+ GdkPixbuf** icon_pixbuf_set = NULL;
+ GdkPixbuf** _tmp6_ = NULL;
+ gint icon_pixbuf_set_length1 = 0;
+ gint _icon_pixbuf_set_size_ = 0;
+ GdkPixbuf** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ GdkPixbuf* _tmp8_ = NULL;
+ GdkPixbuf* _tmp9_ = NULL;
+ GdkPixbuf** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp6_ = g_new0 (GdkPixbuf*, 0 + 1);
+#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ icon_pixbuf_set = _tmp6_;
+#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ icon_pixbuf_set_length1 = 0;
+#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _icon_pixbuf_set_size_ = icon_pixbuf_set_length1;
+#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp7_ = icon_pixbuf_set;
+#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp7__length1 = icon_pixbuf_set_length1;
+#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp8_ = icon;
+#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp9_ = _g_object_ref0 (_tmp8_);
+#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _vala_array_add3 (&icon_pixbuf_set, &icon_pixbuf_set_length1, &_icon_pixbuf_set_size_, _tmp9_);
+#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp10_ = icon_pixbuf_set;
+#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp10__length1 = icon_pixbuf_set_length1;
+#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if (result_length1) {
+#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ *result_length1 = _tmp10__length1;
+#line 349 "Resources.c"
+ }
+#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ result = _tmp10_;
+#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_object_unref0 (icon);
+#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ return result;
+#line 357 "Resources.c"
+ }
+#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp11_ = NULL;
+#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _tmp11__length1 = 0;
+#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ if (result_length1) {
+#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ *result_length1 = _tmp11__length1;
+#line 367 "Resources.c"
+ }
+#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ result = _tmp11_;
+#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ _g_object_unref0 (icon);
+#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala"
+ return result;
+#line 375 "Resources.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/plugins/common/Resources.vala b/plugins/common/Resources.vala
index 2bb1cb3..29c7294 100644
--- a/plugins/common/Resources.vala
+++ b/plugins/common/Resources.vala
@@ -6,6 +6,9 @@
namespace Resources {
+[CCode (cname = "PLUGIN_RESOURCE_PATH")]
+public extern const string RESOURCE_PATH;
+
public const string WEBSITE_NAME = _("Visit the Shotwell home page");
public const string WEBSITE_URL = "https://wiki.gnome.org/Apps/Shotwell";
@@ -42,7 +45,7 @@ public Gdk.Pixbuf[]? load_icon_set(GLib.File? icon_file) {
warning("couldn't load icon set from %s.", icon_file.get_path());
}
- if (icon_file != null) {
+ if (icon != null) {
Gdk.Pixbuf[] icon_pixbuf_set = new Gdk.Pixbuf[0];
icon_pixbuf_set += icon;
return icon_pixbuf_set;
@@ -51,4 +54,21 @@ public Gdk.Pixbuf[]? load_icon_set(GLib.File? icon_file) {
return null;
}
+public Gdk.Pixbuf[]? load_from_resource (string resource_path) {
+ Gdk.Pixbuf? icon = null;
+ try {
+ icon = new Gdk.Pixbuf.from_resource (resource_path);
+ } catch (Error error) {
+ warning ("Couldn't load icon set from %s", resource_path);
+ }
+
+ if (icon != null) {
+ Gdk.Pixbuf[] icon_pixbuf_set = new Gdk.Pixbuf[0];
+ icon_pixbuf_set += icon;
+ return icon_pixbuf_set;
+ }
+
+ return null;
+}
+
}
diff --git a/plugins/plugins.mk b/plugins/plugins.mk
deleted file mode 100644
index 687ceeb..0000000
--- a/plugins/plugins.mk
+++ /dev/null
@@ -1,40 +0,0 @@
-
-PLUGINS := \
- common \
- shotwell-transitions \
- shotwell-publishing \
- shotwell-data-imports
-
-PLUGINS_RC := \
- plugins/shotwell-publishing/facebook.png \
- plugins/shotwell-publishing/facebook_publishing_options_pane.glade \
- plugins/shotwell-publishing/flickr.png \
- plugins/shotwell-publishing/flickr_publishing_options_pane.glade \
- plugins/shotwell-publishing/flickr_pin_entry_pane.glade \
- plugins/shotwell-publishing/picasa.png \
- plugins/shotwell-publishing/picasa_publishing_options_pane.glade \
- plugins/shotwell-publishing/youtube.png \
- plugins/shotwell-publishing/youtube_publishing_options_pane.glade \
- plugins/shotwell-publishing/piwigo.png \
- plugins/shotwell-publishing/piwigo_authentication_pane.glade \
- plugins/shotwell-publishing/piwigo_publishing_options_pane.glade \
- plugins/shotwell-transitions/slideshow-plugin.png
-
-EXTRA_PLUGINS := \
- shotwell-publishing-extras
-
-EXTRA_PLUGINS_RC := \
- plugins/shotwell-publishing-extras/yandex_publish_model.glade \
- plugins/shotwell-data-imports/f-spot-24.png \
- plugins/shotwell-publishing-extras/gallery3.png \
- plugins/shotwell-publishing-extras/gallery3_authentication_pane.glade \
- plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.glade \
- plugins/shotwell-publishing-extras/tumblr.png \
- plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade \
- plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade \
- plugins/shotwell-publishing-extras/rajce.png \
- plugins/shotwell-publishing-extras/rajce_authentication_pane.glade \
- plugins/shotwell-publishing-extras/rajce_publishing_options_pane.glade
-
-ALL_PLUGINS := $(PLUGINS) $(EXTRA_PLUGINS)
-
diff --git a/plugins/shotwell-data-imports/FSpotDatabase.c b/plugins/shotwell-data-imports/FSpotDatabase.c
new file mode 100644
index 0000000..31d70a7
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotDatabase.c
@@ -0,0 +1,555 @@
+/* FSpotDatabase.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotDatabase.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 <sqlite3.h>
+#include <gio/gio.h>
+#include <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE (data_imports_fspot_db_fspot_database_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabase))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabaseClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabaseClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabase DataImportsFSpotDbFSpotDatabase;
+typedef struct _DataImportsFSpotDbFSpotDatabaseClass DataImportsFSpotDbFSpotDatabaseClass;
+typedef struct _DataImportsFSpotDbFSpotDatabasePrivate DataImportsFSpotDbFSpotDatabasePrivate;
+
+#define TYPE_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
+#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
+#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+
+typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
+typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE (data_imports_fspot_db_fspot_database_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseTable DataImportsFSpotDbFSpotDatabaseTable;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTableClass DataImportsFSpotDbFSpotDatabaseTableClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE (data_imports_fspot_db_fspot_photos_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosTable DataImportsFSpotDbFSpotPhotosTable;
+typedef struct _DataImportsFSpotDbFSpotPhotosTableClass DataImportsFSpotDbFSpotPhotosTableClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE (data_imports_fspot_db_fspot_photo_versions_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsTable DataImportsFSpotDbFSpotPhotoVersionsTable;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsTableClass DataImportsFSpotDbFSpotPhotoVersionsTableClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE (data_imports_fspot_db_fspot_tags_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotTagsTable DataImportsFSpotDbFSpotTagsTable;
+typedef struct _DataImportsFSpotDbFSpotTagsTableClass DataImportsFSpotDbFSpotTagsTableClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE (data_imports_fspot_db_fspot_rolls_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotRollsTable DataImportsFSpotDbFSpotRollsTable;
+typedef struct _DataImportsFSpotDbFSpotRollsTableClass DataImportsFSpotDbFSpotRollsTableClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE (data_imports_fspot_db_fspot_meta_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE, DataImportsFSpotDbFSpotMetaTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE, DataImportsFSpotDbFSpotMetaTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE, DataImportsFSpotDbFSpotMetaTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotMetaTable DataImportsFSpotDbFSpotMetaTable;
+typedef struct _DataImportsFSpotDbFSpotMetaTableClass DataImportsFSpotDbFSpotMetaTableClass;
+#define _sqlite3_close0(var) ((var == NULL) ? NULL : (var = (sqlite3_close (var), NULL)))
+#define _importable_database_table_unref0(var) ((var == NULL) ? NULL : (var = (importable_database_table_unref (var), NULL)))
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define UTILS_TYPE_VERSION_NUMBER (utils_version_number_get_type ())
+#define UTILS_VERSION_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumber))
+#define UTILS_VERSION_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumberClass))
+#define UTILS_IS_VERSION_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UTILS_TYPE_VERSION_NUMBER))
+#define UTILS_IS_VERSION_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UTILS_TYPE_VERSION_NUMBER))
+#define UTILS_VERSION_NUMBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumberClass))
+
+typedef struct _UtilsVersionNumber UtilsVersionNumber;
+typedef struct _UtilsVersionNumberClass UtilsVersionNumberClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR (data_imports_fspot_db_fspot_database_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehavior DataImportsFSpotDbFSpotDatabaseBehavior;
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehaviorClass DataImportsFSpotDbFSpotDatabaseBehaviorClass;
+
+struct _DataImportsFSpotDbFSpotDatabase {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotDatabasePrivate * priv;
+ DataImportsFSpotDbFSpotPhotosTable* photos_table;
+ DataImportsFSpotDbFSpotPhotoVersionsTable* photo_versions_table;
+ DataImportsFSpotDbFSpotTagsTable* tags_table;
+ DataImportsFSpotDbFSpotRollsTable* rolls_table;
+ gint64 hidden_tag_id;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotDatabasePrivate {
+ sqlite3* fspot_db;
+ DataImportsFSpotDbFSpotMetaTable* meta_table;
+};
+
+typedef enum {
+ DATABASE_ERROR_ERROR,
+ DATABASE_ERROR_BACKING,
+ DATABASE_ERROR_MEMORY,
+ DATABASE_ERROR_ABORT,
+ DATABASE_ERROR_LIMITS,
+ DATABASE_ERROR_TYPESPEC
+} DatabaseError;
+#define DATABASE_ERROR database_error_quark ()
+
+static gpointer data_imports_fspot_db_fspot_database_parent_class = NULL;
+
+#define DATA_IMPORTS_FSPOT_DB_NULL_ID ((gint64) 0)
+#define DATA_IMPORTS_FSPOT_DB_INVALID_ID ((gint64) -1)
+void data_imports_fspot_db_init (void);
+void data_imports_fspot_db_fspot_database_behavior_create_behavior_map (void);
+GType data_imports_fspot_db_fspot_database_get_type (void) G_GNUC_CONST;
+gpointer importable_database_table_ref (gpointer instance);
+void importable_database_table_unref (gpointer instance);
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_importable_database_table (GValue* value, gpointer v_object);
+void value_take_importable_database_table (GValue* value, gpointer v_object);
+gpointer value_get_importable_database_table (const GValue* value);
+GType importable_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photos_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photo_versions_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_tags_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_rolls_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_meta_table_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabasePrivate))
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_DUMMY_PROPERTY
+};
+GQuark database_error_quark (void);
+DataImportsFSpotDbFSpotDatabase* data_imports_fspot_db_fspot_database_new (GFile* db_file, GError** error);
+DataImportsFSpotDbFSpotDatabase* data_imports_fspot_db_fspot_database_construct (GType object_type, GFile* db_file, GError** error);
+DataImportsFSpotDbFSpotMetaTable* data_imports_fspot_db_fspot_meta_table_new (sqlite3* db);
+DataImportsFSpotDbFSpotMetaTable* data_imports_fspot_db_fspot_meta_table_construct (GType object_type, sqlite3* db);
+gint64 data_imports_fspot_db_fspot_meta_table_get_hidden_tag_id (DataImportsFSpotDbFSpotMetaTable* self, GError** error);
+GType utils_version_number_get_type (void) G_GNUC_CONST;
+static UtilsVersionNumber* data_imports_fspot_db_fspot_database_get_version (DataImportsFSpotDbFSpotDatabase* self, GError** error);
+GType data_imports_fspot_db_fspot_database_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotDatabaseBehavior* data_imports_fspot_db_fspot_database_behavior_new (UtilsVersionNumber* version, GError** error);
+DataImportsFSpotDbFSpotDatabaseBehavior* data_imports_fspot_db_fspot_database_behavior_construct (GType object_type, UtilsVersionNumber* version, GError** error);
+DataImportsFSpotDbFSpotPhotosTable* data_imports_fspot_db_fspot_photos_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotPhotosTable* data_imports_fspot_db_fspot_photos_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotPhotoVersionsTable* data_imports_fspot_db_fspot_photo_versions_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotPhotoVersionsTable* data_imports_fspot_db_fspot_photo_versions_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotTagsTable* data_imports_fspot_db_fspot_tags_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotTagsTable* data_imports_fspot_db_fspot_tags_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotRollsTable* data_imports_fspot_db_fspot_rolls_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotRollsTable* data_imports_fspot_db_fspot_rolls_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+gchar* data_imports_fspot_db_fspot_meta_table_get_db_version (DataImportsFSpotDbFSpotMetaTable* self, GError** error);
+UtilsVersionNumber* utils_version_number_new_from_string (const gchar* str_version, const gchar* separator);
+UtilsVersionNumber* utils_version_number_construct_from_string (GType object_type, const gchar* str_version, const gchar* separator);
+static void data_imports_fspot_db_fspot_database_finalize (GObject* obj);
+
+
+/**
+ * Initialization method for the whole module.
+ */
+void data_imports_fspot_db_init (void) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ data_imports_fspot_db_fspot_database_behavior_create_behavior_map ();
+#line 209 "FSpotDatabase.c"
+}
+
+
+DataImportsFSpotDbFSpotDatabase* data_imports_fspot_db_fspot_database_construct (GType object_type, GFile* db_file, GError** error) {
+ DataImportsFSpotDbFSpotDatabase * self = NULL;
+ gchar* filename = NULL;
+ GFile* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gint res = 0;
+ sqlite3* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ sqlite3* _tmp5_ = NULL;
+ DataImportsFSpotDbFSpotMetaTable* _tmp6_ = NULL;
+ gint64 _tmp7_ = 0LL;
+ DataImportsFSpotDbFSpotMetaTable* _tmp8_ = NULL;
+ gint64 _tmp9_ = 0LL;
+ UtilsVersionNumber* _tmp10_ = NULL;
+ UtilsVersionNumber* _tmp11_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp12_ = NULL;
+ sqlite3* _tmp13_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp14_ = NULL;
+ DataImportsFSpotDbFSpotPhotosTable* _tmp15_ = NULL;
+ sqlite3* _tmp16_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp17_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsTable* _tmp18_ = NULL;
+ sqlite3* _tmp19_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp20_ = NULL;
+ DataImportsFSpotDbFSpotTagsTable* _tmp21_ = NULL;
+ sqlite3* _tmp22_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp23_ = NULL;
+ DataImportsFSpotDbFSpotRollsTable* _tmp24_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_return_val_if_fail (G_IS_FILE (db_file), NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ self = (DataImportsFSpotDbFSpotDatabase*) g_object_new (object_type, NULL);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp0_ = db_file;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp1_ = g_file_get_path (_tmp0_);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ filename = _tmp1_;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp3_ = sqlite3_open_v2 (filename, &_tmp2_, SQLITE_OPEN_READONLY, NULL);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _sqlite3_close0 (self->priv->fspot_db);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ self->priv->fspot_db = _tmp2_;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ res = _tmp3_;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ if (res != SQLITE_OK) {
+#line 263 "FSpotDatabase.c"
+ GError* _tmp4_ = NULL;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp4_ = g_error_new (DATABASE_ERROR, DATABASE_ERROR_ERROR, "Unable to open F-Spot database %s: %d", filename, res);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _inner_error_ = _tmp4_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ if ((_inner_error_->domain == DATABASE_ERROR) || (_inner_error_->domain == SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR)) {
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_propagate_error (error, _inner_error_);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_free0 (filename);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_object_unref0 (self);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return NULL;
+#line 279 "FSpotDatabase.c"
+ } else {
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_free0 (filename);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.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 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_clear_error (&_inner_error_);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return NULL;
+#line 289 "FSpotDatabase.c"
+ }
+ }
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp5_ = self->priv->fspot_db;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp6_ = data_imports_fspot_db_fspot_meta_table_new (_tmp5_);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _importable_database_table_unref0 (self->priv->meta_table);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ self->priv->meta_table = _tmp6_;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp8_ = self->priv->meta_table;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp9_ = data_imports_fspot_db_fspot_meta_table_get_hidden_tag_id (_tmp8_, &_inner_error_);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp7_ = _tmp9_;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ if ((_inner_error_->domain == DATABASE_ERROR) || (_inner_error_->domain == SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR)) {
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_propagate_error (error, _inner_error_);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_free0 (filename);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_object_unref0 (self);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return NULL;
+#line 318 "FSpotDatabase.c"
+ } else {
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_free0 (filename);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.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 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_clear_error (&_inner_error_);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return NULL;
+#line 328 "FSpotDatabase.c"
+ }
+ }
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ self->hidden_tag_id = _tmp7_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp11_ = data_imports_fspot_db_fspot_database_get_version (self, &_inner_error_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp10_ = _tmp11_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ if ((_inner_error_->domain == DATABASE_ERROR) || (_inner_error_->domain == SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR)) {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_propagate_error (error, _inner_error_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_free0 (filename);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_object_unref0 (self);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return NULL;
+#line 349 "FSpotDatabase.c"
+ } else {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_free0 (filename);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.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 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_clear_error (&_inner_error_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return NULL;
+#line 359 "FSpotDatabase.c"
+ }
+ }
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp12_ = data_imports_fspot_db_fspot_database_behavior_new (_tmp10_, &_inner_error_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ db_behavior = _tmp12_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ if ((_inner_error_->domain == DATABASE_ERROR) || (_inner_error_->domain == SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR)) {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_propagate_error (error, _inner_error_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_object_unref0 (_tmp10_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_free0 (filename);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_object_unref0 (self);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return NULL;
+#line 380 "FSpotDatabase.c"
+ } else {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_object_unref0 (_tmp10_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_free0 (filename);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.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 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_clear_error (&_inner_error_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return NULL;
+#line 392 "FSpotDatabase.c"
+ }
+ }
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp13_ = self->priv->fspot_db;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp14_ = db_behavior;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp15_ = data_imports_fspot_db_fspot_photos_table_new (_tmp13_, _tmp14_);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _importable_database_table_unref0 (self->photos_table);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ self->photos_table = _tmp15_;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp16_ = self->priv->fspot_db;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp17_ = db_behavior;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp18_ = data_imports_fspot_db_fspot_photo_versions_table_new (_tmp16_, _tmp17_);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _importable_database_table_unref0 (self->photo_versions_table);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ self->photo_versions_table = _tmp18_;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp19_ = self->priv->fspot_db;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp20_ = db_behavior;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp21_ = data_imports_fspot_db_fspot_tags_table_new (_tmp19_, _tmp20_);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _importable_database_table_unref0 (self->tags_table);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ self->tags_table = _tmp21_;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp22_ = self->priv->fspot_db;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp23_ = db_behavior;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp24_ = data_imports_fspot_db_fspot_rolls_table_new (_tmp22_, _tmp23_);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _importable_database_table_unref0 (self->rolls_table);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ self->rolls_table = _tmp24_;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_object_unref0 (db_behavior);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_object_unref0 (_tmp10_);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_free0 (filename);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return self;
+#line 443 "FSpotDatabase.c"
+}
+
+
+DataImportsFSpotDbFSpotDatabase* data_imports_fspot_db_fspot_database_new (GFile* db_file, GError** error) {
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return data_imports_fspot_db_fspot_database_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, db_file, error);
+#line 450 "FSpotDatabase.c"
+}
+
+
+static UtilsVersionNumber* data_imports_fspot_db_fspot_database_get_version (DataImportsFSpotDbFSpotDatabase* self, GError** error) {
+ UtilsVersionNumber* result = NULL;
+ gchar* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotMetaTable* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ UtilsVersionNumber* _tmp3_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE (self), NULL);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp1_ = self->priv->meta_table;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_meta_table_get_db_version (_tmp1_, &_inner_error_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp0_ = _tmp2_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_propagate_error (error, _inner_error_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return NULL;
+#line 477 "FSpotDatabase.c"
+ } else {
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.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 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_clear_error (&_inner_error_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return NULL;
+#line 485 "FSpotDatabase.c"
+ }
+ }
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _tmp3_ = utils_version_number_new_from_string (_tmp0_, ".");
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ result = _tmp3_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _g_free0 (_tmp0_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ return result;
+#line 496 "FSpotDatabase.c"
+}
+
+
+static void data_imports_fspot_db_fspot_database_class_init (DataImportsFSpotDbFSpotDatabaseClass * klass) {
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ data_imports_fspot_db_fspot_database_parent_class = g_type_class_peek_parent (klass);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotDbFSpotDatabasePrivate));
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_database_finalize;
+#line 507 "FSpotDatabase.c"
+}
+
+
+static void data_imports_fspot_db_fspot_database_instance_init (DataImportsFSpotDbFSpotDatabase * self) {
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ self->priv = DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_GET_PRIVATE (self);
+#line 514 "FSpotDatabase.c"
+}
+
+
+static void data_imports_fspot_db_fspot_database_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotDatabase * self;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabase);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _sqlite3_close0 (self->priv->fspot_db);
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _importable_database_table_unref0 (self->priv->meta_table);
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _importable_database_table_unref0 (self->photos_table);
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _importable_database_table_unref0 (self->photo_versions_table);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _importable_database_table_unref0 (self->tags_table);
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ _importable_database_table_unref0 (self->rolls_table);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabase.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_database_parent_class)->finalize (obj);
+#line 536 "FSpotDatabase.c"
+}
+
+
+/**
+ * An object that is able to read from the F-Spot
+ * database and extract the relevant objects.
+ */
+GType data_imports_fspot_db_fspot_database_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_database_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_database_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotDatabaseClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_database_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotDatabase), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_database_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_database_type_id;
+ data_imports_fspot_db_fspot_database_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotDatabase", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_database_type_id__volatile, data_imports_fspot_db_fspot_database_type_id);
+ }
+ return data_imports_fspot_db_fspot_database_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-data-imports/FSpotDatabaseBehavior.c b/plugins/shotwell-data-imports/FSpotDatabaseBehavior.c
new file mode 100644
index 0000000..b20f73f
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotDatabaseBehavior.c
@@ -0,0 +1,2085 @@
+/* FSpotDatabaseBehavior.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotDatabaseBehavior.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 <stdlib.h>
+#include <string.h>
+#include <sqlite3.h>
+#include <gee.h>
+#include <shotwell-plugin-dev-1.0.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY (data_imports_fspot_db_fspot_behavior_entry_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_BEHAVIOR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, DataImportsFSpotDbFSpotBehaviorEntry))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_BEHAVIOR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, DataImportsFSpotDbFSpotBehaviorEntryClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_BEHAVIOR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_BEHAVIOR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_BEHAVIOR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, DataImportsFSpotDbFSpotBehaviorEntryClass))
+
+typedef struct _DataImportsFSpotDbFSpotBehaviorEntry DataImportsFSpotDbFSpotBehaviorEntry;
+typedef struct _DataImportsFSpotDbFSpotBehaviorEntryClass DataImportsFSpotDbFSpotBehaviorEntryClass;
+typedef struct _DataImportsFSpotDbFSpotBehaviorEntryPrivate DataImportsFSpotDbFSpotBehaviorEntryPrivate;
+
+#define UTILS_TYPE_VERSION_NUMBER (utils_version_number_get_type ())
+#define UTILS_VERSION_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumber))
+#define UTILS_VERSION_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumberClass))
+#define UTILS_IS_VERSION_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UTILS_TYPE_VERSION_NUMBER))
+#define UTILS_IS_VERSION_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UTILS_TYPE_VERSION_NUMBER))
+#define UTILS_VERSION_NUMBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumberClass))
+
+typedef struct _UtilsVersionNumber UtilsVersionNumber;
+typedef struct _UtilsVersionNumberClass UtilsVersionNumberClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR (data_imports_fspot_db_fspot_table_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehaviorIface))
+
+typedef struct _DataImportsFSpotDbFSpotTableBehavior DataImportsFSpotDbFSpotTableBehavior;
+typedef struct _DataImportsFSpotDbFSpotTableBehaviorIface DataImportsFSpotDbFSpotTableBehaviorIface;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+typedef struct _DataImportsFSpotDbParamSpecFSpotBehaviorEntry DataImportsFSpotDbParamSpecFSpotBehaviorEntry;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR (data_imports_fspot_db_fspot_database_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehavior DataImportsFSpotDbFSpotDatabaseBehavior;
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehaviorClass DataImportsFSpotDbFSpotDatabaseBehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehaviorPrivate DataImportsFSpotDbFSpotDatabaseBehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW (data_imports_fspot_db_fspot_photo_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoRow DataImportsFSpotDbFSpotPhotoRow;
+typedef struct _DataImportsFSpotDbFSpotPhotoRowClass DataImportsFSpotDbFSpotPhotoRowClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW (data_imports_fspot_db_fspot_tag_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotTagRow DataImportsFSpotDbFSpotTagRow;
+typedef struct _DataImportsFSpotDbFSpotTagRowClass DataImportsFSpotDbFSpotTagRowClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW (data_imports_fspot_db_fspot_photo_tag_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, DataImportsFSpotDbFSpotPhotoTagRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, DataImportsFSpotDbFSpotPhotoTagRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, DataImportsFSpotDbFSpotPhotoTagRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoTagRow DataImportsFSpotDbFSpotPhotoTagRow;
+typedef struct _DataImportsFSpotDbFSpotPhotoTagRowClass DataImportsFSpotDbFSpotPhotoTagRowClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW (data_imports_fspot_db_fspot_photo_version_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSION_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSION_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionRow DataImportsFSpotDbFSpotPhotoVersionRow;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionRowClass DataImportsFSpotDbFSpotPhotoVersionRowClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW (data_imports_fspot_db_fspot_roll_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLL_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLL_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotRollRow DataImportsFSpotDbFSpotRollRow;
+typedef struct _DataImportsFSpotDbFSpotRollRowClass DataImportsFSpotDbFSpotRollRowClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR (data_imports_fspot_db_fspot_photos_v0_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV0Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV0BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V0_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV0BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV0Behavior DataImportsFSpotDbFSpotPhotosV0Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV0BehaviorClass DataImportsFSpotDbFSpotPhotosV0BehaviorClass;
+#define _data_imports_fspot_db_fspot_behavior_entry_unref0(var) ((var == NULL) ? NULL : (var = (data_imports_fspot_db_fspot_behavior_entry_unref (var), NULL)))
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR (data_imports_fspot_db_fspot_photos_v5_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V5_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV5Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V5_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV5BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V5_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V5_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V5_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV5BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV5Behavior DataImportsFSpotDbFSpotPhotosV5Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV5BehaviorClass DataImportsFSpotDbFSpotPhotosV5BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR (data_imports_fspot_db_fspot_photos_v7_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V7_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV7Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V7_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV7BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V7_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V7_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V7_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV7BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV7Behavior DataImportsFSpotDbFSpotPhotosV7Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV7BehaviorClass DataImportsFSpotDbFSpotPhotosV7BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR (data_imports_fspot_db_fspot_photos_v11_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V11_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV11Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V11_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV11BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V11_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V11_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V11_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV11BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV11Behavior DataImportsFSpotDbFSpotPhotosV11Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV11BehaviorClass DataImportsFSpotDbFSpotPhotosV11BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR (data_imports_fspot_db_fspot_photos_v16_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V16_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV16Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V16_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV16BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V16_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V16_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V16_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV16BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV16Behavior DataImportsFSpotDbFSpotPhotosV16Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV16BehaviorClass DataImportsFSpotDbFSpotPhotosV16BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR (data_imports_fspot_db_fspot_photos_v17_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V17_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV17Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V17_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV17BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V17_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V17_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V17_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV17BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV17Behavior DataImportsFSpotDbFSpotPhotosV17Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV17BehaviorClass DataImportsFSpotDbFSpotPhotosV17BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR (data_imports_fspot_db_fspot_photos_v18_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V18_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV18Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V18_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV18BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V18_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V18_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V18_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV18BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV18Behavior DataImportsFSpotDbFSpotPhotosV18Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV18BehaviorClass DataImportsFSpotDbFSpotPhotosV18BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR (data_imports_fspot_db_fspot_tags_v0_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotTagsV0Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotTagsV0BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_V0_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotTagsV0BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotTagsV0Behavior DataImportsFSpotDbFSpotTagsV0Behavior;
+typedef struct _DataImportsFSpotDbFSpotTagsV0BehaviorClass DataImportsFSpotDbFSpotTagsV0BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR (data_imports_fspot_db_fspot_photo_tags_v0_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoTagsV0Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAGS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAGS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_V0_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoTagsV0Behavior DataImportsFSpotDbFSpotPhotoTagsV0Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR (data_imports_fspot_db_fspot_photo_versions_v0_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV0Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV0Behavior DataImportsFSpotDbFSpotPhotoVersionsV0Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR (data_imports_fspot_db_fspot_photo_versions_v9_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV9Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV9Behavior DataImportsFSpotDbFSpotPhotoVersionsV9Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR (data_imports_fspot_db_fspot_photo_versions_v16_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV16Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV16Behavior DataImportsFSpotDbFSpotPhotoVersionsV16Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR (data_imports_fspot_db_fspot_photo_versions_v17_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV17Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV17Behavior DataImportsFSpotDbFSpotPhotoVersionsV17Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR (data_imports_fspot_db_fspot_photo_versions_v18_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV18Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV18Behavior DataImportsFSpotDbFSpotPhotoVersionsV18Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR (data_imports_fspot_db_fspot_rolls_v0_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR, DataImportsFSpotDbFSpotRollsV0Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR, DataImportsFSpotDbFSpotRollsV0BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V0_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR, DataImportsFSpotDbFSpotRollsV0BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotRollsV0Behavior DataImportsFSpotDbFSpotRollsV0Behavior;
+typedef struct _DataImportsFSpotDbFSpotRollsV0BehaviorClass DataImportsFSpotDbFSpotRollsV0BehaviorClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR (data_imports_fspot_db_fspot_rolls_v5_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V5_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR, DataImportsFSpotDbFSpotRollsV5Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V5_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR, DataImportsFSpotDbFSpotRollsV5BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_V5_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_V5_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V5_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR, DataImportsFSpotDbFSpotRollsV5BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotRollsV5Behavior DataImportsFSpotDbFSpotRollsV5Behavior;
+typedef struct _DataImportsFSpotDbFSpotRollsV5BehaviorClass DataImportsFSpotDbFSpotRollsV5BehaviorClass;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+struct _DataImportsFSpotDbFSpotBehaviorEntry {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ DataImportsFSpotDbFSpotBehaviorEntryPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotBehaviorEntryClass {
+ GTypeClass parent_class;
+ void (*finalize) (DataImportsFSpotDbFSpotBehaviorEntry *self);
+};
+
+struct _DataImportsFSpotDbFSpotTableBehaviorIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_table_name) (DataImportsFSpotDbFSpotTableBehavior* self);
+ gchar** (*list_columns) (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+ void (*build_row) (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+};
+
+struct _DataImportsFSpotDbFSpotBehaviorEntryPrivate {
+ UtilsVersionNumber* version;
+ DataImportsFSpotDbFSpotTableBehavior* behavior;
+};
+
+struct _DataImportsFSpotDbParamSpecFSpotBehaviorEntry {
+ GParamSpec parent_instance;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseBehavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotDatabaseBehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseBehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseBehaviorPrivate {
+ DataImportsFSpotDbFSpotTableBehavior* photos_behavior;
+ DataImportsFSpotDbFSpotTableBehavior* tags_behavior;
+ DataImportsFSpotDbFSpotTableBehavior* photo_tags_behavior;
+ DataImportsFSpotDbFSpotTableBehavior* photo_versions_behavior;
+ DataImportsFSpotDbFSpotTableBehavior* rolls_behavior;
+};
+
+
+static gpointer data_imports_fspot_db_fspot_behavior_entry_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_database_behavior_parent_class = NULL;
+extern UtilsVersionNumber* data_imports_fspot_db_fspot_database_behavior_MIN_UNSUPPORTED_VERSION;
+UtilsVersionNumber* data_imports_fspot_db_fspot_database_behavior_MIN_UNSUPPORTED_VERSION = NULL;
+static GeeMap* data_imports_fspot_db_fspot_database_behavior_behavior_map;
+static GeeMap* data_imports_fspot_db_fspot_database_behavior_behavior_map = NULL;
+
+gpointer data_imports_fspot_db_fspot_behavior_entry_ref (gpointer instance);
+void data_imports_fspot_db_fspot_behavior_entry_unref (gpointer instance);
+GParamSpec* data_imports_fspot_db_param_spec_fspot_behavior_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void data_imports_fspot_db_value_set_fspot_behavior_entry (GValue* value, gpointer v_object);
+void data_imports_fspot_db_value_take_fspot_behavior_entry (GValue* value, gpointer v_object);
+gpointer data_imports_fspot_db_value_get_fspot_behavior_entry (const GValue* value);
+GType data_imports_fspot_db_fspot_behavior_entry_get_type (void) G_GNUC_CONST;
+GType utils_version_number_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_table_behavior_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_BEHAVIOR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, DataImportsFSpotDbFSpotBehaviorEntryPrivate))
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_BEHAVIOR_ENTRY_DUMMY_PROPERTY
+};
+DataImportsFSpotDbFSpotBehaviorEntry* data_imports_fspot_db_fspot_behavior_entry_new (UtilsVersionNumber* version, DataImportsFSpotDbFSpotTableBehavior* behavior);
+DataImportsFSpotDbFSpotBehaviorEntry* data_imports_fspot_db_fspot_behavior_entry_construct (GType object_type, UtilsVersionNumber* version, DataImportsFSpotDbFSpotTableBehavior* behavior);
+UtilsVersionNumber* data_imports_fspot_db_fspot_behavior_entry_get_version (DataImportsFSpotDbFSpotBehaviorEntry* self);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_behavior_entry_get_behavior (DataImportsFSpotDbFSpotBehaviorEntry* self);
+static void data_imports_fspot_db_fspot_behavior_entry_finalize (DataImportsFSpotDbFSpotBehaviorEntry* obj);
+GType data_imports_fspot_db_fspot_database_behavior_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photo_row_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_tag_row_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photo_tag_row_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photo_version_row_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_roll_row_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorPrivate))
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_DUMMY_PROPERTY
+};
+UtilsVersionNumber* utils_version_number_new (gint* version, int version_length1);
+UtilsVersionNumber* utils_version_number_construct (GType object_type, gint* version, int version_length1);
+void data_imports_fspot_db_fspot_database_behavior_create_behavior_map (void);
+GType data_imports_fspot_db_fspot_photos_v0_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotosV0Behavior* data_imports_fspot_db_fspot_photos_v0_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_photos_v5_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotosV5Behavior* data_imports_fspot_db_fspot_photos_v5_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_photos_v7_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotosV7Behavior* data_imports_fspot_db_fspot_photos_v7_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_photos_v11_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotosV11Behavior* data_imports_fspot_db_fspot_photos_v11_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_photos_v16_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotosV16Behavior* data_imports_fspot_db_fspot_photos_v16_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_photos_v17_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotosV17Behavior* data_imports_fspot_db_fspot_photos_v17_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_photos_v18_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotosV18Behavior* data_imports_fspot_db_fspot_photos_v18_behavior_get_instance (void);
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME "Photos"
+GType data_imports_fspot_db_fspot_tags_v0_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotTagsV0Behavior* data_imports_fspot_db_fspot_tags_v0_behavior_get_instance (void);
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_TABLE_NAME "Tags"
+GType data_imports_fspot_db_fspot_photo_tags_v0_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotoTagsV0Behavior* data_imports_fspot_db_fspot_photo_tags_v0_behavior_get_instance (void);
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_TABLE_TABLE_NAME "Photo_Tags"
+GType data_imports_fspot_db_fspot_photo_versions_v0_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* data_imports_fspot_db_fspot_photo_versions_v0_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_photo_versions_v9_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* data_imports_fspot_db_fspot_photo_versions_v9_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_photo_versions_v16_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* data_imports_fspot_db_fspot_photo_versions_v16_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_photo_versions_v17_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* data_imports_fspot_db_fspot_photo_versions_v17_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_photo_versions_v18_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* data_imports_fspot_db_fspot_photo_versions_v18_behavior_get_instance (void);
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_TABLE_NAME "Photo_versions"
+GType data_imports_fspot_db_fspot_rolls_v0_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotRollsV0Behavior* data_imports_fspot_db_fspot_rolls_v0_behavior_get_instance (void);
+GType data_imports_fspot_db_fspot_rolls_v5_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotRollsV5Behavior* data_imports_fspot_db_fspot_rolls_v5_behavior_get_instance (void);
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_TABLE_NAME "Rolls"
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_find_behavior (const gchar* table_name, UtilsVersionNumber* version);
+DataImportsFSpotDbFSpotDatabaseBehavior* data_imports_fspot_db_fspot_database_behavior_new (UtilsVersionNumber* version, GError** error);
+DataImportsFSpotDbFSpotDatabaseBehavior* data_imports_fspot_db_fspot_database_behavior_construct (GType object_type, UtilsVersionNumber* version, GError** error);
+gchar* utils_version_number_to_string (UtilsVersionNumber* self);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_photos_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_tags_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_photo_tags_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_photo_versions_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_rolls_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+static void data_imports_fspot_db_fspot_database_behavior_finalize (GObject* obj);
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 410 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotBehaviorEntry* data_imports_fspot_db_fspot_behavior_entry_construct (GType object_type, UtilsVersionNumber* version, DataImportsFSpotDbFSpotTableBehavior* behavior) {
+ DataImportsFSpotDbFSpotBehaviorEntry* self = NULL;
+ UtilsVersionNumber* _tmp0_ = NULL;
+ UtilsVersionNumber* _tmp1_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp3_ = NULL;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (UTILS_IS_VERSION_NUMBER (version), NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR (behavior), NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self = (DataImportsFSpotDbFSpotBehaviorEntry*) g_type_create_instance (object_type);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = version;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->version);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self->priv->version = _tmp1_;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp2_ = behavior;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->behavior);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self->priv->behavior = _tmp3_;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return self;
+#line 444 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotBehaviorEntry* data_imports_fspot_db_fspot_behavior_entry_new (UtilsVersionNumber* version, DataImportsFSpotDbFSpotTableBehavior* behavior) {
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return data_imports_fspot_db_fspot_behavior_entry_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, version, behavior);
+#line 451 "FSpotDatabaseBehavior.c"
+}
+
+
+UtilsVersionNumber* data_imports_fspot_db_fspot_behavior_entry_get_version (DataImportsFSpotDbFSpotBehaviorEntry* self) {
+ UtilsVersionNumber* result = NULL;
+ UtilsVersionNumber* _tmp0_ = NULL;
+ UtilsVersionNumber* _tmp1_ = NULL;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_BEHAVIOR_ENTRY (self), NULL);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = self->priv->version;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ result = _tmp1_;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return result;
+#line 469 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_behavior_entry_get_behavior (DataImportsFSpotDbFSpotBehaviorEntry* self) {
+ DataImportsFSpotDbFSpotTableBehavior* result = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp1_ = NULL;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_BEHAVIOR_ENTRY (self), NULL);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = self->priv->behavior;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ result = _tmp1_;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return result;
+#line 487 "FSpotDatabaseBehavior.c"
+}
+
+
+static void data_imports_fspot_db_value_fspot_behavior_entry_init (GValue* value) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ value->data[0].v_pointer = NULL;
+#line 494 "FSpotDatabaseBehavior.c"
+}
+
+
+static void data_imports_fspot_db_value_fspot_behavior_entry_free_value (GValue* value) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (value->data[0].v_pointer) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ data_imports_fspot_db_fspot_behavior_entry_unref (value->data[0].v_pointer);
+#line 503 "FSpotDatabaseBehavior.c"
+ }
+}
+
+
+static void data_imports_fspot_db_value_fspot_behavior_entry_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (src_value->data[0].v_pointer) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ dest_value->data[0].v_pointer = data_imports_fspot_db_fspot_behavior_entry_ref (src_value->data[0].v_pointer);
+#line 513 "FSpotDatabaseBehavior.c"
+ } else {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 517 "FSpotDatabaseBehavior.c"
+ }
+}
+
+
+static gpointer data_imports_fspot_db_value_fspot_behavior_entry_peek_pointer (const GValue* value) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return value->data[0].v_pointer;
+#line 525 "FSpotDatabaseBehavior.c"
+}
+
+
+static gchar* data_imports_fspot_db_value_fspot_behavior_entry_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (collect_values[0].v_pointer) {
+#line 532 "FSpotDatabaseBehavior.c"
+ DataImportsFSpotDbFSpotBehaviorEntry* object;
+ object = collect_values[0].v_pointer;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 539 "FSpotDatabaseBehavior.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.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 543 "FSpotDatabaseBehavior.c"
+ }
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ value->data[0].v_pointer = data_imports_fspot_db_fspot_behavior_entry_ref (object);
+#line 547 "FSpotDatabaseBehavior.c"
+ } else {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ value->data[0].v_pointer = NULL;
+#line 551 "FSpotDatabaseBehavior.c"
+ }
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return NULL;
+#line 555 "FSpotDatabaseBehavior.c"
+}
+
+
+static gchar* data_imports_fspot_db_value_fspot_behavior_entry_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ DataImportsFSpotDbFSpotBehaviorEntry** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (!object_p) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 566 "FSpotDatabaseBehavior.c"
+ }
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (!value->data[0].v_pointer) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ *object_p = NULL;
+#line 572 "FSpotDatabaseBehavior.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ *object_p = value->data[0].v_pointer;
+#line 576 "FSpotDatabaseBehavior.c"
+ } else {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ *object_p = data_imports_fspot_db_fspot_behavior_entry_ref (value->data[0].v_pointer);
+#line 580 "FSpotDatabaseBehavior.c"
+ }
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return NULL;
+#line 584 "FSpotDatabaseBehavior.c"
+}
+
+
+GParamSpec* data_imports_fspot_db_param_spec_fspot_behavior_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ DataImportsFSpotDbParamSpecFSpotBehaviorEntry* spec;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY), NULL);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return G_PARAM_SPEC (spec);
+#line 598 "FSpotDatabaseBehavior.c"
+}
+
+
+gpointer data_imports_fspot_db_value_get_fspot_behavior_entry (const GValue* value) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY), NULL);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return value->data[0].v_pointer;
+#line 607 "FSpotDatabaseBehavior.c"
+}
+
+
+void data_imports_fspot_db_value_set_fspot_behavior_entry (GValue* value, gpointer v_object) {
+ DataImportsFSpotDbFSpotBehaviorEntry* old;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY));
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ old = value->data[0].v_pointer;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (v_object) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY));
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ value->data[0].v_pointer = v_object;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ data_imports_fspot_db_fspot_behavior_entry_ref (value->data[0].v_pointer);
+#line 627 "FSpotDatabaseBehavior.c"
+ } else {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ value->data[0].v_pointer = NULL;
+#line 631 "FSpotDatabaseBehavior.c"
+ }
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (old) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ data_imports_fspot_db_fspot_behavior_entry_unref (old);
+#line 637 "FSpotDatabaseBehavior.c"
+ }
+}
+
+
+void data_imports_fspot_db_value_take_fspot_behavior_entry (GValue* value, gpointer v_object) {
+ DataImportsFSpotDbFSpotBehaviorEntry* old;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY));
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ old = value->data[0].v_pointer;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (v_object) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY));
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ value->data[0].v_pointer = v_object;
+#line 656 "FSpotDatabaseBehavior.c"
+ } else {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ value->data[0].v_pointer = NULL;
+#line 660 "FSpotDatabaseBehavior.c"
+ }
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (old) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ data_imports_fspot_db_fspot_behavior_entry_unref (old);
+#line 666 "FSpotDatabaseBehavior.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_behavior_entry_class_init (DataImportsFSpotDbFSpotBehaviorEntryClass * klass) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ data_imports_fspot_db_fspot_behavior_entry_parent_class = g_type_class_peek_parent (klass);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ ((DataImportsFSpotDbFSpotBehaviorEntryClass *) klass)->finalize = data_imports_fspot_db_fspot_behavior_entry_finalize;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotDbFSpotBehaviorEntryPrivate));
+#line 678 "FSpotDatabaseBehavior.c"
+}
+
+
+static void data_imports_fspot_db_fspot_behavior_entry_instance_init (DataImportsFSpotDbFSpotBehaviorEntry * self) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self->priv = DATA_IMPORTS_FSPOT_DB_FSPOT_BEHAVIOR_ENTRY_GET_PRIVATE (self);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self->ref_count = 1;
+#line 687 "FSpotDatabaseBehavior.c"
+}
+
+
+static void data_imports_fspot_db_fspot_behavior_entry_finalize (DataImportsFSpotDbFSpotBehaviorEntry* obj) {
+ DataImportsFSpotDbFSpotBehaviorEntry * self;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, DataImportsFSpotDbFSpotBehaviorEntry);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_signal_handlers_destroy (self);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->version);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->behavior);
+#line 701 "FSpotDatabaseBehavior.c"
+}
+
+
+GType data_imports_fspot_db_fspot_behavior_entry_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_behavior_entry_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_behavior_entry_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { data_imports_fspot_db_value_fspot_behavior_entry_init, data_imports_fspot_db_value_fspot_behavior_entry_free_value, data_imports_fspot_db_value_fspot_behavior_entry_copy_value, data_imports_fspot_db_value_fspot_behavior_entry_peek_pointer, "p", data_imports_fspot_db_value_fspot_behavior_entry_collect_value, "p", data_imports_fspot_db_value_fspot_behavior_entry_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotBehaviorEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_behavior_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotBehaviorEntry), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_behavior_entry_instance_init, &g_define_type_value_table };
+ static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
+ GType data_imports_fspot_db_fspot_behavior_entry_type_id;
+ data_imports_fspot_db_fspot_behavior_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DataImportsFSpotDbFSpotBehaviorEntry", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_behavior_entry_type_id__volatile, data_imports_fspot_db_fspot_behavior_entry_type_id);
+ }
+ return data_imports_fspot_db_fspot_behavior_entry_type_id__volatile;
+}
+
+
+gpointer data_imports_fspot_db_fspot_behavior_entry_ref (gpointer instance) {
+ DataImportsFSpotDbFSpotBehaviorEntry* self;
+ self = instance;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return instance;
+#line 726 "FSpotDatabaseBehavior.c"
+}
+
+
+void data_imports_fspot_db_fspot_behavior_entry_unref (gpointer instance) {
+ DataImportsFSpotDbFSpotBehaviorEntry* self;
+ self = instance;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ DATA_IMPORTS_FSPOT_DB_FSPOT_BEHAVIOR_ENTRY_GET_CLASS (self)->finalize (self);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 739 "FSpotDatabaseBehavior.c"
+ }
+}
+
+
+void data_imports_fspot_db_fspot_database_behavior_create_behavior_map (void) {
+ GeeHashMap* _tmp0_ = NULL;
+ GeeList* photos_list = NULL;
+ GeeArrayList* _tmp1_ = NULL;
+ gint* _tmp2_ = NULL;
+ gint* _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ UtilsVersionNumber* _tmp4_ = NULL;
+ UtilsVersionNumber* _tmp5_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV0Behavior* _tmp6_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV0Behavior* _tmp7_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp8_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp9_ = NULL;
+ gint* _tmp10_ = NULL;
+ gint* _tmp11_ = NULL;
+ gint _tmp11__length1 = 0;
+ UtilsVersionNumber* _tmp12_ = NULL;
+ UtilsVersionNumber* _tmp13_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV5Behavior* _tmp14_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV5Behavior* _tmp15_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp16_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp17_ = NULL;
+ gint* _tmp18_ = NULL;
+ gint* _tmp19_ = NULL;
+ gint _tmp19__length1 = 0;
+ UtilsVersionNumber* _tmp20_ = NULL;
+ UtilsVersionNumber* _tmp21_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV7Behavior* _tmp22_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV7Behavior* _tmp23_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp24_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp25_ = NULL;
+ gint* _tmp26_ = NULL;
+ gint* _tmp27_ = NULL;
+ gint _tmp27__length1 = 0;
+ UtilsVersionNumber* _tmp28_ = NULL;
+ UtilsVersionNumber* _tmp29_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV11Behavior* _tmp30_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV11Behavior* _tmp31_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp32_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp33_ = NULL;
+ gint* _tmp34_ = NULL;
+ gint* _tmp35_ = NULL;
+ gint _tmp35__length1 = 0;
+ UtilsVersionNumber* _tmp36_ = NULL;
+ UtilsVersionNumber* _tmp37_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV16Behavior* _tmp38_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV16Behavior* _tmp39_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp40_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp41_ = NULL;
+ gint* _tmp42_ = NULL;
+ gint* _tmp43_ = NULL;
+ gint _tmp43__length1 = 0;
+ UtilsVersionNumber* _tmp44_ = NULL;
+ UtilsVersionNumber* _tmp45_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV17Behavior* _tmp46_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV17Behavior* _tmp47_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp48_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp49_ = NULL;
+ gint* _tmp50_ = NULL;
+ gint* _tmp51_ = NULL;
+ gint _tmp51__length1 = 0;
+ UtilsVersionNumber* _tmp52_ = NULL;
+ UtilsVersionNumber* _tmp53_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV18Behavior* _tmp54_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV18Behavior* _tmp55_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp56_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp57_ = NULL;
+ GeeMap* _tmp58_ = NULL;
+ GeeList* tags_list = NULL;
+ GeeArrayList* _tmp59_ = NULL;
+ gint* _tmp60_ = NULL;
+ gint* _tmp61_ = NULL;
+ gint _tmp61__length1 = 0;
+ UtilsVersionNumber* _tmp62_ = NULL;
+ UtilsVersionNumber* _tmp63_ = NULL;
+ DataImportsFSpotDbFSpotTagsV0Behavior* _tmp64_ = NULL;
+ DataImportsFSpotDbFSpotTagsV0Behavior* _tmp65_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp66_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp67_ = NULL;
+ GeeMap* _tmp68_ = NULL;
+ GeeList* photo_tags_list = NULL;
+ GeeArrayList* _tmp69_ = NULL;
+ gint* _tmp70_ = NULL;
+ gint* _tmp71_ = NULL;
+ gint _tmp71__length1 = 0;
+ UtilsVersionNumber* _tmp72_ = NULL;
+ UtilsVersionNumber* _tmp73_ = NULL;
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior* _tmp74_ = NULL;
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior* _tmp75_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp76_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp77_ = NULL;
+ GeeMap* _tmp78_ = NULL;
+ GeeList* photo_versions_list = NULL;
+ GeeArrayList* _tmp79_ = NULL;
+ gint* _tmp80_ = NULL;
+ gint* _tmp81_ = NULL;
+ gint _tmp81__length1 = 0;
+ UtilsVersionNumber* _tmp82_ = NULL;
+ UtilsVersionNumber* _tmp83_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* _tmp84_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* _tmp85_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp86_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp87_ = NULL;
+ gint* _tmp88_ = NULL;
+ gint* _tmp89_ = NULL;
+ gint _tmp89__length1 = 0;
+ UtilsVersionNumber* _tmp90_ = NULL;
+ UtilsVersionNumber* _tmp91_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* _tmp92_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* _tmp93_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp94_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp95_ = NULL;
+ gint* _tmp96_ = NULL;
+ gint* _tmp97_ = NULL;
+ gint _tmp97__length1 = 0;
+ UtilsVersionNumber* _tmp98_ = NULL;
+ UtilsVersionNumber* _tmp99_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* _tmp100_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* _tmp101_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp102_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp103_ = NULL;
+ gint* _tmp104_ = NULL;
+ gint* _tmp105_ = NULL;
+ gint _tmp105__length1 = 0;
+ UtilsVersionNumber* _tmp106_ = NULL;
+ UtilsVersionNumber* _tmp107_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* _tmp108_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* _tmp109_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp110_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp111_ = NULL;
+ gint* _tmp112_ = NULL;
+ gint* _tmp113_ = NULL;
+ gint _tmp113__length1 = 0;
+ UtilsVersionNumber* _tmp114_ = NULL;
+ UtilsVersionNumber* _tmp115_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* _tmp116_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* _tmp117_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp118_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp119_ = NULL;
+ GeeMap* _tmp120_ = NULL;
+ GeeList* rolls_list = NULL;
+ GeeArrayList* _tmp121_ = NULL;
+ gint* _tmp122_ = NULL;
+ gint* _tmp123_ = NULL;
+ gint _tmp123__length1 = 0;
+ UtilsVersionNumber* _tmp124_ = NULL;
+ UtilsVersionNumber* _tmp125_ = NULL;
+ DataImportsFSpotDbFSpotRollsV0Behavior* _tmp126_ = NULL;
+ DataImportsFSpotDbFSpotRollsV0Behavior* _tmp127_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp128_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp129_ = NULL;
+ gint* _tmp130_ = NULL;
+ gint* _tmp131_ = NULL;
+ gint _tmp131__length1 = 0;
+ UtilsVersionNumber* _tmp132_ = NULL;
+ UtilsVersionNumber* _tmp133_ = NULL;
+ DataImportsFSpotDbFSpotRollsV5Behavior* _tmp134_ = NULL;
+ DataImportsFSpotDbFSpotRollsV5Behavior* _tmp135_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp136_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp137_ = NULL;
+ GeeMap* _tmp138_ = NULL;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GEE_TYPE_LIST, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_database_behavior_behavior_map);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ data_imports_fspot_db_fspot_database_behavior_behavior_map = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = gee_array_list_new (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, (GBoxedCopyFunc) data_imports_fspot_db_fspot_behavior_entry_ref, data_imports_fspot_db_fspot_behavior_entry_unref, NULL, NULL, NULL);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ photos_list = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp2_ = g_new0 (gint, 1);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp2_[0] = 0;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp3_ = _tmp2_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp3__length1 = 1;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp4_ = utils_version_number_new (_tmp3_, 1);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp5_ = _tmp4_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp6_ = data_imports_fspot_db_fspot_photos_v0_behavior_get_instance ();
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp7_ = _tmp6_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp8_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp9_ = _tmp8_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photos_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp9_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp7_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp5_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp3_ = (g_free (_tmp3_), NULL);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp10_ = g_new0 (gint, 1);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp10_[0] = 5;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp11_ = _tmp10_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp11__length1 = 1;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp12_ = utils_version_number_new (_tmp11_, 1);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp13_ = _tmp12_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp14_ = data_imports_fspot_db_fspot_photos_v5_behavior_get_instance ();
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp15_ = _tmp14_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp16_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp17_ = _tmp16_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photos_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp17_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp15_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp13_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp11_ = (g_free (_tmp11_), NULL);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp18_ = g_new0 (gint, 1);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp18_[0] = 7;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp19_ = _tmp18_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp19__length1 = 1;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp20_ = utils_version_number_new (_tmp19_, 1);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp21_ = _tmp20_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp22_ = data_imports_fspot_db_fspot_photos_v7_behavior_get_instance ();
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp23_ = _tmp22_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp24_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp25_ = _tmp24_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photos_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp25_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp25_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp23_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp21_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp19_ = (g_free (_tmp19_), NULL);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp26_ = g_new0 (gint, 1);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp26_[0] = 11;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp27_ = _tmp26_;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp27__length1 = 1;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp28_ = utils_version_number_new (_tmp27_, 1);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp29_ = _tmp28_;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp30_ = data_imports_fspot_db_fspot_photos_v11_behavior_get_instance ();
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp31_ = _tmp30_;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp32_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp29_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp33_ = _tmp32_;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photos_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp33_);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp33_);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp31_);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp29_);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp27_ = (g_free (_tmp27_), NULL);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp34_ = g_new0 (gint, 1);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp34_[0] = 16;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp35_ = _tmp34_;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp35__length1 = 1;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp36_ = utils_version_number_new (_tmp35_, 1);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp37_ = _tmp36_;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp38_ = data_imports_fspot_db_fspot_photos_v16_behavior_get_instance ();
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp39_ = _tmp38_;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp40_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp41_ = _tmp40_;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photos_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp41_);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp41_);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp39_);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp37_);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp35_ = (g_free (_tmp35_), NULL);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp42_ = g_new0 (gint, 1);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp42_[0] = 17;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp43_ = _tmp42_;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp43__length1 = 1;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp44_ = utils_version_number_new (_tmp43_, 1);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp45_ = _tmp44_;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp46_ = data_imports_fspot_db_fspot_photos_v17_behavior_get_instance ();
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp47_ = _tmp46_;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp48_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp49_ = _tmp48_;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photos_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp49_);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp49_);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp47_);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp45_);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp43_ = (g_free (_tmp43_), NULL);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp50_ = g_new0 (gint, 1);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp50_[0] = 18;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp51_ = _tmp50_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp51__length1 = 1;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp52_ = utils_version_number_new (_tmp51_, 1);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp53_ = _tmp52_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp54_ = data_imports_fspot_db_fspot_photos_v18_behavior_get_instance ();
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp55_ = _tmp54_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp56_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp53_, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp57_ = _tmp56_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photos_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp57_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp57_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp55_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp53_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp51_ = (g_free (_tmp51_), NULL);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp58_ = data_imports_fspot_db_fspot_database_behavior_behavior_map;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_map_set (_tmp58_, DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME, photos_list);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp59_ = gee_array_list_new (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, (GBoxedCopyFunc) data_imports_fspot_db_fspot_behavior_entry_ref, data_imports_fspot_db_fspot_behavior_entry_unref, NULL, NULL, NULL);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ tags_list = G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_LIST, GeeList);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp60_ = g_new0 (gint, 1);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp60_[0] = 0;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp61_ = _tmp60_;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp61__length1 = 1;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp62_ = utils_version_number_new (_tmp61_, 1);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp63_ = _tmp62_;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp64_ = data_imports_fspot_db_fspot_tags_v0_behavior_get_instance ();
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp65_ = _tmp64_;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp66_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp63_, G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp67_ = _tmp66_;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (tags_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp67_);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp67_);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp65_);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp63_);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp61_ = (g_free (_tmp61_), NULL);
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp68_ = data_imports_fspot_db_fspot_database_behavior_behavior_map;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_map_set (_tmp68_, DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_TABLE_NAME, tags_list);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp69_ = gee_array_list_new (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, (GBoxedCopyFunc) data_imports_fspot_db_fspot_behavior_entry_ref, data_imports_fspot_db_fspot_behavior_entry_unref, NULL, NULL, NULL);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ photo_tags_list = G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, GEE_TYPE_LIST, GeeList);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp70_ = g_new0 (gint, 1);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp70_[0] = 0;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp71_ = _tmp70_;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp71__length1 = 1;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp72_ = utils_version_number_new (_tmp71_, 1);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp73_ = _tmp72_;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp74_ = data_imports_fspot_db_fspot_photo_tags_v0_behavior_get_instance ();
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp75_ = _tmp74_;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp76_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp73_, G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp77_ = _tmp76_;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photo_tags_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp77_);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp77_);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp75_);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp73_);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp71_ = (g_free (_tmp71_), NULL);
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp78_ = data_imports_fspot_db_fspot_database_behavior_behavior_map;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_map_set (_tmp78_, DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_TABLE_TABLE_NAME, photo_tags_list);
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp79_ = gee_array_list_new (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, (GBoxedCopyFunc) data_imports_fspot_db_fspot_behavior_entry_ref, data_imports_fspot_db_fspot_behavior_entry_unref, NULL, NULL, NULL);
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ photo_versions_list = G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, GEE_TYPE_LIST, GeeList);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp80_ = g_new0 (gint, 1);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp80_[0] = 0;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp81_ = _tmp80_;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp81__length1 = 1;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp82_ = utils_version_number_new (_tmp81_, 1);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp83_ = _tmp82_;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp84_ = data_imports_fspot_db_fspot_photo_versions_v0_behavior_get_instance ();
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp85_ = _tmp84_;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp86_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp83_, G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp87_ = _tmp86_;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photo_versions_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp87_);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp87_);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp85_);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp83_);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp81_ = (g_free (_tmp81_), NULL);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp88_ = g_new0 (gint, 1);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp88_[0] = 9;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp89_ = _tmp88_;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp89__length1 = 1;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp90_ = utils_version_number_new (_tmp89_, 1);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp91_ = _tmp90_;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp92_ = data_imports_fspot_db_fspot_photo_versions_v9_behavior_get_instance ();
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp93_ = _tmp92_;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp94_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp91_, G_TYPE_CHECK_INSTANCE_CAST (_tmp93_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp95_ = _tmp94_;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photo_versions_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp95_);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp95_);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp93_);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp91_);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp89_ = (g_free (_tmp89_), NULL);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp96_ = g_new0 (gint, 1);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp96_[0] = 16;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp97_ = _tmp96_;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp97__length1 = 1;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp98_ = utils_version_number_new (_tmp97_, 1);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp99_ = _tmp98_;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp100_ = data_imports_fspot_db_fspot_photo_versions_v16_behavior_get_instance ();
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp101_ = _tmp100_;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp102_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp99_, G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp103_ = _tmp102_;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photo_versions_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp103_);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp103_);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp101_);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp99_);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp97_ = (g_free (_tmp97_), NULL);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp104_ = g_new0 (gint, 1);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp104_[0] = 17;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp105_ = _tmp104_;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp105__length1 = 1;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp106_ = utils_version_number_new (_tmp105_, 1);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp107_ = _tmp106_;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp108_ = data_imports_fspot_db_fspot_photo_versions_v17_behavior_get_instance ();
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp109_ = _tmp108_;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp110_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp107_, G_TYPE_CHECK_INSTANCE_CAST (_tmp109_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp111_ = _tmp110_;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photo_versions_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp111_);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp111_);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp109_);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp107_);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp105_ = (g_free (_tmp105_), NULL);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp112_ = g_new0 (gint, 1);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp112_[0] = 18;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp113_ = _tmp112_;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp113__length1 = 1;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp114_ = utils_version_number_new (_tmp113_, 1);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp115_ = _tmp114_;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp116_ = data_imports_fspot_db_fspot_photo_versions_v18_behavior_get_instance ();
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp117_ = _tmp116_;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp118_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp115_, G_TYPE_CHECK_INSTANCE_CAST (_tmp117_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp119_ = _tmp118_;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (photo_versions_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp119_);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp119_);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp117_);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp115_);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp113_ = (g_free (_tmp113_), NULL);
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp120_ = data_imports_fspot_db_fspot_database_behavior_behavior_map;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_map_set (_tmp120_, DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_TABLE_NAME, photo_versions_list);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp121_ = gee_array_list_new (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_BEHAVIOR_ENTRY, (GBoxedCopyFunc) data_imports_fspot_db_fspot_behavior_entry_ref, data_imports_fspot_db_fspot_behavior_entry_unref, NULL, NULL, NULL);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ rolls_list = G_TYPE_CHECK_INSTANCE_CAST (_tmp121_, GEE_TYPE_LIST, GeeList);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp122_ = g_new0 (gint, 1);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp122_[0] = 0;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp123_ = _tmp122_;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp123__length1 = 1;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp124_ = utils_version_number_new (_tmp123_, 1);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp125_ = _tmp124_;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp126_ = data_imports_fspot_db_fspot_rolls_v0_behavior_get_instance ();
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp127_ = _tmp126_;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp128_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp125_, G_TYPE_CHECK_INSTANCE_CAST (_tmp127_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp129_ = _tmp128_;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (rolls_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp129_);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp129_);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp127_);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp125_);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp123_ = (g_free (_tmp123_), NULL);
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp130_ = g_new0 (gint, 1);
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp130_[0] = 5;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp131_ = _tmp130_;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp131__length1 = 1;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp132_ = utils_version_number_new (_tmp131_, 1);
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp133_ = _tmp132_;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp134_ = data_imports_fspot_db_fspot_rolls_v5_behavior_get_instance ();
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp135_ = _tmp134_;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp136_ = data_imports_fspot_db_fspot_behavior_entry_new (_tmp133_, G_TYPE_CHECK_INSTANCE_CAST (_tmp135_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp137_ = _tmp136_;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (rolls_list, GEE_TYPE_COLLECTION, GeeCollection), _tmp137_);
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (_tmp137_);
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp135_);
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp133_);
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp131_ = (g_free (_tmp131_), NULL);
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp138_ = data_imports_fspot_db_fspot_database_behavior_behavior_map;
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ gee_map_set (_tmp138_, DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_TABLE_NAME, rolls_list);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (rolls_list);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photo_versions_list);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photo_tags_list);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (tags_list);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photos_list);
+#line 1441 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_find_behavior (const gchar* table_name, UtilsVersionNumber* version) {
+ DataImportsFSpotDbFSpotTableBehavior* result = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* behavior = NULL;
+ GeeList* behavior_list = NULL;
+ GeeMap* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gpointer _tmp2_ = NULL;
+ GeeList* _tmp3_ = NULL;
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (table_name != NULL, NULL);
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (UTILS_IS_VERSION_NUMBER (version), NULL);
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ behavior = NULL;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_database_behavior_behavior_map;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = table_name;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp2_ = gee_map_get (_tmp0_, _tmp1_);
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ behavior_list = (GeeList*) _tmp2_;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp3_ = behavior_list;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp3_ != NULL) {
+#line 1471 "FSpotDatabaseBehavior.c"
+ {
+ GeeList* _entry_list = NULL;
+ GeeList* _tmp4_ = NULL;
+ GeeList* _tmp5_ = NULL;
+ gint _entry_size = 0;
+ GeeList* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+ gint _entry_index = 0;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp4_ = behavior_list;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp5_ = _g_object_ref0 (_tmp4_);
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _entry_list = _tmp5_;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp6_ = _entry_list;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp8_ = _tmp7_;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _entry_size = _tmp8_;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _entry_index = -1;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ while (TRUE) {
+#line 1499 "FSpotDatabaseBehavior.c"
+ gint _tmp9_ = 0;
+ gint _tmp10_ = 0;
+ gint _tmp11_ = 0;
+ DataImportsFSpotDbFSpotBehaviorEntry* entry = NULL;
+ GeeList* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ gpointer _tmp14_ = NULL;
+ UtilsVersionNumber* _tmp15_ = NULL;
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp16_ = NULL;
+ UtilsVersionNumber* _tmp17_ = NULL;
+ UtilsVersionNumber* _tmp18_ = NULL;
+ gint _tmp19_ = 0;
+ gboolean _tmp20_ = FALSE;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp9_ = _entry_index;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _entry_index = _tmp9_ + 1;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp10_ = _entry_index;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp11_ = _entry_size;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (!(_tmp10_ < _tmp11_)) {
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ break;
+#line 1525 "FSpotDatabaseBehavior.c"
+ }
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp12_ = _entry_list;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp13_ = _entry_index;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp14_ = gee_list_get (_tmp12_, _tmp13_);
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ entry = (DataImportsFSpotDbFSpotBehaviorEntry*) _tmp14_;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp15_ = version;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp16_ = entry;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp17_ = data_imports_fspot_db_fspot_behavior_entry_get_version (_tmp16_);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp18_ = _tmp17_;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp19_ = gee_comparable_compare_to (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COMPARABLE, GeeComparable), _tmp18_);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp20_ = _tmp19_ >= 0;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_tmp18_);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp20_) {
+#line 1551 "FSpotDatabaseBehavior.c"
+ DataImportsFSpotDbFSpotBehaviorEntry* _tmp21_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp22_ = NULL;
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp21_ = entry;
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp22_ = data_imports_fspot_db_fspot_behavior_entry_get_behavior (_tmp21_);
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (behavior);
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ behavior = _tmp22_;
+#line 1562 "FSpotDatabaseBehavior.c"
+ }
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _data_imports_fspot_db_fspot_behavior_entry_unref0 (entry);
+#line 1566 "FSpotDatabaseBehavior.c"
+ }
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (_entry_list);
+#line 1570 "FSpotDatabaseBehavior.c"
+ }
+ } else {
+ const gchar* _tmp23_ = NULL;
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp23_ = table_name;
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_warning ("FSpotDatabaseBehavior.vala:155: Could not find behavior list for table" \
+" %s", _tmp23_);
+#line 1578 "FSpotDatabaseBehavior.c"
+ }
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ result = behavior;
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (behavior_list);
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return result;
+#line 1586 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotDatabaseBehavior* data_imports_fspot_db_fspot_database_behavior_construct (GType object_type, UtilsVersionNumber* version, GError** error) {
+ DataImportsFSpotDbFSpotDatabaseBehavior * self = NULL;
+ UtilsVersionNumber* _tmp0_ = NULL;
+ UtilsVersionNumber* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ DataImportsFSpotDbFSpotTableBehavior* photos_generic_behavior = NULL;
+ UtilsVersionNumber* _tmp8_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp9_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp10_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* tags_generic_behavior = NULL;
+ UtilsVersionNumber* _tmp13_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp14_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp15_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* photo_tags_generic_behavior = NULL;
+ UtilsVersionNumber* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp19_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp20_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* photo_versions_generic_behavior = NULL;
+ UtilsVersionNumber* _tmp23_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp24_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp25_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* rolls_generic_behavior = NULL;
+ UtilsVersionNumber* _tmp28_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp29_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp30_ = NULL;
+ gboolean _tmp33_ = FALSE;
+ gboolean _tmp34_ = FALSE;
+ gboolean _tmp35_ = FALSE;
+ gboolean _tmp36_ = FALSE;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp37_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (UTILS_IS_VERSION_NUMBER (version), NULL);
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self = (DataImportsFSpotDbFSpotDatabaseBehavior*) g_object_new (object_type, NULL);
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = version;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_database_behavior_MIN_UNSUPPORTED_VERSION;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp2_ = gee_comparable_compare_to (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COMPARABLE, GeeComparable), _tmp1_);
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp2_ >= 0) {
+#line 1633 "FSpotDatabaseBehavior.c"
+ UtilsVersionNumber* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp3_ = version;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp4_ = utils_version_number_to_string (_tmp3_);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp5_ = _tmp4_;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp6_ = g_error_new (SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR, SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR_UNSUPPORTED_VERSION, "Version %s is not yet supported", _tmp5_);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp7_ = _tmp6_;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_free0 (_tmp5_);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _inner_error_ = _tmp7_;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_inner_error_->domain == SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR) {
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_propagate_error (error, _inner_error_);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return NULL;
+#line 1661 "FSpotDatabaseBehavior.c"
+ } else {
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.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 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_clear_error (&_inner_error_);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return NULL;
+#line 1669 "FSpotDatabaseBehavior.c"
+ }
+ }
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp8_ = version;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp9_ = data_imports_fspot_db_fspot_database_behavior_find_behavior (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME, _tmp8_);
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ photos_generic_behavior = _tmp9_;
+#line 164 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp10_ = photos_generic_behavior;
+#line 164 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp10_ != NULL) {
+#line 1682 "FSpotDatabaseBehavior.c"
+ DataImportsFSpotDbFSpotTableBehavior* _tmp11_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp12_ = NULL;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp11_ = photos_generic_behavior;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR) ? ((DataImportsFSpotDbFSpotTableBehavior*) _tmp11_) : NULL);
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->photos_behavior);
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self->priv->photos_behavior = _tmp12_;
+#line 1693 "FSpotDatabaseBehavior.c"
+ }
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp13_ = version;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp14_ = data_imports_fspot_db_fspot_database_behavior_find_behavior (DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_TABLE_NAME, _tmp13_);
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ tags_generic_behavior = _tmp14_;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp15_ = tags_generic_behavior;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp15_ != NULL) {
+#line 1705 "FSpotDatabaseBehavior.c"
+ DataImportsFSpotDbFSpotTableBehavior* _tmp16_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp17_ = NULL;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp16_ = tags_generic_behavior;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR) ? ((DataImportsFSpotDbFSpotTableBehavior*) _tmp16_) : NULL);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->tags_behavior);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self->priv->tags_behavior = _tmp17_;
+#line 1716 "FSpotDatabaseBehavior.c"
+ }
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp18_ = version;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp19_ = data_imports_fspot_db_fspot_database_behavior_find_behavior (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_TABLE_TABLE_NAME, _tmp18_);
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ photo_tags_generic_behavior = _tmp19_;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp20_ = photo_tags_generic_behavior;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp20_ != NULL) {
+#line 1728 "FSpotDatabaseBehavior.c"
+ DataImportsFSpotDbFSpotTableBehavior* _tmp21_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp22_ = NULL;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp21_ = photo_tags_generic_behavior;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR) ? ((DataImportsFSpotDbFSpotTableBehavior*) _tmp21_) : NULL);
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->photo_tags_behavior);
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self->priv->photo_tags_behavior = _tmp22_;
+#line 1739 "FSpotDatabaseBehavior.c"
+ }
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp23_ = version;
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp24_ = data_imports_fspot_db_fspot_database_behavior_find_behavior (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_TABLE_NAME, _tmp23_);
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ photo_versions_generic_behavior = _tmp24_;
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp25_ = photo_versions_generic_behavior;
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp25_ != NULL) {
+#line 1751 "FSpotDatabaseBehavior.c"
+ DataImportsFSpotDbFSpotTableBehavior* _tmp26_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp27_ = NULL;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp26_ = photo_versions_generic_behavior;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR) ? ((DataImportsFSpotDbFSpotTableBehavior*) _tmp26_) : NULL);
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->photo_versions_behavior);
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self->priv->photo_versions_behavior = _tmp27_;
+#line 1762 "FSpotDatabaseBehavior.c"
+ }
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp28_ = version;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp29_ = data_imports_fspot_db_fspot_database_behavior_find_behavior (DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_TABLE_NAME, _tmp28_);
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ rolls_generic_behavior = _tmp29_;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp30_ = rolls_generic_behavior;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp30_ != NULL) {
+#line 1774 "FSpotDatabaseBehavior.c"
+ DataImportsFSpotDbFSpotTableBehavior* _tmp31_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp32_ = NULL;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp31_ = rolls_generic_behavior;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp32_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp31_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR) ? ((DataImportsFSpotDbFSpotTableBehavior*) _tmp31_) : NULL);
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->rolls_behavior);
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self->priv->rolls_behavior = _tmp32_;
+#line 1785 "FSpotDatabaseBehavior.c"
+ }
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp37_ = self->priv->photos_behavior;
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp37_ == NULL) {
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp36_ = TRUE;
+#line 1793 "FSpotDatabaseBehavior.c"
+ } else {
+ DataImportsFSpotDbFSpotTableBehavior* _tmp38_ = NULL;
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp38_ = self->priv->tags_behavior;
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp36_ = _tmp38_ == NULL;
+#line 1800 "FSpotDatabaseBehavior.c"
+ }
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp36_) {
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp35_ = TRUE;
+#line 1806 "FSpotDatabaseBehavior.c"
+ } else {
+ DataImportsFSpotDbFSpotTableBehavior* _tmp39_ = NULL;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp39_ = self->priv->photo_tags_behavior;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp35_ = _tmp39_ == NULL;
+#line 1813 "FSpotDatabaseBehavior.c"
+ }
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp35_) {
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp34_ = TRUE;
+#line 1819 "FSpotDatabaseBehavior.c"
+ } else {
+ DataImportsFSpotDbFSpotTableBehavior* _tmp40_ = NULL;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp40_ = self->priv->photo_versions_behavior;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp34_ = _tmp40_ == NULL;
+#line 1826 "FSpotDatabaseBehavior.c"
+ }
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp34_) {
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp33_ = TRUE;
+#line 1832 "FSpotDatabaseBehavior.c"
+ } else {
+ DataImportsFSpotDbFSpotTableBehavior* _tmp41_ = NULL;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp41_ = self->priv->rolls_behavior;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp33_ = _tmp41_ == NULL;
+#line 1839 "FSpotDatabaseBehavior.c"
+ }
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_tmp33_) {
+#line 1843 "FSpotDatabaseBehavior.c"
+ UtilsVersionNumber* _tmp42_ = NULL;
+ gchar* _tmp43_ = NULL;
+ gchar* _tmp44_ = NULL;
+ GError* _tmp45_ = NULL;
+ GError* _tmp46_ = NULL;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp42_ = version;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp43_ = utils_version_number_to_string (_tmp42_);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp44_ = _tmp43_;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp45_ = g_error_new (SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR, SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR_UNSUPPORTED_VERSION, "Version %s is not supported", _tmp44_);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp46_ = _tmp45_;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_free0 (_tmp44_);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _inner_error_ = _tmp46_;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ if (_inner_error_->domain == SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR) {
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_propagate_error (error, _inner_error_);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (rolls_generic_behavior);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photo_versions_generic_behavior);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photo_tags_generic_behavior);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (tags_generic_behavior);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photos_generic_behavior);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return NULL;
+#line 1881 "FSpotDatabaseBehavior.c"
+ } else {
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (rolls_generic_behavior);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photo_versions_generic_behavior);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photo_tags_generic_behavior);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (tags_generic_behavior);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photos_generic_behavior);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.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 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_clear_error (&_inner_error_);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return NULL;
+#line 1899 "FSpotDatabaseBehavior.c"
+ }
+ }
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (rolls_generic_behavior);
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photo_versions_generic_behavior);
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photo_tags_generic_behavior);
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (tags_generic_behavior);
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (photos_generic_behavior);
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return self;
+#line 1914 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotDatabaseBehavior* data_imports_fspot_db_fspot_database_behavior_new (UtilsVersionNumber* version, GError** error) {
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return data_imports_fspot_db_fspot_database_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, version, error);
+#line 1921 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_photos_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self) {
+ DataImportsFSpotDbFSpotTableBehavior* result = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp1_ = NULL;
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR (self), NULL);
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = self->priv->photos_behavior;
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ result = _tmp1_;
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return result;
+#line 1939 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_tags_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self) {
+ DataImportsFSpotDbFSpotTableBehavior* result = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp1_ = NULL;
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR (self), NULL);
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = self->priv->tags_behavior;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ result = _tmp1_;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return result;
+#line 1957 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_photo_tags_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self) {
+ DataImportsFSpotDbFSpotTableBehavior* result = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp1_ = NULL;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR (self), NULL);
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = self->priv->photo_tags_behavior;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ result = _tmp1_;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return result;
+#line 1975 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_photo_versions_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self) {
+ DataImportsFSpotDbFSpotTableBehavior* result = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp1_ = NULL;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR (self), NULL);
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = self->priv->photo_versions_behavior;
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ result = _tmp1_;
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return result;
+#line 1993 "FSpotDatabaseBehavior.c"
+}
+
+
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_rolls_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self) {
+ DataImportsFSpotDbFSpotTableBehavior* result = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp1_ = NULL;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR (self), NULL);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = self->priv->rolls_behavior;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ result = _tmp1_;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ return result;
+#line 2011 "FSpotDatabaseBehavior.c"
+}
+
+
+static void data_imports_fspot_db_fspot_database_behavior_class_init (DataImportsFSpotDbFSpotDatabaseBehaviorClass * klass) {
+ gint* _tmp0_ = NULL;
+ gint* _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ UtilsVersionNumber* _tmp2_ = NULL;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ data_imports_fspot_db_fspot_database_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotDbFSpotDatabaseBehaviorPrivate));
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_database_behavior_finalize;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_ = g_new0 (gint, 1);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp0_[0] = 19;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1_ = _tmp0_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp1__length1 = 1;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _tmp2_ = utils_version_number_new (_tmp1_, 1);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ data_imports_fspot_db_fspot_database_behavior_MIN_UNSUPPORTED_VERSION = _tmp2_;
+#line 2038 "FSpotDatabaseBehavior.c"
+}
+
+
+static void data_imports_fspot_db_fspot_database_behavior_instance_init (DataImportsFSpotDbFSpotDatabaseBehavior * self) {
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self->priv = DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_GET_PRIVATE (self);
+#line 2045 "FSpotDatabaseBehavior.c"
+}
+
+
+static void data_imports_fspot_db_fspot_database_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotDatabaseBehavior * self;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehavior);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->photos_behavior);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->tags_behavior);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->photo_tags_behavior);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->photo_versions_behavior);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ _g_object_unref0 (self->priv->rolls_behavior);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_database_behavior_parent_class)->finalize (obj);
+#line 2065 "FSpotDatabaseBehavior.c"
+}
+
+
+/**
+ * A class that consolidates the behavior of all F-Spot tables (apart from meta)
+ * and is the one place to check whether the database version is supported.
+ */
+GType data_imports_fspot_db_fspot_database_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_database_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_database_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotDatabaseBehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_database_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotDatabaseBehavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_database_behavior_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_database_behavior_type_id;
+ data_imports_fspot_db_fspot_database_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotDatabaseBehavior", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_database_behavior_type_id__volatile, data_imports_fspot_db_fspot_database_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_database_behavior_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-data-imports/FSpotDatabaseTable.c b/plugins/shotwell-data-imports/FSpotDatabaseTable.c
new file mode 100644
index 0000000..48e5030
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotDatabaseTable.c
@@ -0,0 +1,992 @@
+/* FSpotDatabaseTable.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotDatabaseTable.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 <sqlite3.h>
+
+
+#define TYPE_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
+#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
+#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+
+typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
+typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;
+typedef struct _ImportableDatabaseTablePrivate ImportableDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE (data_imports_fspot_db_fspot_database_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseTable DataImportsFSpotDbFSpotDatabaseTable;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTableClass DataImportsFSpotDbFSpotDatabaseTableClass;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTablePrivate DataImportsFSpotDbFSpotDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR (data_imports_fspot_db_fspot_table_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehaviorIface))
+
+typedef struct _DataImportsFSpotDbFSpotTableBehavior DataImportsFSpotDbFSpotTableBehavior;
+typedef struct _DataImportsFSpotDbFSpotTableBehaviorIface DataImportsFSpotDbFSpotTableBehaviorIface;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
+
+struct _ImportableDatabaseTable {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ ImportableDatabaseTablePrivate * priv;
+ gchar* table_name;
+};
+
+struct _ImportableDatabaseTableClass {
+ GTypeClass parent_class;
+ void (*finalize) (ImportableDatabaseTable *self);
+};
+
+struct _DataImportsFSpotDbFSpotTableBehaviorIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_table_name) (DataImportsFSpotDbFSpotTableBehavior* self);
+ gchar** (*list_columns) (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+ void (*build_row) (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTable {
+ ImportableDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotDatabaseTablePrivate * priv;
+ sqlite3* fspot_db;
+ DataImportsFSpotDbFSpotTableBehavior* behavior;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTableClass {
+ ImportableDatabaseTableClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTablePrivate {
+ GType t_type;
+ GBoxedCopyFunc t_dup_func;
+ GDestroyNotify t_destroy_func;
+};
+
+typedef enum {
+ DATABASE_ERROR_ERROR,
+ DATABASE_ERROR_BACKING,
+ DATABASE_ERROR_MEMORY,
+ DATABASE_ERROR_ABORT,
+ DATABASE_ERROR_LIMITS,
+ DATABASE_ERROR_TYPESPEC
+} DatabaseError;
+#define DATABASE_ERROR database_error_quark ()
+
+static gpointer data_imports_fspot_db_fspot_database_table_parent_class = NULL;
+
+gpointer importable_database_table_ref (gpointer instance);
+void importable_database_table_unref (gpointer instance);
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_importable_database_table (GValue* value, gpointer v_object);
+void value_take_importable_database_table (GValue* value, gpointer v_object);
+gpointer value_get_importable_database_table (const GValue* value);
+GType importable_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_table_behavior_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTablePrivate))
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_DUMMY_PROPERTY
+};
+DataImportsFSpotDbFSpotDatabaseTable* data_imports_fspot_db_fspot_database_table_construct (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, sqlite3* db);
+ImportableDatabaseTable* importable_database_table_construct (GType object_type);
+void data_imports_fspot_db_fspot_database_table_set_behavior (DataImportsFSpotDbFSpotDatabaseTable* self, DataImportsFSpotDbFSpotTableBehavior* behavior);
+void importable_database_table_set_table_name (ImportableDatabaseTable* self, const gchar* table_name);
+gchar* data_imports_fspot_db_fspot_table_behavior_get_table_name (DataImportsFSpotDbFSpotTableBehavior* self);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_table_get_behavior (DataImportsFSpotDbFSpotDatabaseTable* self);
+gchar* data_imports_fspot_db_fspot_database_table_get_joined_column_list (DataImportsFSpotDbFSpotDatabaseTable* self, gboolean with_table);
+gchar** data_imports_fspot_db_fspot_table_behavior_list_columns (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+GQuark database_error_quark (void);
+gint data_imports_fspot_db_fspot_database_table_select_all (DataImportsFSpotDbFSpotDatabaseTable* self, sqlite3_stmt** stmt, GError** error);
+void importable_database_table_throw_error (const gchar* method, gint res, GError** error);
+static void data_imports_fspot_db_fspot_database_table_finalize (ImportableDatabaseTable* 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);
+
+
+DataImportsFSpotDbFSpotDatabaseTable* data_imports_fspot_db_fspot_database_table_construct (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, sqlite3* db) {
+ DataImportsFSpotDbFSpotDatabaseTable* self = NULL;
+ sqlite3* _tmp0_ = NULL;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_return_val_if_fail (db != NULL, NULL);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ self = (DataImportsFSpotDbFSpotDatabaseTable*) importable_database_table_construct (object_type);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ self->priv->t_type = t_type;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ self->priv->t_dup_func = t_dup_func;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ self->priv->t_destroy_func = t_destroy_func;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp0_ = db;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ self->fspot_db = _tmp0_;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ return self;
+#line 147 "FSpotDatabaseTable.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 154 "FSpotDatabaseTable.c"
+}
+
+
+void data_imports_fspot_db_fspot_database_table_set_behavior (DataImportsFSpotDbFSpotDatabaseTable* self, DataImportsFSpotDbFSpotTableBehavior* behavior) {
+ DataImportsFSpotDbFSpotTableBehavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp1_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_return_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE (self));
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_return_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR (behavior));
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp0_ = behavior;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_object_unref0 (self->behavior);
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ self->behavior = _tmp1_;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp2_ = behavior;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp3_ = data_imports_fspot_db_fspot_table_behavior_get_table_name (_tmp2_);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp4_ = _tmp3_;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ importable_database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable), _tmp4_);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (_tmp4_);
+#line 186 "FSpotDatabaseTable.c"
+}
+
+
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_table_get_behavior (DataImportsFSpotDbFSpotDatabaseTable* self) {
+ DataImportsFSpotDbFSpotTableBehavior* result = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp1_ = NULL;
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE (self), NULL);
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp0_ = self->behavior;
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ result = _tmp1_;
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ return result;
+#line 204 "FSpotDatabaseTable.c"
+}
+
+
+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 221 "FSpotDatabaseTable.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 231 "FSpotDatabaseTable.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 241 "FSpotDatabaseTable.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 247 "FSpotDatabaseTable.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 258 "FSpotDatabaseTable.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 270 "FSpotDatabaseTable.c"
+ } else {
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = FALSE;
+#line 274 "FSpotDatabaseTable.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp5_;
+#line 278 "FSpotDatabaseTable.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp1_) {
+#line 282 "FSpotDatabaseTable.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 305 "FSpotDatabaseTable.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 314 "FSpotDatabaseTable.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 327 "FSpotDatabaseTable.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 333 "FSpotDatabaseTable.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 343 "FSpotDatabaseTable.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 355 "FSpotDatabaseTable.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 359 "FSpotDatabaseTable.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 365 "FSpotDatabaseTable.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 376 "FSpotDatabaseTable.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 391 "FSpotDatabaseTable.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = FALSE;
+#line 395 "FSpotDatabaseTable.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = _tmp16_;
+#line 399 "FSpotDatabaseTable.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 405 "FSpotDatabaseTable.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 417 "FSpotDatabaseTable.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 438 "FSpotDatabaseTable.c"
+ } else {
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = 0;
+#line 442 "FSpotDatabaseTable.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 448 "FSpotDatabaseTable.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 455 "FSpotDatabaseTable.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 463 "FSpotDatabaseTable.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 501 "FSpotDatabaseTable.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 510 "FSpotDatabaseTable.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 526 "FSpotDatabaseTable.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 532 "FSpotDatabaseTable.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 546 "FSpotDatabaseTable.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 566 "FSpotDatabaseTable.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 581 "FSpotDatabaseTable.c"
+ } else {
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp53_ = "";
+#line 585 "FSpotDatabaseTable.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 593 "FSpotDatabaseTable.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 604 "FSpotDatabaseTable.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 613 "FSpotDatabaseTable.c"
+ }
+}
+
+
+gchar* data_imports_fspot_db_fspot_database_table_get_joined_column_list (DataImportsFSpotDbFSpotDatabaseTable* self, gboolean with_table) {
+ gchar* result = NULL;
+ gchar** columns = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gchar** _tmp2_ = NULL;
+ gint columns_length1 = 0;
+ gint _columns_size_ = 0;
+ gboolean _tmp3_ = FALSE;
+ gchar** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+ gchar* _tmp17_ = NULL;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE (self), NULL);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp0_ = self->behavior;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_table_behavior_list_columns (_tmp0_, &_tmp1_);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ columns = _tmp2_;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ columns_length1 = _tmp1_;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _columns_size_ = columns_length1;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp3_ = with_table;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (_tmp3_) {
+#line 646 "FSpotDatabaseTable.c"
+ {
+ gint i = 0;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ i = 0;
+#line 651 "FSpotDatabaseTable.c"
+ {
+ gboolean _tmp4_ = FALSE;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp4_ = TRUE;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ while (TRUE) {
+#line 658 "FSpotDatabaseTable.c"
+ gint _tmp6_ = 0;
+ gchar** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ gchar** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ gint _tmp9_ = 0;
+ const gchar* _tmp10_ = NULL;
+ gchar** _tmp11_ = NULL;
+ gint _tmp11__length1 = 0;
+ gint _tmp12_ = 0;
+ const gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (!_tmp4_) {
+#line 674 "FSpotDatabaseTable.c"
+ gint _tmp5_ = 0;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp5_ = i;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ i = _tmp5_ + 1;
+#line 680 "FSpotDatabaseTable.c"
+ }
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp4_ = FALSE;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp6_ = i;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp7_ = columns;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp7__length1 = columns_length1;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (!(_tmp6_ < _tmp7__length1)) {
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ break;
+#line 694 "FSpotDatabaseTable.c"
+ }
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp8_ = columns;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp8__length1 = columns_length1;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp9_ = i;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable)->table_name;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp11_ = columns;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp11__length1 = columns_length1;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp12_ = i;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp13_ = _tmp11_[_tmp12_];
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp14_ = g_strdup_printf ("%s.%s", _tmp10_, _tmp13_);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (_tmp8_[_tmp9_]);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp8_[_tmp9_] = _tmp14_;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp15_ = _tmp8_[_tmp9_];
+#line 720 "FSpotDatabaseTable.c"
+ }
+ }
+ }
+ }
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp16_ = columns;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp16__length1 = columns_length1;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp17_ = _vala_g_strjoinv (", ", _tmp16_, _tmp16__length1);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ result = _tmp17_;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) g_free), NULL);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ return result;
+#line 737 "FSpotDatabaseTable.c"
+}
+
+
+gint data_imports_fspot_db_fspot_database_table_select_all (DataImportsFSpotDbFSpotDatabaseTable* self, sqlite3_stmt** stmt, GError** error) {
+ sqlite3_stmt* _vala_stmt = NULL;
+ gint result = 0;
+ gchar* column_list = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* sql = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gint res = 0;
+ sqlite3* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+ sqlite3_stmt* _tmp13_ = NULL;
+ gint _tmp14_ = 0;
+ gboolean _tmp15_ = FALSE;
+ gint _tmp16_ = 0;
+ GError * _inner_error_ = NULL;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE (self), 0);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_database_table_get_joined_column_list (self, FALSE);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ column_list = _tmp0_;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp1_ = column_list;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable)->table_name;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp3_ = g_strdup_printf ("SELECT %s FROM %s", _tmp1_, _tmp2_);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ sql = _tmp3_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp4_ = self->fspot_db;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp5_ = sql;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp7_ = sqlite3_prepare_v2 (_tmp4_, _tmp5_, -1, &_tmp6_, NULL);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _sqlite3_finalize0 (_vala_stmt);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _vala_stmt = _tmp6_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ res = _tmp7_;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp8_ = res;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (_tmp8_ != SQLITE_OK) {
+#line 791 "FSpotDatabaseTable.c"
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gint _tmp12_ = 0;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp9_ = sql;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp10_ = g_strdup_printf ("Statement failed: %s", _tmp9_);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp11_ = _tmp10_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp12_ = res;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ importable_database_table_throw_error (_tmp11_, _tmp12_, &_inner_error_);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (_tmp11_);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (sql);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (column_list);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ return 0;
+#line 820 "FSpotDatabaseTable.c"
+ } else {
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (sql);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (column_list);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.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 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_clear_error (&_inner_error_);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ return 0;
+#line 832 "FSpotDatabaseTable.c"
+ }
+ }
+ }
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp13_ = _vala_stmt;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp14_ = sqlite3_step (_tmp13_);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ res = _tmp14_;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp16_ = res;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (_tmp16_ != SQLITE_ROW) {
+#line 846 "FSpotDatabaseTable.c"
+ gint _tmp17_ = 0;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp17_ = res;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp15_ = _tmp17_ != SQLITE_DONE;
+#line 852 "FSpotDatabaseTable.c"
+ } else {
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp15_ = FALSE;
+#line 856 "FSpotDatabaseTable.c"
+ }
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (_tmp15_) {
+#line 860 "FSpotDatabaseTable.c"
+ const gchar* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gint _tmp22_ = 0;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable)->table_name;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp19_ = column_list;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp20_ = g_strdup_printf ("select_all %s %s", _tmp18_, _tmp19_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp21_ = _tmp20_;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _tmp22_ = res;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ importable_database_table_throw_error (_tmp21_, _tmp22_, &_inner_error_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (_tmp21_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (sql);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (column_list);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ return 0;
+#line 892 "FSpotDatabaseTable.c"
+ } else {
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (sql);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (column_list);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.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 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_clear_error (&_inner_error_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ return 0;
+#line 904 "FSpotDatabaseTable.c"
+ }
+ }
+ }
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ result = res;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (sql);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_free0 (column_list);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ if (stmt) {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ *stmt = _vala_stmt;
+#line 918 "FSpotDatabaseTable.c"
+ } else {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _sqlite3_finalize0 (_vala_stmt);
+#line 922 "FSpotDatabaseTable.c"
+ }
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ return result;
+#line 926 "FSpotDatabaseTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_database_table_class_init (DataImportsFSpotDbFSpotDatabaseTableClass * klass) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ data_imports_fspot_db_fspot_database_table_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ ((ImportableDatabaseTableClass *) klass)->finalize = data_imports_fspot_db_fspot_database_table_finalize;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotDbFSpotDatabaseTablePrivate));
+#line 937 "FSpotDatabaseTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_database_table_instance_init (DataImportsFSpotDbFSpotDatabaseTable * self) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ self->priv = DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_PRIVATE (self);
+#line 944 "FSpotDatabaseTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_database_table_finalize (ImportableDatabaseTable* obj) {
+ DataImportsFSpotDbFSpotDatabaseTable * self;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ _g_object_unref0 (self->behavior);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotDatabaseTable.vala"
+ IMPORTABLE_DATABASE_TABLE_CLASS (data_imports_fspot_db_fspot_database_table_parent_class)->finalize (obj);
+#line 956 "FSpotDatabaseTable.c"
+}
+
+
+/**
+ * This class represents a generic F-Spot table.
+ */
+GType data_imports_fspot_db_fspot_database_table_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_database_table_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_database_table_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotDatabaseTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_database_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotDatabaseTable), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_database_table_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_database_table_type_id;
+ data_imports_fspot_db_fspot_database_table_type_id = g_type_register_static (TYPE_IMPORTABLE_DATABASE_TABLE, "DataImportsFSpotDbFSpotDatabaseTable", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
+ g_once_init_leave (&data_imports_fspot_db_fspot_database_table_type_id__volatile, data_imports_fspot_db_fspot_database_table_type_id);
+ }
+ return data_imports_fspot_db_fspot_database_table_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/plugins/shotwell-data-imports/FSpotImporter.c b/plugins/shotwell-data-imports/FSpotImporter.c
new file mode 100644
index 0000000..5cb73d5
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotImporter.c
@@ -0,0 +1,5345 @@
+/* FSpotImporter.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotImporter.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 <shotwell-plugin-dev-1.0.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include "shotwell-plugin-common.h"
+#include <glib/gi18n-lib.h>
+#include <time.h>
+#include <gee.h>
+#include <float.h>
+#include <math.h>
+
+
+#define TYPE_FSPOT_SERVICE (fspot_service_get_type ())
+#define FSPOT_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FSPOT_SERVICE, FSpotService))
+#define FSPOT_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FSPOT_SERVICE, FSpotServiceClass))
+#define IS_FSPOT_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FSPOT_SERVICE))
+#define IS_FSPOT_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FSPOT_SERVICE))
+#define FSPOT_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FSPOT_SERVICE, FSpotServiceClass))
+
+typedef struct _FSpotService FSpotService;
+typedef struct _FSpotServiceClass FSpotServiceClass;
+typedef struct _FSpotServicePrivate FSpotServicePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER (data_imports_fspot_fspot_data_importer_get_type ())
+#define DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter))
+#define DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporterClass))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER))
+#define DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporterClass))
+
+typedef struct _DataImportsFSpotFSpotDataImporter DataImportsFSpotFSpotDataImporter;
+typedef struct _DataImportsFSpotFSpotDataImporterClass DataImportsFSpotFSpotDataImporterClass;
+
+#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY (data_imports_fspot_fspot_importable_library_get_type ())
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibrary))
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibraryClass))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_LIBRARY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY))
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibraryClass))
+
+typedef struct _DataImportsFSpotFSpotImportableLibrary DataImportsFSpotFSpotImportableLibrary;
+typedef struct _DataImportsFSpotFSpotImportableLibraryClass DataImportsFSpotFSpotImportableLibraryClass;
+typedef struct _DataImportsFSpotFSpotImportableLibraryPrivate DataImportsFSpotFSpotImportableLibraryPrivate;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM (data_imports_fspot_fspot_importable_item_get_type ())
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem))
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItemClass))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM))
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItemClass))
+
+typedef struct _DataImportsFSpotFSpotImportableItem DataImportsFSpotFSpotImportableItem;
+typedef struct _DataImportsFSpotFSpotImportableItemClass DataImportsFSpotFSpotImportableItemClass;
+typedef struct _DataImportsFSpotFSpotImportableItemPrivate DataImportsFSpotFSpotImportableItemPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW (data_imports_fspot_db_fspot_photo_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoRow DataImportsFSpotDbFSpotPhotoRow;
+typedef struct _DataImportsFSpotDbFSpotPhotoRowClass DataImportsFSpotDbFSpotPhotoRowClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW (data_imports_fspot_db_fspot_photo_version_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSION_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSION_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionRow DataImportsFSpotDbFSpotPhotoVersionRow;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionRowClass DataImportsFSpotDbFSpotPhotoVersionRowClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW (data_imports_fspot_db_fspot_roll_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLL_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLL_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotRollRow DataImportsFSpotDbFSpotRollRow;
+typedef struct _DataImportsFSpotDbFSpotRollRowClass DataImportsFSpotDbFSpotRollRowClass;
+
+#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG (data_imports_fspot_fspot_importable_tag_get_type ())
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTag))
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTagClass))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG))
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTagClass))
+
+typedef struct _DataImportsFSpotFSpotImportableTag DataImportsFSpotFSpotImportableTag;
+typedef struct _DataImportsFSpotFSpotImportableTagClass DataImportsFSpotFSpotImportableTagClass;
+
+#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT (data_imports_fspot_fspot_importable_event_get_type ())
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEvent))
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEventClass))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT))
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEventClass))
+
+typedef struct _DataImportsFSpotFSpotImportableEvent DataImportsFSpotFSpotImportableEvent;
+typedef struct _DataImportsFSpotFSpotImportableEventClass DataImportsFSpotFSpotImportableEventClass;
+
+#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING (data_imports_fspot_fspot_importable_rating_get_type ())
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRating))
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRatingClass))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING))
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRatingClass))
+
+typedef struct _DataImportsFSpotFSpotImportableRating DataImportsFSpotFSpotImportableRating;
+typedef struct _DataImportsFSpotFSpotImportableRatingClass DataImportsFSpotFSpotImportableRatingClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoRowPrivate DataImportsFSpotDbFSpotPhotoRowPrivate;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionRowPrivate DataImportsFSpotDbFSpotPhotoVersionRowPrivate;
+#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
+typedef struct _DataImportsFSpotFSpotImportableTagPrivate DataImportsFSpotFSpotImportableTagPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW (data_imports_fspot_db_fspot_tag_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotTagRow DataImportsFSpotDbFSpotTagRow;
+typedef struct _DataImportsFSpotDbFSpotTagRowClass DataImportsFSpotDbFSpotTagRowClass;
+typedef struct _DataImportsFSpotDbFSpotTagRowPrivate DataImportsFSpotDbFSpotTagRowPrivate;
+typedef struct _DataImportsFSpotFSpotImportableEventPrivate DataImportsFSpotFSpotImportableEventPrivate;
+typedef struct _DataImportsFSpotFSpotImportableRatingPrivate DataImportsFSpotFSpotImportableRatingPrivate;
+
+#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE (data_imports_fspot_fspot_tags_cache_get_type ())
+#define DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, DataImportsFSpotFSpotTagsCache))
+#define DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, DataImportsFSpotFSpotTagsCacheClass))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_TAGS_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE))
+#define DATA_IMPORTS_FSPOT_IS_FSPOT_TAGS_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE))
+#define DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, DataImportsFSpotFSpotTagsCacheClass))
+
+typedef struct _DataImportsFSpotFSpotTagsCache DataImportsFSpotFSpotTagsCache;
+typedef struct _DataImportsFSpotFSpotTagsCacheClass DataImportsFSpotFSpotTagsCacheClass;
+typedef struct _DataImportsFSpotFSpotTagsCachePrivate DataImportsFSpotFSpotTagsCachePrivate;
+
+#define TYPE_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
+#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
+#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+
+typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
+typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE (data_imports_fspot_db_fspot_database_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseTable DataImportsFSpotDbFSpotDatabaseTable;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTableClass DataImportsFSpotDbFSpotDatabaseTableClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE (data_imports_fspot_db_fspot_tags_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotTagsTable DataImportsFSpotDbFSpotTagsTable;
+typedef struct _DataImportsFSpotDbFSpotTagsTableClass DataImportsFSpotDbFSpotTagsTableClass;
+#define _importable_database_table_unref0(var) ((var == NULL) ? NULL : (var = (importable_database_table_unref (var), NULL)))
+typedef struct _DataImportsFSpotFSpotDataImporterPrivate DataImportsFSpotFSpotDataImporterPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE (data_imports_fspot_db_fspot_database_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabase))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabaseClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabaseClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabase DataImportsFSpotDbFSpotDatabase;
+typedef struct _DataImportsFSpotDbFSpotDatabaseClass DataImportsFSpotDbFSpotDatabaseClass;
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+typedef struct _DataImportsFSpotDbFSpotDatabasePrivate DataImportsFSpotDbFSpotDatabasePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE (data_imports_fspot_db_fspot_photos_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosTable DataImportsFSpotDbFSpotPhotosTable;
+typedef struct _DataImportsFSpotDbFSpotPhotosTableClass DataImportsFSpotDbFSpotPhotosTableClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE (data_imports_fspot_db_fspot_photo_versions_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsTable DataImportsFSpotDbFSpotPhotoVersionsTable;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsTableClass DataImportsFSpotDbFSpotPhotoVersionsTableClass;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE (data_imports_fspot_db_fspot_rolls_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotRollsTable DataImportsFSpotDbFSpotRollsTable;
+typedef struct _DataImportsFSpotDbFSpotRollsTableClass DataImportsFSpotDbFSpotRollsTableClass;
+
+struct _FSpotService {
+ GObject parent_instance;
+ FSpotServicePrivate * priv;
+};
+
+struct _FSpotServiceClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotFSpotImportableLibrary {
+ GObject parent_instance;
+ DataImportsFSpotFSpotImportableLibraryPrivate * priv;
+};
+
+struct _DataImportsFSpotFSpotImportableLibraryClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotFSpotImportableLibraryPrivate {
+ GFile* db_file;
+};
+
+struct _DataImportsFSpotFSpotImportableItem {
+ GObject parent_instance;
+ DataImportsFSpotFSpotImportableItemPrivate * priv;
+};
+
+struct _DataImportsFSpotFSpotImportableItemClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotFSpotImportableItemPrivate {
+ DataImportsFSpotDbFSpotPhotoRow* photo_row;
+ DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row;
+ DataImportsFSpotDbFSpotRollRow* roll_row;
+ DataImportsFSpotFSpotImportableTag** tags;
+ gint tags_length1;
+ gint _tags_size_;
+ DataImportsFSpotFSpotImportableEvent* event;
+ DataImportsFSpotFSpotImportableRating* rating;
+ gchar* folder_path;
+ gchar* filename;
+ time_t* date_time;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoRow {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoRowPrivate * priv;
+ gint64 photo_id;
+ time_t time;
+ GFile* base_path;
+ gchar* filename;
+ gchar* description;
+ gint64 roll_id;
+ gint64 default_version_id;
+ gint rating;
+ gchar* md5_sum;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoRowClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionRow {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoVersionRowPrivate * priv;
+ gint64 photo_id;
+ gint64 version_id;
+ gchar* name;
+ GFile* base_path;
+ gchar* filename;
+ gchar* md5_sum;
+ gboolean is_protected;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionRowClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotFSpotImportableTag {
+ GObject parent_instance;
+ DataImportsFSpotFSpotImportableTagPrivate * priv;
+};
+
+struct _DataImportsFSpotFSpotImportableTagClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotFSpotImportableTagPrivate {
+ DataImportsFSpotDbFSpotTagRow* row;
+ DataImportsFSpotFSpotImportableTag* parent;
+};
+
+struct _DataImportsFSpotDbFSpotTagRow {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotTagRowPrivate * priv;
+ gint64 tag_id;
+ gchar* name;
+ gint64 category_id;
+ gboolean is_category;
+ gint sort_priority;
+ gchar* stock_icon;
+};
+
+struct _DataImportsFSpotDbFSpotTagRowClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotFSpotImportableEvent {
+ GObject parent_instance;
+ DataImportsFSpotFSpotImportableEventPrivate * priv;
+};
+
+struct _DataImportsFSpotFSpotImportableEventClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotFSpotImportableEventPrivate {
+ DataImportsFSpotDbFSpotTagRow* row;
+};
+
+struct _DataImportsFSpotFSpotImportableRating {
+ GObject parent_instance;
+ DataImportsFSpotFSpotImportableRatingPrivate * priv;
+};
+
+struct _DataImportsFSpotFSpotImportableRatingClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotFSpotImportableRatingPrivate {
+ gint rating_value;
+};
+
+struct _DataImportsFSpotFSpotTagsCache {
+ GObject parent_instance;
+ DataImportsFSpotFSpotTagsCachePrivate * priv;
+};
+
+struct _DataImportsFSpotFSpotTagsCacheClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotFSpotTagsCachePrivate {
+ DataImportsFSpotDbFSpotTagsTable* tags_table;
+ GeeHashMap* tags_map;
+};
+
+typedef enum {
+ DATABASE_ERROR_ERROR,
+ DATABASE_ERROR_BACKING,
+ DATABASE_ERROR_MEMORY,
+ DATABASE_ERROR_ABORT,
+ DATABASE_ERROR_LIMITS,
+ DATABASE_ERROR_TYPESPEC
+} DatabaseError;
+#define DATABASE_ERROR database_error_quark ()
+struct _DataImportsFSpotFSpotDataImporter {
+ GObject parent_instance;
+ DataImportsFSpotFSpotDataImporterPrivate * priv;
+};
+
+struct _DataImportsFSpotFSpotDataImporterClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotFSpotDataImporterPrivate {
+ SpitDataImportsPluginHost* host;
+ SpitDataImportsService* service;
+ gboolean running;
+};
+
+struct _DataImportsFSpotDbFSpotDatabase {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotDatabasePrivate * priv;
+ DataImportsFSpotDbFSpotPhotosTable* photos_table;
+ DataImportsFSpotDbFSpotPhotoVersionsTable* photo_versions_table;
+ DataImportsFSpotDbFSpotTagsTable* tags_table;
+ DataImportsFSpotDbFSpotRollsTable* rolls_table;
+ gint64 hidden_tag_id;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer fspot_service_parent_class = NULL;
+static GdkPixbuf** fspot_service_icon_pixbuf_set;
+static gint fspot_service_icon_pixbuf_set_length1;
+static GdkPixbuf** fspot_service_icon_pixbuf_set = NULL;
+static gint fspot_service_icon_pixbuf_set_length1 = 0;
+static gint _fspot_service_icon_pixbuf_set_size_ = 0;
+static SpitPluggableIface* fspot_service_spit_pluggable_parent_iface = NULL;
+static SpitDataImportsServiceIface* fspot_service_spit_data_imports_service_parent_iface = NULL;
+static gpointer data_imports_fspot_fspot_importable_library_parent_class = NULL;
+static SpitDataImportsImportableLibraryIface* data_imports_fspot_fspot_importable_library_spit_data_imports_importable_library_parent_iface = NULL;
+static gpointer data_imports_fspot_fspot_importable_item_parent_class = NULL;
+static SpitDataImportsImportableMediaItemIface* data_imports_fspot_fspot_importable_item_spit_data_imports_importable_media_item_parent_iface = NULL;
+static gpointer data_imports_fspot_fspot_importable_tag_parent_class = NULL;
+static SpitDataImportsImportableTagIface* data_imports_fspot_fspot_importable_tag_spit_data_imports_importable_tag_parent_iface = NULL;
+static gpointer data_imports_fspot_fspot_importable_event_parent_class = NULL;
+static SpitDataImportsImportableEventIface* data_imports_fspot_fspot_importable_event_spit_data_imports_importable_event_parent_iface = NULL;
+static gpointer data_imports_fspot_fspot_importable_rating_parent_class = NULL;
+static SpitDataImportsImportableRatingIface* data_imports_fspot_fspot_importable_rating_spit_data_imports_importable_rating_parent_iface = NULL;
+static gpointer data_imports_fspot_fspot_tags_cache_parent_class = NULL;
+static gpointer data_imports_fspot_fspot_data_importer_parent_class = NULL;
+static SpitDataImportsDataImporterIface* data_imports_fspot_fspot_data_importer_spit_data_imports_data_importer_parent_iface = NULL;
+
+GType fspot_service_get_type (void) G_GNUC_CONST;
+enum {
+ FSPOT_SERVICE_DUMMY_PROPERTY
+};
+#define FSPOT_SERVICE_ICON_FILENAME "f-spot-24.png"
+FSpotService* fspot_service_new (GFile* resource_directory);
+FSpotService* fspot_service_construct (GType object_type, GFile* resource_directory);
+void data_imports_fspot_db_init (void);
+static gint fspot_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+static const gchar* fspot_service_real_get_id (SpitPluggable* base);
+static const gchar* fspot_service_real_get_pluggable_name (SpitPluggable* base);
+static void fspot_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length);
+static void fspot_service_real_activation (SpitPluggable* base, gboolean enabled);
+static SpitDataImportsDataImporter* fspot_service_real_create_data_importer (SpitDataImportsService* base, SpitDataImportsPluginHost* host);
+DataImportsFSpotFSpotDataImporter* data_imports_fspot_fspot_data_importer_new (SpitDataImportsService* service, SpitDataImportsPluginHost* host);
+DataImportsFSpotFSpotDataImporter* data_imports_fspot_fspot_data_importer_construct (GType object_type, SpitDataImportsService* service, SpitDataImportsPluginHost* host);
+GType data_imports_fspot_fspot_data_importer_get_type (void) G_GNUC_CONST;
+static void fspot_service_finalize (GObject* obj);
+#define DATA_IMPORTS_FSPOT_SERVICE_NAME "F-Spot"
+#define DATA_IMPORTS_FSPOT_SERVICE_WELCOME_MESSAGE _ ("Welcome to the F-Spot library import service.\n" \
+"\n" \
+"Please select a library to import, either by selecting one of the exis" \
+"ting libraries found by Shotwell or by selecting an alternative F-Spot" \
+" database file.")
+#define DATA_IMPORTS_FSPOT_SERVICE_WELCOME_MESSAGE_FILE_ONLY _ ("Welcome to the F-Spot library import service.\n" \
+"\n" \
+"Please select an F-Spot database file.")
+#define DATA_IMPORTS_FSPOT_FILE_IMPORT_LABEL _ ("Manually select an F-Spot database file to import:")
+#define DATA_IMPORTS_FSPOT_ERROR_CANT_OPEN_DB_FILE _ ("Cannot open the selected F-Spot database file: the file does not exist" \
+" or is not an F-Spot database")
+#define DATA_IMPORTS_FSPOT_ERROR_UNSUPPORTED_DB_VERSION _ ("Cannot open the selected F-Spot database file: this version of the F-S" \
+"pot database is not supported by Shotwell")
+#define DATA_IMPORTS_FSPOT_ERROR_CANT_READ_TAGS_TABLE _ ("Cannot read the selected F-Spot database file: error while reading tag" \
+"s table")
+#define DATA_IMPORTS_FSPOT_ERROR_CANT_READ_PHOTOS_TABLE _ ("Cannot read the selected F-Spot database file: error while reading pho" \
+"tos table")
+#define DATA_IMPORTS_FSPOT_MESSAGE_FINAL_SCREEN _ ("Shotwell has found %d photos in the F-Spot library and is currently im" \
+"porting them. Duplicates will be automatically detected and removed.\n" \
+"\n" \
+"You can close this dialog and start using Shotwell while the import is" \
+" taking place in the background.")
+GType data_imports_fspot_fspot_importable_library_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibraryPrivate))
+enum {
+ DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY_DUMMY_PROPERTY
+};
+DataImportsFSpotFSpotImportableLibrary* data_imports_fspot_fspot_importable_library_new (GFile* db_file);
+DataImportsFSpotFSpotImportableLibrary* data_imports_fspot_fspot_importable_library_construct (GType object_type, GFile* db_file);
+GFile* data_imports_fspot_fspot_importable_library_get_db_file (DataImportsFSpotFSpotImportableLibrary* self);
+static gchar* data_imports_fspot_fspot_importable_library_real_get_display_name (SpitDataImportsImportableLibrary* base);
+static void data_imports_fspot_fspot_importable_library_finalize (GObject* obj);
+GType data_imports_fspot_fspot_importable_item_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photo_row_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photo_version_row_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_roll_row_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_fspot_importable_tag_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_fspot_importable_event_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_fspot_importable_rating_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItemPrivate))
+enum {
+ DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM_DUMMY_PROPERTY
+};
+DataImportsFSpotFSpotImportableItem* data_imports_fspot_fspot_importable_item_new (DataImportsFSpotDbFSpotPhotoRow* photo_row, DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row, DataImportsFSpotDbFSpotRollRow* roll_row, DataImportsFSpotFSpotImportableTag** tags, int tags_length1, DataImportsFSpotFSpotImportableEvent* event, gboolean is_hidden, gboolean is_favorite);
+DataImportsFSpotFSpotImportableItem* data_imports_fspot_fspot_importable_item_construct (GType object_type, DataImportsFSpotDbFSpotPhotoRow* photo_row, DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row, DataImportsFSpotDbFSpotRollRow* roll_row, DataImportsFSpotFSpotImportableTag** tags, int tags_length1, DataImportsFSpotFSpotImportableEvent* event, gboolean is_hidden, gboolean is_favorite);
+static DataImportsFSpotFSpotImportableTag** _vala_array_dup2 (DataImportsFSpotFSpotImportableTag** self, int length);
+static time_t* _time_t_dup (time_t* self);
+DataImportsFSpotFSpotImportableRating* data_imports_fspot_fspot_importable_rating_new (gint rating_value);
+DataImportsFSpotFSpotImportableRating* data_imports_fspot_fspot_importable_rating_construct (GType object_type, gint rating_value);
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_REJECTED -1
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_UNRATED 0
+static gchar* data_imports_fspot_fspot_importable_item_decode_url (DataImportsFSpotFSpotImportableItem* self, const gchar* url);
+static SpitDataImportsImportableTag** data_imports_fspot_fspot_importable_item_real_get_tags (SpitDataImportsImportableMediaItem* base, int* result_length1);
+static void _vala_array_add1 (SpitDataImportsImportableTag*** array, int* length, int* size, SpitDataImportsImportableTag* value);
+static SpitDataImportsImportableEvent* data_imports_fspot_fspot_importable_item_real_get_event (SpitDataImportsImportableMediaItem* base);
+static gchar* data_imports_fspot_fspot_importable_item_real_get_folder_path (SpitDataImportsImportableMediaItem* base);
+static gchar* data_imports_fspot_fspot_importable_item_real_get_filename (SpitDataImportsImportableMediaItem* base);
+static gchar* data_imports_fspot_fspot_importable_item_real_get_title (SpitDataImportsImportableMediaItem* base);
+static SpitDataImportsImportableRating* data_imports_fspot_fspot_importable_item_real_get_rating (SpitDataImportsImportableMediaItem* base);
+static time_t* data_imports_fspot_fspot_importable_item_real_get_exposure_time (SpitDataImportsImportableMediaItem* base);
+static void data_imports_fspot_fspot_importable_item_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_tag_row_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTagPrivate))
+enum {
+ DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG_DUMMY_PROPERTY
+};
+DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_new (DataImportsFSpotDbFSpotTagRow* row, DataImportsFSpotFSpotImportableTag* parent);
+DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_construct (GType object_type, DataImportsFSpotDbFSpotTagRow* row, DataImportsFSpotFSpotImportableTag* parent);
+gint64 data_imports_fspot_fspot_importable_tag_get_id (DataImportsFSpotFSpotImportableTag* self);
+static gchar* data_imports_fspot_fspot_importable_tag_real_get_name (SpitDataImportsImportableTag* base);
+static SpitDataImportsImportableTag* data_imports_fspot_fspot_importable_tag_real_get_parent (SpitDataImportsImportableTag* base);
+DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_get_fspot_parent (DataImportsFSpotFSpotImportableTag* self);
+gchar* data_imports_fspot_fspot_importable_tag_get_stock_icon (DataImportsFSpotFSpotImportableTag* self);
+gboolean data_imports_fspot_fspot_importable_tag_is_stock (DataImportsFSpotFSpotImportableTag* self);
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_PREFIX_STOCK_ICON "stock_icon:"
+DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_tag_to_event (DataImportsFSpotFSpotImportableTag* self);
+DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_event_new (DataImportsFSpotDbFSpotTagRow* row);
+DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_event_construct (GType object_type, DataImportsFSpotDbFSpotTagRow* row);
+static void data_imports_fspot_fspot_importable_tag_finalize (GObject* obj);
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEventPrivate))
+enum {
+ DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT_DUMMY_PROPERTY
+};
+static gchar* data_imports_fspot_fspot_importable_event_real_get_name (SpitDataImportsImportableEvent* base);
+static void data_imports_fspot_fspot_importable_event_finalize (GObject* obj);
+#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRatingPrivate))
+enum {
+ DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_DUMMY_PROPERTY
+};
+static gboolean data_imports_fspot_fspot_importable_rating_real_is_rejected (SpitDataImportsImportableRating* base);
+static gboolean data_imports_fspot_fspot_importable_rating_real_is_unrated (SpitDataImportsImportableRating* base);
+static gint data_imports_fspot_fspot_importable_rating_real_get_value (SpitDataImportsImportableRating* base);
+static void data_imports_fspot_fspot_importable_rating_finalize (GObject* obj);
+GType data_imports_fspot_fspot_tags_cache_get_type (void) G_GNUC_CONST;
+gpointer importable_database_table_ref (gpointer instance);
+void importable_database_table_unref (gpointer instance);
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_importable_database_table (GValue* value, gpointer v_object);
+void value_take_importable_database_table (GValue* value, gpointer v_object);
+gpointer value_get_importable_database_table (const GValue* value);
+GType importable_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_tags_table_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, DataImportsFSpotFSpotTagsCachePrivate))
+enum {
+ DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE_DUMMY_PROPERTY
+};
+GQuark database_error_quark (void);
+DataImportsFSpotFSpotTagsCache* data_imports_fspot_fspot_tags_cache_new (DataImportsFSpotDbFSpotTagsTable* tags_table, GError** error);
+DataImportsFSpotFSpotTagsCache* data_imports_fspot_fspot_tags_cache_construct (GType object_type, DataImportsFSpotDbFSpotTagsTable* tags_table, GError** error);
+static gint64* _int64_dup (gint64* self);
+DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_tags_cache_get_tag (DataImportsFSpotFSpotTagsCache* self, DataImportsFSpotDbFSpotTagRow* tag_row, GError** error);
+static DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_tags_cache_get_tag_from_id (DataImportsFSpotFSpotTagsCache* self, gint64 tag_id, GError** error);
+DataImportsFSpotDbFSpotTagRow* data_imports_fspot_db_fspot_tags_table_get_by_id (DataImportsFSpotDbFSpotTagsTable* self, gint64 tag_id, GError** error);
+static void data_imports_fspot_fspot_tags_cache_finalize (GObject* obj);
+#define DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporterPrivate))
+enum {
+ DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER_DUMMY_PROPERTY
+};
+static gboolean data_imports_fspot_fspot_data_importer_real_is_running (SpitDataImportsDataImporter* base);
+static SpitDataImportsService* data_imports_fspot_fspot_data_importer_real_get_service (SpitDataImportsDataImporter* base);
+static void data_imports_fspot_fspot_data_importer_real_start (SpitDataImportsDataImporter* base);
+static void data_imports_fspot_fspot_data_importer_do_discover_importable_libraries (DataImportsFSpotFSpotDataImporter* self);
+static void data_imports_fspot_fspot_data_importer_real_stop (SpitDataImportsDataImporter* base);
+static void _vala_array_add2 (SpitDataImportsImportableLibrary*** array, int* length, int* size, SpitDataImportsImportableLibrary* value);
+static void data_imports_fspot_fspot_data_importer_real_on_library_selected (SpitDataImportsDataImporter* base, SpitDataImportsImportableLibrary* library);
+static void data_imports_fspot_fspot_data_importer_real_on_file_selected (SpitDataImportsDataImporter* base, GFile* file);
+GType data_imports_fspot_db_fspot_database_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotDatabase* data_imports_fspot_db_fspot_database_new (GFile* db_file, GError** error);
+DataImportsFSpotDbFSpotDatabase* data_imports_fspot_db_fspot_database_construct (GType object_type, GFile* db_file, GError** error);
+GType data_imports_fspot_db_fspot_photos_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photo_versions_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_rolls_table_get_type (void) G_GNUC_CONST;
+GeeArrayList* data_imports_fspot_db_fspot_photos_table_get_all (DataImportsFSpotDbFSpotPhotosTable* self, GError** error);
+GeeArrayList* data_imports_fspot_db_fspot_tags_table_get_by_photo_id (DataImportsFSpotDbFSpotTagsTable* self, gint64 photo_id, GError** error);
+static gboolean data_imports_fspot_fspot_data_importer_is_tag_hidden (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag, gint64 hidden_tag_id);
+static gboolean data_imports_fspot_fspot_data_importer_is_tag_favorite (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag);
+static void _vala_array_add3 (DataImportsFSpotFSpotImportableTag*** array, int* length, int* size, DataImportsFSpotFSpotImportableTag* value);
+DataImportsFSpotDbFSpotRollRow* data_imports_fspot_db_fspot_rolls_table_get_by_id (DataImportsFSpotDbFSpotRollsTable* self, gint64 roll_id, GError** error);
+GeeArrayList* data_imports_fspot_db_fspot_photo_versions_table_get_by_photo_id (DataImportsFSpotDbFSpotPhotoVersionsTable* self, gint64 photo_id, GError** error);
+static void _vala_array_add4 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value);
+static void _vala_array_add5 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value);
+static void _vala_array_add6 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value);
+void data_imports_fspot_fspot_data_importer_on_imported_items_count (DataImportsFSpotFSpotDataImporter* self, gint imported_items_count);
+static void _data_imports_fspot_fspot_data_importer_on_imported_items_count_spit_data_imports_imported_items_count_callback (gint imported_items_count, gpointer self);
+static gboolean data_imports_fspot_fspot_data_importer_is_tag_event (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag);
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_EVENTS "stock_icon:emblem-event"
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_FAV "stock_icon:emblem-favorite"
+static void data_imports_fspot_fspot_data_importer_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);
+
+
+FSpotService* fspot_service_construct (GType object_type, GFile* resource_directory) {
+ FSpotService * self = NULL;
+ GdkPixbuf** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = (FSpotService*) g_object_new (object_type, NULL);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_db_init ();
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = fspot_service_icon_pixbuf_set;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0__length1 = fspot_service_icon_pixbuf_set_length1;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp0_ == NULL) {
+#line 617 "FSpotImporter.c"
+ gint _tmp1_ = 0;
+ GdkPixbuf** _tmp2_ = NULL;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = resources_load_from_resource ("/org/gnome/Shotwell/Imports/" FSPOT_SERVICE_ICON_FILENAME, &_tmp1_);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ fspot_service_icon_pixbuf_set = (_vala_array_free (fspot_service_icon_pixbuf_set, fspot_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ fspot_service_icon_pixbuf_set = _tmp2_;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ fspot_service_icon_pixbuf_set_length1 = _tmp1_;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _fspot_service_icon_pixbuf_set_size_ = fspot_service_icon_pixbuf_set_length1;
+#line 630 "FSpotImporter.c"
+ }
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self;
+#line 634 "FSpotImporter.c"
+}
+
+
+FSpotService* fspot_service_new (GFile* resource_directory) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return fspot_service_construct (TYPE_FSPOT_SERVICE, resource_directory);
+#line 641 "FSpotImporter.c"
+}
+
+
+static gint fspot_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ FSpotService * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = min_host_interface;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = max_host_interface;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_DATA_IMPORTS_CURRENT_INTERFACE);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp2_;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 663 "FSpotImporter.c"
+}
+
+
+static const gchar* fspot_service_real_get_id (SpitPluggable* base) {
+ FSpotService * self;
+ const gchar* result = NULL;
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = "org.yorba.shotwell.dataimports.fspot";
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 676 "FSpotImporter.c"
+}
+
+
+static const gchar* fspot_service_real_get_pluggable_name (SpitPluggable* base) {
+ FSpotService * self;
+ const gchar* result = NULL;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = "F-Spot";
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 689 "FSpotImporter.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 696 "FSpotImporter.c"
+}
+
+
+static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length) {
+ GdkPixbuf** result;
+ int i;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = g_new0 (GdkPixbuf*, length + 1);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ for (i = 0; i < length; i++) {
+#line 707 "FSpotImporter.c"
+ GdkPixbuf* _tmp0_ = NULL;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result[i] = _tmp0_;
+#line 713 "FSpotImporter.c"
+ }
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 717 "FSpotImporter.c"
+}
+
+
+static void fspot_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ FSpotService * self;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GdkPixbuf** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GdkPixbuf** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_if_fail (info != NULL);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = g_strdup ("Bruno Girin");
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 ((*info).authors);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).authors = _tmp0_;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _ ("Copyright 2016 Software Freedom Conservancy Inc.");
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 ((*info).copyright);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).copyright = _tmp2_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 ((*info).translators);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).translators = _tmp3_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = g_strdup (_VERSION);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 ((*info).version);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).version = _tmp4_;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 ((*info).website_name);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).website_name = _tmp5_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 ((*info).website_url);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).website_url = _tmp6_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = g_strdup (RESOURCES_LICENSE);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 ((*info).license);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).license = _tmp7_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = fspot_service_icon_pixbuf_set;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8__length1 = fspot_service_icon_pixbuf_set_length1;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup1 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9__length1 = _tmp8__length1;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).icons = _tmp9_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*info).icons_length1 = _tmp9__length1;
+#line 799 "FSpotImporter.c"
+}
+
+
+static void fspot_service_real_activation (SpitPluggable* base, gboolean enabled) {
+ FSpotService * self;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
+#line 807 "FSpotImporter.c"
+}
+
+
+static SpitDataImportsDataImporter* fspot_service_real_create_data_importer (SpitDataImportsService* base, SpitDataImportsPluginHost* host) {
+ FSpotService * self;
+ SpitDataImportsDataImporter* result = NULL;
+ SpitDataImportsPluginHost* _tmp0_ = NULL;
+ DataImportsFSpotFSpotDataImporter* _tmp1_ = NULL;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = host;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = data_imports_fspot_fspot_data_importer_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService), _tmp0_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 828 "FSpotImporter.c"
+}
+
+
+static void fspot_service_class_init (FSpotServiceClass * klass) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ fspot_service_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (klass)->finalize = fspot_service_finalize;
+#line 837 "FSpotImporter.c"
+}
+
+
+static void fspot_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ fspot_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) fspot_service_real_get_pluggable_interface;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) fspot_service_real_get_id;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) fspot_service_real_get_pluggable_name;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) fspot_service_real_get_info;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) fspot_service_real_activation;
+#line 854 "FSpotImporter.c"
+}
+
+
+static void fspot_service_spit_data_imports_service_interface_init (SpitDataImportsServiceIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ fspot_service_spit_data_imports_service_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->create_data_importer = (SpitDataImportsDataImporter* (*)(SpitDataImportsService*, SpitDataImportsPluginHost*)) fspot_service_real_create_data_importer;
+#line 863 "FSpotImporter.c"
+}
+
+
+static void fspot_service_instance_init (FSpotService * self) {
+}
+
+
+static void fspot_service_finalize (GObject* obj) {
+ FSpotService * self;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FSPOT_SERVICE, FSpotService);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (fspot_service_parent_class)->finalize (obj);
+#line 877 "FSpotImporter.c"
+}
+
+
+GType fspot_service_get_type (void) {
+ static volatile gsize fspot_service_type_id__volatile = 0;
+ if (g_once_init_enter (&fspot_service_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (FSpotServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fspot_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FSpotService), 0, (GInstanceInitFunc) fspot_service_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) fspot_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_data_imports_service_info = { (GInterfaceInitFunc) fspot_service_spit_data_imports_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType fspot_service_type_id;
+ fspot_service_type_id = g_type_register_static (G_TYPE_OBJECT, "FSpotService", &g_define_type_info, 0);
+ g_type_add_interface_static (fspot_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (fspot_service_type_id, SPIT_DATA_IMPORTS_TYPE_SERVICE, &spit_data_imports_service_info);
+ g_once_init_leave (&fspot_service_type_id__volatile, fspot_service_type_id);
+ }
+ return fspot_service_type_id__volatile;
+}
+
+
+DataImportsFSpotFSpotImportableLibrary* data_imports_fspot_fspot_importable_library_construct (GType object_type, GFile* db_file) {
+ DataImportsFSpotFSpotImportableLibrary * self = NULL;
+ GFile* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (G_IS_FILE (db_file), NULL);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = (DataImportsFSpotFSpotImportableLibrary*) g_object_new (object_type, NULL);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = db_file;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->db_file);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->db_file = _tmp1_;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self;
+#line 915 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotImportableLibrary* data_imports_fspot_fspot_importable_library_new (GFile* db_file) {
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return data_imports_fspot_fspot_importable_library_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, db_file);
+#line 922 "FSpotImporter.c"
+}
+
+
+GFile* data_imports_fspot_fspot_importable_library_get_db_file (DataImportsFSpotFSpotImportableLibrary* self) {
+ GFile* result = NULL;
+ GFile* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_LIBRARY (self), NULL);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->db_file;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 940 "FSpotImporter.c"
+}
+
+
+static gchar* data_imports_fspot_fspot_importable_library_real_get_display_name (SpitDataImportsImportableLibrary* base) {
+ DataImportsFSpotFSpotImportableLibrary * self;
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibrary);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = _ ("F-Spot library: %s");
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = self->priv->db_file;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = g_file_get_path (_tmp1_);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = _tmp2_;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = g_strdup_printf (_tmp0_, _tmp3_);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = _tmp4_;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp3_);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp5_;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 973 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_library_class_init (DataImportsFSpotFSpotImportableLibraryClass * klass) {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_importable_library_parent_class = g_type_class_peek_parent (klass);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotImportableLibraryPrivate));
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_importable_library_finalize;
+#line 984 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_library_spit_data_imports_importable_library_interface_init (SpitDataImportsImportableLibraryIface * iface) {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_importable_library_spit_data_imports_importable_library_parent_iface = g_type_interface_peek_parent (iface);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_display_name = (gchar* (*)(SpitDataImportsImportableLibrary*)) data_imports_fspot_fspot_importable_library_real_get_display_name;
+#line 993 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_library_instance_init (DataImportsFSpotFSpotImportableLibrary * self) {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv = DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY_GET_PRIVATE (self);
+#line 1000 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_library_finalize (GObject* obj) {
+ DataImportsFSpotFSpotImportableLibrary * self;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibrary);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->db_file);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (data_imports_fspot_fspot_importable_library_parent_class)->finalize (obj);
+#line 1012 "FSpotImporter.c"
+}
+
+
+GType data_imports_fspot_fspot_importable_library_get_type (void) {
+ static volatile gsize data_imports_fspot_fspot_importable_library_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_fspot_importable_library_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotImportableLibraryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_importable_library_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotImportableLibrary), 0, (GInstanceInitFunc) data_imports_fspot_fspot_importable_library_instance_init, NULL };
+ static const GInterfaceInfo spit_data_imports_importable_library_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_importable_library_spit_data_imports_importable_library_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_fspot_importable_library_type_id;
+ data_imports_fspot_fspot_importable_library_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotImportableLibrary", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_fspot_importable_library_type_id, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, &spit_data_imports_importable_library_info);
+ g_once_init_leave (&data_imports_fspot_fspot_importable_library_type_id__volatile, data_imports_fspot_fspot_importable_library_type_id);
+ }
+ return data_imports_fspot_fspot_importable_library_type_id__volatile;
+}
+
+
+static DataImportsFSpotFSpotImportableTag** _vala_array_dup2 (DataImportsFSpotFSpotImportableTag** self, int length) {
+ DataImportsFSpotFSpotImportableTag** result;
+ int i;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = g_new0 (DataImportsFSpotFSpotImportableTag*, length + 1);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ for (i = 0; i < length; i++) {
+#line 1037 "FSpotImporter.c"
+ DataImportsFSpotFSpotImportableTag* _tmp0_ = NULL;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result[i] = _tmp0_;
+#line 1043 "FSpotImporter.c"
+ }
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 1047 "FSpotImporter.c"
+}
+
+
+static time_t* _time_t_dup (time_t* self) {
+ time_t* dup;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ dup = g_new0 (time_t, 1);
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ memcpy (dup, self, sizeof (time_t));
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return dup;
+#line 1059 "FSpotImporter.c"
+}
+
+
+static gpointer __time_t_dup0 (gpointer self) {
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self ? _time_t_dup (self) : NULL;
+#line 1066 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotImportableItem* data_imports_fspot_fspot_importable_item_construct (GType object_type, DataImportsFSpotDbFSpotPhotoRow* photo_row, DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row, DataImportsFSpotDbFSpotRollRow* roll_row, DataImportsFSpotFSpotImportableTag** tags, int tags_length1, DataImportsFSpotFSpotImportableEvent* event, gboolean is_hidden, gboolean is_favorite) {
+ DataImportsFSpotFSpotImportableItem * self = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp1_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp3_ = NULL;
+ DataImportsFSpotDbFSpotRollRow* _tmp4_ = NULL;
+ DataImportsFSpotDbFSpotRollRow* _tmp5_ = NULL;
+ DataImportsFSpotFSpotImportableTag** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ DataImportsFSpotFSpotImportableTag** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ DataImportsFSpotFSpotImportableEvent* _tmp8_ = NULL;
+ DataImportsFSpotFSpotImportableEvent* _tmp9_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp10_ = NULL;
+ time_t _tmp11_ = 0;
+ time_t* _tmp12_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp13_ = NULL;
+ gint _tmp14_ = 0;
+ gchar* _tmp23_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp24_ = NULL;
+ gchar* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp33_ = NULL;
+ gchar* _tmp38_ = NULL;
+ gboolean _tmp39_ = FALSE;
+ const gchar* _tmp40_ = NULL;
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_ROW (photo_row), NULL);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail ((photo_version_row == NULL) || DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSION_ROW (photo_version_row), NULL);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail ((roll_row == NULL) || DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLL_ROW (roll_row), NULL);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail ((event == NULL) || DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_EVENT (event), NULL);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = (DataImportsFSpotFSpotImportableItem*) g_object_new (object_type, NULL);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = photo_row;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->photo_row);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->photo_row = _tmp1_;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = photo_version_row;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->photo_version_row);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->photo_version_row = _tmp3_;
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = roll_row;
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = _g_object_ref0 (_tmp4_);
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->roll_row);
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->roll_row = _tmp5_;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = tags;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6__length1 = tags_length1;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = (_tmp6_ != NULL) ? _vala_array_dup2 (_tmp6_, _tmp6__length1) : ((gpointer) _tmp6_);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7__length1 = _tmp6__length1;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->tags = (_vala_array_free (self->priv->tags, self->priv->tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->tags = _tmp7_;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->tags_length1 = _tmp7__length1;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->_tags_size_ = self->priv->tags_length1;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = event;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9_ = _g_object_ref0 (_tmp8_);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->event);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->event = _tmp9_;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp10_ = photo_row;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp11_ = _tmp10_->time;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp12_ = __time_t_dup0 (&_tmp11_);
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (self->priv->date_time);
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->date_time = _tmp12_;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp13_ = photo_row;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp14_ = _tmp13_->rating;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp14_ > 0) {
+#line 1171 "FSpotImporter.c"
+ DataImportsFSpotDbFSpotPhotoRow* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+ DataImportsFSpotFSpotImportableRating* _tmp17_ = NULL;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp15_ = photo_row;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp16_ = _tmp15_->rating;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp17_ = data_imports_fspot_fspot_importable_rating_new (_tmp16_);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->rating);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->rating = _tmp17_;
+#line 1185 "FSpotImporter.c"
+ } else {
+ gboolean _tmp18_ = FALSE;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp18_ = is_hidden;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp18_) {
+#line 1192 "FSpotImporter.c"
+ DataImportsFSpotFSpotImportableRating* _tmp19_ = NULL;
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp19_ = data_imports_fspot_fspot_importable_rating_new (DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_REJECTED);
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->rating);
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->rating = _tmp19_;
+#line 1200 "FSpotImporter.c"
+ } else {
+ gboolean _tmp20_ = FALSE;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp20_ = is_favorite;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp20_) {
+#line 1207 "FSpotImporter.c"
+ DataImportsFSpotFSpotImportableRating* _tmp21_ = NULL;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp21_ = data_imports_fspot_fspot_importable_rating_new (5);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->rating);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->rating = _tmp21_;
+#line 1215 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotFSpotImportableRating* _tmp22_ = NULL;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp22_ = data_imports_fspot_fspot_importable_rating_new (DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_UNRATED);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->rating);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->rating = _tmp22_;
+#line 1224 "FSpotImporter.c"
+ }
+ }
+ }
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp24_ = photo_version_row;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp24_ != NULL) {
+#line 1232 "FSpotImporter.c"
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp25_ = NULL;
+ GFile* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp25_ = photo_version_row;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp26_ = _tmp25_->base_path;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp27_ = g_file_get_path (_tmp26_);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp23_);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp23_ = _tmp27_;
+#line 1246 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotDbFSpotPhotoRow* _tmp28_ = NULL;
+ GFile* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp28_ = photo_row;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp29_ = _tmp28_->base_path;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp30_ = g_file_get_path (_tmp29_);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp23_);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp23_ = _tmp30_;
+#line 1261 "FSpotImporter.c"
+ }
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp31_ = g_strdup (_tmp23_);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (self->priv->folder_path);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->folder_path = _tmp31_;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp33_ = photo_version_row;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp33_ != NULL) {
+#line 1273 "FSpotImporter.c"
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp34_ = NULL;
+ const gchar* _tmp35_ = NULL;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp34_ = photo_version_row;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp35_ = _tmp34_->filename;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp32_ = _tmp35_;
+#line 1282 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotDbFSpotPhotoRow* _tmp36_ = NULL;
+ const gchar* _tmp37_ = NULL;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp36_ = photo_row;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp37_ = _tmp36_->filename;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp32_ = _tmp37_;
+#line 1292 "FSpotImporter.c"
+ }
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp38_ = g_strdup (_tmp32_);
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (self->priv->filename);
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->filename = _tmp38_;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp40_ = self->priv->folder_path;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp40_ != NULL) {
+#line 1304 "FSpotImporter.c"
+ const gchar* _tmp41_ = NULL;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp41_ = self->priv->filename;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp39_ = _tmp41_ != NULL;
+#line 1310 "FSpotImporter.c"
+ } else {
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp39_ = FALSE;
+#line 1314 "FSpotImporter.c"
+ }
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp39_) {
+#line 1318 "FSpotImporter.c"
+ GFile* photo = NULL;
+ const gchar* _tmp42_ = NULL;
+ GFile* _tmp43_ = NULL;
+ GFile* _tmp44_ = NULL;
+ const gchar* _tmp45_ = NULL;
+ GFile* _tmp46_ = NULL;
+ GFile* _tmp47_ = NULL;
+ GFile* _tmp48_ = NULL;
+ gboolean _tmp49_ = FALSE;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp42_ = self->priv->folder_path;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp43_ = g_file_new_for_path (_tmp42_);
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp44_ = _tmp43_;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp45_ = self->priv->filename;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp46_ = g_file_get_child (_tmp44_, _tmp45_);
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp47_ = _tmp46_;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp44_);
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ photo = _tmp47_;
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp48_ = photo;
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp49_ = g_file_query_exists (_tmp48_, NULL);
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (!_tmp49_) {
+#line 1350 "FSpotImporter.c"
+ const gchar* _tmp50_ = NULL;
+ gchar* _tmp51_ = NULL;
+ const gchar* _tmp52_ = NULL;
+ gchar* _tmp53_ = NULL;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp50_ = self->priv->folder_path;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp51_ = data_imports_fspot_fspot_importable_item_decode_url (self, _tmp50_);
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (self->priv->folder_path);
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->folder_path = _tmp51_;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp52_ = self->priv->filename;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp53_ = data_imports_fspot_fspot_importable_item_decode_url (self, _tmp52_);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (self->priv->filename);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->filename = _tmp53_;
+#line 1371 "FSpotImporter.c"
+ }
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo);
+#line 1375 "FSpotImporter.c"
+ }
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp23_);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self;
+#line 1381 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotImportableItem* data_imports_fspot_fspot_importable_item_new (DataImportsFSpotDbFSpotPhotoRow* photo_row, DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row, DataImportsFSpotDbFSpotRollRow* roll_row, DataImportsFSpotFSpotImportableTag** tags, int tags_length1, DataImportsFSpotFSpotImportableEvent* event, gboolean is_hidden, gboolean is_favorite) {
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return data_imports_fspot_fspot_importable_item_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, photo_row, photo_version_row, roll_row, tags, tags_length1, event, is_hidden, is_favorite);
+#line 1388 "FSpotImporter.c"
+}
+
+
+static void _vala_array_add1 (SpitDataImportsImportableTag*** array, int* length, int* size, SpitDataImportsImportableTag* value) {
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if ((*length) == (*size)) {
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *array = g_renew (SpitDataImportsImportableTag*, *array, (*size) + 1);
+#line 1399 "FSpotImporter.c"
+ }
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[(*length)++] = value;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[*length] = NULL;
+#line 1405 "FSpotImporter.c"
+}
+
+
+static SpitDataImportsImportableTag** data_imports_fspot_fspot_importable_item_real_get_tags (SpitDataImportsImportableMediaItem* base, int* result_length1) {
+ DataImportsFSpotFSpotImportableItem * self;
+ SpitDataImportsImportableTag** result = NULL;
+ SpitDataImportsImportableTag** importable_tags = NULL;
+ SpitDataImportsImportableTag** _tmp0_ = NULL;
+ gint importable_tags_length1 = 0;
+ gint _importable_tags_size_ = 0;
+ DataImportsFSpotFSpotImportableTag** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ SpitDataImportsImportableTag** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = g_new0 (SpitDataImportsImportableTag*, 0 + 1);
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ importable_tags = _tmp0_;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ importable_tags_length1 = 0;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _importable_tags_size_ = importable_tags_length1;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = self->priv->tags;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1__length1 = self->priv->tags_length1;
+#line 1434 "FSpotImporter.c"
+ {
+ DataImportsFSpotFSpotImportableTag** tag_collection = NULL;
+ gint tag_collection_length1 = 0;
+ gint _tag_collection_size_ = 0;
+ gint tag_it = 0;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tag_collection = _tmp1_;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tag_collection_length1 = _tmp1__length1;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ for (tag_it = 0; tag_it < _tmp1__length1; tag_it = tag_it + 1) {
+#line 1446 "FSpotImporter.c"
+ DataImportsFSpotFSpotImportableTag* _tmp2_ = NULL;
+ DataImportsFSpotFSpotImportableTag* tag = NULL;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = _g_object_ref0 (tag_collection[tag_it]);
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tag = _tmp2_;
+#line 1453 "FSpotImporter.c"
+ {
+ SpitDataImportsImportableTag** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ DataImportsFSpotFSpotImportableTag* _tmp4_ = NULL;
+ SpitDataImportsImportableTag* _tmp5_ = NULL;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = importable_tags;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3__length1 = importable_tags_length1;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = tag;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTag));
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _vala_array_add1 (&importable_tags, &importable_tags_length1, &_importable_tags_size_, _tmp5_);
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 1471 "FSpotImporter.c"
+ }
+ }
+ }
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = importable_tags;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6__length1 = importable_tags_length1;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (result_length1) {
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *result_length1 = _tmp6__length1;
+#line 1483 "FSpotImporter.c"
+ }
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp6_;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 1489 "FSpotImporter.c"
+}
+
+
+static SpitDataImportsImportableEvent* data_imports_fspot_fspot_importable_item_real_get_event (SpitDataImportsImportableMediaItem* base) {
+ DataImportsFSpotFSpotImportableItem * self;
+ SpitDataImportsImportableEvent* result = NULL;
+ DataImportsFSpotFSpotImportableEvent* _tmp0_ = NULL;
+ SpitDataImportsImportableEvent* _tmp1_ = NULL;
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->event;
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEvent));
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 1508 "FSpotImporter.c"
+}
+
+
+static gchar* data_imports_fspot_fspot_importable_item_real_get_folder_path (SpitDataImportsImportableMediaItem* base) {
+ DataImportsFSpotFSpotImportableItem * self;
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 158 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->folder_path;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 1527 "FSpotImporter.c"
+}
+
+
+static gchar* data_imports_fspot_fspot_importable_item_real_get_filename (SpitDataImportsImportableMediaItem* base) {
+ DataImportsFSpotFSpotImportableItem * self;
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->filename;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 1546 "FSpotImporter.c"
+}
+
+
+static gchar* data_imports_fspot_fspot_importable_item_real_get_title (SpitDataImportsImportableMediaItem* base) {
+ DataImportsFSpotFSpotImportableItem * self;
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = self->priv->photo_row;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = _tmp2_->description;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp3_ == NULL) {
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = TRUE;
+#line 1568 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotDbFSpotPhotoRow* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = self->priv->photo_row;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = _tmp4_->description;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = g_strcmp0 (_tmp5_, "") == 0;
+#line 1578 "FSpotImporter.c"
+ }
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp1_) {
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = NULL;
+#line 1584 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotDbFSpotPhotoRow* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = self->priv->photo_row;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = _tmp6_->description;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = _tmp7_;
+#line 1594 "FSpotImporter.c"
+ }
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = g_strdup (_tmp0_);
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp8_;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 1602 "FSpotImporter.c"
+}
+
+
+static SpitDataImportsImportableRating* data_imports_fspot_fspot_importable_item_real_get_rating (SpitDataImportsImportableMediaItem* base) {
+ DataImportsFSpotFSpotImportableItem * self;
+ SpitDataImportsImportableRating* result = NULL;
+ DataImportsFSpotFSpotImportableRating* _tmp0_ = NULL;
+ SpitDataImportsImportableRating* _tmp1_ = NULL;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->rating;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRating));
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 1621 "FSpotImporter.c"
+}
+
+
+static time_t* data_imports_fspot_fspot_importable_item_real_get_exposure_time (SpitDataImportsImportableMediaItem* base) {
+ DataImportsFSpotFSpotImportableItem * self;
+ time_t* result = NULL;
+ time_t* _tmp0_ = NULL;
+ time_t* _tmp1_ = NULL;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->date_time;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = __time_t_dup0 (_tmp0_);
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 1640 "FSpotImporter.c"
+}
+
+
+static gint string_index_of_char (const gchar* self, gunichar c, gint start_index) {
+ gint result = 0;
+ gchar* _result_ = NULL;
+ gint _tmp0_ = 0;
+ gunichar _tmp1_ = 0U;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1007 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, 0);
+#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = start_index;
+#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = c;
+#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = g_utf8_strchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_);
+#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp2_;
+#line 1010 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = _result_;
+#line 1010 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp3_ != NULL) {
+#line 1665 "FSpotImporter.c"
+ gchar* _tmp4_ = NULL;
+#line 1011 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = _result_;
+#line 1011 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = (gint) (_tmp4_ - ((gchar*) self));
+#line 1011 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 1673 "FSpotImporter.c"
+ } else {
+#line 1013 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = -1;
+#line 1013 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 1679 "FSpotImporter.c"
+ }
+}
+
+
+static gchar* string_slice (const gchar* self, glong start, glong end) {
+ gchar* result = NULL;
+ glong string_length = 0L;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ glong _tmp2_ = 0L;
+ glong _tmp5_ = 0L;
+ gboolean _tmp8_ = FALSE;
+ glong _tmp9_ = 0L;
+ gboolean _tmp12_ = FALSE;
+ glong _tmp13_ = 0L;
+ glong _tmp16_ = 0L;
+ glong _tmp17_ = 0L;
+ glong _tmp18_ = 0L;
+ glong _tmp19_ = 0L;
+ glong _tmp20_ = 0L;
+ gchar* _tmp21_ = NULL;
+#line 1328 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = strlen (self);
+#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp0_;
+#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ string_length = (glong) _tmp1_;
+#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = start;
+#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp2_ < ((glong) 0)) {
+#line 1713 "FSpotImporter.c"
+ glong _tmp3_ = 0L;
+ glong _tmp4_ = 0L;
+#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = string_length;
+#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = start;
+#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ start = _tmp3_ + _tmp4_;
+#line 1722 "FSpotImporter.c"
+ }
+#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = end;
+#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp5_ < ((glong) 0)) {
+#line 1728 "FSpotImporter.c"
+ glong _tmp6_ = 0L;
+ glong _tmp7_ = 0L;
+#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp6_ = string_length;
+#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp7_ = end;
+#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ end = _tmp6_ + _tmp7_;
+#line 1737 "FSpotImporter.c"
+ }
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp9_ = start;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp9_ >= ((glong) 0)) {
+#line 1743 "FSpotImporter.c"
+ glong _tmp10_ = 0L;
+ glong _tmp11_ = 0L;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp10_ = start;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = string_length;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp8_ = _tmp10_ <= _tmp11_;
+#line 1752 "FSpotImporter.c"
+ } else {
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp8_ = FALSE;
+#line 1756 "FSpotImporter.c"
+ }
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp8_, NULL);
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp13_ = end;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp13_ >= ((glong) 0)) {
+#line 1764 "FSpotImporter.c"
+ glong _tmp14_ = 0L;
+ glong _tmp15_ = 0L;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp14_ = end;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp15_ = string_length;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = _tmp14_ <= _tmp15_;
+#line 1773 "FSpotImporter.c"
+ } else {
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 1777 "FSpotImporter.c"
+ }
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp12_, NULL);
+#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = start;
+#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp17_ = end;
+#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp18_ = start;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp19_ = end;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp20_ = start;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp21_;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 1799 "FSpotImporter.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 1817 "FSpotImporter.c"
+}
+
+
+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 1840 "FSpotImporter.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 1848 "FSpotImporter.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 1860 "FSpotImporter.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 1884 "FSpotImporter.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 1890 "FSpotImporter.c"
+ } else {
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = FALSE;
+#line 1894 "FSpotImporter.c"
+ }
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp0_) {
+#line 1898 "FSpotImporter.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 1910 "FSpotImporter.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 1920 "FSpotImporter.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 1926 "FSpotImporter.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 1940 "FSpotImporter.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 1950 "FSpotImporter.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 1956 "FSpotImporter.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 1965 "FSpotImporter.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 1985 "FSpotImporter.c"
+}
+
+
+static gchar* data_imports_fspot_fspot_importable_item_decode_url (DataImportsFSpotFSpotImportableItem* self, const gchar* url) {
+ gchar* result = NULL;
+ GString* builder = NULL;
+ GString* _tmp0_ = NULL;
+ GString* _tmp49_ = NULL;
+ const gchar* _tmp50_ = NULL;
+ gchar* _tmp51_ = NULL;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_ITEM (self), NULL);
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = g_string_new ("");
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ builder = _tmp0_;
+#line 2004 "FSpotImporter.c"
+ {
+ gint idx = 0;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ idx = 0;
+#line 2009 "FSpotImporter.c"
+ {
+ gboolean _tmp1_ = FALSE;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = TRUE;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ while (TRUE) {
+#line 2016 "FSpotImporter.c"
+ gint _tmp2_ = 0;
+ const gchar* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gint _tmp5_ = 0;
+ gint cidx = 0;
+ const gchar* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+ gint _tmp9_ = 0;
+ gint _tmp10_ = 0;
+ gint _tmp17_ = 0;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (!_tmp1_) {
+#line 2030 "FSpotImporter.c"
+ }
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = FALSE;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = idx;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = url;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = strlen (_tmp3_);
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = _tmp4_;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (!(_tmp2_ < _tmp5_)) {
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ break;
+#line 2046 "FSpotImporter.c"
+ }
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = url;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = idx;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = string_index_of_char (_tmp6_, (gunichar) '%', _tmp7_);
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ cidx = _tmp8_;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9_ = cidx;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp10_ = idx;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp9_ > _tmp10_) {
+#line 2062 "FSpotImporter.c"
+ GString* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ gint _tmp14_ = 0;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp11_ = builder;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp12_ = url;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp13_ = idx;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp14_ = cidx;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp15_ = string_slice (_tmp12_, (glong) _tmp13_, (glong) _tmp14_);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp16_ = _tmp15_;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_string_append (_tmp11_, _tmp16_);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp16_);
+#line 2085 "FSpotImporter.c"
+ }
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp17_ = cidx;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp17_ >= 0) {
+#line 2091 "FSpotImporter.c"
+ gint _tmp18_ = 0;
+ const gchar* _tmp19_ = NULL;
+ gint _tmp20_ = 0;
+ gint _tmp21_ = 0;
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp18_ = cidx;
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp19_ = url;
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp20_ = strlen (_tmp19_);
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp21_ = _tmp20_;
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp18_ < (_tmp21_ - 2)) {
+#line 2106 "FSpotImporter.c"
+ gchar c1 = '\0';
+ const gchar* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ gchar _tmp24_ = '\0';
+ gchar c2 = '\0';
+ const gchar* _tmp25_ = NULL;
+ gint _tmp26_ = 0;
+ gchar _tmp27_ = '\0';
+ gboolean _tmp28_ = FALSE;
+ gchar _tmp29_ = '\0';
+ gboolean _tmp30_ = FALSE;
+ gint _tmp39_ = 0;
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp22_ = url;
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp23_ = cidx;
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp24_ = string_get (_tmp22_, (glong) (_tmp23_ + 1));
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ c1 = _tmp24_;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp25_ = url;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp26_ = cidx;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp27_ = string_get (_tmp25_, (glong) (_tmp26_ + 2));
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ c2 = _tmp27_;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp29_ = c1;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp30_ = g_ascii_isxdigit (_tmp29_);
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp30_) {
+#line 2141 "FSpotImporter.c"
+ gchar _tmp31_ = '\0';
+ gboolean _tmp32_ = FALSE;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp31_ = c1;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp32_ = g_ascii_isxdigit (_tmp31_);
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp28_ = _tmp32_;
+#line 2150 "FSpotImporter.c"
+ } else {
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp28_ = FALSE;
+#line 2154 "FSpotImporter.c"
+ }
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp28_) {
+#line 2158 "FSpotImporter.c"
+ gint ccode = 0;
+ gchar _tmp33_ = '\0';
+ gint _tmp34_ = 0;
+ gchar _tmp35_ = '\0';
+ gint _tmp36_ = 0;
+ GString* _tmp37_ = NULL;
+ gint _tmp38_ = 0;
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp33_ = c1;
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp34_ = g_ascii_xdigit_value (_tmp33_);
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp35_ = c2;
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp36_ = g_ascii_xdigit_value (_tmp35_);
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ ccode = (0x10 * _tmp34_) + _tmp36_;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp37_ = builder;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp38_ = ccode;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_string_append_c (_tmp37_, (gchar) _tmp38_);
+#line 2182 "FSpotImporter.c"
+ }
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp39_ = cidx;
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ idx = _tmp39_ + 3;
+#line 2188 "FSpotImporter.c"
+ } else {
+ gint _tmp40_ = 0;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp40_ = cidx;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ idx = _tmp40_ + 1;
+#line 2195 "FSpotImporter.c"
+ }
+ } else {
+ GString* _tmp41_ = NULL;
+ const gchar* _tmp42_ = NULL;
+ gint _tmp43_ = 0;
+ gchar* _tmp44_ = NULL;
+ gchar* _tmp45_ = NULL;
+ const gchar* _tmp46_ = NULL;
+ gint _tmp47_ = 0;
+ gint _tmp48_ = 0;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp41_ = builder;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp42_ = url;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp43_ = idx;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp44_ = string_substring (_tmp42_, (glong) _tmp43_, (glong) -1);
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp45_ = _tmp44_;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_string_append (_tmp41_, _tmp45_);
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp45_);
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp46_ = url;
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp47_ = strlen (_tmp46_);
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp48_ = _tmp47_;
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ idx = _tmp48_;
+#line 2228 "FSpotImporter.c"
+ }
+ }
+ }
+ }
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp49_ = builder;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp50_ = _tmp49_->str;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp51_ = g_strdup (_tmp50_);
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp51_;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_string_free0 (builder);
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2245 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_item_class_init (DataImportsFSpotFSpotImportableItemClass * klass) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_importable_item_parent_class = g_type_class_peek_parent (klass);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotImportableItemPrivate));
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_importable_item_finalize;
+#line 2256 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_item_spit_data_imports_importable_media_item_interface_init (SpitDataImportsImportableMediaItemIface * iface) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_importable_item_spit_data_imports_importable_media_item_parent_iface = g_type_interface_peek_parent (iface);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_tags = (SpitDataImportsImportableTag** (*)(SpitDataImportsImportableMediaItem*, int*)) data_imports_fspot_fspot_importable_item_real_get_tags;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_event = (SpitDataImportsImportableEvent* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_event;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_folder_path = (gchar* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_folder_path;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_filename = (gchar* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_filename;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_title = (gchar* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_title;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_rating = (SpitDataImportsImportableRating* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_rating;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_exposure_time = (time_t* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_exposure_time;
+#line 2277 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_item_instance_init (DataImportsFSpotFSpotImportableItem * self) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv = DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM_GET_PRIVATE (self);
+#line 2284 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_item_finalize (GObject* obj) {
+ DataImportsFSpotFSpotImportableItem * self;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->photo_row);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->photo_version_row);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->roll_row);
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->tags = (_vala_array_free (self->priv->tags, self->priv->tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->event);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->rating);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (self->priv->folder_path);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (self->priv->filename);
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (self->priv->date_time);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (data_imports_fspot_fspot_importable_item_parent_class)->finalize (obj);
+#line 2312 "FSpotImporter.c"
+}
+
+
+GType data_imports_fspot_fspot_importable_item_get_type (void) {
+ static volatile gsize data_imports_fspot_fspot_importable_item_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_fspot_importable_item_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotImportableItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_importable_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotImportableItem), 0, (GInstanceInitFunc) data_imports_fspot_fspot_importable_item_instance_init, NULL };
+ static const GInterfaceInfo spit_data_imports_importable_media_item_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_importable_item_spit_data_imports_importable_media_item_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_fspot_importable_item_type_id;
+ data_imports_fspot_fspot_importable_item_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotImportableItem", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_fspot_importable_item_type_id, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, &spit_data_imports_importable_media_item_info);
+ g_once_init_leave (&data_imports_fspot_fspot_importable_item_type_id__volatile, data_imports_fspot_fspot_importable_item_type_id);
+ }
+ return data_imports_fspot_fspot_importable_item_type_id__volatile;
+}
+
+
+DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_construct (GType object_type, DataImportsFSpotDbFSpotTagRow* row, DataImportsFSpotFSpotImportableTag* parent) {
+ DataImportsFSpotFSpotImportableTag * self = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp1_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp2_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp3_ = NULL;
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW (row), NULL);
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail ((parent == NULL) || DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (parent), NULL);
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = (DataImportsFSpotFSpotImportableTag*) g_object_new (object_type, NULL);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = row;
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->row);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->row = _tmp1_;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = parent;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->parent);
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->parent = _tmp3_;
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self;
+#line 2360 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_new (DataImportsFSpotDbFSpotTagRow* row, DataImportsFSpotFSpotImportableTag* parent) {
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return data_imports_fspot_fspot_importable_tag_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, row, parent);
+#line 2367 "FSpotImporter.c"
+}
+
+
+gint64 data_imports_fspot_fspot_importable_tag_get_id (DataImportsFSpotFSpotImportableTag* self) {
+ gint64 result = 0LL;
+ DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
+ gint64 _tmp1_ = 0LL;
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (self), 0LL);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->row;
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _tmp0_->tag_id;
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2385 "FSpotImporter.c"
+}
+
+
+static gchar* data_imports_fspot_fspot_importable_tag_real_get_name (SpitDataImportsImportableTag* base) {
+ DataImportsFSpotFSpotImportableTag * self;
+ gchar* result = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTag);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->row;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _tmp0_->name;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp2_;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2407 "FSpotImporter.c"
+}
+
+
+static SpitDataImportsImportableTag* data_imports_fspot_fspot_importable_tag_real_get_parent (SpitDataImportsImportableTag* base) {
+ DataImportsFSpotFSpotImportableTag * self;
+ SpitDataImportsImportableTag* result = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp0_ = NULL;
+ SpitDataImportsImportableTag* _tmp1_ = NULL;
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTag);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->parent;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTag));
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2426 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_get_fspot_parent (DataImportsFSpotFSpotImportableTag* self) {
+ DataImportsFSpotFSpotImportableTag* result = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp0_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp1_ = NULL;
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (self), NULL);
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->parent;
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2444 "FSpotImporter.c"
+}
+
+
+gchar* data_imports_fspot_fspot_importable_tag_get_stock_icon (DataImportsFSpotFSpotImportableTag* self) {
+ gchar* result = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (self), NULL);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->row;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _tmp0_->stock_icon;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp2_;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2465 "FSpotImporter.c"
+}
+
+
+gboolean data_imports_fspot_fspot_importable_tag_is_stock (DataImportsFSpotFSpotImportableTag* self) {
+ gboolean result = FALSE;
+ DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (self), FALSE);
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->row;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _tmp0_->stock_icon;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = g_str_has_prefix (_tmp1_, DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_PREFIX_STOCK_ICON);
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp2_;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2486 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_tag_to_event (DataImportsFSpotFSpotImportableTag* self) {
+ DataImportsFSpotFSpotImportableEvent* result = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
+ DataImportsFSpotFSpotImportableEvent* _tmp1_ = NULL;
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (self), NULL);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->row;
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = data_imports_fspot_fspot_importable_event_new (_tmp0_);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2504 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_tag_class_init (DataImportsFSpotFSpotImportableTagClass * klass) {
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_importable_tag_parent_class = g_type_class_peek_parent (klass);
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotImportableTagPrivate));
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_importable_tag_finalize;
+#line 2515 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_tag_spit_data_imports_importable_tag_interface_init (SpitDataImportsImportableTagIface * iface) {
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_importable_tag_spit_data_imports_importable_tag_parent_iface = g_type_interface_peek_parent (iface);
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_name = (gchar* (*)(SpitDataImportsImportableTag*)) data_imports_fspot_fspot_importable_tag_real_get_name;
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_parent = (SpitDataImportsImportableTag* (*)(SpitDataImportsImportableTag*)) data_imports_fspot_fspot_importable_tag_real_get_parent;
+#line 2526 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_tag_instance_init (DataImportsFSpotFSpotImportableTag * self) {
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv = DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG_GET_PRIVATE (self);
+#line 2533 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_tag_finalize (GObject* obj) {
+ DataImportsFSpotFSpotImportableTag * self;
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTag);
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->row);
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->parent);
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (data_imports_fspot_fspot_importable_tag_parent_class)->finalize (obj);
+#line 2547 "FSpotImporter.c"
+}
+
+
+GType data_imports_fspot_fspot_importable_tag_get_type (void) {
+ static volatile gsize data_imports_fspot_fspot_importable_tag_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_fspot_importable_tag_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotImportableTagClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_importable_tag_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotImportableTag), 0, (GInstanceInitFunc) data_imports_fspot_fspot_importable_tag_instance_init, NULL };
+ static const GInterfaceInfo spit_data_imports_importable_tag_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_importable_tag_spit_data_imports_importable_tag_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_fspot_importable_tag_type_id;
+ data_imports_fspot_fspot_importable_tag_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotImportableTag", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_fspot_importable_tag_type_id, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, &spit_data_imports_importable_tag_info);
+ g_once_init_leave (&data_imports_fspot_fspot_importable_tag_type_id__volatile, data_imports_fspot_fspot_importable_tag_type_id);
+ }
+ return data_imports_fspot_fspot_importable_tag_type_id__volatile;
+}
+
+
+DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_event_construct (GType object_type, DataImportsFSpotDbFSpotTagRow* row) {
+ DataImportsFSpotFSpotImportableEvent * self = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp1_ = NULL;
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW (row), NULL);
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = (DataImportsFSpotFSpotImportableEvent*) g_object_new (object_type, NULL);
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = row;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->row);
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->row = _tmp1_;
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self;
+#line 2583 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_event_new (DataImportsFSpotDbFSpotTagRow* row) {
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return data_imports_fspot_fspot_importable_event_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, row);
+#line 2590 "FSpotImporter.c"
+}
+
+
+static gchar* data_imports_fspot_fspot_importable_event_real_get_name (SpitDataImportsImportableEvent* base) {
+ DataImportsFSpotFSpotImportableEvent * self;
+ gchar* result = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEvent);
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->row;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _tmp0_->name;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp2_;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2612 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_event_class_init (DataImportsFSpotFSpotImportableEventClass * klass) {
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_importable_event_parent_class = g_type_class_peek_parent (klass);
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotImportableEventPrivate));
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_importable_event_finalize;
+#line 2623 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_event_spit_data_imports_importable_event_interface_init (SpitDataImportsImportableEventIface * iface) {
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_importable_event_spit_data_imports_importable_event_parent_iface = g_type_interface_peek_parent (iface);
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_name = (gchar* (*)(SpitDataImportsImportableEvent*)) data_imports_fspot_fspot_importable_event_real_get_name;
+#line 2632 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_event_instance_init (DataImportsFSpotFSpotImportableEvent * self) {
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv = DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT_GET_PRIVATE (self);
+#line 2639 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_event_finalize (GObject* obj) {
+ DataImportsFSpotFSpotImportableEvent * self;
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEvent);
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->row);
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (data_imports_fspot_fspot_importable_event_parent_class)->finalize (obj);
+#line 2651 "FSpotImporter.c"
+}
+
+
+GType data_imports_fspot_fspot_importable_event_get_type (void) {
+ static volatile gsize data_imports_fspot_fspot_importable_event_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_fspot_importable_event_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotImportableEventClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_importable_event_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotImportableEvent), 0, (GInstanceInitFunc) data_imports_fspot_fspot_importable_event_instance_init, NULL };
+ static const GInterfaceInfo spit_data_imports_importable_event_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_importable_event_spit_data_imports_importable_event_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_fspot_importable_event_type_id;
+ data_imports_fspot_fspot_importable_event_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotImportableEvent", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_fspot_importable_event_type_id, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, &spit_data_imports_importable_event_info);
+ g_once_init_leave (&data_imports_fspot_fspot_importable_event_type_id__volatile, data_imports_fspot_fspot_importable_event_type_id);
+ }
+ return data_imports_fspot_fspot_importable_event_type_id__volatile;
+}
+
+
+DataImportsFSpotFSpotImportableRating* data_imports_fspot_fspot_importable_rating_construct (GType object_type, gint rating_value) {
+ DataImportsFSpotFSpotImportableRating * self = NULL;
+ gint _tmp0_ = 0;
+ gint _tmp2_ = 0;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = (DataImportsFSpotFSpotImportableRating*) g_object_new (object_type, NULL);
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = rating_value;
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp0_ < -1) {
+#line 264 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ rating_value = -1;
+#line 2681 "FSpotImporter.c"
+ } else {
+ gint _tmp1_ = 0;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = rating_value;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp1_ > 5) {
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ rating_value = 5;
+#line 2690 "FSpotImporter.c"
+ }
+ }
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = rating_value;
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->rating_value = _tmp2_;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self;
+#line 2699 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotImportableRating* data_imports_fspot_fspot_importable_rating_new (gint rating_value) {
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return data_imports_fspot_fspot_importable_rating_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, rating_value);
+#line 2706 "FSpotImporter.c"
+}
+
+
+static gboolean data_imports_fspot_fspot_importable_rating_real_is_rejected (SpitDataImportsImportableRating* base) {
+ DataImportsFSpotFSpotImportableRating * self;
+ gboolean result = FALSE;
+ gint _tmp0_ = 0;
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRating);
+#line 271 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->rating_value;
+#line 271 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp0_ == DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_REJECTED;
+#line 271 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2722 "FSpotImporter.c"
+}
+
+
+static gboolean data_imports_fspot_fspot_importable_rating_real_is_unrated (SpitDataImportsImportableRating* base) {
+ DataImportsFSpotFSpotImportableRating * self;
+ gboolean result = FALSE;
+ gint _tmp0_ = 0;
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRating);
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->rating_value;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp0_ == DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_UNRATED;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2738 "FSpotImporter.c"
+}
+
+
+static gint data_imports_fspot_fspot_importable_rating_real_get_value (SpitDataImportsImportableRating* base) {
+ DataImportsFSpotFSpotImportableRating * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRating);
+#line 279 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->rating_value;
+#line 279 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp0_;
+#line 279 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2754 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_rating_class_init (DataImportsFSpotFSpotImportableRatingClass * klass) {
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_importable_rating_parent_class = g_type_class_peek_parent (klass);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotImportableRatingPrivate));
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_importable_rating_finalize;
+#line 2765 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_rating_spit_data_imports_importable_rating_interface_init (SpitDataImportsImportableRatingIface * iface) {
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_importable_rating_spit_data_imports_importable_rating_parent_iface = g_type_interface_peek_parent (iface);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->is_rejected = (gboolean (*)(SpitDataImportsImportableRating*)) data_imports_fspot_fspot_importable_rating_real_is_rejected;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->is_unrated = (gboolean (*)(SpitDataImportsImportableRating*)) data_imports_fspot_fspot_importable_rating_real_is_unrated;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_value = (gint (*)(SpitDataImportsImportableRating*)) data_imports_fspot_fspot_importable_rating_real_get_value;
+#line 2778 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_rating_instance_init (DataImportsFSpotFSpotImportableRating * self) {
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv = DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_GET_PRIVATE (self);
+#line 2785 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_importable_rating_finalize (GObject* obj) {
+ DataImportsFSpotFSpotImportableRating * self;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRating);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (data_imports_fspot_fspot_importable_rating_parent_class)->finalize (obj);
+#line 2795 "FSpotImporter.c"
+}
+
+
+GType data_imports_fspot_fspot_importable_rating_get_type (void) {
+ static volatile gsize data_imports_fspot_fspot_importable_rating_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_fspot_importable_rating_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotImportableRatingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_importable_rating_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotImportableRating), 0, (GInstanceInitFunc) data_imports_fspot_fspot_importable_rating_instance_init, NULL };
+ static const GInterfaceInfo spit_data_imports_importable_rating_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_importable_rating_spit_data_imports_importable_rating_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_fspot_importable_rating_type_id;
+ data_imports_fspot_fspot_importable_rating_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotImportableRating", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_fspot_importable_rating_type_id, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, &spit_data_imports_importable_rating_info);
+ g_once_init_leave (&data_imports_fspot_fspot_importable_rating_type_id__volatile, data_imports_fspot_fspot_importable_rating_type_id);
+ }
+ return data_imports_fspot_fspot_importable_rating_type_id__volatile;
+}
+
+
+static gpointer _importable_database_table_ref0 (gpointer self) {
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self ? importable_database_table_ref (self) : NULL;
+#line 2816 "FSpotImporter.c"
+}
+
+
+static gint64* _int64_dup (gint64* self) {
+ gint64* dup;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ dup = g_new0 (gint64, 1);
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ memcpy (dup, self, sizeof (gint64));
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return dup;
+#line 2828 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotTagsCache* data_imports_fspot_fspot_tags_cache_construct (GType object_type, DataImportsFSpotDbFSpotTagsTable* tags_table, GError** error) {
+ DataImportsFSpotFSpotTagsCache * self = NULL;
+ DataImportsFSpotDbFSpotTagsTable* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTagsTable* _tmp1_ = NULL;
+ GeeHashMap* _tmp2_ = NULL;
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE (tags_table), NULL);
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = (DataImportsFSpotFSpotTagsCache*) g_object_new (object_type, NULL);
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = tags_table;
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _importable_database_table_ref0 (_tmp0_);
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _importable_database_table_unref0 (self->priv->tags_table);
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->tags_table = _tmp1_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = gee_hash_map_new (G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, g_free, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->tags_map);
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->tags_map = _tmp2_;
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self;
+#line 2857 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotTagsCache* data_imports_fspot_fspot_tags_cache_new (DataImportsFSpotDbFSpotTagsTable* tags_table, GError** error) {
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return data_imports_fspot_fspot_tags_cache_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, tags_table, error);
+#line 2864 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_tags_cache_get_tag (DataImportsFSpotFSpotTagsCache* self, DataImportsFSpotDbFSpotTagRow* tag_row, GError** error) {
+ DataImportsFSpotFSpotImportableTag* result = NULL;
+ DataImportsFSpotFSpotImportableTag* tag = NULL;
+ GeeHashMap* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp1_ = NULL;
+ gint64 _tmp2_ = 0LL;
+ gpointer _tmp3_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp4_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 292 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_TAGS_CACHE (self), NULL);
+#line 292 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW (tag_row), NULL);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->tags_map;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = tag_row;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = _tmp1_->tag_id;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp2_);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tag = (DataImportsFSpotFSpotImportableTag*) _tmp3_;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = tag;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp4_ != NULL) {
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = tag;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2899 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotFSpotImportableTag* parent_tag = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp5_ = NULL;
+ gint64 _tmp6_ = 0LL;
+ DataImportsFSpotFSpotImportableTag* _tmp7_ = NULL;
+ DataImportsFSpotFSpotImportableTag* new_tag = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp8_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp9_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp10_ = NULL;
+ GeeHashMap* _tmp11_ = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp12_ = NULL;
+ gint64 _tmp13_ = 0LL;
+ DataImportsFSpotFSpotImportableTag* _tmp14_ = NULL;
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = tag_row;
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = _tmp5_->category_id;
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = data_imports_fspot_fspot_tags_cache_get_tag_from_id (self, _tmp6_, &_inner_error_);
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ parent_tag = _tmp7_;
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_propagate_error (error, _inner_error_);
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return NULL;
+#line 2931 "FSpotImporter.c"
+ } else {
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.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 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return NULL;
+#line 2941 "FSpotImporter.c"
+ }
+ }
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = tag_row;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9_ = parent_tag;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp10_ = data_imports_fspot_fspot_importable_tag_new (_tmp8_, _tmp9_);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ new_tag = _tmp10_;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp11_ = self->priv->tags_map;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp12_ = tag_row;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp13_ = _tmp12_->tag_id;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp14_ = new_tag;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp13_, _tmp14_);
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = new_tag;
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (parent_tag);
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 2970 "FSpotImporter.c"
+ }
+#line 292 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 2974 "FSpotImporter.c"
+}
+
+
+static DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_tags_cache_get_tag_from_id (DataImportsFSpotFSpotTagsCache* self, gint64 tag_id, GError** error) {
+ DataImportsFSpotFSpotImportableTag* result = NULL;
+ gint64 _tmp0_ = 0LL;
+ DataImportsFSpotFSpotImportableTag* tag = NULL;
+ GeeHashMap* _tmp1_ = NULL;
+ gint64 _tmp2_ = 0LL;
+ gpointer _tmp3_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp4_ = NULL;
+ DataImportsFSpotDbFSpotTagRow* tag_row = NULL;
+ DataImportsFSpotDbFSpotTagsTable* _tmp5_ = NULL;
+ gint64 _tmp6_ = 0LL;
+ DataImportsFSpotDbFSpotTagRow* _tmp7_ = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp8_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_TAGS_CACHE (self), NULL);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = tag_id;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp0_ < ((gint64) 1)) {
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = NULL;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 3002 "FSpotImporter.c"
+ }
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = self->priv->tags_map;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = tag_id;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp2_);
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tag = (DataImportsFSpotFSpotImportableTag*) _tmp3_;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = tag;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp4_ != NULL) {
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = tag;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 3020 "FSpotImporter.c"
+ }
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = self->priv->tags_table;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = tag_id;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = data_imports_fspot_db_fspot_tags_table_get_by_id (_tmp5_, _tmp6_, &_inner_error_);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tag_row = _tmp7_;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_propagate_error (error, _inner_error_);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return NULL;
+#line 3040 "FSpotImporter.c"
+ } else {
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.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 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return NULL;
+#line 3050 "FSpotImporter.c"
+ }
+ }
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = tag_row;
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp8_ != NULL) {
+#line 3057 "FSpotImporter.c"
+ DataImportsFSpotFSpotImportableTag* parent_tag = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp9_ = NULL;
+ gint64 _tmp10_ = 0LL;
+ DataImportsFSpotFSpotImportableTag* _tmp11_ = NULL;
+ DataImportsFSpotFSpotImportableTag* new_tag = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp12_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp13_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp14_ = NULL;
+ GeeHashMap* _tmp15_ = NULL;
+ gint64 _tmp16_ = 0LL;
+ DataImportsFSpotFSpotImportableTag* _tmp17_ = NULL;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9_ = tag_row;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp10_ = _tmp9_->category_id;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp11_ = data_imports_fspot_fspot_tags_cache_get_tag_from_id (self, _tmp10_, &_inner_error_);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ parent_tag = _tmp11_;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_propagate_error (error, _inner_error_);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag_row);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return NULL;
+#line 3089 "FSpotImporter.c"
+ } else {
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag_row);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.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 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return NULL;
+#line 3101 "FSpotImporter.c"
+ }
+ }
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp12_ = tag_row;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp13_ = parent_tag;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp14_ = data_imports_fspot_fspot_importable_tag_new (_tmp12_, _tmp13_);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ new_tag = _tmp14_;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp15_ = self->priv->tags_map;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp16_ = tag_id;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp17_ = new_tag;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp16_, _tmp17_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = new_tag;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (parent_tag);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag_row);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 3130 "FSpotImporter.c"
+ }
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = NULL;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag_row);
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 3140 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_tags_cache_class_init (DataImportsFSpotFSpotTagsCacheClass * klass) {
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_tags_cache_parent_class = g_type_class_peek_parent (klass);
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotTagsCachePrivate));
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_tags_cache_finalize;
+#line 3151 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_tags_cache_instance_init (DataImportsFSpotFSpotTagsCache * self) {
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv = DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE_GET_PRIVATE (self);
+#line 3158 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_tags_cache_finalize (GObject* obj) {
+ DataImportsFSpotFSpotTagsCache * self;
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, DataImportsFSpotFSpotTagsCache);
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _importable_database_table_unref0 (self->priv->tags_table);
+#line 285 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (self->priv->tags_map);
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (data_imports_fspot_fspot_tags_cache_parent_class)->finalize (obj);
+#line 3172 "FSpotImporter.c"
+}
+
+
+GType data_imports_fspot_fspot_tags_cache_get_type (void) {
+ static volatile gsize data_imports_fspot_fspot_tags_cache_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_fspot_tags_cache_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotTagsCacheClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_tags_cache_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotTagsCache), 0, (GInstanceInitFunc) data_imports_fspot_fspot_tags_cache_instance_init, NULL };
+ GType data_imports_fspot_fspot_tags_cache_type_id;
+ data_imports_fspot_fspot_tags_cache_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotTagsCache", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_fspot_tags_cache_type_id__volatile, data_imports_fspot_fspot_tags_cache_type_id);
+ }
+ return data_imports_fspot_fspot_tags_cache_type_id__volatile;
+}
+
+
+DataImportsFSpotFSpotDataImporter* data_imports_fspot_fspot_data_importer_construct (GType object_type, SpitDataImportsService* service, SpitDataImportsPluginHost* host) {
+ DataImportsFSpotFSpotDataImporter * self = NULL;
+ SpitDataImportsService* _tmp0_ = NULL;
+ SpitDataImportsPluginHost* _tmp1_ = NULL;
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (service), NULL);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = (DataImportsFSpotFSpotDataImporter*) g_object_new (object_type, NULL);
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_debug ("FSpotImporter.vala:330: FSpotDataImporter instantiated.");
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = service;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->service = _tmp0_;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = host;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->host = _tmp1_;
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return self;
+#line 3210 "FSpotImporter.c"
+}
+
+
+DataImportsFSpotFSpotDataImporter* data_imports_fspot_fspot_data_importer_new (SpitDataImportsService* service, SpitDataImportsPluginHost* host) {
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return data_imports_fspot_fspot_data_importer_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, service, host);
+#line 3217 "FSpotImporter.c"
+}
+
+
+static gboolean data_imports_fspot_fspot_data_importer_real_is_running (SpitDataImportsDataImporter* base) {
+ DataImportsFSpotFSpotDataImporter * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->running;
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp0_;
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 3233 "FSpotImporter.c"
+}
+
+
+static SpitDataImportsService* data_imports_fspot_fspot_data_importer_real_get_service (SpitDataImportsDataImporter* base) {
+ DataImportsFSpotFSpotDataImporter * self;
+ SpitDataImportsService* result = NULL;
+ SpitDataImportsService* _tmp0_ = NULL;
+ SpitDataImportsService* _tmp1_ = NULL;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->service;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _tmp1_;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 3252 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_data_importer_real_start (SpitDataImportsDataImporter* base) {
+ DataImportsFSpotFSpotDataImporter * self;
+ gboolean _tmp0_ = FALSE;
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = spit_data_imports_data_importer_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter));
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp0_) {
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 3267 "FSpotImporter.c"
+ }
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_debug ("FSpotImporter.vala:347: FSpotDataImporter: starting interaction.");
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->running = TRUE;
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_data_importer_do_discover_importable_libraries (self);
+#line 3275 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_data_importer_real_stop (SpitDataImportsDataImporter* base) {
+ DataImportsFSpotFSpotDataImporter * self;
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_debug ("FSpotImporter.vala:355: FSpotDataImporter: stopping interaction.");
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->running = FALSE;
+#line 3287 "FSpotImporter.c"
+}
+
+
+/**
+ * Action that discovers importable libraries based on standard locations.
+ */
+static void _vala_array_add2 (SpitDataImportsImportableLibrary*** array, int* length, int* size, SpitDataImportsImportableLibrary* value) {
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if ((*length) == (*size)) {
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *array = g_renew (SpitDataImportsImportableLibrary*, *array, (*size) + 1);
+#line 3301 "FSpotImporter.c"
+ }
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[(*length)++] = value;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[*length] = NULL;
+#line 3307 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_data_importer_do_discover_importable_libraries (DataImportsFSpotFSpotDataImporter* self) {
+ SpitDataImportsImportableLibrary** discovered_libraries = NULL;
+ SpitDataImportsImportableLibrary** _tmp0_ = NULL;
+ gint discovered_libraries_length1 = 0;
+ gint _discovered_libraries_size_ = 0;
+ GFile** db_files = NULL;
+ const gchar* _tmp1_ = NULL;
+ GFile* _tmp2_ = NULL;
+ GFile* _tmp3_ = NULL;
+ GFile* _tmp4_ = NULL;
+ GFile* _tmp5_ = NULL;
+ GFile* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ GFile* _tmp8_ = NULL;
+ GFile* _tmp9_ = NULL;
+ GFile* _tmp10_ = NULL;
+ GFile* _tmp11_ = NULL;
+ GFile* _tmp12_ = NULL;
+ GFile* _tmp13_ = NULL;
+ GFile* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ GFile* _tmp16_ = NULL;
+ GFile* _tmp17_ = NULL;
+ GFile* _tmp18_ = NULL;
+ GFile* _tmp19_ = NULL;
+ GFile* _tmp20_ = NULL;
+ GFile** _tmp21_ = NULL;
+ GFile** _tmp22_ = NULL;
+ gint _tmp22__length1 = 0;
+ gint db_files_length1 = 0;
+ gint _db_files_size_ = 0;
+ GFile** _tmp23_ = NULL;
+ gint _tmp23__length1 = 0;
+ const gchar* _tmp33_ = NULL;
+ SpitDataImportsImportableLibrary** _tmp34_ = NULL;
+ gint _tmp34__length1 = 0;
+ SpitDataImportsPluginHost* _tmp35_ = NULL;
+ SpitDataImportsImportableLibrary** _tmp36_ = NULL;
+ gint _tmp36__length1 = 0;
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER (self));
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = g_new0 (SpitDataImportsImportableLibrary*, 0 + 1);
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ discovered_libraries = _tmp0_;
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ discovered_libraries_length1 = 0;
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _discovered_libraries_size_ = discovered_libraries_length1;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = g_get_user_config_dir ();
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = g_file_new_for_path (_tmp1_);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = _tmp2_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = g_file_get_child (_tmp3_, "f-spot");
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = _tmp4_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = g_file_get_child (_tmp5_, "photos.db");
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = g_get_home_dir ();
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = g_file_new_for_path (_tmp7_);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9_ = _tmp8_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp10_ = g_file_get_child (_tmp9_, ".gnome2");
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp11_ = _tmp10_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp12_ = g_file_get_child (_tmp11_, "f-spot");
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp13_ = _tmp12_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp14_ = g_file_get_child (_tmp13_, "photos.db");
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp15_ = g_get_user_data_dir ();
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp16_ = g_file_new_for_path (_tmp15_);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp17_ = _tmp16_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp18_ = g_file_get_child (_tmp17_, "f-spot");
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp19_ = _tmp18_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp20_ = g_file_get_child (_tmp19_, "photos.db");
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp21_ = g_new0 (GFile*, 3 + 1);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp21_[0] = _tmp6_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp21_[1] = _tmp14_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp21_[2] = _tmp20_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp22_ = _tmp21_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp22__length1 = 3;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp19_);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp17_);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp13_);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp11_);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp9_);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp5_);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp3_);
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ db_files = _tmp22_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ db_files_length1 = _tmp22__length1;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _db_files_size_ = db_files_length1;
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp23_ = db_files;
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp23__length1 = db_files_length1;
+#line 3436 "FSpotImporter.c"
+ {
+ GFile** db_file_collection = NULL;
+ gint db_file_collection_length1 = 0;
+ gint _db_file_collection_size_ = 0;
+ gint db_file_it = 0;
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ db_file_collection = _tmp23_;
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ db_file_collection_length1 = _tmp23__length1;
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ for (db_file_it = 0; db_file_it < _tmp23__length1; db_file_it = db_file_it + 1) {
+#line 3448 "FSpotImporter.c"
+ GFile* _tmp24_ = NULL;
+ GFile* db_file = NULL;
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp24_ = _g_object_ref0 (db_file_collection[db_file_it]);
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ db_file = _tmp24_;
+#line 3455 "FSpotImporter.c"
+ {
+ GFile* _tmp25_ = NULL;
+ gboolean _tmp26_ = FALSE;
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp25_ = db_file;
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp26_ = g_file_query_exists (_tmp25_, NULL);
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp26_) {
+#line 3465 "FSpotImporter.c"
+ SpitDataImportsImportableLibrary** _tmp27_ = NULL;
+ gint _tmp27__length1 = 0;
+ GFile* _tmp28_ = NULL;
+ DataImportsFSpotFSpotImportableLibrary* _tmp29_ = NULL;
+ GFile* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp27_ = discovered_libraries;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp27__length1 = discovered_libraries_length1;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp28_ = db_file;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp29_ = data_imports_fspot_fspot_importable_library_new (_tmp28_);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _vala_array_add2 (&discovered_libraries, &discovered_libraries_length1, &_discovered_libraries_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibrary));
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp30_ = db_file;
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp31_ = g_file_get_path (_tmp30_);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp32_ = _tmp31_;
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_message ("FSpotImporter.vala:384: Discovered importable library: %s", _tmp32_);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp32_);
+#line 3493 "FSpotImporter.c"
+ }
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (db_file);
+#line 3497 "FSpotImporter.c"
+ }
+ }
+ }
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp34_ = discovered_libraries;
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp34__length1 = discovered_libraries_length1;
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp34__length1 > 0) {
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp33_ = DATA_IMPORTS_FSPOT_SERVICE_WELCOME_MESSAGE;
+#line 3509 "FSpotImporter.c"
+ } else {
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp33_ = DATA_IMPORTS_FSPOT_SERVICE_WELCOME_MESSAGE_FILE_ONLY;
+#line 3513 "FSpotImporter.c"
+ }
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp35_ = self->priv->host;
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp36_ = discovered_libraries;
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp36__length1 = discovered_libraries_length1;
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_plugin_host_install_library_selection_pane (_tmp35_, _tmp33_, _tmp36_, _tmp36__length1, DATA_IMPORTS_FSPOT_FILE_IMPORT_LABEL);
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ db_files = (_vala_array_free (db_files, db_files_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ discovered_libraries = (_vala_array_free (discovered_libraries, discovered_libraries_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 3527 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_data_importer_real_on_library_selected (SpitDataImportsDataImporter* base, SpitDataImportsImportableLibrary* library) {
+ DataImportsFSpotFSpotDataImporter * self;
+ SpitDataImportsImportableLibrary* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ GFile* _tmp2_ = NULL;
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (library));
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = library;
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = data_imports_fspot_fspot_importable_library_get_db_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibrary));
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = _tmp1_;
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_data_importer_on_file_selected (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter), _tmp2_);
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp2_);
+#line 3550 "FSpotImporter.c"
+}
+
+
+static void _vala_array_add3 (DataImportsFSpotFSpotImportableTag*** array, int* length, int* size, DataImportsFSpotFSpotImportableTag* value) {
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if ((*length) == (*size)) {
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *array = g_renew (DataImportsFSpotFSpotImportableTag*, *array, (*size) + 1);
+#line 3561 "FSpotImporter.c"
+ }
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[(*length)++] = value;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[*length] = NULL;
+#line 3567 "FSpotImporter.c"
+}
+
+
+static void _vala_array_add4 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value) {
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if ((*length) == (*size)) {
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *array = g_renew (SpitDataImportsImportableMediaItem*, *array, (*size) + 1);
+#line 3578 "FSpotImporter.c"
+ }
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[(*length)++] = value;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[*length] = NULL;
+#line 3584 "FSpotImporter.c"
+}
+
+
+static void _vala_array_add5 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value) {
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if ((*length) == (*size)) {
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *array = g_renew (SpitDataImportsImportableMediaItem*, *array, (*size) + 1);
+#line 3595 "FSpotImporter.c"
+ }
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[(*length)++] = value;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[*length] = NULL;
+#line 3601 "FSpotImporter.c"
+}
+
+
+static void _vala_array_add6 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value) {
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if ((*length) == (*size)) {
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ *array = g_renew (SpitDataImportsImportableMediaItem*, *array, (*size) + 1);
+#line 3612 "FSpotImporter.c"
+ }
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[(*length)++] = value;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ (*array)[*length] = NULL;
+#line 3618 "FSpotImporter.c"
+}
+
+
+static void _data_imports_fspot_fspot_data_importer_on_imported_items_count_spit_data_imports_imported_items_count_callback (gint imported_items_count, gpointer self) {
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_data_importer_on_imported_items_count ((DataImportsFSpotFSpotDataImporter*) self, imported_items_count);
+#line 3625 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_data_importer_real_on_file_selected (SpitDataImportsDataImporter* base, GFile* file) {
+ DataImportsFSpotFSpotDataImporter * self;
+ DataImportsFSpotDbFSpotDatabase* database = NULL;
+ DataImportsFSpotFSpotTagsCache* tags_cache = NULL;
+ GeeArrayList* all_photos = NULL;
+ gdouble progress_delta_per_photo = 0.0;
+ gdouble progress_plugin_to_host_ratio = 0.0;
+ gdouble current_progress = 0.0;
+ SpitDataImportsPluginHost* _tmp24_ = NULL;
+ const gchar* _tmp25_ = NULL;
+ GeeArrayList* _tmp36_ = NULL;
+ gint _tmp37_ = 0;
+ gint _tmp38_ = 0;
+ SpitDataImportsPluginHost* _tmp173_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_if_fail (G_IS_FILE (file));
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ progress_delta_per_photo = 1.0;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ progress_plugin_to_host_ratio = 0.5;
+#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ current_progress = 0.0;
+#line 3654 "FSpotImporter.c"
+ {
+ DataImportsFSpotDbFSpotDatabase* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ DataImportsFSpotDbFSpotDatabase* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotDatabase* _tmp3_ = NULL;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = file;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_database_new (_tmp1_, &_inner_error_);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = _tmp2_;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 3670 "FSpotImporter.c"
+ goto __catch0_database_error;
+ }
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR) {
+#line 3675 "FSpotImporter.c"
+ goto __catch0_spit_data_imports_data_import_error;
+ }
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 3690 "FSpotImporter.c"
+ }
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = _tmp0_;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = NULL;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ database = _tmp3_;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp0_);
+#line 3702 "FSpotImporter.c"
+ }
+ goto __finally0;
+ __catch0_database_error:
+ {
+ GError* e = NULL;
+ GError* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ SpitDataImportsPluginHost* _tmp8_ = NULL;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ e = _inner_error_;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _inner_error_ = NULL;
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = e;
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = _tmp4_->message;
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = g_strdup_printf ("FSpotDataImporter: Can't open database file: %s", _tmp5_);
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = _tmp6_;
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_debug ("FSpotImporter.vala:409: %s", _tmp7_);
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp7_);
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = self->priv->host;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_plugin_host_post_error_message (_tmp8_, DATA_IMPORTS_FSPOT_ERROR_CANT_OPEN_DB_FILE);
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_error_free0 (e);
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 3743 "FSpotImporter.c"
+ }
+ goto __finally0;
+ __catch0_spit_data_imports_data_import_error:
+ {
+ GError* e = NULL;
+ GError* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ SpitDataImportsPluginHost* _tmp13_ = NULL;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ e = _inner_error_;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _inner_error_ = NULL;
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9_ = e;
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp10_ = _tmp9_->message;
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp11_ = g_strdup_printf ("FSpotDataImporter: Unsupported F-Spot database version: %s", _tmp10_);
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp12_ = _tmp11_;
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_debug ("FSpotImporter.vala:413: %s", _tmp12_);
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp12_);
+#line 414 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp13_ = self->priv->host;
+#line 414 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_plugin_host_post_error_message (_tmp13_, DATA_IMPORTS_FSPOT_ERROR_UNSUPPORTED_DB_VERSION);
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_error_free0 (e);
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 3784 "FSpotImporter.c"
+ }
+ __finally0:
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.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 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 3801 "FSpotImporter.c"
+ }
+ {
+ DataImportsFSpotFSpotTagsCache* _tmp14_ = NULL;
+ DataImportsFSpotDbFSpotDatabase* _tmp15_ = NULL;
+ DataImportsFSpotDbFSpotTagsTable* _tmp16_ = NULL;
+ DataImportsFSpotFSpotTagsCache* _tmp17_ = NULL;
+ DataImportsFSpotFSpotTagsCache* _tmp18_ = NULL;
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp15_ = database;
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp16_ = _tmp15_->tags_table;
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp17_ = data_imports_fspot_fspot_tags_cache_new (_tmp16_, &_inner_error_);
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp14_ = _tmp17_;
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 3821 "FSpotImporter.c"
+ goto __catch1_database_error;
+ }
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 3836 "FSpotImporter.c"
+ }
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp18_ = _tmp14_;
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp14_ = NULL;
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags_cache = _tmp18_;
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp14_);
+#line 3848 "FSpotImporter.c"
+ }
+ goto __finally1;
+ __catch1_database_error:
+ {
+ GError* e = NULL;
+ GError* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ SpitDataImportsPluginHost* _tmp23_ = NULL;
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ e = _inner_error_;
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _inner_error_ = NULL;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp19_ = e;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp20_ = _tmp19_->message;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp21_ = g_strdup_printf ("FSpotDataImporter: Can't read tags table: %s", _tmp20_);
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp22_ = _tmp21_;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_debug ("FSpotImporter.vala:420: %s", _tmp22_);
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp22_);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp23_ = self->priv->host;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_plugin_host_post_error_message (_tmp23_, DATA_IMPORTS_FSPOT_ERROR_CANT_READ_TAGS_TABLE);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_error_free0 (e);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 3889 "FSpotImporter.c"
+ }
+ __finally1:
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.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 417 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 3906 "FSpotImporter.c"
+ }
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp24_ = self->priv->host;
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp25_ = _ ("Preparing to import");
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_plugin_host_install_import_progress_pane (_tmp24_, _tmp25_);
+#line 3914 "FSpotImporter.c"
+ {
+ GeeArrayList* _tmp26_ = NULL;
+ DataImportsFSpotDbFSpotDatabase* _tmp27_ = NULL;
+ DataImportsFSpotDbFSpotPhotosTable* _tmp28_ = NULL;
+ GeeArrayList* _tmp29_ = NULL;
+ GeeArrayList* _tmp30_ = NULL;
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp27_ = database;
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp28_ = _tmp27_->photos_table;
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp29_ = data_imports_fspot_db_fspot_photos_table_get_all (_tmp28_, &_inner_error_);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp26_ = _tmp29_;
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 3933 "FSpotImporter.c"
+ goto __catch2_database_error;
+ }
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 3948 "FSpotImporter.c"
+ }
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp30_ = _tmp26_;
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp26_ = NULL;
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ all_photos = _tmp30_;
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp26_);
+#line 3960 "FSpotImporter.c"
+ }
+ goto __finally2;
+ __catch2_database_error:
+ {
+ GError* e = NULL;
+ GError* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ gchar* _tmp33_ = NULL;
+ gchar* _tmp34_ = NULL;
+ SpitDataImportsPluginHost* _tmp35_ = NULL;
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ e = _inner_error_;
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _inner_error_ = NULL;
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp31_ = e;
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp32_ = _tmp31_->message;
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp33_ = g_strdup_printf ("FSpotDataImporter: Can't read photos table: %s", _tmp32_);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp34_ = _tmp33_;
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_debug ("FSpotImporter.vala:428: %s", _tmp34_);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp34_);
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp35_ = self->priv->host;
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_plugin_host_post_error_message (_tmp35_, DATA_IMPORTS_FSPOT_ERROR_CANT_READ_PHOTOS_TABLE);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_error_free0 (e);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 4001 "FSpotImporter.c"
+ }
+ __finally2:
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.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 425 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 4018 "FSpotImporter.c"
+ }
+#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp36_ = all_photos;
+#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp37_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp38_ = _tmp37_;
+#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp38_ > 0) {
+#line 4028 "FSpotImporter.c"
+ GeeArrayList* _tmp39_ = NULL;
+ gint _tmp40_ = 0;
+ gint _tmp41_ = 0;
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp39_ = all_photos;
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp40_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp41_ = _tmp40_;
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ progress_delta_per_photo = 1.0 / _tmp41_;
+#line 4040 "FSpotImporter.c"
+ }
+ {
+ GeeArrayList* _photo_row_list = NULL;
+ GeeArrayList* _tmp42_ = NULL;
+ GeeArrayList* _tmp43_ = NULL;
+ gint _photo_row_size = 0;
+ GeeArrayList* _tmp44_ = NULL;
+ gint _tmp45_ = 0;
+ gint _tmp46_ = 0;
+ gint _photo_row_index = 0;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp42_ = all_photos;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp43_ = _g_object_ref0 (_tmp42_);
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _photo_row_list = _tmp43_;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp44_ = _photo_row_list;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp45_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp46_ = _tmp45_;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _photo_row_size = _tmp46_;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _photo_row_index = -1;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ while (TRUE) {
+#line 4069 "FSpotImporter.c"
+ gint _tmp47_ = 0;
+ gint _tmp48_ = 0;
+ gint _tmp49_ = 0;
+ DataImportsFSpotDbFSpotPhotoRow* photo_row = NULL;
+ GeeArrayList* _tmp50_ = NULL;
+ gint _tmp51_ = 0;
+ gpointer _tmp52_ = NULL;
+ gboolean hidden = FALSE;
+ gboolean favorite = FALSE;
+ DataImportsFSpotFSpotImportableTag** tags = NULL;
+ DataImportsFSpotFSpotImportableTag** _tmp53_ = NULL;
+ gint tags_length1 = 0;
+ gint _tags_size_ = 0;
+ DataImportsFSpotFSpotImportableEvent* event = NULL;
+ DataImportsFSpotDbFSpotRollRow* roll_row = NULL;
+ SpitDataImportsImportableMediaItem** importable_items = NULL;
+ SpitDataImportsImportableMediaItem** _tmp97_ = NULL;
+ gint importable_items_length1 = 0;
+ gint _importable_items_size_ = 0;
+ gboolean _tmp161_ = FALSE;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp47_ = _photo_row_index;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _photo_row_index = _tmp47_ + 1;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp48_ = _photo_row_index;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp49_ = _photo_row_size;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (!(_tmp48_ < _tmp49_)) {
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ break;
+#line 4102 "FSpotImporter.c"
+ }
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp50_ = _photo_row_list;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp51_ = _photo_row_index;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp52_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp51_);
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ photo_row = (DataImportsFSpotDbFSpotPhotoRow*) _tmp52_;
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ hidden = FALSE;
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ favorite = FALSE;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp53_ = g_new0 (DataImportsFSpotFSpotImportableTag*, 0 + 1);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags = _tmp53_;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags_length1 = 0;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tags_size_ = tags_length1;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ event = NULL;
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ roll_row = NULL;
+#line 4128 "FSpotImporter.c"
+ {
+ GeeArrayList* _tmp54_ = NULL;
+ DataImportsFSpotDbFSpotDatabase* _tmp55_ = NULL;
+ DataImportsFSpotDbFSpotTagsTable* _tmp56_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp57_ = NULL;
+ gint64 _tmp58_ = 0LL;
+ GeeArrayList* _tmp59_ = NULL;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp55_ = database;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp56_ = _tmp55_->tags_table;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp57_ = photo_row;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp58_ = _tmp57_->photo_id;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp59_ = data_imports_fspot_db_fspot_tags_table_get_by_photo_id (_tmp56_, _tmp58_, &_inner_error_);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp54_ = _tmp59_;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 4152 "FSpotImporter.c"
+ goto __catch3_database_error;
+ }
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (roll_row);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (event);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_row);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_photo_row_list);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 4177 "FSpotImporter.c"
+ }
+ {
+ GeeArrayList* _tag_row_list = NULL;
+ GeeArrayList* _tmp60_ = NULL;
+ gint _tag_row_size = 0;
+ GeeArrayList* _tmp61_ = NULL;
+ gint _tmp62_ = 0;
+ gint _tmp63_ = 0;
+ gint _tag_row_index = 0;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp60_ = _tmp54_;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp54_ = NULL;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tag_row_list = _tmp60_;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp61_ = _tag_row_list;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp62_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp63_ = _tmp62_;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tag_row_size = _tmp63_;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tag_row_index = -1;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ while (TRUE) {
+#line 4205 "FSpotImporter.c"
+ gint _tmp64_ = 0;
+ gint _tmp65_ = 0;
+ gint _tmp66_ = 0;
+ DataImportsFSpotDbFSpotTagRow* tag_row = NULL;
+ GeeArrayList* _tmp67_ = NULL;
+ gint _tmp68_ = 0;
+ gpointer _tmp69_ = NULL;
+ DataImportsFSpotFSpotImportableTag* tag = NULL;
+ DataImportsFSpotFSpotTagsCache* _tmp70_ = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp71_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp72_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp73_ = NULL;
+ DataImportsFSpotDbFSpotDatabase* _tmp74_ = NULL;
+ gint64 _tmp75_ = 0LL;
+ gboolean _tmp76_ = FALSE;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp64_ = _tag_row_index;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tag_row_index = _tmp64_ + 1;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp65_ = _tag_row_index;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp66_ = _tag_row_size;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (!(_tmp65_ < _tmp66_)) {
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ break;
+#line 4233 "FSpotImporter.c"
+ }
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp67_ = _tag_row_list;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp68_ = _tag_row_index;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp69_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp68_);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tag_row = (DataImportsFSpotDbFSpotTagRow*) _tmp69_;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp70_ = tags_cache;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp71_ = tag_row;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp72_ = data_imports_fspot_fspot_tags_cache_get_tag (_tmp70_, _tmp71_, &_inner_error_);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tag = _tmp72_;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag_row);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tag_row_list);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp54_);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 4261 "FSpotImporter.c"
+ goto __catch3_database_error;
+ }
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag_row);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tag_row_list);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp54_);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (roll_row);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (event);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_row);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_photo_row_list);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 4292 "FSpotImporter.c"
+ }
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp73_ = tag;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp74_ = database;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp75_ = _tmp74_->hidden_tag_id;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp76_ = data_imports_fspot_fspot_data_importer_is_tag_hidden (self, _tmp73_, _tmp75_);
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp76_) {
+#line 453 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ hidden = TRUE;
+#line 4306 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotFSpotImportableTag* _tmp77_ = NULL;
+ gboolean _tmp78_ = FALSE;
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp77_ = tag;
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp78_ = data_imports_fspot_fspot_data_importer_is_tag_favorite (self, _tmp77_);
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp78_) {
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ favorite = TRUE;
+#line 4318 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotFSpotImportableTag** _tmp79_ = NULL;
+ gint _tmp79__length1 = 0;
+ DataImportsFSpotFSpotImportableTag* _tmp80_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp81_ = NULL;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp79_ = tags;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp79__length1 = tags_length1;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp80_ = tag;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp81_ = _g_object_ref0 (_tmp80_);
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _vala_array_add3 (&tags, &tags_length1, &_tags_size_, _tmp81_);
+#line 4334 "FSpotImporter.c"
+ }
+ }
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tag_row);
+#line 4341 "FSpotImporter.c"
+ }
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tag_row_list);
+#line 4345 "FSpotImporter.c"
+ }
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp54_);
+#line 4349 "FSpotImporter.c"
+ }
+ goto __finally3;
+ __catch3_database_error:
+ {
+ GError* e = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp82_ = NULL;
+ gint64 _tmp83_ = 0LL;
+ GError* _tmp84_ = NULL;
+ const gchar* _tmp85_ = NULL;
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ e = _inner_error_;
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _inner_error_ = NULL;
+#line 461 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp82_ = photo_row;
+#line 461 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp83_ = _tmp82_->photo_id;
+#line 461 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp84_ = e;
+#line 461 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp85_ = _tmp84_->message;
+#line 461 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_message ("FSpotImporter.vala:461: Failed to retrieve tags for photo ID %ld: %s", (glong) _tmp83_, _tmp85_);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_error_free0 (e);
+#line 4375 "FSpotImporter.c"
+ }
+ __finally3:
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (roll_row);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (event);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_row);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_photo_row_list);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.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 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 4402 "FSpotImporter.c"
+ }
+ {
+ DataImportsFSpotDbFSpotRollRow* _tmp86_ = NULL;
+ DataImportsFSpotDbFSpotDatabase* _tmp87_ = NULL;
+ DataImportsFSpotDbFSpotRollsTable* _tmp88_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp89_ = NULL;
+ gint64 _tmp90_ = 0LL;
+ DataImportsFSpotDbFSpotRollRow* _tmp91_ = NULL;
+ DataImportsFSpotDbFSpotRollRow* _tmp92_ = NULL;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp87_ = database;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp88_ = _tmp87_->rolls_table;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp89_ = photo_row;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp90_ = _tmp89_->roll_id;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp91_ = data_imports_fspot_db_fspot_rolls_table_get_by_id (_tmp88_, _tmp90_, &_inner_error_);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp86_ = _tmp91_;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 4428 "FSpotImporter.c"
+ goto __catch4_database_error;
+ }
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (roll_row);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (event);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_row);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_photo_row_list);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 4453 "FSpotImporter.c"
+ }
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp92_ = _tmp86_;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp86_ = NULL;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (roll_row);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ roll_row = _tmp92_;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_tmp86_);
+#line 4465 "FSpotImporter.c"
+ }
+ goto __finally4;
+ __catch4_database_error:
+ {
+ GError* e = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp93_ = NULL;
+ gint64 _tmp94_ = 0LL;
+ GError* _tmp95_ = NULL;
+ const gchar* _tmp96_ = NULL;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ e = _inner_error_;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _inner_error_ = NULL;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp93_ = photo_row;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp94_ = _tmp93_->photo_id;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp95_ = e;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp96_ = _tmp95_->message;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_message ("FSpotImporter.vala:469: Failed to retrieve roll for photo ID %ld: %s", (glong) _tmp94_, _tmp96_);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_error_free0 (e);
+#line 4491 "FSpotImporter.c"
+ }
+ __finally4:
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (roll_row);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (event);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_row);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_photo_row_list);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.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 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 4518 "FSpotImporter.c"
+ }
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp97_ = g_new0 (SpitDataImportsImportableMediaItem*, 0 + 1);
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ importable_items = _tmp97_;
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ importable_items_length1 = 0;
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _importable_items_size_ = importable_items_length1;
+#line 4528 "FSpotImporter.c"
+ {
+ GeeArrayList* photo_versions = NULL;
+ DataImportsFSpotDbFSpotDatabase* _tmp98_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsTable* _tmp99_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp100_ = NULL;
+ gint64 _tmp101_ = 0LL;
+ GeeArrayList* _tmp102_ = NULL;
+ gboolean photo_versions_added = FALSE;
+ gboolean photo_versions_skipped = FALSE;
+ gboolean _tmp128_ = FALSE;
+ gboolean _tmp129_ = FALSE;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp98_ = database;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp99_ = _tmp98_->photo_versions_table;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp100_ = photo_row;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp101_ = _tmp100_->photo_id;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp102_ = data_imports_fspot_db_fspot_photo_versions_table_get_by_photo_id (_tmp99_, _tmp101_, &_inner_error_);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ photo_versions = _tmp102_;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 4556 "FSpotImporter.c"
+ goto __catch5_database_error;
+ }
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ importable_items = (_vala_array_free (importable_items, importable_items_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (roll_row);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (event);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_row);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_photo_row_list);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 4583 "FSpotImporter.c"
+ }
+#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ photo_versions_added = FALSE;
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ photo_versions_skipped = FALSE;
+#line 4589 "FSpotImporter.c"
+ {
+ GeeArrayList* _photo_version_row_list = NULL;
+ GeeArrayList* _tmp103_ = NULL;
+ GeeArrayList* _tmp104_ = NULL;
+ gint _photo_version_row_size = 0;
+ GeeArrayList* _tmp105_ = NULL;
+ gint _tmp106_ = 0;
+ gint _tmp107_ = 0;
+ gint _photo_version_row_index = 0;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp103_ = photo_versions;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp104_ = _g_object_ref0 (_tmp103_);
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _photo_version_row_list = _tmp104_;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp105_ = _photo_version_row_list;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp106_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp107_ = _tmp106_;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _photo_version_row_size = _tmp107_;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _photo_version_row_index = -1;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ while (TRUE) {
+#line 4617 "FSpotImporter.c"
+ gint _tmp108_ = 0;
+ gint _tmp109_ = 0;
+ gint _tmp110_ = 0;
+ DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row = NULL;
+ GeeArrayList* _tmp111_ = NULL;
+ gint _tmp112_ = 0;
+ gpointer _tmp113_ = NULL;
+ gboolean _tmp114_ = FALSE;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp115_ = NULL;
+ GFile* _tmp116_ = NULL;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp108_ = _photo_version_row_index;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _photo_version_row_index = _tmp108_ + 1;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp109_ = _photo_version_row_index;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp110_ = _photo_version_row_size;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (!(_tmp109_ < _tmp110_)) {
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ break;
+#line 4640 "FSpotImporter.c"
+ }
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp111_ = _photo_version_row_list;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp112_ = _photo_version_row_index;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp113_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp111_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp112_);
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ photo_version_row = (DataImportsFSpotDbFSpotPhotoVersionRow*) _tmp113_;
+#line 480 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp115_ = photo_version_row;
+#line 480 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp116_ = _tmp115_->base_path;
+#line 480 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp116_ != NULL) {
+#line 4656 "FSpotImporter.c"
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp117_ = NULL;
+ const gchar* _tmp118_ = NULL;
+#line 480 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp117_ = photo_version_row;
+#line 480 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp118_ = _tmp117_->filename;
+#line 480 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp114_ = _tmp118_ != NULL;
+#line 4665 "FSpotImporter.c"
+ } else {
+#line 480 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp114_ = FALSE;
+#line 4669 "FSpotImporter.c"
+ }
+#line 480 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp114_) {
+#line 4673 "FSpotImporter.c"
+ SpitDataImportsImportableMediaItem** _tmp119_ = NULL;
+ gint _tmp119__length1 = 0;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp120_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp121_ = NULL;
+ DataImportsFSpotDbFSpotRollRow* _tmp122_ = NULL;
+ DataImportsFSpotFSpotImportableTag** _tmp123_ = NULL;
+ gint _tmp123__length1 = 0;
+ DataImportsFSpotFSpotImportableEvent* _tmp124_ = NULL;
+ gboolean _tmp125_ = FALSE;
+ gboolean _tmp126_ = FALSE;
+ DataImportsFSpotFSpotImportableItem* _tmp127_ = NULL;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp119_ = importable_items;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp119__length1 = importable_items_length1;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp120_ = photo_row;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp121_ = photo_version_row;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp122_ = roll_row;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp123_ = tags;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp123__length1 = tags_length1;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp124_ = event;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp125_ = hidden;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp126_ = favorite;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp127_ = data_imports_fspot_fspot_importable_item_new (_tmp120_, _tmp121_, _tmp122_, _tmp123_, _tmp123__length1, _tmp124_, _tmp125_, _tmp126_);
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _vala_array_add4 (&importable_items, &importable_items_length1, &_importable_items_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp127_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem));
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ photo_versions_added = TRUE;
+#line 4711 "FSpotImporter.c"
+ } else {
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ photo_versions_skipped = TRUE;
+#line 4715 "FSpotImporter.c"
+ }
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_version_row);
+#line 4719 "FSpotImporter.c"
+ }
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_photo_version_row_list);
+#line 4723 "FSpotImporter.c"
+ }
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp129_ = photo_versions_skipped;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp129_) {
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp128_ = TRUE;
+#line 4731 "FSpotImporter.c"
+ } else {
+ gboolean _tmp130_ = FALSE;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp130_ = photo_versions_added;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp128_ = !_tmp130_;
+#line 4738 "FSpotImporter.c"
+ }
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp128_) {
+#line 4742 "FSpotImporter.c"
+ gboolean _tmp131_ = FALSE;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp132_ = NULL;
+ GFile* _tmp133_ = NULL;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp132_ = photo_row;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp133_ = _tmp132_->base_path;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp133_ != NULL) {
+#line 4752 "FSpotImporter.c"
+ DataImportsFSpotDbFSpotPhotoRow* _tmp134_ = NULL;
+ const gchar* _tmp135_ = NULL;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp134_ = photo_row;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp135_ = _tmp134_->filename;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp131_ = _tmp135_ != NULL;
+#line 4761 "FSpotImporter.c"
+ } else {
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp131_ = FALSE;
+#line 4765 "FSpotImporter.c"
+ }
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp131_) {
+#line 4769 "FSpotImporter.c"
+ SpitDataImportsImportableMediaItem** _tmp136_ = NULL;
+ gint _tmp136__length1 = 0;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp137_ = NULL;
+ DataImportsFSpotDbFSpotRollRow* _tmp138_ = NULL;
+ DataImportsFSpotFSpotImportableTag** _tmp139_ = NULL;
+ gint _tmp139__length1 = 0;
+ DataImportsFSpotFSpotImportableEvent* _tmp140_ = NULL;
+ gboolean _tmp141_ = FALSE;
+ gboolean _tmp142_ = FALSE;
+ DataImportsFSpotFSpotImportableItem* _tmp143_ = NULL;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp136_ = importable_items;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp136__length1 = importable_items_length1;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp137_ = photo_row;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp138_ = roll_row;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp139_ = tags;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp139__length1 = tags_length1;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp140_ = event;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp141_ = hidden;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp142_ = favorite;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp143_ = data_imports_fspot_fspot_importable_item_new (_tmp137_, NULL, _tmp138_, _tmp139_, _tmp139__length1, _tmp140_, _tmp141_, _tmp142_);
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _vala_array_add5 (&importable_items, &importable_items_length1, &_importable_items_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp143_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem));
+#line 4802 "FSpotImporter.c"
+ }
+ }
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_versions);
+#line 4807 "FSpotImporter.c"
+ }
+ goto __finally5;
+ __catch5_database_error:
+ {
+ GError* e = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp144_ = NULL;
+ gint64 _tmp145_ = 0LL;
+ GError* _tmp146_ = NULL;
+ const gchar* _tmp147_ = NULL;
+ gboolean _tmp148_ = FALSE;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp149_ = NULL;
+ GFile* _tmp150_ = NULL;
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ e = _inner_error_;
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _inner_error_ = NULL;
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp144_ = photo_row;
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp145_ = _tmp144_->photo_id;
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp146_ = e;
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp147_ = _tmp146_->message;
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_message ("FSpotImporter.vala:504: Failed to retrieve versions for photo ID %ld: " \
+"%s", (glong) _tmp145_, _tmp147_);
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp149_ = photo_row;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp150_ = _tmp149_->base_path;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp150_ != NULL) {
+#line 4840 "FSpotImporter.c"
+ DataImportsFSpotDbFSpotPhotoRow* _tmp151_ = NULL;
+ const gchar* _tmp152_ = NULL;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp151_ = photo_row;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp152_ = _tmp151_->filename;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp148_ = _tmp152_ != NULL;
+#line 4849 "FSpotImporter.c"
+ } else {
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp148_ = FALSE;
+#line 4853 "FSpotImporter.c"
+ }
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp148_) {
+#line 4857 "FSpotImporter.c"
+ SpitDataImportsImportableMediaItem** _tmp153_ = NULL;
+ gint _tmp153__length1 = 0;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp154_ = NULL;
+ DataImportsFSpotDbFSpotRollRow* _tmp155_ = NULL;
+ DataImportsFSpotFSpotImportableTag** _tmp156_ = NULL;
+ gint _tmp156__length1 = 0;
+ DataImportsFSpotFSpotImportableEvent* _tmp157_ = NULL;
+ gboolean _tmp158_ = FALSE;
+ gboolean _tmp159_ = FALSE;
+ DataImportsFSpotFSpotImportableItem* _tmp160_ = NULL;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp153_ = importable_items;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp153__length1 = importable_items_length1;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp154_ = photo_row;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp155_ = roll_row;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp156_ = tags;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp156__length1 = tags_length1;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp157_ = event;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp158_ = hidden;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp159_ = favorite;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp160_ = data_imports_fspot_fspot_importable_item_new (_tmp154_, NULL, _tmp155_, _tmp156_, _tmp156__length1, _tmp157_, _tmp158_, _tmp159_);
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _vala_array_add6 (&importable_items, &importable_items_length1, &_importable_items_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp160_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem));
+#line 4890 "FSpotImporter.c"
+ }
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_error_free0 (e);
+#line 4894 "FSpotImporter.c"
+ }
+ __finally5:
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ importable_items = (_vala_array_free (importable_items, importable_items_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (roll_row);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (event);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_row);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_photo_row_list);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.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 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_clear_error (&_inner_error_);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return;
+#line 4923 "FSpotImporter.c"
+ }
+#line 514 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp161_ = self->priv->running;
+#line 514 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp161_) {
+#line 4929 "FSpotImporter.c"
+ SpitDataImportsPluginHost* _tmp162_ = NULL;
+ SpitDataImportsImportableMediaItem** _tmp163_ = NULL;
+ gint _tmp163__length1 = 0;
+ gdouble _tmp164_ = 0.0;
+ gdouble _tmp165_ = 0.0;
+ gdouble _tmp166_ = 0.0;
+ gdouble _tmp167_ = 0.0;
+ gdouble _tmp168_ = 0.0;
+ gdouble _tmp169_ = 0.0;
+ gdouble _tmp170_ = 0.0;
+ SpitDataImportsPluginHost* _tmp171_ = NULL;
+ gdouble _tmp172_ = 0.0;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp162_ = self->priv->host;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp163_ = importable_items;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp163__length1 = importable_items_length1;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp164_ = current_progress;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp165_ = progress_delta_per_photo;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp166_ = progress_plugin_to_host_ratio;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp167_ = progress_delta_per_photo;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp168_ = progress_plugin_to_host_ratio;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_plugin_host_prepare_media_items_for_import (_tmp162_, _tmp163_, _tmp163__length1, _tmp164_ + (_tmp165_ * _tmp166_), _tmp167_ * (1 - _tmp168_), NULL);
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp169_ = current_progress;
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp170_ = progress_delta_per_photo;
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ current_progress = _tmp169_ + _tmp170_;
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp171_ = self->priv->host;
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp172_ = current_progress;
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_plugin_host_update_import_progress_pane (_tmp171_, _tmp172_, NULL);
+#line 4972 "FSpotImporter.c"
+ } else {
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ importable_items = (_vala_array_free (importable_items, importable_items_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (roll_row);
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (event);
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_row);
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ break;
+#line 4986 "FSpotImporter.c"
+ }
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ importable_items = (_vala_array_free (importable_items, importable_items_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (roll_row);
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (event);
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (photo_row);
+#line 4998 "FSpotImporter.c"
+ }
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (_photo_row_list);
+#line 5002 "FSpotImporter.c"
+ }
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp173_ = self->priv->host;
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_plugin_host_finalize_import (_tmp173_, _data_imports_fspot_fspot_data_importer_on_imported_items_count_spit_data_imports_imported_items_count_callback, self, NULL);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (all_photos);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (tags_cache);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (database);
+#line 5014 "FSpotImporter.c"
+}
+
+
+void data_imports_fspot_fspot_data_importer_on_imported_items_count (DataImportsFSpotFSpotDataImporter* self, gint imported_items_count) {
+ SpitDataImportsPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 530 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER (self));
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = self->priv->host;
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = imported_items_count;
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = g_strdup_printf (DATA_IMPORTS_FSPOT_MESSAGE_FINAL_SCREEN, _tmp1_);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = _tmp2_;
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ spit_data_imports_plugin_host_install_static_message_pane (_tmp0_, _tmp3_, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp3_);
+#line 5037 "FSpotImporter.c"
+}
+
+
+static gboolean data_imports_fspot_fspot_data_importer_is_tag_event (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag) {
+ gboolean result = FALSE;
+ gboolean _result_ = FALSE;
+ DataImportsFSpotFSpotImportableTag* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ gboolean _tmp4_ = FALSE;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER (self), FALSE);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (tag), FALSE);
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = tag;
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = data_imports_fspot_fspot_importable_tag_get_stock_icon (_tmp0_);
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = _tmp1_;
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = g_strcmp0 (DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_EVENTS, _tmp2_) == 0;
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp2_);
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _result_ = _tmp3_;
+#line 539 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = _result_;
+#line 539 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (!_tmp4_) {
+#line 5069 "FSpotImporter.c"
+ DataImportsFSpotFSpotImportableTag* parent = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp5_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp6_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp7_ = NULL;
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = tag;
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = data_imports_fspot_fspot_importable_tag_get_fspot_parent (_tmp5_);
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ parent = _tmp6_;
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = parent;
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp7_ == NULL) {
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _result_ = FALSE;
+#line 5086 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotFSpotImportableTag* _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = parent;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9_ = data_imports_fspot_fspot_data_importer_is_tag_event (self, _tmp8_);
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _result_ = _tmp9_;
+#line 5096 "FSpotImporter.c"
+ }
+#line 539 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (parent);
+#line 5100 "FSpotImporter.c"
+ }
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _result_;
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 5106 "FSpotImporter.c"
+}
+
+
+static gboolean data_imports_fspot_fspot_data_importer_is_tag_hidden (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag, gint64 hidden_tag_id) {
+ gboolean result = FALSE;
+ gboolean _result_ = FALSE;
+ gint64 _tmp0_ = 0LL;
+ DataImportsFSpotFSpotImportableTag* _tmp1_ = NULL;
+ gint64 _tmp2_ = 0LL;
+ gboolean _tmp3_ = FALSE;
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER (self), FALSE);
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (tag), FALSE);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = hidden_tag_id;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = tag;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = data_imports_fspot_fspot_importable_tag_get_id (_tmp1_);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _result_ = _tmp0_ == _tmp2_;
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = _result_;
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (!_tmp3_) {
+#line 5133 "FSpotImporter.c"
+ DataImportsFSpotFSpotImportableTag* parent = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp4_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp5_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp6_ = NULL;
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = tag;
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = data_imports_fspot_fspot_importable_tag_get_fspot_parent (_tmp4_);
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ parent = _tmp5_;
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = parent;
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp6_ == NULL) {
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _result_ = FALSE;
+#line 5150 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotFSpotImportableTag* _tmp7_ = NULL;
+ gint64 _tmp8_ = 0LL;
+ gboolean _tmp9_ = FALSE;
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = parent;
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = hidden_tag_id;
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9_ = data_imports_fspot_fspot_data_importer_is_tag_hidden (self, _tmp7_, _tmp8_);
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _result_ = _tmp9_;
+#line 5163 "FSpotImporter.c"
+ }
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (parent);
+#line 5167 "FSpotImporter.c"
+ }
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _result_;
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 5173 "FSpotImporter.c"
+}
+
+
+static gboolean data_imports_fspot_fspot_data_importer_is_tag_favorite (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag) {
+ gboolean result = FALSE;
+ gboolean _result_ = FALSE;
+ DataImportsFSpotFSpotImportableTag* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ gboolean _tmp4_ = FALSE;
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER (self), FALSE);
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (tag), FALSE);
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp0_ = tag;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp1_ = data_imports_fspot_fspot_importable_tag_get_stock_icon (_tmp0_);
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp2_ = _tmp1_;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp3_ = g_strcmp0 (DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_FAV, _tmp2_) == 0;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_free0 (_tmp2_);
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _result_ = _tmp3_;
+#line 563 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp4_ = _result_;
+#line 563 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (!_tmp4_) {
+#line 5205 "FSpotImporter.c"
+ DataImportsFSpotFSpotImportableTag* parent = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp5_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp6_ = NULL;
+ DataImportsFSpotFSpotImportableTag* _tmp7_ = NULL;
+#line 564 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp5_ = tag;
+#line 564 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp6_ = data_imports_fspot_fspot_importable_tag_get_fspot_parent (_tmp5_);
+#line 564 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ parent = _tmp6_;
+#line 565 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp7_ = parent;
+#line 565 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ if (_tmp7_ == NULL) {
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _result_ = FALSE;
+#line 5222 "FSpotImporter.c"
+ } else {
+ DataImportsFSpotFSpotImportableTag* _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp8_ = parent;
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _tmp9_ = data_imports_fspot_fspot_data_importer_is_tag_favorite (self, _tmp8_);
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _result_ = _tmp9_;
+#line 5232 "FSpotImporter.c"
+ }
+#line 563 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ _g_object_unref0 (parent);
+#line 5236 "FSpotImporter.c"
+ }
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ result = _result_;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ return result;
+#line 5242 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_data_importer_class_init (DataImportsFSpotFSpotDataImporterClass * klass) {
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_data_importer_parent_class = g_type_class_peek_parent (klass);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotDataImporterPrivate));
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_data_importer_finalize;
+#line 5253 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_data_importer_spit_data_imports_data_importer_interface_init (SpitDataImportsDataImporterIface * iface) {
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ data_imports_fspot_fspot_data_importer_spit_data_imports_data_importer_parent_iface = g_type_interface_peek_parent (iface);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->is_running = (gboolean (*)(SpitDataImportsDataImporter*)) data_imports_fspot_fspot_data_importer_real_is_running;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->get_service = (SpitDataImportsService* (*)(SpitDataImportsDataImporter*)) data_imports_fspot_fspot_data_importer_real_get_service;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->start = (void (*)(SpitDataImportsDataImporter*)) data_imports_fspot_fspot_data_importer_real_start;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->stop = (void (*)(SpitDataImportsDataImporter*)) data_imports_fspot_fspot_data_importer_real_stop;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->on_library_selected = (void (*)(SpitDataImportsDataImporter*, SpitDataImportsImportableLibrary*)) data_imports_fspot_fspot_data_importer_real_on_library_selected;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ iface->on_file_selected = (void (*)(SpitDataImportsDataImporter*, GFile*)) data_imports_fspot_fspot_data_importer_real_on_file_selected;
+#line 5272 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_data_importer_instance_init (DataImportsFSpotFSpotDataImporter * self) {
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv = DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER_GET_PRIVATE (self);
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->host = NULL;
+#line 325 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->service = NULL;
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self->priv->running = FALSE;
+#line 5285 "FSpotImporter.c"
+}
+
+
+static void data_imports_fspot_fspot_data_importer_finalize (GObject* obj) {
+ DataImportsFSpotFSpotDataImporter * self;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
+ G_OBJECT_CLASS (data_imports_fspot_fspot_data_importer_parent_class)->finalize (obj);
+#line 5295 "FSpotImporter.c"
+}
+
+
+GType data_imports_fspot_fspot_data_importer_get_type (void) {
+ static volatile gsize data_imports_fspot_fspot_data_importer_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_fspot_data_importer_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotDataImporterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_data_importer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotDataImporter), 0, (GInstanceInitFunc) data_imports_fspot_fspot_data_importer_instance_init, NULL };
+ static const GInterfaceInfo spit_data_imports_data_importer_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_data_importer_spit_data_imports_data_importer_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_fspot_data_importer_type_id;
+ data_imports_fspot_fspot_data_importer_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotDataImporter", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_fspot_data_importer_type_id, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, &spit_data_imports_data_importer_info);
+ g_once_init_leave (&data_imports_fspot_fspot_data_importer_type_id__volatile, data_imports_fspot_fspot_data_importer_type_id);
+ }
+ return data_imports_fspot_fspot_data_importer_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/plugins/shotwell-data-imports/FSpotImporter.vala b/plugins/shotwell-data-imports/FSpotImporter.vala
index bd408cc..be04cf9 100644
--- a/plugins/shotwell-data-imports/FSpotImporter.vala
+++ b/plugins/shotwell-data-imports/FSpotImporter.vala
@@ -13,7 +13,9 @@ public class FSpotService : Object, Spit.Pluggable, Spit.DataImports.Service {
// initialize the database layer
DataImports.FSpot.Db.init();
if (icon_pixbuf_set == null)
- icon_pixbuf_set = Resources.load_icon_set(resource_directory.get_child(ICON_FILENAME));
+ icon_pixbuf_set =
+ Resources.load_from_resource("/org/gnome/Shotwell/Imports/"
+ + ICON_FILENAME);
}
public int get_pluggable_interface(int min_host_interface, int max_host_interface) {
@@ -252,8 +254,8 @@ public class FSpotImportableEvent : Spit.DataImports.ImportableEvent, GLib.Objec
}
public class FSpotImportableRating : Spit.DataImports.ImportableRating, GLib.Object {
- public static const int REJECTED = -1;
- public static const int UNRATED = 0;
+ public const int REJECTED = -1;
+ public const int UNRATED = 0;
private int rating_value;
diff --git a/plugins/shotwell-data-imports/FSpotMetaTable.c b/plugins/shotwell-data-imports/FSpotMetaTable.c
new file mode 100644
index 0000000..5b8a0c1
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotMetaTable.c
@@ -0,0 +1,1461 @@
+/* FSpotMetaTable.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotMetaTable.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 <stdlib.h>
+#include <string.h>
+#include <sqlite3.h>
+
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_ROW (data_imports_fspot_db_fspot_meta_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_ROW, DataImportsFSpotDbFSpotMetaRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_ROW, DataImportsFSpotDbFSpotMetaRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_ROW, DataImportsFSpotDbFSpotMetaRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotMetaRow DataImportsFSpotDbFSpotMetaRow;
+typedef struct _DataImportsFSpotDbFSpotMetaRowClass DataImportsFSpotDbFSpotMetaRowClass;
+typedef struct _DataImportsFSpotDbFSpotMetaRowPrivate DataImportsFSpotDbFSpotMetaRowPrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define TYPE_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
+#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
+#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+
+typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
+typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;
+typedef struct _ImportableDatabaseTablePrivate ImportableDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE (data_imports_fspot_db_fspot_database_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseTable DataImportsFSpotDbFSpotDatabaseTable;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTableClass DataImportsFSpotDbFSpotDatabaseTableClass;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTablePrivate DataImportsFSpotDbFSpotDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR (data_imports_fspot_db_fspot_table_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehaviorIface))
+
+typedef struct _DataImportsFSpotDbFSpotTableBehavior DataImportsFSpotDbFSpotTableBehavior;
+typedef struct _DataImportsFSpotDbFSpotTableBehaviorIface DataImportsFSpotDbFSpotTableBehaviorIface;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE (data_imports_fspot_db_fspot_meta_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE, DataImportsFSpotDbFSpotMetaTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE, DataImportsFSpotDbFSpotMetaTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE, DataImportsFSpotDbFSpotMetaTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotMetaTable DataImportsFSpotDbFSpotMetaTable;
+typedef struct _DataImportsFSpotDbFSpotMetaTableClass DataImportsFSpotDbFSpotMetaTableClass;
+typedef struct _DataImportsFSpotDbFSpotMetaTablePrivate DataImportsFSpotDbFSpotMetaTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR (data_imports_fspot_db_fspot_meta_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR, DataImportsFSpotDbFSpotMetaBehavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR, DataImportsFSpotDbFSpotMetaBehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR, DataImportsFSpotDbFSpotMetaBehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotMetaBehavior DataImportsFSpotDbFSpotMetaBehavior;
+typedef struct _DataImportsFSpotDbFSpotMetaBehaviorClass DataImportsFSpotDbFSpotMetaBehaviorClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
+typedef struct _DataImportsFSpotDbFSpotMetaBehaviorPrivate DataImportsFSpotDbFSpotMetaBehaviorPrivate;
+
+struct _DataImportsFSpotDbFSpotMetaRow {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotMetaRowPrivate * priv;
+ gchar* name;
+ gchar* data;
+};
+
+struct _DataImportsFSpotDbFSpotMetaRowClass {
+ GObjectClass parent_class;
+};
+
+struct _ImportableDatabaseTable {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ ImportableDatabaseTablePrivate * priv;
+ gchar* table_name;
+};
+
+struct _ImportableDatabaseTableClass {
+ GTypeClass parent_class;
+ void (*finalize) (ImportableDatabaseTable *self);
+};
+
+struct _DataImportsFSpotDbFSpotTableBehaviorIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_table_name) (DataImportsFSpotDbFSpotTableBehavior* self);
+ gchar** (*list_columns) (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+ void (*build_row) (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTable {
+ ImportableDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotDatabaseTablePrivate * priv;
+ sqlite3* fspot_db;
+ DataImportsFSpotDbFSpotTableBehavior* behavior;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTableClass {
+ ImportableDatabaseTableClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotMetaTable {
+ DataImportsFSpotDbFSpotDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotMetaTablePrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotMetaTableClass {
+ DataImportsFSpotDbFSpotDatabaseTableClass parent_class;
+};
+
+typedef enum {
+ DATABASE_ERROR_ERROR,
+ DATABASE_ERROR_BACKING,
+ DATABASE_ERROR_MEMORY,
+ DATABASE_ERROR_ABORT,
+ DATABASE_ERROR_LIMITS,
+ DATABASE_ERROR_TYPESPEC
+} DatabaseError;
+#define DATABASE_ERROR database_error_quark ()
+struct _DataImportsFSpotDbFSpotMetaBehavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotMetaBehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotMetaBehaviorClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer data_imports_fspot_db_fspot_meta_row_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_meta_table_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_meta_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotMetaBehavior* data_imports_fspot_db_fspot_meta_behavior_instance;
+static DataImportsFSpotDbFSpotMetaBehavior* data_imports_fspot_db_fspot_meta_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_meta_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+
+GType data_imports_fspot_db_fspot_meta_row_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_META_ROW_DUMMY_PROPERTY
+};
+DataImportsFSpotDbFSpotMetaRow* data_imports_fspot_db_fspot_meta_row_new (void);
+DataImportsFSpotDbFSpotMetaRow* data_imports_fspot_db_fspot_meta_row_construct (GType object_type);
+static void data_imports_fspot_db_fspot_meta_row_finalize (GObject* obj);
+gpointer importable_database_table_ref (gpointer instance);
+void importable_database_table_unref (gpointer instance);
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_importable_database_table (GValue* value, gpointer v_object);
+void value_take_importable_database_table (GValue* value, gpointer v_object);
+gpointer value_get_importable_database_table (const GValue* value);
+GType importable_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_table_behavior_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_meta_table_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_META_TABLE_DUMMY_PROPERTY
+};
+DataImportsFSpotDbFSpotMetaTable* data_imports_fspot_db_fspot_meta_table_new (sqlite3* db);
+DataImportsFSpotDbFSpotMetaTable* data_imports_fspot_db_fspot_meta_table_construct (GType object_type, sqlite3* db);
+DataImportsFSpotDbFSpotDatabaseTable* data_imports_fspot_db_fspot_database_table_construct (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, sqlite3* db);
+void data_imports_fspot_db_fspot_database_table_set_behavior (DataImportsFSpotDbFSpotDatabaseTable* self, DataImportsFSpotDbFSpotTableBehavior* behavior);
+GType data_imports_fspot_db_fspot_meta_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotMetaBehavior* data_imports_fspot_db_fspot_meta_behavior_get_instance (void);
+GQuark database_error_quark (void);
+gchar* data_imports_fspot_db_fspot_meta_table_get_data (DataImportsFSpotDbFSpotMetaTable* self, const gchar* name, GError** error);
+gchar** data_imports_fspot_db_fspot_table_behavior_list_columns (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+void importable_database_table_throw_error (const gchar* method, gint res, GError** error);
+void data_imports_fspot_db_fspot_table_behavior_build_row (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+gchar* data_imports_fspot_db_fspot_meta_table_get_app_version (DataImportsFSpotDbFSpotMetaTable* self, GError** error);
+gchar* data_imports_fspot_db_fspot_meta_table_get_db_version (DataImportsFSpotDbFSpotMetaTable* self, GError** error);
+gint64 data_imports_fspot_db_fspot_meta_table_get_hidden_tag_id (DataImportsFSpotDbFSpotMetaTable* self, GError** error);
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_META_BEHAVIOR_DUMMY_PROPERTY
+};
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_META_BEHAVIOR_TABLE_NAME "Meta"
+static DataImportsFSpotDbFSpotMetaBehavior* data_imports_fspot_db_fspot_meta_behavior_new (void);
+static DataImportsFSpotDbFSpotMetaBehavior* data_imports_fspot_db_fspot_meta_behavior_construct (GType object_type);
+static gchar* data_imports_fspot_db_fspot_meta_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_meta_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_meta_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotMetaRow** row, gint offset);
+static void data_imports_fspot_db_fspot_meta_behavior_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);
+
+
+DataImportsFSpotDbFSpotMetaRow* data_imports_fspot_db_fspot_meta_row_construct (GType object_type) {
+ DataImportsFSpotDbFSpotMetaRow * self = NULL;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ self = (DataImportsFSpotDbFSpotMetaRow*) g_object_new (object_type, NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return self;
+#line 214 "FSpotMetaTable.c"
+}
+
+
+DataImportsFSpotDbFSpotMetaRow* data_imports_fspot_db_fspot_meta_row_new (void) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return data_imports_fspot_db_fspot_meta_row_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_ROW);
+#line 221 "FSpotMetaTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_meta_row_class_init (DataImportsFSpotDbFSpotMetaRowClass * klass) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ data_imports_fspot_db_fspot_meta_row_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_meta_row_finalize;
+#line 230 "FSpotMetaTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_meta_row_instance_init (DataImportsFSpotDbFSpotMetaRow * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_meta_row_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotMetaRow * self;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_ROW, DataImportsFSpotDbFSpotMetaRow);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (self->name);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (self->data);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_meta_row_parent_class)->finalize (obj);
+#line 248 "FSpotMetaTable.c"
+}
+
+
+/**
+ * The value object for the "meta" table, representing a single database row.
+ */
+GType data_imports_fspot_db_fspot_meta_row_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_meta_row_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_meta_row_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotMetaRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_meta_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotMetaRow), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_meta_row_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_meta_row_type_id;
+ data_imports_fspot_db_fspot_meta_row_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotMetaRow", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_meta_row_type_id__volatile, data_imports_fspot_db_fspot_meta_row_type_id);
+ }
+ return data_imports_fspot_db_fspot_meta_row_type_id__volatile;
+}
+
+
+DataImportsFSpotDbFSpotMetaTable* data_imports_fspot_db_fspot_meta_table_construct (GType object_type, sqlite3* db) {
+ DataImportsFSpotDbFSpotMetaTable* self = NULL;
+ sqlite3* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotMetaBehavior* _tmp1_ = NULL;
+ DataImportsFSpotDbFSpotMetaBehavior* _tmp2_ = NULL;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_return_val_if_fail (db != NULL, NULL);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = db;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ self = (DataImportsFSpotDbFSpotMetaTable*) data_imports_fspot_db_fspot_database_table_construct (object_type, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp0_);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_meta_behavior_get_instance ();
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp2_ = _tmp1_;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ data_imports_fspot_db_fspot_database_table_set_behavior (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior));
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_object_unref0 (_tmp2_);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return self;
+#line 288 "FSpotMetaTable.c"
+}
+
+
+DataImportsFSpotDbFSpotMetaTable* data_imports_fspot_db_fspot_meta_table_new (sqlite3* db) {
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return data_imports_fspot_db_fspot_meta_table_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_TABLE, db);
+#line 295 "FSpotMetaTable.c"
+}
+
+
+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 312 "FSpotMetaTable.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 322 "FSpotMetaTable.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 332 "FSpotMetaTable.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 338 "FSpotMetaTable.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 349 "FSpotMetaTable.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 361 "FSpotMetaTable.c"
+ } else {
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = FALSE;
+#line 365 "FSpotMetaTable.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp5_;
+#line 369 "FSpotMetaTable.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp1_) {
+#line 373 "FSpotMetaTable.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 396 "FSpotMetaTable.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 405 "FSpotMetaTable.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 418 "FSpotMetaTable.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 424 "FSpotMetaTable.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 434 "FSpotMetaTable.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 446 "FSpotMetaTable.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 450 "FSpotMetaTable.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 456 "FSpotMetaTable.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 467 "FSpotMetaTable.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 482 "FSpotMetaTable.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = FALSE;
+#line 486 "FSpotMetaTable.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = _tmp16_;
+#line 490 "FSpotMetaTable.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 496 "FSpotMetaTable.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 508 "FSpotMetaTable.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 529 "FSpotMetaTable.c"
+ } else {
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = 0;
+#line 533 "FSpotMetaTable.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 539 "FSpotMetaTable.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 546 "FSpotMetaTable.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 554 "FSpotMetaTable.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 592 "FSpotMetaTable.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 601 "FSpotMetaTable.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 617 "FSpotMetaTable.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 623 "FSpotMetaTable.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 637 "FSpotMetaTable.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 657 "FSpotMetaTable.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 672 "FSpotMetaTable.c"
+ } else {
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp53_ = "";
+#line 676 "FSpotMetaTable.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 684 "FSpotMetaTable.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 695 "FSpotMetaTable.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 704 "FSpotMetaTable.c"
+ }
+}
+
+
+gchar* data_imports_fspot_db_fspot_meta_table_get_data (DataImportsFSpotDbFSpotMetaTable* self, const gchar* name, GError** error) {
+ gchar* result = NULL;
+ gchar** columns = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gchar** _tmp2_ = NULL;
+ gint columns_length1 = 0;
+ gint _columns_size_ = 0;
+ gchar* column_list = NULL;
+ gchar** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ gchar* _tmp4_ = NULL;
+ gchar* sql = NULL;
+ const gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ sqlite3_stmt* stmt = NULL;
+ gint res = 0;
+ sqlite3* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ sqlite3_stmt* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ gint _tmp12_ = 0;
+ sqlite3_stmt* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ GDestroyNotify _tmp20_ = NULL;
+ gint _tmp21_ = 0;
+ gint _tmp22_ = 0;
+ sqlite3_stmt* _tmp27_ = NULL;
+ gint _tmp28_ = 0;
+ gint _tmp29_ = 0;
+ DataImportsFSpotDbFSpotMetaRow* row = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp32_ = NULL;
+ sqlite3_stmt* _tmp33_ = NULL;
+ gpointer _tmp34_ = NULL;
+ DataImportsFSpotDbFSpotMetaRow* _tmp35_ = NULL;
+ const gchar* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_TABLE (self), NULL);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->behavior;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_table_behavior_list_columns (_tmp0_, &_tmp1_);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ columns = _tmp2_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ columns_length1 = _tmp1_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _columns_size_ = columns_length1;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp3_ = columns;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp3__length1 = columns_length1;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp4_ = _vala_g_strjoinv (", ", _tmp3_, _tmp3__length1);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ column_list = _tmp4_;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp5_ = column_list;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable)->table_name;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp7_ = g_strdup_printf ("SELECT %s FROM %s WHERE name=?", _tmp5_, _tmp6_);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ sql = _tmp7_;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->fspot_db;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp9_ = sql;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp11_ = sqlite3_prepare_v2 (_tmp8_, _tmp9_, -1, &_tmp10_, NULL);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ stmt = _tmp10_;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ res = _tmp11_;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp12_ = res;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_tmp12_ != SQLITE_OK) {
+#line 795 "FSpotMetaTable.c"
+ const gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp13_ = sql;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp14_ = g_strdup_printf ("Statement failed: %s", _tmp13_);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp15_ = _tmp14_;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp16_ = res;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ importable_database_table_throw_error (_tmp15_, _tmp16_, &_inner_error_);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (_tmp15_);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (sql);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (column_list);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) g_free), NULL);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return NULL;
+#line 828 "FSpotMetaTable.c"
+ } else {
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (sql);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (column_list);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) g_free), NULL);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.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 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_clear_error (&_inner_error_);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return NULL;
+#line 844 "FSpotMetaTable.c"
+ }
+ }
+ }
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp17_ = stmt;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp18_ = name;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp19_ = g_strdup (_tmp18_);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp20_ = g_free;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp21_ = sqlite3_bind_text (_tmp17_, 1, _tmp19_, -1, _tmp20_);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ res = _tmp21_;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp22_ = res;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_tmp22_ != SQLITE_OK) {
+#line 864 "FSpotMetaTable.c"
+ const gchar* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ gint _tmp26_ = 0;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp23_ = name;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp24_ = g_strdup_printf ("Bind failed for name %s", _tmp23_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp25_ = _tmp24_;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp26_ = res;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ importable_database_table_throw_error (_tmp25_, _tmp26_, &_inner_error_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (_tmp25_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (sql);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (column_list);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) g_free), NULL);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return NULL;
+#line 897 "FSpotMetaTable.c"
+ } else {
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (sql);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (column_list);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) g_free), NULL);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.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 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_clear_error (&_inner_error_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return NULL;
+#line 913 "FSpotMetaTable.c"
+ }
+ }
+ }
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp27_ = stmt;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp28_ = sqlite3_step (_tmp27_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ res = _tmp28_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp29_ = res;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_tmp29_ != SQLITE_ROW) {
+#line 927 "FSpotMetaTable.c"
+ gint _tmp30_ = 0;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp30_ = res;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_tmp30_ != SQLITE_DONE) {
+#line 933 "FSpotMetaTable.c"
+ gint _tmp31_ = 0;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp31_ = res;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ importable_database_table_throw_error ("FSpotMetaTable.get_data", _tmp31_, &_inner_error_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (sql);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (column_list);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) g_free), NULL);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return NULL;
+#line 955 "FSpotMetaTable.c"
+ } else {
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (sql);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (column_list);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) g_free), NULL);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.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 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_clear_error (&_inner_error_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return NULL;
+#line 971 "FSpotMetaTable.c"
+ }
+ }
+ }
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ result = NULL;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (sql);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (column_list);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) g_free), NULL);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return result;
+#line 987 "FSpotMetaTable.c"
+ }
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp32_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->behavior;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp33_ = stmt;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ data_imports_fspot_db_fspot_table_behavior_build_row (_tmp32_, _tmp33_, &_tmp34_, 0);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_object_unref0 (row);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ row = _tmp34_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp35_ = row;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp36_ = _tmp35_->data;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp37_ = g_strdup (_tmp36_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ result = _tmp37_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_object_unref0 (row);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (sql);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (column_list);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) g_free), NULL);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return result;
+#line 1019 "FSpotMetaTable.c"
+}
+
+
+gchar* data_imports_fspot_db_fspot_meta_table_get_app_version (DataImportsFSpotDbFSpotMetaTable* self, GError** error) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_TABLE (self), NULL);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_meta_table_get_data (self, "F-Spot Version", &_inner_error_);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = _tmp1_;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return NULL;
+#line 1043 "FSpotMetaTable.c"
+ } else {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.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 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_clear_error (&_inner_error_);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return NULL;
+#line 1051 "FSpotMetaTable.c"
+ }
+ }
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp2_ = _tmp0_;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = NULL;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ result = _tmp2_;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (_tmp0_);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return result;
+#line 1064 "FSpotMetaTable.c"
+}
+
+
+gchar* data_imports_fspot_db_fspot_meta_table_get_db_version (DataImportsFSpotDbFSpotMetaTable* self, GError** error) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_TABLE (self), NULL);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_meta_table_get_data (self, "F-Spot Database Version", &_inner_error_);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = _tmp1_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return NULL;
+#line 1088 "FSpotMetaTable.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.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 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_clear_error (&_inner_error_);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return NULL;
+#line 1096 "FSpotMetaTable.c"
+ }
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp2_ = _tmp0_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = NULL;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ result = _tmp2_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (_tmp0_);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return result;
+#line 1109 "FSpotMetaTable.c"
+}
+
+
+static gint64 int64_parse (const gchar* str) {
+ gint64 result = 0LL;
+ const gchar* _tmp0_ = NULL;
+ gint64 _tmp1_ = 0LL;
+#line 679 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (str != NULL, 0LL);
+#line 680 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = str;
+#line 680 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = g_ascii_strtoll (_tmp0_, NULL, (guint) 0);
+#line 680 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp1_;
+#line 680 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 1127 "FSpotMetaTable.c"
+}
+
+
+gint64 data_imports_fspot_db_fspot_meta_table_get_hidden_tag_id (DataImportsFSpotDbFSpotMetaTable* self, GError** error) {
+ gint64 result = 0LL;
+ gchar* id_str = NULL;
+ gchar* _tmp0_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_META_TABLE (self), 0LL);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_meta_table_get_data (self, "Hidden Tag Id", &_inner_error_);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ id_str = _tmp0_;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return 0LL;
+#line 1150 "FSpotMetaTable.c"
+ } else {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.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 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_clear_error (&_inner_error_);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return 0LL;
+#line 1158 "FSpotMetaTable.c"
+ }
+ }
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (id_str != NULL) {
+#line 1163 "FSpotMetaTable.c"
+ gint64 _tmp1_ = 0LL;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp1_ = int64_parse (id_str);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ result = _tmp1_;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (id_str);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return result;
+#line 1173 "FSpotMetaTable.c"
+ } else {
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ result = (gint64) -1;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (id_str);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return result;
+#line 1181 "FSpotMetaTable.c"
+ }
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (id_str);
+#line 1185 "FSpotMetaTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_meta_table_class_init (DataImportsFSpotDbFSpotMetaTableClass * klass) {
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ data_imports_fspot_db_fspot_meta_table_parent_class = g_type_class_peek_parent (klass);
+#line 1192 "FSpotMetaTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_meta_table_instance_init (DataImportsFSpotDbFSpotMetaTable * self) {
+}
+
+
+/**
+ * This class represents the F-Spot meta table, which stores some essential
+ * meta-data for the whole database. It is implemented as a simple dictionary
+ * where each row in the table is a key/value pair.
+ *
+ * The meta table implementation is the only one that throws a database error
+ * if something goes wrong because:
+ * * it is essential to read the content of that table in order to identify
+ * the version of the database and select the correct behavior,
+ * * this table is read at the very beginning of the process so any failure
+ * will occur immediately,
+ * * failing to read this table means that there is no point in reading the
+ * attempting to read the rest of the database so we might as well abort.
+ */
+GType data_imports_fspot_db_fspot_meta_table_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_meta_table_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_meta_table_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotMetaTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_meta_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotMetaTable), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_meta_table_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_meta_table_type_id;
+ data_imports_fspot_db_fspot_meta_table_type_id = g_type_register_static (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, "DataImportsFSpotDbFSpotMetaTable", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_meta_table_type_id__volatile, data_imports_fspot_db_fspot_meta_table_type_id);
+ }
+ return data_imports_fspot_db_fspot_meta_table_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotMetaBehavior* data_imports_fspot_db_fspot_meta_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotMetaBehavior * self = NULL;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ self = (DataImportsFSpotDbFSpotMetaBehavior*) g_object_new (object_type, NULL);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return self;
+#line 1232 "FSpotMetaTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotMetaBehavior* data_imports_fspot_db_fspot_meta_behavior_new (void) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return data_imports_fspot_db_fspot_meta_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR);
+#line 1239 "FSpotMetaTable.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 1246 "FSpotMetaTable.c"
+}
+
+
+DataImportsFSpotDbFSpotMetaBehavior* data_imports_fspot_db_fspot_meta_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotMetaBehavior* result = NULL;
+ DataImportsFSpotDbFSpotMetaBehavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotMetaBehavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotMetaBehavior* _tmp3_ = NULL;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_meta_behavior_instance;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (_tmp0_ == NULL) {
+#line 1259 "FSpotMetaTable.c"
+ DataImportsFSpotDbFSpotMetaBehavior* _tmp1_ = NULL;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_meta_behavior_new ();
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_meta_behavior_instance);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ data_imports_fspot_db_fspot_meta_behavior_instance = _tmp1_;
+#line 1267 "FSpotMetaTable.c"
+ }
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_meta_behavior_instance;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ result = _tmp3_;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return result;
+#line 1277 "FSpotMetaTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_meta_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotMetaBehavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR, DataImportsFSpotDbFSpotMetaBehavior);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_META_BEHAVIOR_TABLE_NAME);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ result = _tmp0_;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return result;
+#line 1293 "FSpotMetaTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_meta_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotMetaBehavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar** _tmp2_ = NULL;
+ gchar** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR, DataImportsFSpotDbFSpotMetaBehavior);
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = g_strdup ("name");
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp1_ = g_strdup ("data");
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp2_ = g_new0 (gchar*, 2 + 1);
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp2_[0] = _tmp0_;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp2_[1] = _tmp1_;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp3_ = _tmp2_;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp3__length1 = 2;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (result_length1) {
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ *result_length1 = _tmp3__length1;
+#line 1325 "FSpotMetaTable.c"
+ }
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ result = _tmp3_;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ return result;
+#line 1331 "FSpotMetaTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_meta_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotMetaRow** row, gint offset) {
+ DataImportsFSpotDbFSpotMetaBehavior * self;
+ DataImportsFSpotDbFSpotMetaRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotMetaRow* _tmp0_ = NULL;
+ sqlite3_stmt* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ sqlite3_stmt* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR, DataImportsFSpotDbFSpotMetaBehavior);
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_meta_row_new ();
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _vala_row = _tmp0_;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp1_ = stmt;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp2_ = offset;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp3_ = sqlite3_column_text (_tmp1_, _tmp2_ + 0);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp4_ = g_strdup (_tmp3_);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (_vala_row->name);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _vala_row->name = _tmp4_;
+#line 108 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp5_ = stmt;
+#line 108 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp6_ = offset;
+#line 108 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp7_ = sqlite3_column_text (_tmp5_, _tmp6_ + 1);
+#line 108 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _tmp8_ = g_strdup (_tmp7_);
+#line 108 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_free0 (_vala_row->data);
+#line 108 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _vala_row->data = _tmp8_;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ if (row) {
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ *row = _vala_row;
+#line 1385 "FSpotMetaTable.c"
+ } else {
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 1389 "FSpotMetaTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_meta_behavior_class_init (DataImportsFSpotDbFSpotMetaBehaviorClass * klass) {
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ data_imports_fspot_db_fspot_meta_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_meta_behavior_finalize;
+#line 1399 "FSpotMetaTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_meta_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ data_imports_fspot_db_fspot_meta_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_meta_behavior_real_get_table_name;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_meta_behavior_real_list_columns;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_meta_behavior_real_build_row;
+#line 1412 "FSpotMetaTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_meta_behavior_instance_init (DataImportsFSpotDbFSpotMetaBehavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_meta_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotMetaBehavior * self;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_META_BEHAVIOR, DataImportsFSpotDbFSpotMetaBehavior);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotMetaTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_meta_behavior_parent_class)->finalize (obj);
+#line 1426 "FSpotMetaTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_meta_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_meta_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_meta_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotMetaBehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_meta_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotMetaBehavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_meta_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_meta_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_meta_behavior_type_id;
+ data_imports_fspot_db_fspot_meta_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotMetaBehavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_meta_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_meta_behavior_type_id__volatile, data_imports_fspot_db_fspot_meta_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_meta_behavior_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/plugins/shotwell-data-imports/FSpotMetaTable.vala b/plugins/shotwell-data-imports/FSpotMetaTable.vala
index 264fe85..e28d2e6 100644
--- a/plugins/shotwell-data-imports/FSpotMetaTable.vala
+++ b/plugins/shotwell-data-imports/FSpotMetaTable.vala
@@ -81,7 +81,7 @@ public class FSpotMetaTable : FSpotDatabaseTable<FSpotMetaRow> {
}
public class FSpotMetaBehavior : FSpotTableBehavior<FSpotMetaRow>, Object {
- public static const string TABLE_NAME = "Meta";
+ public const string TABLE_NAME = "Meta";
private static FSpotMetaBehavior instance;
diff --git a/plugins/shotwell-data-imports/FSpotPhotoTagsTable.c b/plugins/shotwell-data-imports/FSpotPhotoTagsTable.c
new file mode 100644
index 0000000..27aca60
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotPhotoTagsTable.c
@@ -0,0 +1,524 @@
+/* FSpotPhotoTagsTable.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotPhotoTagsTable.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 <stdlib.h>
+#include <string.h>
+#include <sqlite3.h>
+
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW (data_imports_fspot_db_fspot_photo_tag_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, DataImportsFSpotDbFSpotPhotoTagRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, DataImportsFSpotDbFSpotPhotoTagRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, DataImportsFSpotDbFSpotPhotoTagRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoTagRow DataImportsFSpotDbFSpotPhotoTagRow;
+typedef struct _DataImportsFSpotDbFSpotPhotoTagRowClass DataImportsFSpotDbFSpotPhotoTagRowClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoTagRowPrivate DataImportsFSpotDbFSpotPhotoTagRowPrivate;
+
+#define TYPE_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
+#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
+#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+
+typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
+typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;
+typedef struct _ImportableDatabaseTablePrivate ImportableDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE (data_imports_fspot_db_fspot_database_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseTable DataImportsFSpotDbFSpotDatabaseTable;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTableClass DataImportsFSpotDbFSpotDatabaseTableClass;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTablePrivate DataImportsFSpotDbFSpotDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR (data_imports_fspot_db_fspot_table_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehaviorIface))
+
+typedef struct _DataImportsFSpotDbFSpotTableBehavior DataImportsFSpotDbFSpotTableBehavior;
+typedef struct _DataImportsFSpotDbFSpotTableBehaviorIface DataImportsFSpotDbFSpotTableBehaviorIface;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_TABLE (data_imports_fspot_db_fspot_photo_tags_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_TABLE, DataImportsFSpotDbFSpotPhotoTagsTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_TABLE, DataImportsFSpotDbFSpotPhotoTagsTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAGS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAGS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_TABLE, DataImportsFSpotDbFSpotPhotoTagsTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoTagsTable DataImportsFSpotDbFSpotPhotoTagsTable;
+typedef struct _DataImportsFSpotDbFSpotPhotoTagsTableClass DataImportsFSpotDbFSpotPhotoTagsTableClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoTagsTablePrivate DataImportsFSpotDbFSpotPhotoTagsTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR (data_imports_fspot_db_fspot_database_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehavior DataImportsFSpotDbFSpotDatabaseBehavior;
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehaviorClass DataImportsFSpotDbFSpotDatabaseBehaviorClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR (data_imports_fspot_db_fspot_photo_tags_v0_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoTagsV0Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAGS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAGS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_V0_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoTagsV0Behavior DataImportsFSpotDbFSpotPhotoTagsV0Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoTagsV0BehaviorPrivate DataImportsFSpotDbFSpotPhotoTagsV0BehaviorPrivate;
+
+struct _DataImportsFSpotDbFSpotPhotoTagRow {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoTagRowPrivate * priv;
+ gint64 photo_id;
+ gint64 tag_id;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoTagRowClass {
+ GObjectClass parent_class;
+};
+
+struct _ImportableDatabaseTable {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ ImportableDatabaseTablePrivate * priv;
+ gchar* table_name;
+};
+
+struct _ImportableDatabaseTableClass {
+ GTypeClass parent_class;
+ void (*finalize) (ImportableDatabaseTable *self);
+};
+
+struct _DataImportsFSpotDbFSpotTableBehaviorIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_table_name) (DataImportsFSpotDbFSpotTableBehavior* self);
+ gchar** (*list_columns) (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+ void (*build_row) (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTable {
+ ImportableDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotDatabaseTablePrivate * priv;
+ sqlite3* fspot_db;
+ DataImportsFSpotDbFSpotTableBehavior* behavior;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTableClass {
+ ImportableDatabaseTableClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoTagsTable {
+ DataImportsFSpotDbFSpotDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotPhotoTagsTablePrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoTagsTableClass {
+ DataImportsFSpotDbFSpotDatabaseTableClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoTagsV0Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoTagsV0BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer data_imports_fspot_db_fspot_photo_tag_row_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_photo_tags_table_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_photo_tags_v0_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotoTagsV0Behavior* data_imports_fspot_db_fspot_photo_tags_v0_behavior_instance;
+static DataImportsFSpotDbFSpotPhotoTagsV0Behavior* data_imports_fspot_db_fspot_photo_tags_v0_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photo_tags_v0_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+
+GType data_imports_fspot_db_fspot_photo_tag_row_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAG_ROW_DUMMY_PROPERTY
+};
+DataImportsFSpotDbFSpotPhotoTagRow* data_imports_fspot_db_fspot_photo_tag_row_new (void);
+DataImportsFSpotDbFSpotPhotoTagRow* data_imports_fspot_db_fspot_photo_tag_row_construct (GType object_type);
+static void data_imports_fspot_db_fspot_photo_tag_row_finalize (GObject* obj);
+gpointer importable_database_table_ref (gpointer instance);
+void importable_database_table_unref (gpointer instance);
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_importable_database_table (GValue* value, gpointer v_object);
+void value_take_importable_database_table (GValue* value, gpointer v_object);
+gpointer value_get_importable_database_table (const GValue* value);
+GType importable_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_table_behavior_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photo_tags_table_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_TABLE_DUMMY_PROPERTY
+};
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_TABLE_TABLE_NAME "Photo_Tags"
+GType data_imports_fspot_db_fspot_database_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotoTagsTable* data_imports_fspot_db_fspot_photo_tags_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotPhotoTagsTable* data_imports_fspot_db_fspot_photo_tags_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotDatabaseTable* data_imports_fspot_db_fspot_database_table_construct (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, sqlite3* db);
+void data_imports_fspot_db_fspot_database_table_set_behavior (DataImportsFSpotDbFSpotDatabaseTable* self, DataImportsFSpotDbFSpotTableBehavior* behavior);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_photo_tags_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+GType data_imports_fspot_db_fspot_photo_tags_v0_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_V0_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotoTagsV0Behavior* data_imports_fspot_db_fspot_photo_tags_v0_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotoTagsV0Behavior* data_imports_fspot_db_fspot_photo_tags_v0_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotoTagsV0Behavior* data_imports_fspot_db_fspot_photo_tags_v0_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photo_tags_v0_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photo_tags_v0_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photo_tags_v0_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoTagRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photo_tags_v0_behavior_finalize (GObject* obj);
+
+
+DataImportsFSpotDbFSpotPhotoTagRow* data_imports_fspot_db_fspot_photo_tag_row_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotoTagRow * self = NULL;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoTagRow*) g_object_new (object_type, NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ return self;
+#line 205 "FSpotPhotoTagsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoTagRow* data_imports_fspot_db_fspot_photo_tag_row_new (void) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ return data_imports_fspot_db_fspot_photo_tag_row_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW);
+#line 212 "FSpotPhotoTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_tag_row_class_init (DataImportsFSpotDbFSpotPhotoTagRowClass * klass) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ data_imports_fspot_db_fspot_photo_tag_row_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photo_tag_row_finalize;
+#line 221 "FSpotPhotoTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_tag_row_instance_init (DataImportsFSpotDbFSpotPhotoTagRow * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photo_tag_row_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotoTagRow * self;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, DataImportsFSpotDbFSpotPhotoTagRow);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photo_tag_row_parent_class)->finalize (obj);
+#line 235 "FSpotPhotoTagsTable.c"
+}
+
+
+/**
+ * The value object for the "photo_tags" table, representing a single database row.
+ */
+GType data_imports_fspot_db_fspot_photo_tag_row_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_tag_row_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_tag_row_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoTagRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_tag_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoTagRow), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_tag_row_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_photo_tag_row_type_id;
+ data_imports_fspot_db_fspot_photo_tag_row_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotoTagRow", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_tag_row_type_id__volatile, data_imports_fspot_db_fspot_photo_tag_row_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_tag_row_type_id__volatile;
+}
+
+
+DataImportsFSpotDbFSpotPhotoTagsTable* data_imports_fspot_db_fspot_photo_tags_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior) {
+ DataImportsFSpotDbFSpotPhotoTagsTable* self = NULL;
+ sqlite3* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp1_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp3_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ g_return_val_if_fail (db != NULL, NULL);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR (db_behavior), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp0_ = db;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoTagsTable*) data_imports_fspot_db_fspot_database_table_construct (object_type, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp0_);
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp1_ = db_behavior;
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_database_behavior_get_photo_tags_behavior (_tmp1_);
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp3_ = _tmp2_;
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ data_imports_fspot_db_fspot_database_table_set_behavior (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), _tmp3_);
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _g_object_unref0 (_tmp3_);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ return self;
+#line 280 "FSpotPhotoTagsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoTagsTable* data_imports_fspot_db_fspot_photo_tags_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior) {
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ return data_imports_fspot_db_fspot_photo_tags_table_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_TABLE, db, db_behavior);
+#line 287 "FSpotPhotoTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_tags_table_class_init (DataImportsFSpotDbFSpotPhotoTagsTableClass * klass) {
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ data_imports_fspot_db_fspot_photo_tags_table_parent_class = g_type_class_peek_parent (klass);
+#line 294 "FSpotPhotoTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_tags_table_instance_init (DataImportsFSpotDbFSpotPhotoTagsTable * self) {
+}
+
+
+/**
+ * This class represents the F-Spot photo_tags table.
+ */
+GType data_imports_fspot_db_fspot_photo_tags_table_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_tags_table_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_tags_table_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoTagsTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_tags_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoTagsTable), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_tags_table_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_photo_tags_table_type_id;
+ data_imports_fspot_db_fspot_photo_tags_table_type_id = g_type_register_static (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, "DataImportsFSpotDbFSpotPhotoTagsTable", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_tags_table_type_id__volatile, data_imports_fspot_db_fspot_photo_tags_table_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_tags_table_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotoTagsV0Behavior* data_imports_fspot_db_fspot_photo_tags_v0_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior * self = NULL;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoTagsV0Behavior*) g_object_new (object_type, NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ return self;
+#line 323 "FSpotPhotoTagsTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotoTagsV0Behavior* data_imports_fspot_db_fspot_photo_tags_v0_behavior_new (void) {
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ return data_imports_fspot_db_fspot_photo_tags_v0_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR);
+#line 330 "FSpotPhotoTagsTable.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 337 "FSpotPhotoTagsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoTagsV0Behavior* data_imports_fspot_db_fspot_photo_tags_v0_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior* _tmp3_ = NULL;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_tags_v0_behavior_instance;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ if (_tmp0_ == NULL) {
+#line 350 "FSpotPhotoTagsTable.c"
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior* _tmp1_ = NULL;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photo_tags_v0_behavior_new ();
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photo_tags_v0_behavior_instance);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ data_imports_fspot_db_fspot_photo_tags_v0_behavior_instance = _tmp1_;
+#line 358 "FSpotPhotoTagsTable.c"
+ }
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photo_tags_v0_behavior_instance;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ result = _tmp3_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ return result;
+#line 368 "FSpotPhotoTagsTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photo_tags_v0_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoTagsV0Behavior);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAGS_TABLE_TABLE_NAME);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ result = _tmp0_;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ return result;
+#line 384 "FSpotPhotoTagsTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photo_tags_v0_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar** _tmp2_ = NULL;
+ gchar** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoTagsV0Behavior);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp0_ = g_strdup ("photo_id");
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp1_ = g_strdup ("tag_id");
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp2_ = g_new0 (gchar*, 2 + 1);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp2_[0] = _tmp0_;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp2_[1] = _tmp1_;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp3_ = _tmp2_;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp3__length1 = 2;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ if (result_length1) {
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ *result_length1 = _tmp3__length1;
+#line 416 "FSpotPhotoTagsTable.c"
+ }
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ result = _tmp3_;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ return result;
+#line 422 "FSpotPhotoTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_tags_v0_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoTagRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior * self;
+ DataImportsFSpotDbFSpotPhotoTagRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoTagRow* _tmp0_ = NULL;
+ sqlite3_stmt* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gint64 _tmp3_ = 0LL;
+ sqlite3_stmt* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint64 _tmp6_ = 0LL;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoTagsV0Behavior);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_tag_row_new ();
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _vala_row = _tmp0_;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp1_ = stmt;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp2_ = offset;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp3_ = sqlite3_column_int64 (_tmp1_, _tmp2_ + 0);
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _vala_row->photo_id = _tmp3_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp4_ = stmt;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp5_ = offset;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _tmp6_ = sqlite3_column_int64 (_tmp4_, _tmp5_ + 1);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _vala_row->tag_id = _tmp6_;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ if (row) {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ *row = _vala_row;
+#line 466 "FSpotPhotoTagsTable.c"
+ } else {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 470 "FSpotPhotoTagsTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photo_tags_v0_behavior_class_init (DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass * klass) {
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ data_imports_fspot_db_fspot_photo_tags_v0_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photo_tags_v0_behavior_finalize;
+#line 480 "FSpotPhotoTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_tags_v0_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ data_imports_fspot_db_fspot_photo_tags_v0_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photo_tags_v0_behavior_real_get_table_name;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photo_tags_v0_behavior_real_list_columns;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photo_tags_v0_behavior_real_build_row;
+#line 493 "FSpotPhotoTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_tags_v0_behavior_instance_init (DataImportsFSpotDbFSpotPhotoTagsV0Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photo_tags_v0_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotoTagsV0Behavior * self;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoTagsV0Behavior);
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photo_tags_v0_behavior_parent_class)->finalize (obj);
+#line 507 "FSpotPhotoTagsTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photo_tags_v0_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_tags_v0_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_tags_v0_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoTagsV0BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_tags_v0_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoTagsV0Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_tags_v0_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photo_tags_v0_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photo_tags_v0_behavior_type_id;
+ data_imports_fspot_db_fspot_photo_tags_v0_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotoTagsV0Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photo_tags_v0_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_tags_v0_behavior_type_id__volatile, data_imports_fspot_db_fspot_photo_tags_v0_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_tags_v0_behavior_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala b/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala
index d4e8202..afc67ec 100644
--- a/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala
+++ b/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala
@@ -18,7 +18,7 @@ public class FSpotPhotoTagRow : Object {
* This class represents the F-Spot photo_tags table.
*/
public class FSpotPhotoTagsTable : FSpotDatabaseTable<FSpotPhotoTagRow> {
- public static const string TABLE_NAME = "Photo_Tags";
+ public const string TABLE_NAME = "Photo_Tags";
public FSpotPhotoTagsTable(Sqlite.Database db, FSpotDatabaseBehavior db_behavior) {
base(db);
diff --git a/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.c b/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.c
new file mode 100644
index 0000000..92b63eb
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.c
@@ -0,0 +1,2440 @@
+/* FSpotPhotoVersionsTable.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotPhotoVersionsTable.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 <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <sqlite3.h>
+#include <gee.h>
+
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW (data_imports_fspot_db_fspot_photo_version_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSION_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSION_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionRow DataImportsFSpotDbFSpotPhotoVersionRow;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionRowClass DataImportsFSpotDbFSpotPhotoVersionRowClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionRowPrivate DataImportsFSpotDbFSpotPhotoVersionRowPrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define TYPE_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
+#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
+#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+
+typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
+typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;
+typedef struct _ImportableDatabaseTablePrivate ImportableDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE (data_imports_fspot_db_fspot_database_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseTable DataImportsFSpotDbFSpotDatabaseTable;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTableClass DataImportsFSpotDbFSpotDatabaseTableClass;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTablePrivate DataImportsFSpotDbFSpotDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR (data_imports_fspot_db_fspot_table_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehaviorIface))
+
+typedef struct _DataImportsFSpotDbFSpotTableBehavior DataImportsFSpotDbFSpotTableBehavior;
+typedef struct _DataImportsFSpotDbFSpotTableBehaviorIface DataImportsFSpotDbFSpotTableBehaviorIface;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE (data_imports_fspot_db_fspot_photo_versions_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsTable DataImportsFSpotDbFSpotPhotoVersionsTable;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsTableClass DataImportsFSpotDbFSpotPhotoVersionsTableClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsTablePrivate DataImportsFSpotDbFSpotPhotoVersionsTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR (data_imports_fspot_db_fspot_database_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehavior DataImportsFSpotDbFSpotDatabaseBehavior;
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehaviorClass DataImportsFSpotDbFSpotDatabaseBehaviorClass;
+#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR (data_imports_fspot_db_fspot_photo_versions_v0_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV0Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV0Behavior DataImportsFSpotDbFSpotPhotoVersionsV0Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorPrivate DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR (data_imports_fspot_db_fspot_photo_versions_v9_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV9Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV9Behavior DataImportsFSpotDbFSpotPhotoVersionsV9Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorPrivate DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR (data_imports_fspot_db_fspot_photo_versions_v16_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV16Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV16Behavior DataImportsFSpotDbFSpotPhotoVersionsV16Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorPrivate DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR (data_imports_fspot_db_fspot_photo_versions_v17_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV17Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV17Behavior DataImportsFSpotDbFSpotPhotoVersionsV17Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorPrivate DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR (data_imports_fspot_db_fspot_photo_versions_v18_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV18Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV18Behavior DataImportsFSpotDbFSpotPhotoVersionsV18Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorPrivate DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorPrivate;
+
+struct _DataImportsFSpotDbFSpotPhotoVersionRow {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoVersionRowPrivate * priv;
+ gint64 photo_id;
+ gint64 version_id;
+ gchar* name;
+ GFile* base_path;
+ gchar* filename;
+ gchar* md5_sum;
+ gboolean is_protected;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionRowClass {
+ GObjectClass parent_class;
+};
+
+struct _ImportableDatabaseTable {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ ImportableDatabaseTablePrivate * priv;
+ gchar* table_name;
+};
+
+struct _ImportableDatabaseTableClass {
+ GTypeClass parent_class;
+ void (*finalize) (ImportableDatabaseTable *self);
+};
+
+struct _DataImportsFSpotDbFSpotTableBehaviorIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_table_name) (DataImportsFSpotDbFSpotTableBehavior* self);
+ gchar** (*list_columns) (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+ void (*build_row) (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTable {
+ ImportableDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotDatabaseTablePrivate * priv;
+ sqlite3* fspot_db;
+ DataImportsFSpotDbFSpotTableBehavior* behavior;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTableClass {
+ ImportableDatabaseTableClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsTable {
+ DataImportsFSpotDbFSpotDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotPhotoVersionsTablePrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsTableClass {
+ DataImportsFSpotDbFSpotDatabaseTableClass parent_class;
+};
+
+typedef enum {
+ DATABASE_ERROR_ERROR,
+ DATABASE_ERROR_BACKING,
+ DATABASE_ERROR_MEMORY,
+ DATABASE_ERROR_ABORT,
+ DATABASE_ERROR_LIMITS,
+ DATABASE_ERROR_TYPESPEC
+} DatabaseError;
+#define DATABASE_ERROR database_error_quark ()
+struct _DataImportsFSpotDbFSpotPhotoVersionsV0Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsV9Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsV16Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsV17Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsV18Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer data_imports_fspot_db_fspot_photo_version_row_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_photo_versions_table_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_photo_versions_v0_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* data_imports_fspot_db_fspot_photo_versions_v0_behavior_instance;
+static DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* data_imports_fspot_db_fspot_photo_versions_v0_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photo_versions_v0_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_photo_versions_v9_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* data_imports_fspot_db_fspot_photo_versions_v9_behavior_instance;
+static DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* data_imports_fspot_db_fspot_photo_versions_v9_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photo_versions_v9_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_photo_versions_v16_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* data_imports_fspot_db_fspot_photo_versions_v16_behavior_instance;
+static DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* data_imports_fspot_db_fspot_photo_versions_v16_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photo_versions_v16_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_photo_versions_v17_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* data_imports_fspot_db_fspot_photo_versions_v17_behavior_instance;
+static DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* data_imports_fspot_db_fspot_photo_versions_v17_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photo_versions_v17_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_photo_versions_v18_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* data_imports_fspot_db_fspot_photo_versions_v18_behavior_instance;
+static DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* data_imports_fspot_db_fspot_photo_versions_v18_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photo_versions_v18_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+
+GType data_imports_fspot_db_fspot_photo_version_row_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW_DUMMY_PROPERTY
+};
+DataImportsFSpotDbFSpotPhotoVersionRow* data_imports_fspot_db_fspot_photo_version_row_new (void);
+DataImportsFSpotDbFSpotPhotoVersionRow* data_imports_fspot_db_fspot_photo_version_row_construct (GType object_type);
+static void data_imports_fspot_db_fspot_photo_version_row_finalize (GObject* obj);
+gpointer importable_database_table_ref (gpointer instance);
+void importable_database_table_unref (gpointer instance);
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_importable_database_table (GValue* value, gpointer v_object);
+void value_take_importable_database_table (GValue* value, gpointer v_object);
+gpointer value_get_importable_database_table (const GValue* value);
+GType importable_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_table_behavior_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photo_versions_table_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_DUMMY_PROPERTY
+};
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_TABLE_NAME "Photo_versions"
+GType data_imports_fspot_db_fspot_database_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotoVersionsTable* data_imports_fspot_db_fspot_photo_versions_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotPhotoVersionsTable* data_imports_fspot_db_fspot_photo_versions_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotDatabaseTable* data_imports_fspot_db_fspot_database_table_construct (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, sqlite3* db);
+void data_imports_fspot_db_fspot_database_table_set_behavior (DataImportsFSpotDbFSpotDatabaseTable* self, DataImportsFSpotDbFSpotTableBehavior* behavior);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_photo_versions_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+GQuark database_error_quark (void);
+GeeArrayList* data_imports_fspot_db_fspot_photo_versions_table_get_by_photo_id (DataImportsFSpotDbFSpotPhotoVersionsTable* self, gint64 photo_id, GError** error);
+gchar* data_imports_fspot_db_fspot_database_table_get_joined_column_list (DataImportsFSpotDbFSpotDatabaseTable* self, gboolean with_table);
+void importable_database_table_throw_error (const gchar* method, gint res, GError** error);
+void data_imports_fspot_db_fspot_table_behavior_build_row (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+GType data_imports_fspot_db_fspot_photo_versions_v0_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* data_imports_fspot_db_fspot_photo_versions_v0_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* data_imports_fspot_db_fspot_photo_versions_v0_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* data_imports_fspot_db_fspot_photo_versions_v0_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photo_versions_v0_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photo_versions_v0_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photo_versions_v0_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoVersionRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photo_versions_v0_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_photo_versions_v9_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* data_imports_fspot_db_fspot_photo_versions_v9_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* data_imports_fspot_db_fspot_photo_versions_v9_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* data_imports_fspot_db_fspot_photo_versions_v9_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photo_versions_v9_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photo_versions_v9_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photo_versions_v9_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoVersionRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photo_versions_v9_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_photo_versions_v16_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* data_imports_fspot_db_fspot_photo_versions_v16_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* data_imports_fspot_db_fspot_photo_versions_v16_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* data_imports_fspot_db_fspot_photo_versions_v16_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photo_versions_v16_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photo_versions_v16_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photo_versions_v16_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoVersionRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photo_versions_v16_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_photo_versions_v17_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* data_imports_fspot_db_fspot_photo_versions_v17_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* data_imports_fspot_db_fspot_photo_versions_v17_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* data_imports_fspot_db_fspot_photo_versions_v17_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photo_versions_v17_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photo_versions_v17_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photo_versions_v17_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoVersionRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photo_versions_v17_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_photo_versions_v18_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* data_imports_fspot_db_fspot_photo_versions_v18_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* data_imports_fspot_db_fspot_photo_versions_v18_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* data_imports_fspot_db_fspot_photo_versions_v18_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photo_versions_v18_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photo_versions_v18_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photo_versions_v18_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoVersionRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photo_versions_v18_behavior_finalize (GObject* obj);
+
+
+DataImportsFSpotDbFSpotPhotoVersionRow* data_imports_fspot_db_fspot_photo_version_row_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotoVersionRow * self = NULL;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoVersionRow*) g_object_new (object_type, NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return self;
+#line 368 "FSpotPhotoVersionsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoVersionRow* data_imports_fspot_db_fspot_photo_version_row_new (void) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return data_imports_fspot_db_fspot_photo_version_row_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW);
+#line 375 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_version_row_class_init (DataImportsFSpotDbFSpotPhotoVersionRowClass * klass) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_version_row_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photo_version_row_finalize;
+#line 384 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_version_row_instance_init (DataImportsFSpotDbFSpotPhotoVersionRow * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photo_version_row_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotoVersionRow * self;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRow);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (self->name);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (self->base_path);
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (self->filename);
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (self->md5_sum);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photo_version_row_parent_class)->finalize (obj);
+#line 406 "FSpotPhotoVersionsTable.c"
+}
+
+
+/**
+ * The value object for the "photo_versions" table, representing a single database row.
+ */
+GType data_imports_fspot_db_fspot_photo_version_row_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_version_row_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_version_row_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoVersionRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_version_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoVersionRow), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_version_row_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_photo_version_row_type_id;
+ data_imports_fspot_db_fspot_photo_version_row_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotoVersionRow", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_version_row_type_id__volatile, data_imports_fspot_db_fspot_photo_version_row_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_version_row_type_id__volatile;
+}
+
+
+DataImportsFSpotDbFSpotPhotoVersionsTable* data_imports_fspot_db_fspot_photo_versions_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior) {
+ DataImportsFSpotDbFSpotPhotoVersionsTable* self = NULL;
+ sqlite3* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp1_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp3_ = NULL;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_return_val_if_fail (db != NULL, NULL);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR (db_behavior), NULL);
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = db;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoVersionsTable*) data_imports_fspot_db_fspot_database_table_construct (object_type, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp0_);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = db_behavior;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_database_behavior_get_photo_versions_behavior (_tmp1_);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = _tmp2_;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_database_table_set_behavior (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), _tmp3_);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_tmp3_);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return self;
+#line 451 "FSpotPhotoVersionsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoVersionsTable* data_imports_fspot_db_fspot_photo_versions_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return data_imports_fspot_db_fspot_photo_versions_table_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, db, db_behavior);
+#line 458 "FSpotPhotoVersionsTable.c"
+}
+
+
+GeeArrayList* data_imports_fspot_db_fspot_photo_versions_table_get_by_photo_id (DataImportsFSpotDbFSpotPhotoVersionsTable* self, gint64 photo_id, GError** error) {
+ GeeArrayList* result = NULL;
+ GeeArrayList* rows = NULL;
+ GeeArrayList* _tmp0_ = NULL;
+ sqlite3_stmt* stmt = NULL;
+ gchar* column_list = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* sql = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gint res = 0;
+ sqlite3* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ sqlite3_stmt* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+ gint _tmp9_ = 0;
+ sqlite3_stmt* _tmp14_ = NULL;
+ gint64 _tmp15_ = 0LL;
+ gint _tmp16_ = 0;
+ gint _tmp17_ = 0;
+ sqlite3_stmt* _tmp19_ = NULL;
+ gint _tmp20_ = 0;
+ GError * _inner_error_ = NULL;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_TABLE (self), NULL);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = gee_array_list_new (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ rows = _tmp0_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_database_table_get_joined_column_list (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), FALSE);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ column_list = _tmp1_;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = column_list;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable)->table_name;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = g_strdup_printf ("SELECT %s FROM %s WHERE photo_id=?", _tmp2_, _tmp3_);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ sql = _tmp4_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->fspot_db;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_ = sql;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp8_ = sqlite3_prepare_v2 (_tmp5_, _tmp6_, -1, &_tmp7_, NULL);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ stmt = _tmp7_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ res = _tmp8_;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_ = res;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp9_ != SQLITE_OK) {
+#line 520 "FSpotPhotoVersionsTable.c"
+ const gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp10_ = sql;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp11_ = g_strdup_printf ("Statement failed: %s", _tmp10_);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp12_ = _tmp11_;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp13_ = res;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ importable_database_table_throw_error (_tmp12_, _tmp13_, &_inner_error_);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp12_);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (sql);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (column_list);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (rows);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return NULL;
+#line 553 "FSpotPhotoVersionsTable.c"
+ } else {
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (sql);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (column_list);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (rows);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.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 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_clear_error (&_inner_error_);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return NULL;
+#line 569 "FSpotPhotoVersionsTable.c"
+ }
+ }
+ }
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp14_ = stmt;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp15_ = photo_id;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp16_ = sqlite3_bind_int64 (_tmp14_, 1, _tmp15_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ res = _tmp16_;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp17_ = res;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp17_ != SQLITE_OK) {
+#line 585 "FSpotPhotoVersionsTable.c"
+ gint _tmp18_ = 0;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp18_ = res;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ importable_database_table_throw_error ("Bind failed for photo_id", _tmp18_, &_inner_error_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (sql);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (column_list);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (rows);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return NULL;
+#line 607 "FSpotPhotoVersionsTable.c"
+ } else {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (sql);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (column_list);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (rows);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.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 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_clear_error (&_inner_error_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return NULL;
+#line 623 "FSpotPhotoVersionsTable.c"
+ }
+ }
+ }
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp19_ = stmt;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp20_ = sqlite3_step (_tmp19_);
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ res = _tmp20_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ while (TRUE) {
+#line 635 "FSpotPhotoVersionsTable.c"
+ gint _tmp21_ = 0;
+ DataImportsFSpotDbFSpotPhotoVersionRow* row = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp22_ = NULL;
+ sqlite3_stmt* _tmp23_ = NULL;
+ gpointer _tmp24_ = NULL;
+ GeeArrayList* _tmp25_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp26_ = NULL;
+ sqlite3_stmt* _tmp27_ = NULL;
+ gint _tmp28_ = 0;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp21_ = res;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (!(_tmp21_ == SQLITE_ROW)) {
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ break;
+#line 651 "FSpotPhotoVersionsTable.c"
+ }
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->behavior;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp23_ = stmt;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_table_behavior_build_row (_tmp22_, _tmp23_, &_tmp24_, 0);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (row);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ row = _tmp24_;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp25_ = rows;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp26_ = row;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp27_ = stmt;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp28_ = sqlite3_step (_tmp27_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ res = _tmp28_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (row);
+#line 677 "FSpotPhotoVersionsTable.c"
+ }
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = rows;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (sql);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (column_list);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 689 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_table_class_init (DataImportsFSpotDbFSpotPhotoVersionsTableClass * klass) {
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_table_parent_class = g_type_class_peek_parent (klass);
+#line 696 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_table_instance_init (DataImportsFSpotDbFSpotPhotoVersionsTable * self) {
+}
+
+
+/**
+ * This class represents the F-Spot photo_versions table.
+ */
+GType data_imports_fspot_db_fspot_photo_versions_table_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_versions_table_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_versions_table_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoVersionsTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_versions_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoVersionsTable), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_versions_table_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_photo_versions_table_type_id;
+ data_imports_fspot_db_fspot_photo_versions_table_type_id = g_type_register_static (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, "DataImportsFSpotDbFSpotPhotoVersionsTable", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_versions_table_type_id__volatile, data_imports_fspot_db_fspot_photo_versions_table_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_versions_table_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* data_imports_fspot_db_fspot_photo_versions_v0_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior * self = NULL;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoVersionsV0Behavior*) g_object_new (object_type, NULL);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return self;
+#line 725 "FSpotPhotoVersionsTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* data_imports_fspot_db_fspot_photo_versions_v0_behavior_new (void) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return data_imports_fspot_db_fspot_photo_versions_v0_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR);
+#line 732 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 739 "FSpotPhotoVersionsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* data_imports_fspot_db_fspot_photo_versions_v0_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* _tmp3_ = NULL;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_versions_v0_behavior_instance;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp0_ == NULL) {
+#line 752 "FSpotPhotoVersionsTable.c"
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior* _tmp1_ = NULL;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photo_versions_v0_behavior_new ();
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photo_versions_v0_behavior_instance);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v0_behavior_instance = _tmp1_;
+#line 760 "FSpotPhotoVersionsTable.c"
+ }
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photo_versions_v0_behavior_instance;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp3_;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 770 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photo_versions_v0_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV0Behavior);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_TABLE_NAME);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp0_;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 786 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photo_versions_v0_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar** _tmp4_ = NULL;
+ gchar** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV0Behavior);
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = g_strdup ("photo_id");
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = g_strdup ("version_id");
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = g_strdup ("name");
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = g_strdup ("uri");
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = g_new0 (gchar*, 4 + 1);
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_[0] = _tmp0_;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_[1] = _tmp1_;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_[2] = _tmp2_;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_[3] = _tmp3_;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = _tmp4_;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5__length1 = 4;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (result_length1) {
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ *result_length1 = _tmp5__length1;
+#line 828 "FSpotPhotoVersionsTable.c"
+ }
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp5_;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 834 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v0_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoVersionRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior * self;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp9_ = NULL;
+ sqlite3_stmt* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ const gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* full_path = NULL;
+ sqlite3_stmt* _tmp14_ = NULL;
+ gint _tmp15_ = 0;
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp29_ = NULL;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV0Behavior);
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_version_row_new ();
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _vala_row = _tmp0_;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = _vala_row;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = stmt;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = offset;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = _vala_row;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_ = stmt;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_ = offset;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_->version_id = _tmp8_;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_ = _vala_row;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp10_ = stmt;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp11_ = offset;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp12_ = sqlite3_column_text (_tmp10_, _tmp11_ + 2);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp13_ = g_strdup (_tmp12_);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp9_->name);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_->name = _tmp13_;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp14_ = stmt;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp15_ = offset;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp16_ = sqlite3_column_text (_tmp14_, _tmp15_ + 3);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp17_ = g_strdup (_tmp16_);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ full_path = _tmp17_;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp18_ = full_path;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp18_ != NULL) {
+#line 922 "FSpotPhotoVersionsTable.c"
+ GFile* uri = NULL;
+ const gchar* _tmp19_ = NULL;
+ GFile* _tmp20_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp21_ = NULL;
+ GFile* _tmp22_ = NULL;
+ GFile* _tmp23_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp24_ = NULL;
+ GFile* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp19_ = full_path;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp20_ = g_file_new_for_uri (_tmp19_);
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ uri = _tmp20_;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp21_ = _vala_row;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp22_ = uri;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp23_ = g_file_get_parent (_tmp22_);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_tmp21_->base_path);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp21_->base_path = _tmp23_;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp24_ = _vala_row;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp25_ = uri;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp26_ = g_file_get_basename (_tmp25_);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp24_->filename);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp24_->filename = _tmp26_;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (uri);
+#line 960 "FSpotPhotoVersionsTable.c"
+ }
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp27_ = _vala_row;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp28_ = g_strdup ("");
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp27_->md5_sum);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp27_->md5_sum = _tmp28_;
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp29_ = _vala_row;
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp29_->is_protected = FALSE;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (full_path);
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (row) {
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ *row = _vala_row;
+#line 980 "FSpotPhotoVersionsTable.c"
+ } else {
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 984 "FSpotPhotoVersionsTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v0_behavior_class_init (DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass * klass) {
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v0_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photo_versions_v0_behavior_finalize;
+#line 994 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v0_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v0_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photo_versions_v0_behavior_real_get_table_name;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photo_versions_v0_behavior_real_list_columns;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photo_versions_v0_behavior_real_build_row;
+#line 1007 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v0_behavior_instance_init (DataImportsFSpotDbFSpotPhotoVersionsV0Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v0_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotoVersionsV0Behavior * self;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV0Behavior);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photo_versions_v0_behavior_parent_class)->finalize (obj);
+#line 1021 "FSpotPhotoVersionsTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photo_versions_v0_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_versions_v0_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_versions_v0_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoVersionsV0BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_versions_v0_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoVersionsV0Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_versions_v0_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photo_versions_v0_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photo_versions_v0_behavior_type_id;
+ data_imports_fspot_db_fspot_photo_versions_v0_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotoVersionsV0Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photo_versions_v0_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_versions_v0_behavior_type_id__volatile, data_imports_fspot_db_fspot_photo_versions_v0_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_versions_v0_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* data_imports_fspot_db_fspot_photo_versions_v9_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior * self = NULL;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoVersionsV9Behavior*) g_object_new (object_type, NULL);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return self;
+#line 1045 "FSpotPhotoVersionsTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* data_imports_fspot_db_fspot_photo_versions_v9_behavior_new (void) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return data_imports_fspot_db_fspot_photo_versions_v9_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR);
+#line 1052 "FSpotPhotoVersionsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* data_imports_fspot_db_fspot_photo_versions_v9_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* _tmp3_ = NULL;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_versions_v9_behavior_instance;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp0_ == NULL) {
+#line 1065 "FSpotPhotoVersionsTable.c"
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior* _tmp1_ = NULL;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photo_versions_v9_behavior_new ();
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photo_versions_v9_behavior_instance);
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v9_behavior_instance = _tmp1_;
+#line 1073 "FSpotPhotoVersionsTable.c"
+ }
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photo_versions_v9_behavior_instance;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp3_;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 1083 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photo_versions_v9_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV9Behavior);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_TABLE_NAME);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp0_;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 1099 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photo_versions_v9_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar** _tmp5_ = NULL;
+ gchar** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV9Behavior);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = g_strdup ("photo_id");
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = g_strdup ("version_id");
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = g_strdup ("name");
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = g_strdup ("uri");
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = g_strdup ("protected");
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = g_new0 (gchar*, 5 + 1);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_[0] = _tmp0_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_[1] = _tmp1_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_[2] = _tmp2_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_[3] = _tmp3_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_[4] = _tmp4_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_ = _tmp5_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6__length1 = 5;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (result_length1) {
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ *result_length1 = _tmp6__length1;
+#line 1146 "FSpotPhotoVersionsTable.c"
+ }
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp6_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 1152 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v9_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoVersionRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior * self;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp9_ = NULL;
+ sqlite3_stmt* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ const gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* full_path = NULL;
+ sqlite3_stmt* _tmp14_ = NULL;
+ gint _tmp15_ = 0;
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp29_ = NULL;
+ sqlite3_stmt* _tmp30_ = NULL;
+ gint _tmp31_ = 0;
+ gint _tmp32_ = 0;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV9Behavior);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_version_row_new ();
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _vala_row = _tmp0_;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = _vala_row;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = stmt;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = offset;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = _vala_row;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_ = stmt;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_ = offset;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_->version_id = _tmp8_;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_ = _vala_row;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp10_ = stmt;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp11_ = offset;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp12_ = sqlite3_column_text (_tmp10_, _tmp11_ + 2);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp13_ = g_strdup (_tmp12_);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp9_->name);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_->name = _tmp13_;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp14_ = stmt;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp15_ = offset;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp16_ = sqlite3_column_text (_tmp14_, _tmp15_ + 3);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp17_ = g_strdup (_tmp16_);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ full_path = _tmp17_;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp18_ = full_path;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp18_ != NULL) {
+#line 1243 "FSpotPhotoVersionsTable.c"
+ GFile* uri = NULL;
+ const gchar* _tmp19_ = NULL;
+ GFile* _tmp20_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp21_ = NULL;
+ GFile* _tmp22_ = NULL;
+ GFile* _tmp23_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp24_ = NULL;
+ GFile* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp19_ = full_path;
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp20_ = g_file_new_for_uri (_tmp19_);
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ uri = _tmp20_;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp21_ = _vala_row;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp22_ = uri;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp23_ = g_file_get_parent (_tmp22_);
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_tmp21_->base_path);
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp21_->base_path = _tmp23_;
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp24_ = _vala_row;
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp25_ = uri;
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp26_ = g_file_get_basename (_tmp25_);
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp24_->filename);
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp24_->filename = _tmp26_;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (uri);
+#line 1281 "FSpotPhotoVersionsTable.c"
+ }
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp27_ = _vala_row;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp28_ = g_strdup ("");
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp27_->md5_sum);
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp27_->md5_sum = _tmp28_;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp29_ = _vala_row;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp30_ = stmt;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp31_ = offset;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp32_ = sqlite3_column_int (_tmp30_, _tmp31_ + 4);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp29_->is_protected = _tmp32_ > 0;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (full_path);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (row) {
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ *row = _vala_row;
+#line 1307 "FSpotPhotoVersionsTable.c"
+ } else {
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 1311 "FSpotPhotoVersionsTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v9_behavior_class_init (DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass * klass) {
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v9_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photo_versions_v9_behavior_finalize;
+#line 1321 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v9_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v9_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photo_versions_v9_behavior_real_get_table_name;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photo_versions_v9_behavior_real_list_columns;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photo_versions_v9_behavior_real_build_row;
+#line 1334 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v9_behavior_instance_init (DataImportsFSpotDbFSpotPhotoVersionsV9Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v9_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotoVersionsV9Behavior * self;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V9_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV9Behavior);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photo_versions_v9_behavior_parent_class)->finalize (obj);
+#line 1348 "FSpotPhotoVersionsTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photo_versions_v9_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_versions_v9_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_versions_v9_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoVersionsV9BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_versions_v9_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoVersionsV9Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_versions_v9_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photo_versions_v9_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photo_versions_v9_behavior_type_id;
+ data_imports_fspot_db_fspot_photo_versions_v9_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotoVersionsV9Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photo_versions_v9_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_versions_v9_behavior_type_id__volatile, data_imports_fspot_db_fspot_photo_versions_v9_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_versions_v9_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* data_imports_fspot_db_fspot_photo_versions_v16_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior * self = NULL;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoVersionsV16Behavior*) g_object_new (object_type, NULL);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return self;
+#line 1372 "FSpotPhotoVersionsTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* data_imports_fspot_db_fspot_photo_versions_v16_behavior_new (void) {
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return data_imports_fspot_db_fspot_photo_versions_v16_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR);
+#line 1379 "FSpotPhotoVersionsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* data_imports_fspot_db_fspot_photo_versions_v16_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* _tmp3_ = NULL;
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_versions_v16_behavior_instance;
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp0_ == NULL) {
+#line 1392 "FSpotPhotoVersionsTable.c"
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior* _tmp1_ = NULL;
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photo_versions_v16_behavior_new ();
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photo_versions_v16_behavior_instance);
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v16_behavior_instance = _tmp1_;
+#line 1400 "FSpotPhotoVersionsTable.c"
+ }
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photo_versions_v16_behavior_instance;
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp3_;
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 1410 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photo_versions_v16_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV16Behavior);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_TABLE_NAME);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp0_;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 1426 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photo_versions_v16_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar** _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+#line 164 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV16Behavior);
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = g_strdup ("photo_id");
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = g_strdup ("version_id");
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = g_strdup ("name");
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = g_strdup ("uri");
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = g_strdup ("md5_sum");
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = g_strdup ("protected");
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_ = g_new0 (gchar*, 6 + 1);
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_[0] = _tmp0_;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_[1] = _tmp1_;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_[2] = _tmp2_;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_[3] = _tmp3_;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_[4] = _tmp4_;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_[5] = _tmp5_;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_ = _tmp6_;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7__length1 = 6;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (result_length1) {
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ *result_length1 = _tmp7__length1;
+#line 1478 "FSpotPhotoVersionsTable.c"
+ }
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp7_;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 1484 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v16_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoVersionRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior * self;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp9_ = NULL;
+ sqlite3_stmt* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ const gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* full_path = NULL;
+ sqlite3_stmt* _tmp14_ = NULL;
+ gint _tmp15_ = 0;
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp27_ = NULL;
+ sqlite3_stmt* _tmp28_ = NULL;
+ gint _tmp29_ = 0;
+ const gchar* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp32_ = NULL;
+ sqlite3_stmt* _tmp33_ = NULL;
+ gint _tmp34_ = 0;
+ gint _tmp35_ = 0;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV16Behavior);
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_version_row_new ();
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _vala_row = _tmp0_;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = _vala_row;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = stmt;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = offset;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = _vala_row;
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_ = stmt;
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_ = offset;
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_->version_id = _tmp8_;
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_ = _vala_row;
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp10_ = stmt;
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp11_ = offset;
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp12_ = sqlite3_column_text (_tmp10_, _tmp11_ + 2);
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp13_ = g_strdup (_tmp12_);
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp9_->name);
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_->name = _tmp13_;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp14_ = stmt;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp15_ = offset;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp16_ = sqlite3_column_text (_tmp14_, _tmp15_ + 3);
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp17_ = g_strdup (_tmp16_);
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ full_path = _tmp17_;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp18_ = full_path;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp18_ != NULL) {
+#line 1578 "FSpotPhotoVersionsTable.c"
+ GFile* uri = NULL;
+ const gchar* _tmp19_ = NULL;
+ GFile* _tmp20_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp21_ = NULL;
+ GFile* _tmp22_ = NULL;
+ GFile* _tmp23_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp24_ = NULL;
+ GFile* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp19_ = full_path;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp20_ = g_file_new_for_uri (_tmp19_);
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ uri = _tmp20_;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp21_ = _vala_row;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp22_ = uri;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp23_ = g_file_get_parent (_tmp22_);
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_tmp21_->base_path);
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp21_->base_path = _tmp23_;
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp24_ = _vala_row;
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp25_ = uri;
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp26_ = g_file_get_basename (_tmp25_);
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp24_->filename);
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp24_->filename = _tmp26_;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (uri);
+#line 1616 "FSpotPhotoVersionsTable.c"
+ }
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp27_ = _vala_row;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp28_ = stmt;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp29_ = offset;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp30_ = sqlite3_column_text (_tmp28_, _tmp29_ + 4);
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp31_ = g_strdup (_tmp30_);
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp27_->md5_sum);
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp27_->md5_sum = _tmp31_;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp32_ = _vala_row;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp33_ = stmt;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp34_ = offset;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp35_ = sqlite3_column_int (_tmp33_, _tmp34_ + 5);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp32_->is_protected = _tmp35_ > 0;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (full_path);
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (row) {
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ *row = _vala_row;
+#line 1648 "FSpotPhotoVersionsTable.c"
+ } else {
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 1652 "FSpotPhotoVersionsTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v16_behavior_class_init (DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass * klass) {
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v16_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photo_versions_v16_behavior_finalize;
+#line 1662 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v16_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v16_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photo_versions_v16_behavior_real_get_table_name;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photo_versions_v16_behavior_real_list_columns;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photo_versions_v16_behavior_real_build_row;
+#line 1675 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v16_behavior_instance_init (DataImportsFSpotDbFSpotPhotoVersionsV16Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v16_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotoVersionsV16Behavior * self;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV16Behavior);
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photo_versions_v16_behavior_parent_class)->finalize (obj);
+#line 1689 "FSpotPhotoVersionsTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photo_versions_v16_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_versions_v16_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_versions_v16_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoVersionsV16BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_versions_v16_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoVersionsV16Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_versions_v16_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photo_versions_v16_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photo_versions_v16_behavior_type_id;
+ data_imports_fspot_db_fspot_photo_versions_v16_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotoVersionsV16Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photo_versions_v16_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_versions_v16_behavior_type_id__volatile, data_imports_fspot_db_fspot_photo_versions_v16_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_versions_v16_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* data_imports_fspot_db_fspot_photo_versions_v17_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior * self = NULL;
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoVersionsV17Behavior*) g_object_new (object_type, NULL);
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return self;
+#line 1713 "FSpotPhotoVersionsTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* data_imports_fspot_db_fspot_photo_versions_v17_behavior_new (void) {
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return data_imports_fspot_db_fspot_photo_versions_v17_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR);
+#line 1720 "FSpotPhotoVersionsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* data_imports_fspot_db_fspot_photo_versions_v17_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* _tmp3_ = NULL;
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_versions_v17_behavior_instance;
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp0_ == NULL) {
+#line 1733 "FSpotPhotoVersionsTable.c"
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior* _tmp1_ = NULL;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photo_versions_v17_behavior_new ();
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photo_versions_v17_behavior_instance);
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v17_behavior_instance = _tmp1_;
+#line 1741 "FSpotPhotoVersionsTable.c"
+ }
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photo_versions_v17_behavior_instance;
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp3_;
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 1751 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photo_versions_v17_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV17Behavior);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_TABLE_NAME);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp0_;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 1767 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photo_versions_v17_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gchar** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV17Behavior);
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = g_strdup ("photo_id");
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = g_strdup ("version_id");
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = g_strdup ("name");
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = g_strdup ("base_uri");
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = g_strdup ("filename");
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = g_strdup ("md5_sum");
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_ = g_strdup ("protected");
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_ = g_new0 (gchar*, 7 + 1);
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[0] = _tmp0_;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[1] = _tmp1_;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[2] = _tmp2_;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[3] = _tmp3_;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[4] = _tmp4_;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[5] = _tmp5_;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[6] = _tmp6_;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp8_ = _tmp7_;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp8__length1 = 7;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (result_length1) {
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ *result_length1 = _tmp8__length1;
+#line 1824 "FSpotPhotoVersionsTable.c"
+ }
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp8_;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 1830 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v17_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoVersionRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior * self;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp9_ = NULL;
+ sqlite3_stmt* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ const gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* base_path = NULL;
+ sqlite3_stmt* _tmp14_ = NULL;
+ gint _tmp15_ = 0;
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar* filename = NULL;
+ sqlite3_stmt* _tmp18_ = NULL;
+ gint _tmp19_ = 0;
+ const gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gboolean _tmp22_ = FALSE;
+ const gchar* _tmp23_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp31_ = NULL;
+ sqlite3_stmt* _tmp32_ = NULL;
+ gint _tmp33_ = 0;
+ const gchar* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp36_ = NULL;
+ sqlite3_stmt* _tmp37_ = NULL;
+ gint _tmp38_ = 0;
+ gint _tmp39_ = 0;
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV17Behavior);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_version_row_new ();
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _vala_row = _tmp0_;
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = _vala_row;
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = stmt;
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = offset;
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = _vala_row;
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_ = stmt;
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_ = offset;
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_->version_id = _tmp8_;
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_ = _vala_row;
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp10_ = stmt;
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp11_ = offset;
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp12_ = sqlite3_column_text (_tmp10_, _tmp11_ + 2);
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp13_ = g_strdup (_tmp12_);
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp9_->name);
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_->name = _tmp13_;
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp14_ = stmt;
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp15_ = offset;
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp16_ = sqlite3_column_text (_tmp14_, _tmp15_ + 3);
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp17_ = g_strdup (_tmp16_);
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ base_path = _tmp17_;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp18_ = stmt;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp19_ = offset;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp20_ = sqlite3_column_text (_tmp18_, _tmp19_ + 4);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp21_ = g_strdup (_tmp20_);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ filename = _tmp21_;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp23_ = base_path;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp23_ != NULL) {
+#line 1940 "FSpotPhotoVersionsTable.c"
+ const gchar* _tmp24_ = NULL;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp24_ = filename;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp22_ = _tmp24_ != NULL;
+#line 1946 "FSpotPhotoVersionsTable.c"
+ } else {
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp22_ = FALSE;
+#line 1950 "FSpotPhotoVersionsTable.c"
+ }
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp22_) {
+#line 1954 "FSpotPhotoVersionsTable.c"
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp25_ = NULL;
+ const gchar* _tmp26_ = NULL;
+ GFile* _tmp27_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp25_ = _vala_row;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp26_ = base_path;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp27_ = g_file_new_for_uri (_tmp26_);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_tmp25_->base_path);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp25_->base_path = _tmp27_;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp28_ = _vala_row;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp29_ = filename;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp30_ = g_strdup (_tmp29_);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp28_->filename);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp28_->filename = _tmp30_;
+#line 1981 "FSpotPhotoVersionsTable.c"
+ }
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp31_ = _vala_row;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp32_ = stmt;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp33_ = offset;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp34_ = sqlite3_column_text (_tmp32_, _tmp33_ + 5);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp35_ = g_strdup (_tmp34_);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp31_->md5_sum);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp31_->md5_sum = _tmp35_;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp36_ = _vala_row;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp37_ = stmt;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp38_ = offset;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp39_ = sqlite3_column_int (_tmp37_, _tmp38_ + 6);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp36_->is_protected = _tmp39_ > 0;
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (filename);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (base_path);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (row) {
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ *row = _vala_row;
+#line 2015 "FSpotPhotoVersionsTable.c"
+ } else {
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 2019 "FSpotPhotoVersionsTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v17_behavior_class_init (DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass * klass) {
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v17_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photo_versions_v17_behavior_finalize;
+#line 2029 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v17_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v17_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photo_versions_v17_behavior_real_get_table_name;
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photo_versions_v17_behavior_real_list_columns;
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photo_versions_v17_behavior_real_build_row;
+#line 2042 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v17_behavior_instance_init (DataImportsFSpotDbFSpotPhotoVersionsV17Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v17_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotoVersionsV17Behavior * self;
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV17Behavior);
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photo_versions_v17_behavior_parent_class)->finalize (obj);
+#line 2056 "FSpotPhotoVersionsTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photo_versions_v17_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_versions_v17_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_versions_v17_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoVersionsV17BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_versions_v17_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoVersionsV17Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_versions_v17_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photo_versions_v17_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photo_versions_v17_behavior_type_id;
+ data_imports_fspot_db_fspot_photo_versions_v17_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotoVersionsV17Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photo_versions_v17_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_versions_v17_behavior_type_id__volatile, data_imports_fspot_db_fspot_photo_versions_v17_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_versions_v17_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* data_imports_fspot_db_fspot_photo_versions_v18_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior * self = NULL;
+#line 234 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoVersionsV18Behavior*) g_object_new (object_type, NULL);
+#line 234 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return self;
+#line 2080 "FSpotPhotoVersionsTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* data_imports_fspot_db_fspot_photo_versions_v18_behavior_new (void) {
+#line 234 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return data_imports_fspot_db_fspot_photo_versions_v18_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR);
+#line 2087 "FSpotPhotoVersionsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* data_imports_fspot_db_fspot_photo_versions_v18_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* _tmp3_ = NULL;
+#line 238 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_versions_v18_behavior_instance;
+#line 238 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp0_ == NULL) {
+#line 2100 "FSpotPhotoVersionsTable.c"
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior* _tmp1_ = NULL;
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photo_versions_v18_behavior_new ();
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photo_versions_v18_behavior_instance);
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v18_behavior_instance = _tmp1_;
+#line 2108 "FSpotPhotoVersionsTable.c"
+ }
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photo_versions_v18_behavior_instance;
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp3_;
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 2118 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photo_versions_v18_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV18Behavior);
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_TABLE_NAME);
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp0_;
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 2134 "FSpotPhotoVersionsTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photo_versions_v18_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gchar** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV18Behavior);
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = g_strdup ("photo_id");
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = g_strdup ("version_id");
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = g_strdup ("name");
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = g_strdup ("base_uri");
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = g_strdup ("filename");
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = g_strdup ("import_md5");
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_ = g_strdup ("protected");
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_ = g_new0 (gchar*, 7 + 1);
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[0] = _tmp0_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[1] = _tmp1_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[2] = _tmp2_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[3] = _tmp3_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[4] = _tmp4_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[5] = _tmp5_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_[6] = _tmp6_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp8_ = _tmp7_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp8__length1 = 7;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (result_length1) {
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ *result_length1 = _tmp8__length1;
+#line 2191 "FSpotPhotoVersionsTable.c"
+ }
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ result = _tmp8_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ return result;
+#line 2197 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v18_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoVersionRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior * self;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp9_ = NULL;
+ sqlite3_stmt* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ const gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* base_path = NULL;
+ sqlite3_stmt* _tmp14_ = NULL;
+ gint _tmp15_ = 0;
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar* filename = NULL;
+ sqlite3_stmt* _tmp18_ = NULL;
+ gint _tmp19_ = 0;
+ const gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gboolean _tmp22_ = FALSE;
+ const gchar* _tmp23_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp31_ = NULL;
+ sqlite3_stmt* _tmp32_ = NULL;
+ gint _tmp33_ = 0;
+ const gchar* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp36_ = NULL;
+ sqlite3_stmt* _tmp37_ = NULL;
+ gint _tmp38_ = 0;
+ gint _tmp39_ = 0;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV18Behavior);
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_version_row_new ();
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _vala_row = _tmp0_;
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_ = _vala_row;
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp2_ = stmt;
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp3_ = offset;
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_ = _vala_row;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp6_ = stmt;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp7_ = offset;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp5_->version_id = _tmp8_;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_ = _vala_row;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp10_ = stmt;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp11_ = offset;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp12_ = sqlite3_column_text (_tmp10_, _tmp11_ + 2);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp13_ = g_strdup (_tmp12_);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp9_->name);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp9_->name = _tmp13_;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp14_ = stmt;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp15_ = offset;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp16_ = sqlite3_column_text (_tmp14_, _tmp15_ + 3);
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp17_ = g_strdup (_tmp16_);
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ base_path = _tmp17_;
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp18_ = stmt;
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp19_ = offset;
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp20_ = sqlite3_column_text (_tmp18_, _tmp19_ + 4);
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp21_ = g_strdup (_tmp20_);
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ filename = _tmp21_;
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp23_ = base_path;
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp23_ != NULL) {
+#line 2307 "FSpotPhotoVersionsTable.c"
+ const gchar* _tmp24_ = NULL;
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp24_ = filename;
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp22_ = _tmp24_ != NULL;
+#line 2313 "FSpotPhotoVersionsTable.c"
+ } else {
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp22_ = FALSE;
+#line 2317 "FSpotPhotoVersionsTable.c"
+ }
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (_tmp22_) {
+#line 2321 "FSpotPhotoVersionsTable.c"
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp25_ = NULL;
+ const gchar* _tmp26_ = NULL;
+ GFile* _tmp27_ = NULL;
+ DataImportsFSpotDbFSpotPhotoVersionRow* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp25_ = _vala_row;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp26_ = base_path;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp27_ = g_file_new_for_uri (_tmp26_);
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_tmp25_->base_path);
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp25_->base_path = _tmp27_;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp28_ = _vala_row;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp29_ = filename;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp30_ = g_strdup (_tmp29_);
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp28_->filename);
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp28_->filename = _tmp30_;
+#line 2348 "FSpotPhotoVersionsTable.c"
+ }
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp31_ = _vala_row;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp32_ = stmt;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp33_ = offset;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp34_ = sqlite3_column_text (_tmp32_, _tmp33_ + 5);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp35_ = g_strdup (_tmp34_);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (_tmp31_->md5_sum);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp31_->md5_sum = _tmp35_;
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp36_ = _vala_row;
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp37_ = stmt;
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp38_ = offset;
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp39_ = sqlite3_column_int (_tmp37_, _tmp38_ + 6);
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _tmp36_->is_protected = _tmp39_ > 0;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (filename);
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_free0 (base_path);
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ if (row) {
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ *row = _vala_row;
+#line 2382 "FSpotPhotoVersionsTable.c"
+ } else {
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 2386 "FSpotPhotoVersionsTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v18_behavior_class_init (DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass * klass) {
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v18_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photo_versions_v18_behavior_finalize;
+#line 2396 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v18_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ data_imports_fspot_db_fspot_photo_versions_v18_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photo_versions_v18_behavior_real_get_table_name;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photo_versions_v18_behavior_real_list_columns;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photo_versions_v18_behavior_real_build_row;
+#line 2409 "FSpotPhotoVersionsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v18_behavior_instance_init (DataImportsFSpotDbFSpotPhotoVersionsV18Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photo_versions_v18_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotoVersionsV18Behavior * self;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotoVersionsV18Behavior);
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photo_versions_v18_behavior_parent_class)->finalize (obj);
+#line 2423 "FSpotPhotoVersionsTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photo_versions_v18_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_versions_v18_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_versions_v18_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoVersionsV18BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_versions_v18_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoVersionsV18Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_versions_v18_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photo_versions_v18_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photo_versions_v18_behavior_type_id;
+ data_imports_fspot_db_fspot_photo_versions_v18_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotoVersionsV18Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photo_versions_v18_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_versions_v18_behavior_type_id__volatile, data_imports_fspot_db_fspot_photo_versions_v18_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_versions_v18_behavior_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala b/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala
index 35b913b..4c500fe 100644
--- a/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala
+++ b/plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala
@@ -23,7 +23,7 @@ public class FSpotPhotoVersionRow : Object {
* This class represents the F-Spot photo_versions table.
*/
public class FSpotPhotoVersionsTable : FSpotDatabaseTable<FSpotPhotoVersionRow> {
- public static const string TABLE_NAME = "Photo_versions";
+ public const string TABLE_NAME = "Photo_versions";
public FSpotPhotoVersionsTable(Sqlite.Database db, FSpotDatabaseBehavior db_behavior) {
base(db);
diff --git a/plugins/shotwell-data-imports/FSpotPhotosTable.c b/plugins/shotwell-data-imports/FSpotPhotosTable.c
new file mode 100644
index 0000000..b610d4f
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotPhotosTable.c
@@ -0,0 +1,3295 @@
+/* FSpotPhotosTable.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotPhotosTable.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 <time.h>
+#include <gio/gio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sqlite3.h>
+#include <gee.h>
+
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW (data_imports_fspot_db_fspot_photo_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoRow DataImportsFSpotDbFSpotPhotoRow;
+typedef struct _DataImportsFSpotDbFSpotPhotoRowClass DataImportsFSpotDbFSpotPhotoRowClass;
+typedef struct _DataImportsFSpotDbFSpotPhotoRowPrivate DataImportsFSpotDbFSpotPhotoRowPrivate;
+#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_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
+#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
+#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+
+typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
+typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;
+typedef struct _ImportableDatabaseTablePrivate ImportableDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE (data_imports_fspot_db_fspot_database_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseTable DataImportsFSpotDbFSpotDatabaseTable;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTableClass DataImportsFSpotDbFSpotDatabaseTableClass;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTablePrivate DataImportsFSpotDbFSpotDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR (data_imports_fspot_db_fspot_table_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehaviorIface))
+
+typedef struct _DataImportsFSpotDbFSpotTableBehavior DataImportsFSpotDbFSpotTableBehavior;
+typedef struct _DataImportsFSpotDbFSpotTableBehaviorIface DataImportsFSpotDbFSpotTableBehaviorIface;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE (data_imports_fspot_db_fspot_photos_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosTable DataImportsFSpotDbFSpotPhotosTable;
+typedef struct _DataImportsFSpotDbFSpotPhotosTableClass DataImportsFSpotDbFSpotPhotosTableClass;
+typedef struct _DataImportsFSpotDbFSpotPhotosTablePrivate DataImportsFSpotDbFSpotPhotosTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR (data_imports_fspot_db_fspot_database_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehavior DataImportsFSpotDbFSpotDatabaseBehavior;
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehaviorClass DataImportsFSpotDbFSpotDatabaseBehaviorClass;
+#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR (data_imports_fspot_db_fspot_photos_v0_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV0Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV0BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V0_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV0BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV0Behavior DataImportsFSpotDbFSpotPhotosV0Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV0BehaviorClass DataImportsFSpotDbFSpotPhotosV0BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotosV0BehaviorPrivate DataImportsFSpotDbFSpotPhotosV0BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR (data_imports_fspot_db_fspot_photos_v5_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V5_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV5Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V5_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV5BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V5_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V5_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V5_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV5BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV5Behavior DataImportsFSpotDbFSpotPhotosV5Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV5BehaviorClass DataImportsFSpotDbFSpotPhotosV5BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotosV5BehaviorPrivate DataImportsFSpotDbFSpotPhotosV5BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR (data_imports_fspot_db_fspot_photos_v7_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V7_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV7Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V7_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV7BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V7_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V7_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V7_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV7BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV7Behavior DataImportsFSpotDbFSpotPhotosV7Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV7BehaviorClass DataImportsFSpotDbFSpotPhotosV7BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotosV7BehaviorPrivate DataImportsFSpotDbFSpotPhotosV7BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR (data_imports_fspot_db_fspot_photos_v11_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V11_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV11Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V11_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV11BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V11_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V11_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V11_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV11BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV11Behavior DataImportsFSpotDbFSpotPhotosV11Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV11BehaviorClass DataImportsFSpotDbFSpotPhotosV11BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotosV11BehaviorPrivate DataImportsFSpotDbFSpotPhotosV11BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR (data_imports_fspot_db_fspot_photos_v16_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V16_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV16Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V16_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV16BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V16_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V16_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V16_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV16BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV16Behavior DataImportsFSpotDbFSpotPhotosV16Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV16BehaviorClass DataImportsFSpotDbFSpotPhotosV16BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotosV16BehaviorPrivate DataImportsFSpotDbFSpotPhotosV16BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR (data_imports_fspot_db_fspot_photos_v17_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V17_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV17Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V17_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV17BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V17_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V17_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V17_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV17BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV17Behavior DataImportsFSpotDbFSpotPhotosV17Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV17BehaviorClass DataImportsFSpotDbFSpotPhotosV17BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotosV17BehaviorPrivate DataImportsFSpotDbFSpotPhotosV17BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR (data_imports_fspot_db_fspot_photos_v18_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V18_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV18Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V18_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV18BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V18_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_V18_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V18_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV18BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotosV18Behavior DataImportsFSpotDbFSpotPhotosV18Behavior;
+typedef struct _DataImportsFSpotDbFSpotPhotosV18BehaviorClass DataImportsFSpotDbFSpotPhotosV18BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotPhotosV18BehaviorPrivate DataImportsFSpotDbFSpotPhotosV18BehaviorPrivate;
+
+struct _DataImportsFSpotDbFSpotPhotoRow {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotoRowPrivate * priv;
+ gint64 photo_id;
+ time_t time;
+ GFile* base_path;
+ gchar* filename;
+ gchar* description;
+ gint64 roll_id;
+ gint64 default_version_id;
+ gint rating;
+ gchar* md5_sum;
+};
+
+struct _DataImportsFSpotDbFSpotPhotoRowClass {
+ GObjectClass parent_class;
+};
+
+struct _ImportableDatabaseTable {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ ImportableDatabaseTablePrivate * priv;
+ gchar* table_name;
+};
+
+struct _ImportableDatabaseTableClass {
+ GTypeClass parent_class;
+ void (*finalize) (ImportableDatabaseTable *self);
+};
+
+struct _DataImportsFSpotDbFSpotTableBehaviorIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_table_name) (DataImportsFSpotDbFSpotTableBehavior* self);
+ gchar** (*list_columns) (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+ void (*build_row) (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTable {
+ ImportableDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotDatabaseTablePrivate * priv;
+ sqlite3* fspot_db;
+ DataImportsFSpotDbFSpotTableBehavior* behavior;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTableClass {
+ ImportableDatabaseTableClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosTable {
+ DataImportsFSpotDbFSpotDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotPhotosTablePrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosTableClass {
+ DataImportsFSpotDbFSpotDatabaseTableClass parent_class;
+};
+
+typedef enum {
+ DATABASE_ERROR_ERROR,
+ DATABASE_ERROR_BACKING,
+ DATABASE_ERROR_MEMORY,
+ DATABASE_ERROR_ABORT,
+ DATABASE_ERROR_LIMITS,
+ DATABASE_ERROR_TYPESPEC
+} DatabaseError;
+#define DATABASE_ERROR database_error_quark ()
+struct _DataImportsFSpotDbFSpotPhotosV0Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotosV0BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV0BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV5Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotosV5BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV5BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV7Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotosV7BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV7BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV11Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotosV11BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV11BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV16Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotosV16BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV16BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV17Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotosV17BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV17BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV18Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotPhotosV18BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotPhotosV18BehaviorClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer data_imports_fspot_db_fspot_photo_row_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_photos_table_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_photos_v0_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotosV0Behavior* data_imports_fspot_db_fspot_photos_v0_behavior_instance;
+static DataImportsFSpotDbFSpotPhotosV0Behavior* data_imports_fspot_db_fspot_photos_v0_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photos_v0_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_photos_v5_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotosV5Behavior* data_imports_fspot_db_fspot_photos_v5_behavior_instance;
+static DataImportsFSpotDbFSpotPhotosV5Behavior* data_imports_fspot_db_fspot_photos_v5_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photos_v5_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_photos_v7_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotosV7Behavior* data_imports_fspot_db_fspot_photos_v7_behavior_instance;
+static DataImportsFSpotDbFSpotPhotosV7Behavior* data_imports_fspot_db_fspot_photos_v7_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photos_v7_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_photos_v11_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotosV11Behavior* data_imports_fspot_db_fspot_photos_v11_behavior_instance;
+static DataImportsFSpotDbFSpotPhotosV11Behavior* data_imports_fspot_db_fspot_photos_v11_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photos_v11_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_photos_v16_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotosV16Behavior* data_imports_fspot_db_fspot_photos_v16_behavior_instance;
+static DataImportsFSpotDbFSpotPhotosV16Behavior* data_imports_fspot_db_fspot_photos_v16_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photos_v16_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_photos_v17_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotosV17Behavior* data_imports_fspot_db_fspot_photos_v17_behavior_instance;
+static DataImportsFSpotDbFSpotPhotosV17Behavior* data_imports_fspot_db_fspot_photos_v17_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photos_v17_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_photos_v18_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotPhotosV18Behavior* data_imports_fspot_db_fspot_photos_v18_behavior_instance;
+static DataImportsFSpotDbFSpotPhotosV18Behavior* data_imports_fspot_db_fspot_photos_v18_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_photos_v18_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+
+GType data_imports_fspot_db_fspot_photo_row_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW_DUMMY_PROPERTY
+};
+DataImportsFSpotDbFSpotPhotoRow* data_imports_fspot_db_fspot_photo_row_new (void);
+DataImportsFSpotDbFSpotPhotoRow* data_imports_fspot_db_fspot_photo_row_construct (GType object_type);
+static void data_imports_fspot_db_fspot_photo_row_finalize (GObject* obj);
+gpointer importable_database_table_ref (gpointer instance);
+void importable_database_table_unref (gpointer instance);
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_importable_database_table (GValue* value, gpointer v_object);
+void value_take_importable_database_table (GValue* value, gpointer v_object);
+gpointer value_get_importable_database_table (const GValue* value);
+GType importable_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_table_behavior_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photos_table_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_DUMMY_PROPERTY
+};
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME "Photos"
+GType data_imports_fspot_db_fspot_database_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotPhotosTable* data_imports_fspot_db_fspot_photos_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotPhotosTable* data_imports_fspot_db_fspot_photos_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotDatabaseTable* data_imports_fspot_db_fspot_database_table_construct (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, sqlite3* db);
+void data_imports_fspot_db_fspot_database_table_set_behavior (DataImportsFSpotDbFSpotDatabaseTable* self, DataImportsFSpotDbFSpotTableBehavior* behavior);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_photos_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+GQuark database_error_quark (void);
+GeeArrayList* data_imports_fspot_db_fspot_photos_table_get_all (DataImportsFSpotDbFSpotPhotosTable* self, GError** error);
+gint data_imports_fspot_db_fspot_database_table_select_all (DataImportsFSpotDbFSpotDatabaseTable* self, sqlite3_stmt** stmt, GError** error);
+void data_imports_fspot_db_fspot_table_behavior_build_row (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+GType data_imports_fspot_db_fspot_photos_v0_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V0_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotosV0Behavior* data_imports_fspot_db_fspot_photos_v0_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotosV0Behavior* data_imports_fspot_db_fspot_photos_v0_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotosV0Behavior* data_imports_fspot_db_fspot_photos_v0_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photos_v0_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photos_v0_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photos_v0_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset);
+#define DATA_IMPORTS_FSPOT_DB_INVALID_ID ((gint64) -1)
+static void data_imports_fspot_db_fspot_photos_v0_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_photos_v5_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V5_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotosV5Behavior* data_imports_fspot_db_fspot_photos_v5_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotosV5Behavior* data_imports_fspot_db_fspot_photos_v5_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotosV5Behavior* data_imports_fspot_db_fspot_photos_v5_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photos_v5_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photos_v5_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photos_v5_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photos_v5_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_photos_v7_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V7_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotosV7Behavior* data_imports_fspot_db_fspot_photos_v7_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotosV7Behavior* data_imports_fspot_db_fspot_photos_v7_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotosV7Behavior* data_imports_fspot_db_fspot_photos_v7_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photos_v7_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photos_v7_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photos_v7_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photos_v7_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_photos_v11_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V11_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotosV11Behavior* data_imports_fspot_db_fspot_photos_v11_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotosV11Behavior* data_imports_fspot_db_fspot_photos_v11_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotosV11Behavior* data_imports_fspot_db_fspot_photos_v11_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photos_v11_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photos_v11_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photos_v11_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photos_v11_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_photos_v16_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V16_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotosV16Behavior* data_imports_fspot_db_fspot_photos_v16_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotosV16Behavior* data_imports_fspot_db_fspot_photos_v16_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotosV16Behavior* data_imports_fspot_db_fspot_photos_v16_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photos_v16_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photos_v16_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photos_v16_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photos_v16_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_photos_v17_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V17_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotosV17Behavior* data_imports_fspot_db_fspot_photos_v17_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotosV17Behavior* data_imports_fspot_db_fspot_photos_v17_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotosV17Behavior* data_imports_fspot_db_fspot_photos_v17_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photos_v17_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photos_v17_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photos_v17_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photos_v17_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_photos_v18_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_V18_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotPhotosV18Behavior* data_imports_fspot_db_fspot_photos_v18_behavior_new (void);
+static DataImportsFSpotDbFSpotPhotosV18Behavior* data_imports_fspot_db_fspot_photos_v18_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotPhotosV18Behavior* data_imports_fspot_db_fspot_photos_v18_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_photos_v18_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_photos_v18_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_photos_v18_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset);
+static void data_imports_fspot_db_fspot_photos_v18_behavior_finalize (GObject* obj);
+
+
+DataImportsFSpotDbFSpotPhotoRow* data_imports_fspot_db_fspot_photo_row_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotoRow * self = NULL;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotoRow*) g_object_new (object_type, NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return self;
+#line 441 "FSpotPhotosTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotoRow* data_imports_fspot_db_fspot_photo_row_new (void) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return data_imports_fspot_db_fspot_photo_row_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW);
+#line 448 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_row_class_init (DataImportsFSpotDbFSpotPhotoRowClass * klass) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photo_row_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photo_row_finalize;
+#line 457 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photo_row_instance_init (DataImportsFSpotDbFSpotPhotoRow * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photo_row_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotoRow * self;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRow);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (self->base_path);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (self->filename);
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (self->description);
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (self->md5_sum);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photo_row_parent_class)->finalize (obj);
+#line 479 "FSpotPhotosTable.c"
+}
+
+
+/**
+ * The value object for the "photos" table, representing a single database row.
+ */
+GType data_imports_fspot_db_fspot_photo_row_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photo_row_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photo_row_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotoRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photo_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotoRow), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photo_row_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_photo_row_type_id;
+ data_imports_fspot_db_fspot_photo_row_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotoRow", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photo_row_type_id__volatile, data_imports_fspot_db_fspot_photo_row_type_id);
+ }
+ return data_imports_fspot_db_fspot_photo_row_type_id__volatile;
+}
+
+
+DataImportsFSpotDbFSpotPhotosTable* data_imports_fspot_db_fspot_photos_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior) {
+ DataImportsFSpotDbFSpotPhotosTable* self = NULL;
+ sqlite3* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp1_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp3_ = NULL;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_return_val_if_fail (db != NULL, NULL);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR (db_behavior), NULL);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = db;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotosTable*) data_imports_fspot_db_fspot_database_table_construct (object_type, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp0_);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = db_behavior;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_database_behavior_get_photos_behavior (_tmp1_);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = _tmp2_;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_database_table_set_behavior (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), _tmp3_);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_tmp3_);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return self;
+#line 524 "FSpotPhotosTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotosTable* data_imports_fspot_db_fspot_photos_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior) {
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return data_imports_fspot_db_fspot_photos_table_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, db, db_behavior);
+#line 531 "FSpotPhotosTable.c"
+}
+
+
+GeeArrayList* data_imports_fspot_db_fspot_photos_table_get_all (DataImportsFSpotDbFSpotPhotosTable* self, GError** error) {
+ GeeArrayList* result = NULL;
+ GeeArrayList* all = NULL;
+ GeeArrayList* _tmp0_ = NULL;
+ sqlite3_stmt* stmt = NULL;
+ gint res = 0;
+ sqlite3_stmt* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ GError * _inner_error_ = NULL;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_TABLE (self), NULL);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = gee_array_list_new (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ all = _tmp0_;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_database_table_select_all (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), &_tmp1_, &_inner_error_);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ stmt = _tmp1_;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ res = _tmp2_;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (all);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return NULL;
+#line 570 "FSpotPhotosTable.c"
+ } else {
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (all);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.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 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_clear_error (&_inner_error_);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return NULL;
+#line 582 "FSpotPhotosTable.c"
+ }
+ }
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ while (TRUE) {
+#line 587 "FSpotPhotosTable.c"
+ gint _tmp3_ = 0;
+ DataImportsFSpotDbFSpotPhotoRow* row = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp4_ = NULL;
+ gpointer _tmp5_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = res;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (!(_tmp3_ == SQLITE_ROW)) {
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ break;
+#line 600 "FSpotPhotosTable.c"
+ }
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->behavior;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_table_behavior_build_row (_tmp4_, stmt, &_tmp5_, 0);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (row);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ row = _tmp5_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = row;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (all, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = sqlite3_step (stmt);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ res = _tmp7_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (row);
+#line 620 "FSpotPhotosTable.c"
+ }
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = all;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 628 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_table_class_init (DataImportsFSpotDbFSpotPhotosTableClass * klass) {
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_table_parent_class = g_type_class_peek_parent (klass);
+#line 635 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_table_instance_init (DataImportsFSpotDbFSpotPhotosTable * self) {
+}
+
+
+/**
+ * This class represents the F-Spot photos table.
+ */
+GType data_imports_fspot_db_fspot_photos_table_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photos_table_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photos_table_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotosTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photos_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotosTable), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photos_table_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_photos_table_type_id;
+ data_imports_fspot_db_fspot_photos_table_type_id = g_type_register_static (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, "DataImportsFSpotDbFSpotPhotosTable", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photos_table_type_id__volatile, data_imports_fspot_db_fspot_photos_table_type_id);
+ }
+ return data_imports_fspot_db_fspot_photos_table_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV0Behavior* data_imports_fspot_db_fspot_photos_v0_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotosV0Behavior * self = NULL;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotosV0Behavior*) g_object_new (object_type, NULL);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return self;
+#line 664 "FSpotPhotosTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV0Behavior* data_imports_fspot_db_fspot_photos_v0_behavior_new (void) {
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return data_imports_fspot_db_fspot_photos_v0_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR);
+#line 671 "FSpotPhotosTable.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 678 "FSpotPhotosTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotosV0Behavior* data_imports_fspot_db_fspot_photos_v0_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotosV0Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotosV0Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV0Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV0Behavior* _tmp3_ = NULL;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photos_v0_behavior_instance;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp0_ == NULL) {
+#line 691 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotosV0Behavior* _tmp1_ = NULL;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photos_v0_behavior_new ();
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photos_v0_behavior_instance);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v0_behavior_instance = _tmp1_;
+#line 699 "FSpotPhotosTable.c"
+ }
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photos_v0_behavior_instance;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp3_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 709 "FSpotPhotosTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photos_v0_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotosV0Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV0Behavior);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp0_;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 725 "FSpotPhotosTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photos_v0_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotosV0Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar** _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV0Behavior);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup ("id");
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = g_strdup ("time");
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = g_strdup ("directory_path");
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = g_strdup ("name");
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = g_strdup ("description");
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = g_strdup ("default_version_id");
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = g_new0 (gchar*, 6 + 1);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[0] = _tmp0_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[1] = _tmp1_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[2] = _tmp2_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[3] = _tmp3_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[4] = _tmp4_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[5] = _tmp5_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = _tmp6_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7__length1 = 6;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (result_length1) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *result_length1 = _tmp7__length1;
+#line 777 "FSpotPhotosTable.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp7_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 783 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v0_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotosV0Behavior * self;
+ DataImportsFSpotDbFSpotPhotoRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ gchar* base_path = NULL;
+ sqlite3_stmt* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* filename = NULL;
+ sqlite3_stmt* _tmp13_ = NULL;
+ gint _tmp14_ = 0;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gboolean _tmp17_ = FALSE;
+ const gchar* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp26_ = NULL;
+ sqlite3_stmt* _tmp27_ = NULL;
+ gint _tmp28_ = 0;
+ const gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp31_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp32_ = NULL;
+ sqlite3_stmt* _tmp33_ = NULL;
+ gint _tmp34_ = 0;
+ gint64 _tmp35_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp36_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp37_ = NULL;
+ gchar* _tmp38_ = NULL;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV0Behavior);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_row_new ();
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _vala_row = _tmp0_;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = _vala_row;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = stmt;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = offset;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = _vala_row;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = stmt;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = offset;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_->time = (time_t) _tmp8_;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_ = stmt;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp10_ = offset;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp11_ = sqlite3_column_text (_tmp9_, _tmp10_ + 2);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp12_ = g_strdup (_tmp11_);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ base_path = _tmp12_;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp13_ = stmt;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp14_ = offset;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp15_ = sqlite3_column_text (_tmp13_, _tmp14_ + 3);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp16_ = g_strdup (_tmp15_);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ filename = _tmp16_;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp18_ = base_path;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp18_ != NULL) {
+#line 878 "FSpotPhotosTable.c"
+ const gchar* _tmp19_ = NULL;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp19_ = filename;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = _tmp19_ != NULL;
+#line 884 "FSpotPhotosTable.c"
+ } else {
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = FALSE;
+#line 888 "FSpotPhotosTable.c"
+ }
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp17_) {
+#line 892 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotoRow* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ GFile* _tmp22_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_ = _vala_row;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp21_ = base_path;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp22_ = g_file_new_for_uri (_tmp21_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_tmp20_->base_path);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_->base_path = _tmp22_;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_ = _vala_row;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp24_ = filename;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp25_ = g_strdup (_tmp24_);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp23_->filename);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_->filename = _tmp25_;
+#line 919 "FSpotPhotosTable.c"
+ }
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_ = _vala_row;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp27_ = stmt;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp28_ = offset;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp29_ = sqlite3_column_text (_tmp27_, _tmp28_ + 4);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp30_ = g_strdup (_tmp29_);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp26_->description);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_->description = _tmp30_;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_ = _vala_row;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_->roll_id = DATA_IMPORTS_FSPOT_DB_INVALID_ID;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp32_ = _vala_row;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp33_ = stmt;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp34_ = offset;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_ = sqlite3_column_int64 (_tmp33_, _tmp34_ + 5);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp32_->default_version_id = _tmp35_;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp36_ = _vala_row;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp36_->rating = 0;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp37_ = _vala_row;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp38_ = g_strdup ("");
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp37_->md5_sum);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp37_->md5_sum = _tmp38_;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (filename);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (base_path);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (row) {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *row = _vala_row;
+#line 969 "FSpotPhotosTable.c"
+ } else {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 973 "FSpotPhotosTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v0_behavior_class_init (DataImportsFSpotDbFSpotPhotosV0BehaviorClass * klass) {
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v0_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photos_v0_behavior_finalize;
+#line 983 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v0_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v0_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photos_v0_behavior_real_get_table_name;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photos_v0_behavior_real_list_columns;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photos_v0_behavior_real_build_row;
+#line 996 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v0_behavior_instance_init (DataImportsFSpotDbFSpotPhotosV0Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v0_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotosV0Behavior * self;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V0_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV0Behavior);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photos_v0_behavior_parent_class)->finalize (obj);
+#line 1010 "FSpotPhotosTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photos_v0_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photos_v0_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photos_v0_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotosV0BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photos_v0_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotosV0Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photos_v0_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photos_v0_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photos_v0_behavior_type_id;
+ data_imports_fspot_db_fspot_photos_v0_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotosV0Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photos_v0_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photos_v0_behavior_type_id__volatile, data_imports_fspot_db_fspot_photos_v0_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photos_v0_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV5Behavior* data_imports_fspot_db_fspot_photos_v5_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotosV5Behavior * self = NULL;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotosV5Behavior*) g_object_new (object_type, NULL);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return self;
+#line 1034 "FSpotPhotosTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV5Behavior* data_imports_fspot_db_fspot_photos_v5_behavior_new (void) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return data_imports_fspot_db_fspot_photos_v5_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR);
+#line 1041 "FSpotPhotosTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotosV5Behavior* data_imports_fspot_db_fspot_photos_v5_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotosV5Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotosV5Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV5Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV5Behavior* _tmp3_ = NULL;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photos_v5_behavior_instance;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp0_ == NULL) {
+#line 1054 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotosV5Behavior* _tmp1_ = NULL;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photos_v5_behavior_new ();
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photos_v5_behavior_instance);
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v5_behavior_instance = _tmp1_;
+#line 1062 "FSpotPhotosTable.c"
+ }
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photos_v5_behavior_instance;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp3_;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 1072 "FSpotPhotosTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photos_v5_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotosV5Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV5Behavior);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp0_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 1088 "FSpotPhotosTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photos_v5_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotosV5Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gchar** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV5Behavior);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup ("id");
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = g_strdup ("time");
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = g_strdup ("directory_path");
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = g_strdup ("name");
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = g_strdup ("description");
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = g_strdup ("roll_id");
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = g_strdup ("default_version_id");
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = g_new0 (gchar*, 7 + 1);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[0] = _tmp0_;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[1] = _tmp1_;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[2] = _tmp2_;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[3] = _tmp3_;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[4] = _tmp4_;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[5] = _tmp5_;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[6] = _tmp6_;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = _tmp7_;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8__length1 = 7;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (result_length1) {
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *result_length1 = _tmp8__length1;
+#line 1145 "FSpotPhotosTable.c"
+ }
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp8_;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 1151 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v5_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotosV5Behavior * self;
+ DataImportsFSpotDbFSpotPhotoRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ gchar* base_path = NULL;
+ sqlite3_stmt* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* filename = NULL;
+ sqlite3_stmt* _tmp13_ = NULL;
+ gint _tmp14_ = 0;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gboolean _tmp17_ = FALSE;
+ const gchar* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp26_ = NULL;
+ sqlite3_stmt* _tmp27_ = NULL;
+ gint _tmp28_ = 0;
+ const gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp31_ = NULL;
+ sqlite3_stmt* _tmp32_ = NULL;
+ gint _tmp33_ = 0;
+ gint64 _tmp34_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp35_ = NULL;
+ sqlite3_stmt* _tmp36_ = NULL;
+ gint _tmp37_ = 0;
+ gint64 _tmp38_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp39_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp40_ = NULL;
+ gchar* _tmp41_ = NULL;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV5Behavior);
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_row_new ();
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _vala_row = _tmp0_;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = _vala_row;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = stmt;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = offset;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = _vala_row;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = stmt;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = offset;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_->time = (time_t) _tmp8_;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_ = stmt;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp10_ = offset;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp11_ = sqlite3_column_text (_tmp9_, _tmp10_ + 2);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp12_ = g_strdup (_tmp11_);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ base_path = _tmp12_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp13_ = stmt;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp14_ = offset;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp15_ = sqlite3_column_text (_tmp13_, _tmp14_ + 3);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp16_ = g_strdup (_tmp15_);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ filename = _tmp16_;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp18_ = base_path;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp18_ != NULL) {
+#line 1249 "FSpotPhotosTable.c"
+ const gchar* _tmp19_ = NULL;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp19_ = filename;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = _tmp19_ != NULL;
+#line 1255 "FSpotPhotosTable.c"
+ } else {
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = FALSE;
+#line 1259 "FSpotPhotosTable.c"
+ }
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp17_) {
+#line 1263 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotoRow* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ GFile* _tmp22_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_ = _vala_row;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp21_ = base_path;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp22_ = g_file_new_for_uri (_tmp21_);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_tmp20_->base_path);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_->base_path = _tmp22_;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_ = _vala_row;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp24_ = filename;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp25_ = g_strdup (_tmp24_);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp23_->filename);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_->filename = _tmp25_;
+#line 1290 "FSpotPhotosTable.c"
+ }
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_ = _vala_row;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp27_ = stmt;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp28_ = offset;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp29_ = sqlite3_column_text (_tmp27_, _tmp28_ + 4);
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp30_ = g_strdup (_tmp29_);
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp26_->description);
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_->description = _tmp30_;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_ = _vala_row;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp32_ = stmt;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp33_ = offset;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp34_ = sqlite3_column_int64 (_tmp32_, _tmp33_ + 5);
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_->roll_id = _tmp34_;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_ = _vala_row;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp36_ = stmt;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp37_ = offset;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp38_ = sqlite3_column_int64 (_tmp36_, _tmp37_ + 6);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_->default_version_id = _tmp38_;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp39_ = _vala_row;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp39_->rating = 0;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp40_ = _vala_row;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp41_ = g_strdup ("");
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp40_->md5_sum);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp40_->md5_sum = _tmp41_;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (filename);
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (base_path);
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (row) {
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *row = _vala_row;
+#line 1346 "FSpotPhotosTable.c"
+ } else {
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 1350 "FSpotPhotosTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v5_behavior_class_init (DataImportsFSpotDbFSpotPhotosV5BehaviorClass * klass) {
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v5_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photos_v5_behavior_finalize;
+#line 1360 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v5_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v5_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photos_v5_behavior_real_get_table_name;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photos_v5_behavior_real_list_columns;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photos_v5_behavior_real_build_row;
+#line 1373 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v5_behavior_instance_init (DataImportsFSpotDbFSpotPhotosV5Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v5_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotosV5Behavior * self;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V5_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV5Behavior);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photos_v5_behavior_parent_class)->finalize (obj);
+#line 1387 "FSpotPhotosTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photos_v5_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photos_v5_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photos_v5_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotosV5BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photos_v5_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotosV5Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photos_v5_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photos_v5_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photos_v5_behavior_type_id;
+ data_imports_fspot_db_fspot_photos_v5_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotosV5Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photos_v5_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photos_v5_behavior_type_id__volatile, data_imports_fspot_db_fspot_photos_v5_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photos_v5_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV7Behavior* data_imports_fspot_db_fspot_photos_v7_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotosV7Behavior * self = NULL;
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotosV7Behavior*) g_object_new (object_type, NULL);
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return self;
+#line 1411 "FSpotPhotosTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV7Behavior* data_imports_fspot_db_fspot_photos_v7_behavior_new (void) {
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return data_imports_fspot_db_fspot_photos_v7_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR);
+#line 1418 "FSpotPhotosTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotosV7Behavior* data_imports_fspot_db_fspot_photos_v7_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotosV7Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotosV7Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV7Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV7Behavior* _tmp3_ = NULL;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photos_v7_behavior_instance;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp0_ == NULL) {
+#line 1431 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotosV7Behavior* _tmp1_ = NULL;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photos_v7_behavior_new ();
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photos_v7_behavior_instance);
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v7_behavior_instance = _tmp1_;
+#line 1439 "FSpotPhotosTable.c"
+ }
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photos_v7_behavior_instance;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp3_;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 1449 "FSpotPhotosTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photos_v7_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotosV7Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV7Behavior);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp0_;
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 1465 "FSpotPhotosTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photos_v7_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotosV7Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar** _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+#line 158 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV7Behavior);
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup ("id");
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = g_strdup ("time");
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = g_strdup ("uri");
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = g_strdup ("description");
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = g_strdup ("roll_id");
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = g_strdup ("default_version_id");
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = g_new0 (gchar*, 6 + 1);
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[0] = _tmp0_;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[1] = _tmp1_;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[2] = _tmp2_;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[3] = _tmp3_;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[4] = _tmp4_;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_[5] = _tmp5_;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = _tmp6_;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7__length1 = 6;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (result_length1) {
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *result_length1 = _tmp7__length1;
+#line 1517 "FSpotPhotosTable.c"
+ }
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp7_;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 1523 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v7_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotosV7Behavior * self;
+ DataImportsFSpotDbFSpotPhotoRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ gchar* full_path = NULL;
+ sqlite3_stmt* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp22_ = NULL;
+ sqlite3_stmt* _tmp23_ = NULL;
+ gint _tmp24_ = 0;
+ const gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp27_ = NULL;
+ sqlite3_stmt* _tmp28_ = NULL;
+ gint _tmp29_ = 0;
+ gint64 _tmp30_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp31_ = NULL;
+ sqlite3_stmt* _tmp32_ = NULL;
+ gint _tmp33_ = 0;
+ gint64 _tmp34_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp35_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV7Behavior);
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 164 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_row_new ();
+#line 164 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 164 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _vala_row = _tmp0_;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = _vala_row;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = stmt;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = offset;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = _vala_row;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = stmt;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = offset;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_->time = (time_t) _tmp8_;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_ = stmt;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp10_ = offset;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp11_ = sqlite3_column_text (_tmp9_, _tmp10_ + 2);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp12_ = g_strdup (_tmp11_);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ full_path = _tmp12_;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp13_ = full_path;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp13_ != NULL) {
+#line 1605 "FSpotPhotosTable.c"
+ GFile* uri = NULL;
+ const gchar* _tmp14_ = NULL;
+ GFile* _tmp15_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp16_ = NULL;
+ GFile* _tmp17_ = NULL;
+ GFile* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp19_ = NULL;
+ GFile* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp14_ = full_path;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp15_ = g_file_new_for_uri (_tmp14_);
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ uri = _tmp15_;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp16_ = _vala_row;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = uri;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp18_ = g_file_get_parent (_tmp17_);
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_tmp16_->base_path);
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp16_->base_path = _tmp18_;
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp19_ = _vala_row;
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_ = uri;
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp21_ = g_file_get_basename (_tmp20_);
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp19_->filename);
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp19_->filename = _tmp21_;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (uri);
+#line 1643 "FSpotPhotosTable.c"
+ }
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp22_ = _vala_row;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_ = stmt;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp24_ = offset;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp25_ = sqlite3_column_text (_tmp23_, _tmp24_ + 3);
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_ = g_strdup (_tmp25_);
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp22_->description);
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp22_->description = _tmp26_;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp27_ = _vala_row;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp28_ = stmt;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp29_ = offset;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp30_ = sqlite3_column_int64 (_tmp28_, _tmp29_ + 4);
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp27_->roll_id = _tmp30_;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_ = _vala_row;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp32_ = stmt;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp33_ = offset;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp34_ = sqlite3_column_int64 (_tmp32_, _tmp33_ + 5);
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_->default_version_id = _tmp34_;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_ = _vala_row;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_->rating = 0;
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp36_ = _vala_row;
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp37_ = g_strdup ("");
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp36_->md5_sum);
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp36_->md5_sum = _tmp37_;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (full_path);
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (row) {
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *row = _vala_row;
+#line 1697 "FSpotPhotosTable.c"
+ } else {
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 1701 "FSpotPhotosTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v7_behavior_class_init (DataImportsFSpotDbFSpotPhotosV7BehaviorClass * klass) {
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v7_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photos_v7_behavior_finalize;
+#line 1711 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v7_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v7_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photos_v7_behavior_real_get_table_name;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photos_v7_behavior_real_list_columns;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photos_v7_behavior_real_build_row;
+#line 1724 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v7_behavior_instance_init (DataImportsFSpotDbFSpotPhotosV7Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v7_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotosV7Behavior * self;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V7_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV7Behavior);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photos_v7_behavior_parent_class)->finalize (obj);
+#line 1738 "FSpotPhotosTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photos_v7_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photos_v7_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photos_v7_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotosV7BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photos_v7_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotosV7Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photos_v7_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photos_v7_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photos_v7_behavior_type_id;
+ data_imports_fspot_db_fspot_photos_v7_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotosV7Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photos_v7_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photos_v7_behavior_type_id__volatile, data_imports_fspot_db_fspot_photos_v7_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photos_v7_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV11Behavior* data_imports_fspot_db_fspot_photos_v11_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotosV11Behavior * self = NULL;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotosV11Behavior*) g_object_new (object_type, NULL);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return self;
+#line 1762 "FSpotPhotosTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV11Behavior* data_imports_fspot_db_fspot_photos_v11_behavior_new (void) {
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return data_imports_fspot_db_fspot_photos_v11_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR);
+#line 1769 "FSpotPhotosTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotosV11Behavior* data_imports_fspot_db_fspot_photos_v11_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotosV11Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotosV11Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV11Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV11Behavior* _tmp3_ = NULL;
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photos_v11_behavior_instance;
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp0_ == NULL) {
+#line 1782 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotosV11Behavior* _tmp1_ = NULL;
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photos_v11_behavior_new ();
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photos_v11_behavior_instance);
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v11_behavior_instance = _tmp1_;
+#line 1790 "FSpotPhotosTable.c"
+ }
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photos_v11_behavior_instance;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp3_;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 1800 "FSpotPhotosTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photos_v11_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotosV11Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV11Behavior);
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME);
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp0_;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 1816 "FSpotPhotosTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photos_v11_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotosV11Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gchar** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+#line 201 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV11Behavior);
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup ("id");
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = g_strdup ("time");
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = g_strdup ("uri");
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = g_strdup ("description");
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = g_strdup ("roll_id");
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = g_strdup ("default_version_id");
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = g_strdup ("rating");
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = g_new0 (gchar*, 7 + 1);
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[0] = _tmp0_;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[1] = _tmp1_;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[2] = _tmp2_;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[3] = _tmp3_;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[4] = _tmp4_;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[5] = _tmp5_;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_[6] = _tmp6_;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = _tmp7_;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8__length1 = 7;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (result_length1) {
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *result_length1 = _tmp8__length1;
+#line 1873 "FSpotPhotosTable.c"
+ }
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp8_;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 1879 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v11_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotosV11Behavior * self;
+ DataImportsFSpotDbFSpotPhotoRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ gchar* full_path = NULL;
+ sqlite3_stmt* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp22_ = NULL;
+ sqlite3_stmt* _tmp23_ = NULL;
+ gint _tmp24_ = 0;
+ const gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp27_ = NULL;
+ sqlite3_stmt* _tmp28_ = NULL;
+ gint _tmp29_ = 0;
+ gint64 _tmp30_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp31_ = NULL;
+ sqlite3_stmt* _tmp32_ = NULL;
+ gint _tmp33_ = 0;
+ gint64 _tmp34_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp35_ = NULL;
+ sqlite3_stmt* _tmp36_ = NULL;
+ gint _tmp37_ = 0;
+ gint _tmp38_ = 0;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp39_ = NULL;
+ gchar* _tmp40_ = NULL;
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV11Behavior);
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_row_new ();
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _vala_row = _tmp0_;
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = _vala_row;
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = stmt;
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = offset;
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = _vala_row;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = stmt;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = offset;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_->time = (time_t) _tmp8_;
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_ = stmt;
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp10_ = offset;
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp11_ = sqlite3_column_text (_tmp9_, _tmp10_ + 2);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp12_ = g_strdup (_tmp11_);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ full_path = _tmp12_;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp13_ = full_path;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp13_ != NULL) {
+#line 1964 "FSpotPhotosTable.c"
+ GFile* uri = NULL;
+ const gchar* _tmp14_ = NULL;
+ GFile* _tmp15_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp16_ = NULL;
+ GFile* _tmp17_ = NULL;
+ GFile* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp19_ = NULL;
+ GFile* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp14_ = full_path;
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp15_ = g_file_new_for_uri (_tmp14_);
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ uri = _tmp15_;
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp16_ = _vala_row;
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = uri;
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp18_ = g_file_get_parent (_tmp17_);
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_tmp16_->base_path);
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp16_->base_path = _tmp18_;
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp19_ = _vala_row;
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_ = uri;
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp21_ = g_file_get_basename (_tmp20_);
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp19_->filename);
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp19_->filename = _tmp21_;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (uri);
+#line 2002 "FSpotPhotosTable.c"
+ }
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp22_ = _vala_row;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_ = stmt;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp24_ = offset;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp25_ = sqlite3_column_text (_tmp23_, _tmp24_ + 3);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_ = g_strdup (_tmp25_);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp22_->description);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp22_->description = _tmp26_;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp27_ = _vala_row;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp28_ = stmt;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp29_ = offset;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp30_ = sqlite3_column_int64 (_tmp28_, _tmp29_ + 4);
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp27_->roll_id = _tmp30_;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_ = _vala_row;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp32_ = stmt;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp33_ = offset;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp34_ = sqlite3_column_int64 (_tmp32_, _tmp33_ + 5);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_->default_version_id = _tmp34_;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_ = _vala_row;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp36_ = stmt;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp37_ = offset;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp38_ = sqlite3_column_int (_tmp36_, _tmp37_ + 6);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_->rating = _tmp38_;
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp39_ = _vala_row;
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp40_ = g_strdup ("");
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp39_->md5_sum);
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp39_->md5_sum = _tmp40_;
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (full_path);
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (row) {
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *row = _vala_row;
+#line 2062 "FSpotPhotosTable.c"
+ } else {
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 2066 "FSpotPhotosTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v11_behavior_class_init (DataImportsFSpotDbFSpotPhotosV11BehaviorClass * klass) {
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v11_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photos_v11_behavior_finalize;
+#line 2076 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v11_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v11_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photos_v11_behavior_real_get_table_name;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photos_v11_behavior_real_list_columns;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photos_v11_behavior_real_build_row;
+#line 2089 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v11_behavior_instance_init (DataImportsFSpotDbFSpotPhotosV11Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v11_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotosV11Behavior * self;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V11_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV11Behavior);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photos_v11_behavior_parent_class)->finalize (obj);
+#line 2103 "FSpotPhotosTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photos_v11_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photos_v11_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photos_v11_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotosV11BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photos_v11_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotosV11Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photos_v11_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photos_v11_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photos_v11_behavior_type_id;
+ data_imports_fspot_db_fspot_photos_v11_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotosV11Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photos_v11_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photos_v11_behavior_type_id__volatile, data_imports_fspot_db_fspot_photos_v11_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photos_v11_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV16Behavior* data_imports_fspot_db_fspot_photos_v16_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotosV16Behavior * self = NULL;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotosV16Behavior*) g_object_new (object_type, NULL);
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return self;
+#line 2127 "FSpotPhotosTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV16Behavior* data_imports_fspot_db_fspot_photos_v16_behavior_new (void) {
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return data_imports_fspot_db_fspot_photos_v16_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR);
+#line 2134 "FSpotPhotosTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotosV16Behavior* data_imports_fspot_db_fspot_photos_v16_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotosV16Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotosV16Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV16Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV16Behavior* _tmp3_ = NULL;
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photos_v16_behavior_instance;
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp0_ == NULL) {
+#line 2147 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotosV16Behavior* _tmp1_ = NULL;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photos_v16_behavior_new ();
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photos_v16_behavior_instance);
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v16_behavior_instance = _tmp1_;
+#line 2155 "FSpotPhotosTable.c"
+ }
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photos_v16_behavior_instance;
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp3_;
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 2165 "FSpotPhotosTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photos_v16_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotosV16Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV16Behavior);
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME);
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp0_;
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 2181 "FSpotPhotosTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photos_v16_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotosV16Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar** _tmp8_ = NULL;
+ gchar** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV16Behavior);
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup ("id");
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = g_strdup ("time");
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = g_strdup ("uri");
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = g_strdup ("description");
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = g_strdup ("roll_id");
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = g_strdup ("default_version_id");
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = g_strdup ("rating");
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = g_strdup ("md5_sum");
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = g_new0 (gchar*, 8 + 1);
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[0] = _tmp0_;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[1] = _tmp1_;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[2] = _tmp2_;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[3] = _tmp3_;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[4] = _tmp4_;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[5] = _tmp5_;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[6] = _tmp6_;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[7] = _tmp7_;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_ = _tmp8_;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9__length1 = 8;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (result_length1) {
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *result_length1 = _tmp9__length1;
+#line 2243 "FSpotPhotosTable.c"
+ }
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp9_;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 2249 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v16_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotosV16Behavior * self;
+ DataImportsFSpotDbFSpotPhotoRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ gchar* full_path = NULL;
+ sqlite3_stmt* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp22_ = NULL;
+ sqlite3_stmt* _tmp23_ = NULL;
+ gint _tmp24_ = 0;
+ const gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp27_ = NULL;
+ sqlite3_stmt* _tmp28_ = NULL;
+ gint _tmp29_ = 0;
+ gint64 _tmp30_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp31_ = NULL;
+ sqlite3_stmt* _tmp32_ = NULL;
+ gint _tmp33_ = 0;
+ gint64 _tmp34_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp35_ = NULL;
+ sqlite3_stmt* _tmp36_ = NULL;
+ gint _tmp37_ = 0;
+ gint _tmp38_ = 0;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp39_ = NULL;
+ sqlite3_stmt* _tmp40_ = NULL;
+ gint _tmp41_ = 0;
+ const gchar* _tmp42_ = NULL;
+ gchar* _tmp43_ = NULL;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV16Behavior);
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_row_new ();
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _vala_row = _tmp0_;
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = _vala_row;
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = stmt;
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = offset;
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = _vala_row;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = stmt;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = offset;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_->time = (time_t) _tmp8_;
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_ = stmt;
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp10_ = offset;
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp11_ = sqlite3_column_text (_tmp9_, _tmp10_ + 2);
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp12_ = g_strdup (_tmp11_);
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ full_path = _tmp12_;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp13_ = full_path;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp13_ != NULL) {
+#line 2337 "FSpotPhotosTable.c"
+ GFile* uri = NULL;
+ const gchar* _tmp14_ = NULL;
+ GFile* _tmp15_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp16_ = NULL;
+ GFile* _tmp17_ = NULL;
+ GFile* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp19_ = NULL;
+ GFile* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp14_ = full_path;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp15_ = g_file_new_for_uri (_tmp14_);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ uri = _tmp15_;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp16_ = _vala_row;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = uri;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp18_ = g_file_get_parent (_tmp17_);
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_tmp16_->base_path);
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp16_->base_path = _tmp18_;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp19_ = _vala_row;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_ = uri;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp21_ = g_file_get_basename (_tmp20_);
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp19_->filename);
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp19_->filename = _tmp21_;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (uri);
+#line 2375 "FSpotPhotosTable.c"
+ }
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp22_ = _vala_row;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_ = stmt;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp24_ = offset;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp25_ = sqlite3_column_text (_tmp23_, _tmp24_ + 3);
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_ = g_strdup (_tmp25_);
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp22_->description);
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp22_->description = _tmp26_;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp27_ = _vala_row;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp28_ = stmt;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp29_ = offset;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp30_ = sqlite3_column_int64 (_tmp28_, _tmp29_ + 4);
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp27_->roll_id = _tmp30_;
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_ = _vala_row;
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp32_ = stmt;
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp33_ = offset;
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp34_ = sqlite3_column_int64 (_tmp32_, _tmp33_ + 5);
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_->default_version_id = _tmp34_;
+#line 264 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_ = _vala_row;
+#line 264 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp36_ = stmt;
+#line 264 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp37_ = offset;
+#line 264 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp38_ = sqlite3_column_int (_tmp36_, _tmp37_ + 6);
+#line 264 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_->rating = _tmp38_;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp39_ = _vala_row;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp40_ = stmt;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp41_ = offset;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp42_ = sqlite3_column_text (_tmp40_, _tmp41_ + 7);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp43_ = g_strdup (_tmp42_);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp39_->md5_sum);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp39_->md5_sum = _tmp43_;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (full_path);
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (row) {
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *row = _vala_row;
+#line 2441 "FSpotPhotosTable.c"
+ } else {
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 2445 "FSpotPhotosTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v16_behavior_class_init (DataImportsFSpotDbFSpotPhotosV16BehaviorClass * klass) {
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v16_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photos_v16_behavior_finalize;
+#line 2455 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v16_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v16_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photos_v16_behavior_real_get_table_name;
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photos_v16_behavior_real_list_columns;
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photos_v16_behavior_real_build_row;
+#line 2468 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v16_behavior_instance_init (DataImportsFSpotDbFSpotPhotosV16Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v16_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotosV16Behavior * self;
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V16_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV16Behavior);
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photos_v16_behavior_parent_class)->finalize (obj);
+#line 2482 "FSpotPhotosTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photos_v16_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photos_v16_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photos_v16_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotosV16BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photos_v16_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotosV16Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photos_v16_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photos_v16_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photos_v16_behavior_type_id;
+ data_imports_fspot_db_fspot_photos_v16_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotosV16Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photos_v16_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photos_v16_behavior_type_id__volatile, data_imports_fspot_db_fspot_photos_v16_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photos_v16_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV17Behavior* data_imports_fspot_db_fspot_photos_v17_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotosV17Behavior * self = NULL;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotosV17Behavior*) g_object_new (object_type, NULL);
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return self;
+#line 2506 "FSpotPhotosTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV17Behavior* data_imports_fspot_db_fspot_photos_v17_behavior_new (void) {
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return data_imports_fspot_db_fspot_photos_v17_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR);
+#line 2513 "FSpotPhotosTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotosV17Behavior* data_imports_fspot_db_fspot_photos_v17_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotosV17Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotosV17Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV17Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV17Behavior* _tmp3_ = NULL;
+#line 279 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photos_v17_behavior_instance;
+#line 279 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp0_ == NULL) {
+#line 2526 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotosV17Behavior* _tmp1_ = NULL;
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photos_v17_behavior_new ();
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photos_v17_behavior_instance);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v17_behavior_instance = _tmp1_;
+#line 2534 "FSpotPhotosTable.c"
+ }
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photos_v17_behavior_instance;
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp3_;
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 2544 "FSpotPhotosTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photos_v17_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotosV17Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV17Behavior);
+#line 285 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME);
+#line 285 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp0_;
+#line 285 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 2560 "FSpotPhotosTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photos_v17_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotosV17Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar** _tmp9_ = NULL;
+ gchar** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV17Behavior);
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup ("id");
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = g_strdup ("time");
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = g_strdup ("base_uri");
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = g_strdup ("filename");
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = g_strdup ("description");
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = g_strdup ("roll_id");
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = g_strdup ("default_version_id");
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = g_strdup ("rating");
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = g_strdup ("md5_sum");
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_ = g_new0 (gchar*, 9 + 1);
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_[0] = _tmp0_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_[1] = _tmp1_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_[2] = _tmp2_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_[3] = _tmp3_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_[4] = _tmp4_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_[5] = _tmp5_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_[6] = _tmp6_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_[7] = _tmp7_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_[8] = _tmp8_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp10_ = _tmp9_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp10__length1 = 9;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (result_length1) {
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *result_length1 = _tmp10__length1;
+#line 2627 "FSpotPhotosTable.c"
+ }
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp10_;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 2633 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v17_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotosV17Behavior * self;
+ DataImportsFSpotDbFSpotPhotoRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ gchar* base_path = NULL;
+ sqlite3_stmt* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* filename = NULL;
+ sqlite3_stmt* _tmp13_ = NULL;
+ gint _tmp14_ = 0;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gboolean _tmp17_ = FALSE;
+ const gchar* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp26_ = NULL;
+ sqlite3_stmt* _tmp27_ = NULL;
+ gint _tmp28_ = 0;
+ const gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp31_ = NULL;
+ sqlite3_stmt* _tmp32_ = NULL;
+ gint _tmp33_ = 0;
+ gint64 _tmp34_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp35_ = NULL;
+ sqlite3_stmt* _tmp36_ = NULL;
+ gint _tmp37_ = 0;
+ gint64 _tmp38_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp39_ = NULL;
+ sqlite3_stmt* _tmp40_ = NULL;
+ gint _tmp41_ = 0;
+ gint _tmp42_ = 0;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp43_ = NULL;
+ sqlite3_stmt* _tmp44_ = NULL;
+ gint _tmp45_ = 0;
+ const gchar* _tmp46_ = NULL;
+ gchar* _tmp47_ = NULL;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV17Behavior);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_row_new ();
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _vala_row = _tmp0_;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = _vala_row;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = stmt;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = offset;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = _vala_row;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = stmt;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = offset;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_->time = (time_t) _tmp8_;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_ = stmt;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp10_ = offset;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp11_ = sqlite3_column_text (_tmp9_, _tmp10_ + 2);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp12_ = g_strdup (_tmp11_);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ base_path = _tmp12_;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp13_ = stmt;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp14_ = offset;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp15_ = sqlite3_column_text (_tmp13_, _tmp14_ + 3);
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp16_ = g_strdup (_tmp15_);
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ filename = _tmp16_;
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp18_ = base_path;
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp18_ != NULL) {
+#line 2737 "FSpotPhotosTable.c"
+ const gchar* _tmp19_ = NULL;
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp19_ = filename;
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = _tmp19_ != NULL;
+#line 2743 "FSpotPhotosTable.c"
+ } else {
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = FALSE;
+#line 2747 "FSpotPhotosTable.c"
+ }
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp17_) {
+#line 2751 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotoRow* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ GFile* _tmp22_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_ = _vala_row;
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp21_ = base_path;
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp22_ = g_file_new_for_uri (_tmp21_);
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_tmp20_->base_path);
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_->base_path = _tmp22_;
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_ = _vala_row;
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp24_ = filename;
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp25_ = g_strdup (_tmp24_);
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp23_->filename);
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_->filename = _tmp25_;
+#line 2778 "FSpotPhotosTable.c"
+ }
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_ = _vala_row;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp27_ = stmt;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp28_ = offset;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp29_ = sqlite3_column_text (_tmp27_, _tmp28_ + 4);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp30_ = g_strdup (_tmp29_);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp26_->description);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_->description = _tmp30_;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_ = _vala_row;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp32_ = stmt;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp33_ = offset;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp34_ = sqlite3_column_int64 (_tmp32_, _tmp33_ + 5);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_->roll_id = _tmp34_;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_ = _vala_row;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp36_ = stmt;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp37_ = offset;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp38_ = sqlite3_column_int64 (_tmp36_, _tmp37_ + 6);
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_->default_version_id = _tmp38_;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp39_ = _vala_row;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp40_ = stmt;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp41_ = offset;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp42_ = sqlite3_column_int (_tmp40_, _tmp41_ + 7);
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp39_->rating = _tmp42_;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp43_ = _vala_row;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp44_ = stmt;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp45_ = offset;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp46_ = sqlite3_column_text (_tmp44_, _tmp45_ + 8);
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp47_ = g_strdup (_tmp46_);
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp43_->md5_sum);
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp43_->md5_sum = _tmp47_;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (filename);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (base_path);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (row) {
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *row = _vala_row;
+#line 2846 "FSpotPhotosTable.c"
+ } else {
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 2850 "FSpotPhotosTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v17_behavior_class_init (DataImportsFSpotDbFSpotPhotosV17BehaviorClass * klass) {
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v17_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photos_v17_behavior_finalize;
+#line 2860 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v17_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v17_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photos_v17_behavior_real_get_table_name;
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photos_v17_behavior_real_list_columns;
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photos_v17_behavior_real_build_row;
+#line 2873 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v17_behavior_instance_init (DataImportsFSpotDbFSpotPhotosV17Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v17_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotosV17Behavior * self;
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V17_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV17Behavior);
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photos_v17_behavior_parent_class)->finalize (obj);
+#line 2887 "FSpotPhotosTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photos_v17_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photos_v17_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photos_v17_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotosV17BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photos_v17_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotosV17Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photos_v17_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photos_v17_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photos_v17_behavior_type_id;
+ data_imports_fspot_db_fspot_photos_v17_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotosV17Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photos_v17_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photos_v17_behavior_type_id__volatile, data_imports_fspot_db_fspot_photos_v17_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photos_v17_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV18Behavior* data_imports_fspot_db_fspot_photos_v18_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotPhotosV18Behavior * self = NULL;
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = (DataImportsFSpotDbFSpotPhotosV18Behavior*) g_object_new (object_type, NULL);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return self;
+#line 2911 "FSpotPhotosTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotPhotosV18Behavior* data_imports_fspot_db_fspot_photos_v18_behavior_new (void) {
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return data_imports_fspot_db_fspot_photos_v18_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR);
+#line 2918 "FSpotPhotosTable.c"
+}
+
+
+DataImportsFSpotDbFSpotPhotosV18Behavior* data_imports_fspot_db_fspot_photos_v18_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotPhotosV18Behavior* result = NULL;
+ DataImportsFSpotDbFSpotPhotosV18Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV18Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotPhotosV18Behavior* _tmp3_ = NULL;
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photos_v18_behavior_instance;
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp0_ == NULL) {
+#line 2931 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotosV18Behavior* _tmp1_ = NULL;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_photos_v18_behavior_new ();
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_photos_v18_behavior_instance);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v18_behavior_instance = _tmp1_;
+#line 2939 "FSpotPhotosTable.c"
+ }
+#line 323 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_photos_v18_behavior_instance;
+#line 323 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 323 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp3_;
+#line 323 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 2949 "FSpotPhotosTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_photos_v18_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotPhotosV18Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV18Behavior);
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_TABLE_NAME);
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp0_;
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 2965 "FSpotPhotosTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_photos_v18_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotPhotosV18Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar** _tmp8_ = NULL;
+ gchar** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV18Behavior);
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = g_strdup ("id");
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = g_strdup ("time");
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = g_strdup ("base_uri");
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = g_strdup ("filename");
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = g_strdup ("description");
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = g_strdup ("roll_id");
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = g_strdup ("default_version_id");
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = g_strdup ("rating");
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = g_new0 (gchar*, 8 + 1);
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[0] = _tmp0_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[1] = _tmp1_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[2] = _tmp2_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[3] = _tmp3_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[4] = _tmp4_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[5] = _tmp5_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[6] = _tmp6_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_[7] = _tmp7_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_ = _tmp8_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9__length1 = 8;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (result_length1) {
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *result_length1 = _tmp9__length1;
+#line 3027 "FSpotPhotosTable.c"
+ }
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ result = _tmp9_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ return result;
+#line 3033 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v18_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotPhotoRow** row, gint offset) {
+ DataImportsFSpotDbFSpotPhotosV18Behavior * self;
+ DataImportsFSpotDbFSpotPhotoRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint64 _tmp8_ = 0LL;
+ gchar* base_path = NULL;
+ sqlite3_stmt* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* filename = NULL;
+ sqlite3_stmt* _tmp13_ = NULL;
+ gint _tmp14_ = 0;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gboolean _tmp17_ = FALSE;
+ const gchar* _tmp18_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp26_ = NULL;
+ sqlite3_stmt* _tmp27_ = NULL;
+ gint _tmp28_ = 0;
+ const gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp31_ = NULL;
+ sqlite3_stmt* _tmp32_ = NULL;
+ gint _tmp33_ = 0;
+ gint64 _tmp34_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp35_ = NULL;
+ sqlite3_stmt* _tmp36_ = NULL;
+ gint _tmp37_ = 0;
+ gint64 _tmp38_ = 0LL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp39_ = NULL;
+ sqlite3_stmt* _tmp40_ = NULL;
+ gint _tmp41_ = 0;
+ gint _tmp42_ = 0;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp43_ = NULL;
+ gchar* _tmp44_ = NULL;
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV18Behavior);
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_photo_row_new ();
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _vala_row = _tmp0_;
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_ = _vala_row;
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp2_ = stmt;
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp3_ = offset;
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp1_->photo_id = _tmp4_;
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_ = _vala_row;
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp6_ = stmt;
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp7_ = offset;
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp8_ = sqlite3_column_int64 (_tmp6_, _tmp7_ + 1);
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp5_->time = (time_t) _tmp8_;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp9_ = stmt;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp10_ = offset;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp11_ = sqlite3_column_text (_tmp9_, _tmp10_ + 2);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp12_ = g_strdup (_tmp11_);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ base_path = _tmp12_;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp13_ = stmt;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp14_ = offset;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp15_ = sqlite3_column_text (_tmp13_, _tmp14_ + 3);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp16_ = g_strdup (_tmp15_);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ filename = _tmp16_;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp18_ = base_path;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp18_ != NULL) {
+#line 3134 "FSpotPhotosTable.c"
+ const gchar* _tmp19_ = NULL;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp19_ = filename;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = _tmp19_ != NULL;
+#line 3140 "FSpotPhotosTable.c"
+ } else {
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp17_ = FALSE;
+#line 3144 "FSpotPhotosTable.c"
+ }
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (_tmp17_) {
+#line 3148 "FSpotPhotosTable.c"
+ DataImportsFSpotDbFSpotPhotoRow* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ GFile* _tmp22_ = NULL;
+ DataImportsFSpotDbFSpotPhotoRow* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_ = _vala_row;
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp21_ = base_path;
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp22_ = g_file_new_for_uri (_tmp21_);
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_tmp20_->base_path);
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp20_->base_path = _tmp22_;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_ = _vala_row;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp24_ = filename;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp25_ = g_strdup (_tmp24_);
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp23_->filename);
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp23_->filename = _tmp25_;
+#line 3175 "FSpotPhotosTable.c"
+ }
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_ = _vala_row;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp27_ = stmt;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp28_ = offset;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp29_ = sqlite3_column_text (_tmp27_, _tmp28_ + 4);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp30_ = g_strdup (_tmp29_);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp26_->description);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp26_->description = _tmp30_;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_ = _vala_row;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp32_ = stmt;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp33_ = offset;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp34_ = sqlite3_column_int64 (_tmp32_, _tmp33_ + 5);
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp31_->roll_id = _tmp34_;
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_ = _vala_row;
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp36_ = stmt;
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp37_ = offset;
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp38_ = sqlite3_column_int64 (_tmp36_, _tmp37_ + 6);
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp35_->default_version_id = _tmp38_;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp39_ = _vala_row;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp40_ = stmt;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp41_ = offset;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp42_ = sqlite3_column_int (_tmp40_, _tmp41_ + 7);
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp39_->rating = _tmp42_;
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp43_ = _vala_row;
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp44_ = g_strdup ("");
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (_tmp43_->md5_sum);
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _tmp43_->md5_sum = _tmp44_;
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (filename);
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_free0 (base_path);
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ if (row) {
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ *row = _vala_row;
+#line 3237 "FSpotPhotosTable.c"
+ } else {
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 3241 "FSpotPhotosTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v18_behavior_class_init (DataImportsFSpotDbFSpotPhotosV18BehaviorClass * klass) {
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v18_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_photos_v18_behavior_finalize;
+#line 3251 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v18_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ data_imports_fspot_db_fspot_photos_v18_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_photos_v18_behavior_real_get_table_name;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_photos_v18_behavior_real_list_columns;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_photos_v18_behavior_real_build_row;
+#line 3264 "FSpotPhotosTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v18_behavior_instance_init (DataImportsFSpotDbFSpotPhotosV18Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_photos_v18_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotPhotosV18Behavior * self;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_V18_BEHAVIOR, DataImportsFSpotDbFSpotPhotosV18Behavior);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotPhotosTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_photos_v18_behavior_parent_class)->finalize (obj);
+#line 3278 "FSpotPhotosTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_photos_v18_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_photos_v18_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_photos_v18_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotPhotosV18BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_photos_v18_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotPhotosV18Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_photos_v18_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_photos_v18_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_photos_v18_behavior_type_id;
+ data_imports_fspot_db_fspot_photos_v18_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotPhotosV18Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_photos_v18_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_photos_v18_behavior_type_id__volatile, data_imports_fspot_db_fspot_photos_v18_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_photos_v18_behavior_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-data-imports/FSpotPhotosTable.vala b/plugins/shotwell-data-imports/FSpotPhotosTable.vala
index fdf4c00..39329d4 100644
--- a/plugins/shotwell-data-imports/FSpotPhotosTable.vala
+++ b/plugins/shotwell-data-imports/FSpotPhotosTable.vala
@@ -25,7 +25,7 @@ public class FSpotPhotoRow : Object {
* This class represents the F-Spot photos table.
*/
public class FSpotPhotosTable : FSpotDatabaseTable<FSpotPhotoRow> {
- public static const string TABLE_NAME = "Photos";
+ public const string TABLE_NAME = "Photos";
public FSpotPhotosTable(Sqlite.Database db, FSpotDatabaseBehavior db_behavior) {
base(db);
diff --git a/plugins/shotwell-data-imports/FSpotRollsTable.c b/plugins/shotwell-data-imports/FSpotRollsTable.c
new file mode 100644
index 0000000..2814b00
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotRollsTable.c
@@ -0,0 +1,995 @@
+/* FSpotRollsTable.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotRollsTable.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 <time.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sqlite3.h>
+
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW (data_imports_fspot_db_fspot_roll_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLL_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLL_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotRollRow DataImportsFSpotDbFSpotRollRow;
+typedef struct _DataImportsFSpotDbFSpotRollRowClass DataImportsFSpotDbFSpotRollRowClass;
+typedef struct _DataImportsFSpotDbFSpotRollRowPrivate DataImportsFSpotDbFSpotRollRowPrivate;
+
+#define TYPE_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
+#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
+#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+
+typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
+typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;
+typedef struct _ImportableDatabaseTablePrivate ImportableDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE (data_imports_fspot_db_fspot_database_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseTable DataImportsFSpotDbFSpotDatabaseTable;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTableClass DataImportsFSpotDbFSpotDatabaseTableClass;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTablePrivate DataImportsFSpotDbFSpotDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR (data_imports_fspot_db_fspot_table_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehaviorIface))
+
+typedef struct _DataImportsFSpotDbFSpotTableBehavior DataImportsFSpotDbFSpotTableBehavior;
+typedef struct _DataImportsFSpotDbFSpotTableBehaviorIface DataImportsFSpotDbFSpotTableBehaviorIface;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE (data_imports_fspot_db_fspot_rolls_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotRollsTable DataImportsFSpotDbFSpotRollsTable;
+typedef struct _DataImportsFSpotDbFSpotRollsTableClass DataImportsFSpotDbFSpotRollsTableClass;
+typedef struct _DataImportsFSpotDbFSpotRollsTablePrivate DataImportsFSpotDbFSpotRollsTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR (data_imports_fspot_db_fspot_database_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehavior DataImportsFSpotDbFSpotDatabaseBehavior;
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehaviorClass DataImportsFSpotDbFSpotDatabaseBehaviorClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR (data_imports_fspot_db_fspot_rolls_v0_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR, DataImportsFSpotDbFSpotRollsV0Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR, DataImportsFSpotDbFSpotRollsV0BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V0_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR, DataImportsFSpotDbFSpotRollsV0BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotRollsV0Behavior DataImportsFSpotDbFSpotRollsV0Behavior;
+typedef struct _DataImportsFSpotDbFSpotRollsV0BehaviorClass DataImportsFSpotDbFSpotRollsV0BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotRollsV0BehaviorPrivate DataImportsFSpotDbFSpotRollsV0BehaviorPrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR (data_imports_fspot_db_fspot_rolls_v5_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V5_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR, DataImportsFSpotDbFSpotRollsV5Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V5_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR, DataImportsFSpotDbFSpotRollsV5BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_V5_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_V5_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V5_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR, DataImportsFSpotDbFSpotRollsV5BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotRollsV5Behavior DataImportsFSpotDbFSpotRollsV5Behavior;
+typedef struct _DataImportsFSpotDbFSpotRollsV5BehaviorClass DataImportsFSpotDbFSpotRollsV5BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotRollsV5BehaviorPrivate DataImportsFSpotDbFSpotRollsV5BehaviorPrivate;
+
+struct _DataImportsFSpotDbFSpotRollRow {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotRollRowPrivate * priv;
+ gint64 id;
+ time_t time;
+};
+
+struct _DataImportsFSpotDbFSpotRollRowClass {
+ GObjectClass parent_class;
+};
+
+struct _ImportableDatabaseTable {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ ImportableDatabaseTablePrivate * priv;
+ gchar* table_name;
+};
+
+struct _ImportableDatabaseTableClass {
+ GTypeClass parent_class;
+ void (*finalize) (ImportableDatabaseTable *self);
+};
+
+struct _DataImportsFSpotDbFSpotTableBehaviorIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_table_name) (DataImportsFSpotDbFSpotTableBehavior* self);
+ gchar** (*list_columns) (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+ void (*build_row) (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTable {
+ ImportableDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotDatabaseTablePrivate * priv;
+ sqlite3* fspot_db;
+ DataImportsFSpotDbFSpotTableBehavior* behavior;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTableClass {
+ ImportableDatabaseTableClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotRollsTable {
+ DataImportsFSpotDbFSpotDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotRollsTablePrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotRollsTableClass {
+ DataImportsFSpotDbFSpotDatabaseTableClass parent_class;
+};
+
+typedef enum {
+ DATABASE_ERROR_ERROR,
+ DATABASE_ERROR_BACKING,
+ DATABASE_ERROR_MEMORY,
+ DATABASE_ERROR_ABORT,
+ DATABASE_ERROR_LIMITS,
+ DATABASE_ERROR_TYPESPEC
+} DatabaseError;
+#define DATABASE_ERROR database_error_quark ()
+struct _DataImportsFSpotDbFSpotRollsV0Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotRollsV0BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotRollsV0BehaviorClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotRollsV5Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotRollsV5BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotRollsV5BehaviorClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer data_imports_fspot_db_fspot_roll_row_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_rolls_table_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_rolls_v0_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotRollsV0Behavior* data_imports_fspot_db_fspot_rolls_v0_behavior_instance;
+static DataImportsFSpotDbFSpotRollsV0Behavior* data_imports_fspot_db_fspot_rolls_v0_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_rolls_v0_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+static gpointer data_imports_fspot_db_fspot_rolls_v5_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotRollsV5Behavior* data_imports_fspot_db_fspot_rolls_v5_behavior_instance;
+static DataImportsFSpotDbFSpotRollsV5Behavior* data_imports_fspot_db_fspot_rolls_v5_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_rolls_v5_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+
+GType data_imports_fspot_db_fspot_roll_row_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW_DUMMY_PROPERTY
+};
+DataImportsFSpotDbFSpotRollRow* data_imports_fspot_db_fspot_roll_row_new (void);
+DataImportsFSpotDbFSpotRollRow* data_imports_fspot_db_fspot_roll_row_construct (GType object_type);
+static void data_imports_fspot_db_fspot_roll_row_finalize (GObject* obj);
+gpointer importable_database_table_ref (gpointer instance);
+void importable_database_table_unref (gpointer instance);
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_importable_database_table (GValue* value, gpointer v_object);
+void value_take_importable_database_table (GValue* value, gpointer v_object);
+gpointer value_get_importable_database_table (const GValue* value);
+GType importable_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_table_behavior_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_rolls_table_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_DUMMY_PROPERTY
+};
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_TABLE_NAME "Rolls"
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_TABLE_NAME_PRE_V5 "Imports"
+GType data_imports_fspot_db_fspot_database_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotRollsTable* data_imports_fspot_db_fspot_rolls_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotRollsTable* data_imports_fspot_db_fspot_rolls_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotDatabaseTable* data_imports_fspot_db_fspot_database_table_construct (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, sqlite3* db);
+void data_imports_fspot_db_fspot_database_table_set_behavior (DataImportsFSpotDbFSpotDatabaseTable* self, DataImportsFSpotDbFSpotTableBehavior* behavior);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_rolls_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+GQuark database_error_quark (void);
+DataImportsFSpotDbFSpotRollRow* data_imports_fspot_db_fspot_rolls_table_get_by_id (DataImportsFSpotDbFSpotRollsTable* self, gint64 roll_id, GError** error);
+gchar* data_imports_fspot_db_fspot_database_table_get_joined_column_list (DataImportsFSpotDbFSpotDatabaseTable* self, gboolean with_table);
+void importable_database_table_throw_error (const gchar* method, gint res, GError** error);
+void data_imports_fspot_db_fspot_table_behavior_build_row (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+GType data_imports_fspot_db_fspot_rolls_v0_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V0_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotRollsV0Behavior* data_imports_fspot_db_fspot_rolls_v0_behavior_new (void);
+static DataImportsFSpotDbFSpotRollsV0Behavior* data_imports_fspot_db_fspot_rolls_v0_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotRollsV0Behavior* data_imports_fspot_db_fspot_rolls_v0_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_rolls_v0_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_rolls_v0_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_rolls_v0_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotRollRow** row, gint offset);
+static void data_imports_fspot_db_fspot_rolls_v0_behavior_finalize (GObject* obj);
+GType data_imports_fspot_db_fspot_rolls_v5_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_V5_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotRollsV5Behavior* data_imports_fspot_db_fspot_rolls_v5_behavior_new (void);
+static DataImportsFSpotDbFSpotRollsV5Behavior* data_imports_fspot_db_fspot_rolls_v5_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotRollsV5Behavior* data_imports_fspot_db_fspot_rolls_v5_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_rolls_v5_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_rolls_v5_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_rolls_v5_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotRollRow** row, gint offset);
+static void data_imports_fspot_db_fspot_rolls_v5_behavior_finalize (GObject* obj);
+
+
+DataImportsFSpotDbFSpotRollRow* data_imports_fspot_db_fspot_roll_row_construct (GType object_type) {
+ DataImportsFSpotDbFSpotRollRow * self = NULL;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = (DataImportsFSpotDbFSpotRollRow*) g_object_new (object_type, NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return self;
+#line 258 "FSpotRollsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotRollRow* data_imports_fspot_db_fspot_roll_row_new (void) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return data_imports_fspot_db_fspot_roll_row_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW);
+#line 265 "FSpotRollsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_roll_row_class_init (DataImportsFSpotDbFSpotRollRowClass * klass) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ data_imports_fspot_db_fspot_roll_row_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_roll_row_finalize;
+#line 274 "FSpotRollsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_roll_row_instance_init (DataImportsFSpotDbFSpotRollRow * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_roll_row_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotRollRow * self;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRow);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_roll_row_parent_class)->finalize (obj);
+#line 288 "FSpotRollsTable.c"
+}
+
+
+/**
+ * The value object for the "rolls" table, representing a single database row.
+ */
+GType data_imports_fspot_db_fspot_roll_row_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_roll_row_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_roll_row_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotRollRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_roll_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotRollRow), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_roll_row_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_roll_row_type_id;
+ data_imports_fspot_db_fspot_roll_row_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotRollRow", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_roll_row_type_id__volatile, data_imports_fspot_db_fspot_roll_row_type_id);
+ }
+ return data_imports_fspot_db_fspot_roll_row_type_id__volatile;
+}
+
+
+DataImportsFSpotDbFSpotRollsTable* data_imports_fspot_db_fspot_rolls_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior) {
+ DataImportsFSpotDbFSpotRollsTable* self = NULL;
+ sqlite3* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp1_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp3_ = NULL;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ g_return_val_if_fail (db != NULL, NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR (db_behavior), NULL);
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp0_ = db;
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = (DataImportsFSpotDbFSpotRollsTable*) data_imports_fspot_db_fspot_database_table_construct (object_type, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp0_);
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp1_ = db_behavior;
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_database_behavior_get_rolls_behavior (_tmp1_);
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp3_ = _tmp2_;
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ data_imports_fspot_db_fspot_database_table_set_behavior (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), _tmp3_);
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (_tmp3_);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return self;
+#line 333 "FSpotRollsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotRollsTable* data_imports_fspot_db_fspot_rolls_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior) {
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return data_imports_fspot_db_fspot_rolls_table_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, db, db_behavior);
+#line 340 "FSpotRollsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotRollRow* data_imports_fspot_db_fspot_rolls_table_get_by_id (DataImportsFSpotDbFSpotRollsTable* self, gint64 roll_id, GError** error) {
+ DataImportsFSpotDbFSpotRollRow* result = NULL;
+ sqlite3_stmt* stmt = NULL;
+ DataImportsFSpotDbFSpotRollRow* row = NULL;
+ gchar* column_list = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* sql = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gint res = 0;
+ sqlite3* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+ sqlite3_stmt* _tmp13_ = NULL;
+ gint64 _tmp14_ = 0LL;
+ gint _tmp15_ = 0;
+ gint _tmp16_ = 0;
+ sqlite3_stmt* _tmp18_ = NULL;
+ gint _tmp19_ = 0;
+ gint _tmp20_ = 0;
+ GError * _inner_error_ = NULL;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_TABLE (self), NULL);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ row = NULL;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_database_table_get_joined_column_list (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), FALSE);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ column_list = _tmp0_;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp1_ = column_list;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable)->table_name;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp3_ = g_strdup_printf ("SELECT %s FROM %s WHERE id=?", _tmp1_, _tmp2_);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ sql = _tmp3_;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->fspot_db;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp5_ = sql;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp7_ = sqlite3_prepare_v2 (_tmp4_, _tmp5_, -1, &_tmp6_, NULL);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ stmt = _tmp6_;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ res = _tmp7_;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp8_ = res;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (_tmp8_ != SQLITE_OK) {
+#line 400 "FSpotRollsTable.c"
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gint _tmp12_ = 0;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp9_ = sql;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp10_ = g_strdup_printf ("Statement failed: %s", _tmp9_);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp11_ = _tmp10_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp12_ = res;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ importable_database_table_throw_error (_tmp11_, _tmp12_, &_inner_error_);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (_tmp11_);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (sql);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (column_list);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (row);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return NULL;
+#line 433 "FSpotRollsTable.c"
+ } else {
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (sql);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (column_list);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (row);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.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 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ g_clear_error (&_inner_error_);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return NULL;
+#line 449 "FSpotRollsTable.c"
+ }
+ }
+ }
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp13_ = stmt;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp14_ = roll_id;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp15_ = sqlite3_bind_int64 (_tmp13_, 1, _tmp14_);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ res = _tmp15_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp16_ = res;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (_tmp16_ != SQLITE_OK) {
+#line 465 "FSpotRollsTable.c"
+ gint _tmp17_ = 0;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp17_ = res;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ importable_database_table_throw_error ("Bind failed for roll_id", _tmp17_, &_inner_error_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (sql);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (column_list);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (row);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return NULL;
+#line 487 "FSpotRollsTable.c"
+ } else {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (sql);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (column_list);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (row);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.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 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ g_clear_error (&_inner_error_);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return NULL;
+#line 503 "FSpotRollsTable.c"
+ }
+ }
+ }
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp18_ = stmt;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp19_ = sqlite3_step (_tmp18_);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ res = _tmp19_;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp20_ = res;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (_tmp20_ == SQLITE_ROW) {
+#line 517 "FSpotRollsTable.c"
+ DataImportsFSpotDbFSpotTableBehavior* _tmp21_ = NULL;
+ sqlite3_stmt* _tmp22_ = NULL;
+ gpointer _tmp23_ = NULL;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp21_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->behavior;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp22_ = stmt;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ data_imports_fspot_db_fspot_table_behavior_build_row (_tmp21_, _tmp22_, &_tmp23_, 0);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (row);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ row = _tmp23_;
+#line 531 "FSpotRollsTable.c"
+ } else {
+ gint _tmp24_ = 0;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp24_ = res;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (_tmp24_ == SQLITE_DONE) {
+#line 538 "FSpotRollsTable.c"
+ gint64 _tmp25_ = 0LL;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp25_ = roll_id;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ g_message ("FSpotRollsTable.vala:47: Could not find roll row with ID %d", (gint) _tmp25_);
+#line 544 "FSpotRollsTable.c"
+ }
+ }
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ result = row;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (sql);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_free0 (column_list);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return result;
+#line 557 "FSpotRollsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_table_class_init (DataImportsFSpotDbFSpotRollsTableClass * klass) {
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ data_imports_fspot_db_fspot_rolls_table_parent_class = g_type_class_peek_parent (klass);
+#line 564 "FSpotRollsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_table_instance_init (DataImportsFSpotDbFSpotRollsTable * self) {
+}
+
+
+/**
+ * This class represents the F-Spot rolls table.
+ */
+GType data_imports_fspot_db_fspot_rolls_table_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_rolls_table_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_rolls_table_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotRollsTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_rolls_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotRollsTable), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_rolls_table_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_rolls_table_type_id;
+ data_imports_fspot_db_fspot_rolls_table_type_id = g_type_register_static (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, "DataImportsFSpotDbFSpotRollsTable", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_rolls_table_type_id__volatile, data_imports_fspot_db_fspot_rolls_table_type_id);
+ }
+ return data_imports_fspot_db_fspot_rolls_table_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotRollsV0Behavior* data_imports_fspot_db_fspot_rolls_v0_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotRollsV0Behavior * self = NULL;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = (DataImportsFSpotDbFSpotRollsV0Behavior*) g_object_new (object_type, NULL);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return self;
+#line 593 "FSpotRollsTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotRollsV0Behavior* data_imports_fspot_db_fspot_rolls_v0_behavior_new (void) {
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return data_imports_fspot_db_fspot_rolls_v0_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR);
+#line 600 "FSpotRollsTable.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 607 "FSpotRollsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotRollsV0Behavior* data_imports_fspot_db_fspot_rolls_v0_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotRollsV0Behavior* result = NULL;
+ DataImportsFSpotDbFSpotRollsV0Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotRollsV0Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotRollsV0Behavior* _tmp3_ = NULL;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_rolls_v0_behavior_instance;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (_tmp0_ == NULL) {
+#line 620 "FSpotRollsTable.c"
+ DataImportsFSpotDbFSpotRollsV0Behavior* _tmp1_ = NULL;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_rolls_v0_behavior_new ();
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_rolls_v0_behavior_instance);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ data_imports_fspot_db_fspot_rolls_v0_behavior_instance = _tmp1_;
+#line 628 "FSpotRollsTable.c"
+ }
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_rolls_v0_behavior_instance;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ result = _tmp3_;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return result;
+#line 638 "FSpotRollsTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_rolls_v0_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotRollsV0Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR, DataImportsFSpotDbFSpotRollsV0Behavior);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_TABLE_NAME_PRE_V5);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ result = _tmp0_;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return result;
+#line 654 "FSpotRollsTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_rolls_v0_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotRollsV0Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar** _tmp2_ = NULL;
+ gchar** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR, DataImportsFSpotDbFSpotRollsV0Behavior);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp0_ = g_strdup ("id");
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp1_ = g_strdup ("time");
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_ = g_new0 (gchar*, 2 + 1);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_[0] = _tmp0_;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_[1] = _tmp1_;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp3_ = _tmp2_;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp3__length1 = 2;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (result_length1) {
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ *result_length1 = _tmp3__length1;
+#line 686 "FSpotRollsTable.c"
+ }
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ result = _tmp3_;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return result;
+#line 692 "FSpotRollsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_v0_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotRollRow** row, gint offset) {
+ DataImportsFSpotDbFSpotRollsV0Behavior * self;
+ DataImportsFSpotDbFSpotRollRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotRollRow* _tmp0_ = NULL;
+ sqlite3_stmt* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gint64 _tmp3_ = 0LL;
+ sqlite3_stmt* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint64 _tmp6_ = 0LL;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR, DataImportsFSpotDbFSpotRollsV0Behavior);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_roll_row_new ();
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _vala_row = _tmp0_;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp1_ = stmt;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_ = offset;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp3_ = sqlite3_column_int64 (_tmp1_, _tmp2_ + 0);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _vala_row->id = _tmp3_;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp4_ = stmt;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp5_ = offset;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp6_ = sqlite3_column_int64 (_tmp4_, _tmp5_ + 1);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _vala_row->time = (time_t) _tmp6_;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (row) {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ *row = _vala_row;
+#line 736 "FSpotRollsTable.c"
+ } else {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 740 "FSpotRollsTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_v0_behavior_class_init (DataImportsFSpotDbFSpotRollsV0BehaviorClass * klass) {
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ data_imports_fspot_db_fspot_rolls_v0_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_rolls_v0_behavior_finalize;
+#line 750 "FSpotRollsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_v0_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ data_imports_fspot_db_fspot_rolls_v0_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_rolls_v0_behavior_real_get_table_name;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_rolls_v0_behavior_real_list_columns;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_rolls_v0_behavior_real_build_row;
+#line 763 "FSpotRollsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_v0_behavior_instance_init (DataImportsFSpotDbFSpotRollsV0Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_v0_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotRollsV0Behavior * self;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V0_BEHAVIOR, DataImportsFSpotDbFSpotRollsV0Behavior);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_rolls_v0_behavior_parent_class)->finalize (obj);
+#line 777 "FSpotRollsTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_rolls_v0_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_rolls_v0_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_rolls_v0_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotRollsV0BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_rolls_v0_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotRollsV0Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_rolls_v0_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_rolls_v0_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_rolls_v0_behavior_type_id;
+ data_imports_fspot_db_fspot_rolls_v0_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotRollsV0Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_rolls_v0_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_rolls_v0_behavior_type_id__volatile, data_imports_fspot_db_fspot_rolls_v0_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_rolls_v0_behavior_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotRollsV5Behavior* data_imports_fspot_db_fspot_rolls_v5_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotRollsV5Behavior * self = NULL;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = (DataImportsFSpotDbFSpotRollsV5Behavior*) g_object_new (object_type, NULL);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return self;
+#line 801 "FSpotRollsTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotRollsV5Behavior* data_imports_fspot_db_fspot_rolls_v5_behavior_new (void) {
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return data_imports_fspot_db_fspot_rolls_v5_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR);
+#line 808 "FSpotRollsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotRollsV5Behavior* data_imports_fspot_db_fspot_rolls_v5_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotRollsV5Behavior* result = NULL;
+ DataImportsFSpotDbFSpotRollsV5Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotRollsV5Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotRollsV5Behavior* _tmp3_ = NULL;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_rolls_v5_behavior_instance;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (_tmp0_ == NULL) {
+#line 821 "FSpotRollsTable.c"
+ DataImportsFSpotDbFSpotRollsV5Behavior* _tmp1_ = NULL;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_rolls_v5_behavior_new ();
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_rolls_v5_behavior_instance);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ data_imports_fspot_db_fspot_rolls_v5_behavior_instance = _tmp1_;
+#line 829 "FSpotRollsTable.c"
+ }
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_rolls_v5_behavior_instance;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ result = _tmp3_;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return result;
+#line 839 "FSpotRollsTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_rolls_v5_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotRollsV5Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR, DataImportsFSpotDbFSpotRollsV5Behavior);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_TABLE_NAME);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ result = _tmp0_;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return result;
+#line 855 "FSpotRollsTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_rolls_v5_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotRollsV5Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar** _tmp2_ = NULL;
+ gchar** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR, DataImportsFSpotDbFSpotRollsV5Behavior);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp0_ = g_strdup ("id");
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp1_ = g_strdup ("time");
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_ = g_new0 (gchar*, 2 + 1);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_[0] = _tmp0_;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_[1] = _tmp1_;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp3_ = _tmp2_;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp3__length1 = 2;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (result_length1) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ *result_length1 = _tmp3__length1;
+#line 887 "FSpotRollsTable.c"
+ }
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ result = _tmp3_;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ return result;
+#line 893 "FSpotRollsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_v5_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotRollRow** row, gint offset) {
+ DataImportsFSpotDbFSpotRollsV5Behavior * self;
+ DataImportsFSpotDbFSpotRollRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotRollRow* _tmp0_ = NULL;
+ sqlite3_stmt* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gint64 _tmp3_ = 0LL;
+ sqlite3_stmt* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint64 _tmp6_ = 0LL;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR, DataImportsFSpotDbFSpotRollsV5Behavior);
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_roll_row_new ();
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _vala_row = _tmp0_;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp1_ = stmt;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp2_ = offset;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp3_ = sqlite3_column_int64 (_tmp1_, _tmp2_ + 0);
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _vala_row->id = _tmp3_;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp4_ = stmt;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp5_ = offset;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _tmp6_ = sqlite3_column_int64 (_tmp4_, _tmp5_ + 1);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _vala_row->time = (time_t) _tmp6_;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ if (row) {
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ *row = _vala_row;
+#line 937 "FSpotRollsTable.c"
+ } else {
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 941 "FSpotRollsTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_v5_behavior_class_init (DataImportsFSpotDbFSpotRollsV5BehaviorClass * klass) {
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ data_imports_fspot_db_fspot_rolls_v5_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_rolls_v5_behavior_finalize;
+#line 951 "FSpotRollsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_v5_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ data_imports_fspot_db_fspot_rolls_v5_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_rolls_v5_behavior_real_get_table_name;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_rolls_v5_behavior_real_list_columns;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_rolls_v5_behavior_real_build_row;
+#line 964 "FSpotRollsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_v5_behavior_instance_init (DataImportsFSpotDbFSpotRollsV5Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_rolls_v5_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotRollsV5Behavior * self;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_V5_BEHAVIOR, DataImportsFSpotDbFSpotRollsV5Behavior);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotRollsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_rolls_v5_behavior_parent_class)->finalize (obj);
+#line 978 "FSpotRollsTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_rolls_v5_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_rolls_v5_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_rolls_v5_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotRollsV5BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_rolls_v5_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotRollsV5Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_rolls_v5_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_rolls_v5_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_rolls_v5_behavior_type_id;
+ data_imports_fspot_db_fspot_rolls_v5_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotRollsV5Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_rolls_v5_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_rolls_v5_behavior_type_id__volatile, data_imports_fspot_db_fspot_rolls_v5_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_rolls_v5_behavior_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-data-imports/FSpotRollsTable.vala b/plugins/shotwell-data-imports/FSpotRollsTable.vala
index 850b47f..8a5ee8c 100644
--- a/plugins/shotwell-data-imports/FSpotRollsTable.vala
+++ b/plugins/shotwell-data-imports/FSpotRollsTable.vala
@@ -18,8 +18,8 @@ public class FSpotRollRow : Object {
* This class represents the F-Spot rolls table.
*/
public class FSpotRollsTable : FSpotDatabaseTable<FSpotRollRow> {
- public static const string TABLE_NAME = "Rolls";
- public static const string TABLE_NAME_PRE_V5 = "Imports";
+ public const string TABLE_NAME = "Rolls";
+ public const string TABLE_NAME_PRE_V5 = "Imports";
public FSpotRollsTable(Sqlite.Database db, FSpotDatabaseBehavior db_behavior) {
base(db);
diff --git a/plugins/shotwell-data-imports/FSpotTableBehavior.c b/plugins/shotwell-data-imports/FSpotTableBehavior.c
new file mode 100644
index 0000000..77543b8
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotTableBehavior.c
@@ -0,0 +1,102 @@
+/* FSpotTableBehavior.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotTableBehavior.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 <stdlib.h>
+#include <string.h>
+#include <sqlite3.h>
+
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR (data_imports_fspot_db_fspot_table_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehaviorIface))
+
+typedef struct _DataImportsFSpotDbFSpotTableBehavior DataImportsFSpotDbFSpotTableBehavior;
+typedef struct _DataImportsFSpotDbFSpotTableBehaviorIface DataImportsFSpotDbFSpotTableBehaviorIface;
+
+struct _DataImportsFSpotDbFSpotTableBehaviorIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_table_name) (DataImportsFSpotDbFSpotTableBehavior* self);
+ gchar** (*list_columns) (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+ void (*build_row) (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+};
+
+
+
+GType data_imports_fspot_db_fspot_table_behavior_get_type (void) G_GNUC_CONST;
+gchar* data_imports_fspot_db_fspot_table_behavior_get_table_name (DataImportsFSpotDbFSpotTableBehavior* self);
+gchar** data_imports_fspot_db_fspot_table_behavior_list_columns (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+void data_imports_fspot_db_fspot_table_behavior_build_row (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+
+
+gchar* data_imports_fspot_db_fspot_table_behavior_get_table_name (DataImportsFSpotDbFSpotTableBehavior* self) {
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTableBehavior.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR (self), NULL);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTableBehavior.vala"
+ return DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE (self)->get_table_name (self);
+#line 46 "FSpotTableBehavior.c"
+}
+
+
+gchar** data_imports_fspot_db_fspot_table_behavior_list_columns (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1) {
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTableBehavior.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR (self), NULL);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTableBehavior.vala"
+ return DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE (self)->list_columns (self, result_length1);
+#line 55 "FSpotTableBehavior.c"
+}
+
+
+void data_imports_fspot_db_fspot_table_behavior_build_row (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset) {
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTableBehavior.vala"
+ g_return_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR (self));
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTableBehavior.vala"
+ DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE (self)->build_row (self, stmt, row, offset);
+#line 64 "FSpotTableBehavior.c"
+}
+
+
+static void data_imports_fspot_db_fspot_table_behavior_base_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTableBehavior.vala"
+ static gboolean initialized = FALSE;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTableBehavior.vala"
+ if (!initialized) {
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTableBehavior.vala"
+ initialized = TRUE;
+#line 75 "FSpotTableBehavior.c"
+ }
+}
+
+
+/**
+ * This class defines a generic table behavior. In practice, it implements
+ * the concept of a DAO (Data Access Object) in ORM terms and is responsible
+ * for transforming the data extracted from a relational statement into a
+ * lightweight value object.
+ *
+ * The type T defined in the generic is the value object type a behavior
+ * implementation is designed to handle. Value object types are designed to
+ * contain the data for a single database row.
+ */
+GType data_imports_fspot_db_fspot_table_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_table_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_table_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotTableBehaviorIface), (GBaseInitFunc) data_imports_fspot_db_fspot_table_behavior_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
+ GType data_imports_fspot_db_fspot_table_behavior_type_id;
+ data_imports_fspot_db_fspot_table_behavior_type_id = g_type_register_static (G_TYPE_INTERFACE, "DataImportsFSpotDbFSpotTableBehavior", &g_define_type_info, 0);
+ g_type_interface_add_prerequisite (data_imports_fspot_db_fspot_table_behavior_type_id, G_TYPE_OBJECT);
+ g_once_init_leave (&data_imports_fspot_db_fspot_table_behavior_type_id__volatile, data_imports_fspot_db_fspot_table_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_table_behavior_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-data-imports/FSpotTagsTable.c b/plugins/shotwell-data-imports/FSpotTagsTable.c
new file mode 100644
index 0000000..93805e4
--- /dev/null
+++ b/plugins/shotwell-data-imports/FSpotTagsTable.c
@@ -0,0 +1,1169 @@
+/* FSpotTagsTable.c generated by valac 0.32.1, the Vala compiler
+ * generated from FSpotTagsTable.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 <stdlib.h>
+#include <string.h>
+#include <sqlite3.h>
+#include <gee.h>
+
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW (data_imports_fspot_db_fspot_tag_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotTagRow DataImportsFSpotDbFSpotTagRow;
+typedef struct _DataImportsFSpotDbFSpotTagRowClass DataImportsFSpotDbFSpotTagRowClass;
+typedef struct _DataImportsFSpotDbFSpotTagRowPrivate DataImportsFSpotDbFSpotTagRowPrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define TYPE_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
+#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
+#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+
+typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
+typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;
+typedef struct _ImportableDatabaseTablePrivate ImportableDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE (data_imports_fspot_db_fspot_database_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseTable DataImportsFSpotDbFSpotDatabaseTable;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTableClass DataImportsFSpotDbFSpotDatabaseTableClass;
+typedef struct _DataImportsFSpotDbFSpotDatabaseTablePrivate DataImportsFSpotDbFSpotDatabaseTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR (data_imports_fspot_db_fspot_table_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehavior))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TABLE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TABLE_BEHAVIOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, DataImportsFSpotDbFSpotTableBehaviorIface))
+
+typedef struct _DataImportsFSpotDbFSpotTableBehavior DataImportsFSpotDbFSpotTableBehavior;
+typedef struct _DataImportsFSpotDbFSpotTableBehaviorIface DataImportsFSpotDbFSpotTableBehaviorIface;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE (data_imports_fspot_db_fspot_tags_table_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTable))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTableClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTableClass))
+
+typedef struct _DataImportsFSpotDbFSpotTagsTable DataImportsFSpotDbFSpotTagsTable;
+typedef struct _DataImportsFSpotDbFSpotTagsTableClass DataImportsFSpotDbFSpotTagsTableClass;
+typedef struct _DataImportsFSpotDbFSpotTagsTablePrivate DataImportsFSpotDbFSpotTagsTablePrivate;
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW (data_imports_fspot_db_fspot_photo_tag_row_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, DataImportsFSpotDbFSpotPhotoTagRow))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, DataImportsFSpotDbFSpotPhotoTagRowClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_TAG_ROW, DataImportsFSpotDbFSpotPhotoTagRowClass))
+
+typedef struct _DataImportsFSpotDbFSpotPhotoTagRow DataImportsFSpotDbFSpotPhotoTagRow;
+typedef struct _DataImportsFSpotDbFSpotPhotoTagRowClass DataImportsFSpotDbFSpotPhotoTagRowClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR (data_imports_fspot_db_fspot_database_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_BEHAVIOR, DataImportsFSpotDbFSpotDatabaseBehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehavior DataImportsFSpotDbFSpotDatabaseBehavior;
+typedef struct _DataImportsFSpotDbFSpotDatabaseBehaviorClass DataImportsFSpotDbFSpotDatabaseBehaviorClass;
+#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
+
+#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR (data_imports_fspot_db_fspot_tags_v0_behavior_get_type ())
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotTagsV0Behavior))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotTagsV0BehaviorClass))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_V0_BEHAVIOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_V0_BEHAVIOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR))
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_V0_BEHAVIOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotTagsV0BehaviorClass))
+
+typedef struct _DataImportsFSpotDbFSpotTagsV0Behavior DataImportsFSpotDbFSpotTagsV0Behavior;
+typedef struct _DataImportsFSpotDbFSpotTagsV0BehaviorClass DataImportsFSpotDbFSpotTagsV0BehaviorClass;
+typedef struct _DataImportsFSpotDbFSpotTagsV0BehaviorPrivate DataImportsFSpotDbFSpotTagsV0BehaviorPrivate;
+#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 _DataImportsFSpotDbFSpotTagRow {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotTagRowPrivate * priv;
+ gint64 tag_id;
+ gchar* name;
+ gint64 category_id;
+ gboolean is_category;
+ gint sort_priority;
+ gchar* stock_icon;
+};
+
+struct _DataImportsFSpotDbFSpotTagRowClass {
+ GObjectClass parent_class;
+};
+
+struct _ImportableDatabaseTable {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ ImportableDatabaseTablePrivate * priv;
+ gchar* table_name;
+};
+
+struct _ImportableDatabaseTableClass {
+ GTypeClass parent_class;
+ void (*finalize) (ImportableDatabaseTable *self);
+};
+
+struct _DataImportsFSpotDbFSpotTableBehaviorIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_table_name) (DataImportsFSpotDbFSpotTableBehavior* self);
+ gchar** (*list_columns) (DataImportsFSpotDbFSpotTableBehavior* self, int* result_length1);
+ void (*build_row) (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTable {
+ ImportableDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotDatabaseTablePrivate * priv;
+ sqlite3* fspot_db;
+ DataImportsFSpotDbFSpotTableBehavior* behavior;
+};
+
+struct _DataImportsFSpotDbFSpotDatabaseTableClass {
+ ImportableDatabaseTableClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotTagsTable {
+ DataImportsFSpotDbFSpotDatabaseTable parent_instance;
+ DataImportsFSpotDbFSpotTagsTablePrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotTagsTableClass {
+ DataImportsFSpotDbFSpotDatabaseTableClass parent_class;
+};
+
+struct _DataImportsFSpotDbFSpotTagsTablePrivate {
+ DataImportsFSpotDbFSpotTableBehavior* photo_tags_behavior;
+};
+
+typedef enum {
+ DATABASE_ERROR_ERROR,
+ DATABASE_ERROR_BACKING,
+ DATABASE_ERROR_MEMORY,
+ DATABASE_ERROR_ABORT,
+ DATABASE_ERROR_LIMITS,
+ DATABASE_ERROR_TYPESPEC
+} DatabaseError;
+#define DATABASE_ERROR database_error_quark ()
+struct _DataImportsFSpotDbFSpotTagsV0Behavior {
+ GObject parent_instance;
+ DataImportsFSpotDbFSpotTagsV0BehaviorPrivate * priv;
+};
+
+struct _DataImportsFSpotDbFSpotTagsV0BehaviorClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer data_imports_fspot_db_fspot_tag_row_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_tags_table_parent_class = NULL;
+static gpointer data_imports_fspot_db_fspot_tags_v0_behavior_parent_class = NULL;
+static DataImportsFSpotDbFSpotTagsV0Behavior* data_imports_fspot_db_fspot_tags_v0_behavior_instance;
+static DataImportsFSpotDbFSpotTagsV0Behavior* data_imports_fspot_db_fspot_tags_v0_behavior_instance = NULL;
+static DataImportsFSpotDbFSpotTableBehaviorIface* data_imports_fspot_db_fspot_tags_v0_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = NULL;
+
+GType data_imports_fspot_db_fspot_tag_row_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW_DUMMY_PROPERTY
+};
+DataImportsFSpotDbFSpotTagRow* data_imports_fspot_db_fspot_tag_row_new (void);
+DataImportsFSpotDbFSpotTagRow* data_imports_fspot_db_fspot_tag_row_construct (GType object_type);
+static void data_imports_fspot_db_fspot_tag_row_finalize (GObject* obj);
+gpointer importable_database_table_ref (gpointer instance);
+void importable_database_table_unref (gpointer instance);
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_importable_database_table (GValue* value, gpointer v_object);
+void value_take_importable_database_table (GValue* value, gpointer v_object);
+gpointer value_get_importable_database_table (const GValue* value);
+GType importable_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_database_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_table_behavior_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_tags_table_get_type (void) G_GNUC_CONST;
+GType data_imports_fspot_db_fspot_photo_tag_row_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTablePrivate))
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_DUMMY_PROPERTY
+};
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_TABLE_NAME "Tags"
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_PREFIX_STOCK_ICON "stock_icon:"
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_FAV "stock_icon:emblem-favorite"
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_PEOPLE "stock_icon:emblem-people"
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_PLACES "stock_icon:emblem-places"
+#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_EVENTS "stock_icon:emblem-event"
+GType data_imports_fspot_db_fspot_database_behavior_get_type (void) G_GNUC_CONST;
+DataImportsFSpotDbFSpotTagsTable* data_imports_fspot_db_fspot_tags_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotTagsTable* data_imports_fspot_db_fspot_tags_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior);
+DataImportsFSpotDbFSpotDatabaseTable* data_imports_fspot_db_fspot_database_table_construct (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, sqlite3* db);
+void data_imports_fspot_db_fspot_database_table_set_behavior (DataImportsFSpotDbFSpotDatabaseTable* self, DataImportsFSpotDbFSpotTableBehavior* behavior);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_tags_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+DataImportsFSpotDbFSpotTableBehavior* data_imports_fspot_db_fspot_database_behavior_get_photo_tags_behavior (DataImportsFSpotDbFSpotDatabaseBehavior* self);
+GQuark database_error_quark (void);
+DataImportsFSpotDbFSpotTagRow* data_imports_fspot_db_fspot_tags_table_get_by_id (DataImportsFSpotDbFSpotTagsTable* self, gint64 tag_id, GError** error);
+gchar* data_imports_fspot_db_fspot_database_table_get_joined_column_list (DataImportsFSpotDbFSpotDatabaseTable* self, gboolean with_table);
+void importable_database_table_throw_error (const gchar* method, gint res, GError** error);
+void data_imports_fspot_db_fspot_table_behavior_build_row (DataImportsFSpotDbFSpotTableBehavior* self, sqlite3_stmt* stmt, gpointer* row, gint offset);
+GeeArrayList* data_imports_fspot_db_fspot_tags_table_get_by_photo_id (DataImportsFSpotDbFSpotTagsTable* self, gint64 photo_id, GError** error);
+gchar* data_imports_fspot_db_fspot_table_behavior_get_table_name (DataImportsFSpotDbFSpotTableBehavior* self);
+static void data_imports_fspot_db_fspot_tags_table_finalize (ImportableDatabaseTable* obj);
+GType data_imports_fspot_db_fspot_tags_v0_behavior_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_V0_BEHAVIOR_DUMMY_PROPERTY
+};
+static DataImportsFSpotDbFSpotTagsV0Behavior* data_imports_fspot_db_fspot_tags_v0_behavior_new (void);
+static DataImportsFSpotDbFSpotTagsV0Behavior* data_imports_fspot_db_fspot_tags_v0_behavior_construct (GType object_type);
+DataImportsFSpotDbFSpotTagsV0Behavior* data_imports_fspot_db_fspot_tags_v0_behavior_get_instance (void);
+static gchar* data_imports_fspot_db_fspot_tags_v0_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base);
+static gchar** data_imports_fspot_db_fspot_tags_v0_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1);
+static void data_imports_fspot_db_fspot_tags_v0_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotTagRow** row, gint offset);
+static void data_imports_fspot_db_fspot_tags_v0_behavior_finalize (GObject* obj);
+
+
+DataImportsFSpotDbFSpotTagRow* data_imports_fspot_db_fspot_tag_row_construct (GType object_type) {
+ DataImportsFSpotDbFSpotTagRow * self = NULL;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self = (DataImportsFSpotDbFSpotTagRow*) g_object_new (object_type, NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return self;
+#line 255 "FSpotTagsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotTagRow* data_imports_fspot_db_fspot_tag_row_new (void) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return data_imports_fspot_db_fspot_tag_row_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW);
+#line 262 "FSpotTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_tag_row_class_init (DataImportsFSpotDbFSpotTagRowClass * klass) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ data_imports_fspot_db_fspot_tag_row_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_tag_row_finalize;
+#line 271 "FSpotTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_tag_row_instance_init (DataImportsFSpotDbFSpotTagRow * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_tag_row_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotTagRow * self;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRow);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (self->name);
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (self->stock_icon);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_tag_row_parent_class)->finalize (obj);
+#line 289 "FSpotTagsTable.c"
+}
+
+
+/**
+ * The value object for the "tags" table, representing a single database row.
+ */
+GType data_imports_fspot_db_fspot_tag_row_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_tag_row_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_tag_row_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotTagRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_tag_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotTagRow), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_tag_row_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_tag_row_type_id;
+ data_imports_fspot_db_fspot_tag_row_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotTagRow", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_tag_row_type_id__volatile, data_imports_fspot_db_fspot_tag_row_type_id);
+ }
+ return data_imports_fspot_db_fspot_tag_row_type_id__volatile;
+}
+
+
+DataImportsFSpotDbFSpotTagsTable* data_imports_fspot_db_fspot_tags_table_construct (GType object_type, sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior) {
+ DataImportsFSpotDbFSpotTagsTable* self = NULL;
+ sqlite3* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp1_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp3_ = NULL;
+ DataImportsFSpotDbFSpotDatabaseBehavior* _tmp4_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp5_ = NULL;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_return_val_if_fail (db != NULL, NULL);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_BEHAVIOR (db_behavior), NULL);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp0_ = db;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self = (DataImportsFSpotDbFSpotTagsTable*) data_imports_fspot_db_fspot_database_table_construct (object_type, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp0_);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp1_ = db_behavior;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_database_behavior_get_tags_behavior (_tmp1_);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp3_ = _tmp2_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ data_imports_fspot_db_fspot_database_table_set_behavior (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), _tmp3_);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (_tmp3_);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp4_ = db_behavior;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp5_ = data_imports_fspot_db_fspot_database_behavior_get_photo_tags_behavior (_tmp4_);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (self->priv->photo_tags_behavior);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self->priv->photo_tags_behavior = _tmp5_;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return self;
+#line 344 "FSpotTagsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotTagsTable* data_imports_fspot_db_fspot_tags_table_new (sqlite3* db, DataImportsFSpotDbFSpotDatabaseBehavior* db_behavior) {
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return data_imports_fspot_db_fspot_tags_table_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, db, db_behavior);
+#line 351 "FSpotTagsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotTagRow* data_imports_fspot_db_fspot_tags_table_get_by_id (DataImportsFSpotDbFSpotTagsTable* self, gint64 tag_id, GError** error) {
+ DataImportsFSpotDbFSpotTagRow* result = NULL;
+ sqlite3_stmt* stmt = NULL;
+ DataImportsFSpotDbFSpotTagRow* row = NULL;
+ gchar* column_list = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* sql = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gint res = 0;
+ sqlite3* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+ sqlite3_stmt* _tmp13_ = NULL;
+ gint64 _tmp14_ = 0LL;
+ gint _tmp15_ = 0;
+ gint _tmp16_ = 0;
+ sqlite3_stmt* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+ gint _tmp19_ = 0;
+ GError * _inner_error_ = NULL;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE (self), NULL);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ row = NULL;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_database_table_get_joined_column_list (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), FALSE);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ column_list = _tmp0_;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp1_ = column_list;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable)->table_name;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp3_ = g_strdup_printf ("SELECT %s FROM %s WHERE id=?", _tmp1_, _tmp2_);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ sql = _tmp3_;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->fspot_db;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp5_ = sql;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp7_ = sqlite3_prepare_v2 (_tmp4_, _tmp5_, -1, &_tmp6_, NULL);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ stmt = _tmp6_;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ res = _tmp7_;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp8_ = res;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_tmp8_ != SQLITE_OK) {
+#line 411 "FSpotTagsTable.c"
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gint _tmp12_ = 0;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp9_ = sql;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp10_ = g_strdup_printf ("Statement failed: %s", _tmp9_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp11_ = _tmp10_;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp12_ = res;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ importable_database_table_throw_error (_tmp11_, _tmp12_, &_inner_error_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (_tmp11_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (sql);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (column_list);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (row);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return NULL;
+#line 444 "FSpotTagsTable.c"
+ } else {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (sql);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (column_list);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (row);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.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 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_clear_error (&_inner_error_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return NULL;
+#line 460 "FSpotTagsTable.c"
+ }
+ }
+ }
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp13_ = stmt;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp14_ = tag_id;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp15_ = sqlite3_bind_int64 (_tmp13_, 1, _tmp14_);
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ res = _tmp15_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp16_ = res;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _vala_assert (_tmp16_ == SQLITE_OK, "res == Sqlite.OK");
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp17_ = stmt;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp18_ = sqlite3_step (_tmp17_);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ res = _tmp18_;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp19_ = res;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_tmp19_ == SQLITE_ROW) {
+#line 486 "FSpotTagsTable.c"
+ DataImportsFSpotDbFSpotTableBehavior* _tmp20_ = NULL;
+ sqlite3_stmt* _tmp21_ = NULL;
+ gpointer _tmp22_ = NULL;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->behavior;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp21_ = stmt;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ data_imports_fspot_db_fspot_table_behavior_build_row (_tmp20_, _tmp21_, &_tmp22_, 0);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (row);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ row = _tmp22_;
+#line 500 "FSpotTagsTable.c"
+ } else {
+ gint _tmp23_ = 0;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp23_ = res;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_tmp23_ == SQLITE_DONE) {
+#line 507 "FSpotTagsTable.c"
+ gint64 _tmp24_ = 0LL;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp24_ = tag_id;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_message ("FSpotTagsTable.vala:58: Could not find tag row with ID %d", (gint) _tmp24_);
+#line 513 "FSpotTagsTable.c"
+ }
+ }
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ result = row;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (sql);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (column_list);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return result;
+#line 526 "FSpotTagsTable.c"
+}
+
+
+GeeArrayList* data_imports_fspot_db_fspot_tags_table_get_by_photo_id (DataImportsFSpotDbFSpotTagsTable* self, gint64 photo_id, GError** error) {
+ GeeArrayList* result = NULL;
+ GeeArrayList* rows = NULL;
+ GeeArrayList* _tmp0_ = NULL;
+ sqlite3_stmt* stmt = NULL;
+ gchar* column_list = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* sql = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gint res = 0;
+ sqlite3* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ sqlite3_stmt* _tmp11_ = NULL;
+ gint _tmp12_ = 0;
+ gint _tmp13_ = 0;
+ sqlite3_stmt* _tmp18_ = NULL;
+ gint64 _tmp19_ = 0LL;
+ gint _tmp20_ = 0;
+ gint _tmp21_ = 0;
+ sqlite3_stmt* _tmp23_ = NULL;
+ gint _tmp24_ = 0;
+ GError * _inner_error_ = NULL;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE (self), NULL);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp0_ = gee_array_list_new (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ rows = _tmp0_;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_database_table_get_joined_column_list (G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable), TRUE);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ column_list = _tmp1_;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp2_ = column_list;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable)->table_name;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp4_ = self->priv->photo_tags_behavior;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp5_ = data_imports_fspot_db_fspot_table_behavior_get_table_name (_tmp4_);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp6_ = _tmp5_;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp7_ = g_strdup_printf ("SELECT %1$s FROM %2$s, %3$s WHERE %3$s.photo_id=? AND %3$s.tag_id = %2" \
+"$s.id", _tmp2_, _tmp3_, _tmp6_);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp8_ = _tmp7_;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (_tmp6_);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ sql = _tmp8_;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->fspot_db;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp10_ = sql;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp12_ = sqlite3_prepare_v2 (_tmp9_, _tmp10_, -1, &_tmp11_, NULL);
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ stmt = _tmp11_;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ res = _tmp12_;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp13_ = res;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_tmp13_ != SQLITE_OK) {
+#line 602 "FSpotTagsTable.c"
+ const gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gint _tmp17_ = 0;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp14_ = sql;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp15_ = g_strdup_printf ("Statement failed: %s", _tmp14_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp16_ = _tmp15_;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp17_ = res;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ importable_database_table_throw_error (_tmp16_, _tmp17_, &_inner_error_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (_tmp16_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (sql);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (column_list);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (rows);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return NULL;
+#line 635 "FSpotTagsTable.c"
+ } else {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (sql);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (column_list);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (rows);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.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 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_clear_error (&_inner_error_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return NULL;
+#line 651 "FSpotTagsTable.c"
+ }
+ }
+ }
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp18_ = stmt;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp19_ = photo_id;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp20_ = sqlite3_bind_int64 (_tmp18_, 1, _tmp19_);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ res = _tmp20_;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp21_ = res;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_tmp21_ != SQLITE_OK) {
+#line 667 "FSpotTagsTable.c"
+ gint _tmp22_ = 0;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp22_ = res;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ importable_database_table_throw_error ("Bind failed for photo_id", _tmp22_, &_inner_error_);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_propagate_error (error, _inner_error_);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (sql);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (column_list);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (rows);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return NULL;
+#line 689 "FSpotTagsTable.c"
+ } else {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (sql);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (column_list);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (rows);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.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 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_clear_error (&_inner_error_);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return NULL;
+#line 705 "FSpotTagsTable.c"
+ }
+ }
+ }
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp23_ = stmt;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp24_ = sqlite3_step (_tmp23_);
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ res = _tmp24_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ while (TRUE) {
+#line 717 "FSpotTagsTable.c"
+ gint _tmp25_ = 0;
+ DataImportsFSpotDbFSpotTagRow* row = NULL;
+ DataImportsFSpotDbFSpotTableBehavior* _tmp26_ = NULL;
+ sqlite3_stmt* _tmp27_ = NULL;
+ gpointer _tmp28_ = NULL;
+ GeeArrayList* _tmp29_ = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp30_ = NULL;
+ sqlite3_stmt* _tmp31_ = NULL;
+ gint _tmp32_ = 0;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp25_ = res;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (!(_tmp25_ == SQLITE_ROW)) {
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ break;
+#line 733 "FSpotTagsTable.c"
+ }
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp26_ = G_TYPE_CHECK_INSTANCE_CAST (self, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable)->behavior;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp27_ = stmt;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ data_imports_fspot_db_fspot_table_behavior_build_row (_tmp26_, _tmp27_, &_tmp28_, 0);
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (row);
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ row = _tmp28_;
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp29_ = rows;
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp30_ = row;
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp30_);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp31_ = stmt;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp32_ = sqlite3_step (_tmp31_);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ res = _tmp32_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (row);
+#line 759 "FSpotTagsTable.c"
+ }
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ result = rows;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (sql);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (column_list);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _sqlite3_finalize0 (stmt);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return result;
+#line 771 "FSpotTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_tags_table_class_init (DataImportsFSpotDbFSpotTagsTableClass * klass) {
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ data_imports_fspot_db_fspot_tags_table_parent_class = g_type_class_peek_parent (klass);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ ((ImportableDatabaseTableClass *) klass)->finalize = data_imports_fspot_db_fspot_tags_table_finalize;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsFSpotDbFSpotTagsTablePrivate));
+#line 782 "FSpotTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_tags_table_instance_init (DataImportsFSpotDbFSpotTagsTable * self) {
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self->priv = DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_GET_PRIVATE (self);
+#line 789 "FSpotTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_tags_table_finalize (ImportableDatabaseTable* obj) {
+ DataImportsFSpotDbFSpotTagsTable * self;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTable);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (self->priv->photo_tags_behavior);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ IMPORTABLE_DATABASE_TABLE_CLASS (data_imports_fspot_db_fspot_tags_table_parent_class)->finalize (obj);
+#line 801 "FSpotTagsTable.c"
+}
+
+
+/**
+ * This class represents the F-Spot tags table.
+ */
+GType data_imports_fspot_db_fspot_tags_table_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_tags_table_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_tags_table_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotTagsTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_tags_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotTagsTable), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_tags_table_instance_init, NULL };
+ GType data_imports_fspot_db_fspot_tags_table_type_id;
+ data_imports_fspot_db_fspot_tags_table_type_id = g_type_register_static (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, "DataImportsFSpotDbFSpotTagsTable", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_fspot_db_fspot_tags_table_type_id__volatile, data_imports_fspot_db_fspot_tags_table_type_id);
+ }
+ return data_imports_fspot_db_fspot_tags_table_type_id__volatile;
+}
+
+
+static DataImportsFSpotDbFSpotTagsV0Behavior* data_imports_fspot_db_fspot_tags_v0_behavior_construct (GType object_type) {
+ DataImportsFSpotDbFSpotTagsV0Behavior * self = NULL;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self = (DataImportsFSpotDbFSpotTagsV0Behavior*) g_object_new (object_type, NULL);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return self;
+#line 826 "FSpotTagsTable.c"
+}
+
+
+static DataImportsFSpotDbFSpotTagsV0Behavior* data_imports_fspot_db_fspot_tags_v0_behavior_new (void) {
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return data_imports_fspot_db_fspot_tags_v0_behavior_construct (DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR);
+#line 833 "FSpotTagsTable.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 840 "FSpotTagsTable.c"
+}
+
+
+DataImportsFSpotDbFSpotTagsV0Behavior* data_imports_fspot_db_fspot_tags_v0_behavior_get_instance (void) {
+ DataImportsFSpotDbFSpotTagsV0Behavior* result = NULL;
+ DataImportsFSpotDbFSpotTagsV0Behavior* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTagsV0Behavior* _tmp2_ = NULL;
+ DataImportsFSpotDbFSpotTagsV0Behavior* _tmp3_ = NULL;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_tags_v0_behavior_instance;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_tmp0_ == NULL) {
+#line 853 "FSpotTagsTable.c"
+ DataImportsFSpotDbFSpotTagsV0Behavior* _tmp1_ = NULL;
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp1_ = data_imports_fspot_db_fspot_tags_v0_behavior_new ();
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (data_imports_fspot_db_fspot_tags_v0_behavior_instance);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ data_imports_fspot_db_fspot_tags_v0_behavior_instance = _tmp1_;
+#line 861 "FSpotTagsTable.c"
+ }
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp2_ = data_imports_fspot_db_fspot_tags_v0_behavior_instance;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ result = _tmp3_;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return result;
+#line 871 "FSpotTagsTable.c"
+}
+
+
+static gchar* data_imports_fspot_db_fspot_tags_v0_behavior_real_get_table_name (DataImportsFSpotDbFSpotTableBehavior* base) {
+ DataImportsFSpotDbFSpotTagsV0Behavior * self;
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotTagsV0Behavior);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp0_ = g_strdup (DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_TABLE_NAME);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ result = _tmp0_;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return result;
+#line 887 "FSpotTagsTable.c"
+}
+
+
+static gchar** data_imports_fspot_db_fspot_tags_v0_behavior_real_list_columns (DataImportsFSpotDbFSpotTableBehavior* base, int* result_length1) {
+ DataImportsFSpotDbFSpotTagsV0Behavior * self;
+ gchar** result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar** _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotTagsV0Behavior);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp0_ = g_strdup ("id");
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp1_ = g_strdup ("name");
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp2_ = g_strdup ("category_id");
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp3_ = g_strdup ("is_category");
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp4_ = g_strdup ("sort_priority");
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp5_ = g_strdup ("icon");
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp6_ = g_new0 (gchar*, 6 + 1);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp6_[0] = _tmp0_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp6_[1] = _tmp1_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp6_[2] = _tmp2_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp6_[3] = _tmp3_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp6_[4] = _tmp4_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp6_[5] = _tmp5_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp7_ = _tmp6_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp7__length1 = 6;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (result_length1) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ *result_length1 = _tmp7__length1;
+#line 939 "FSpotTagsTable.c"
+ }
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ result = _tmp7_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ return result;
+#line 945 "FSpotTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_tags_v0_behavior_real_build_row (DataImportsFSpotDbFSpotTableBehavior* base, sqlite3_stmt* stmt, DataImportsFSpotDbFSpotTagRow** row, gint offset) {
+ DataImportsFSpotDbFSpotTagsV0Behavior * self;
+ DataImportsFSpotDbFSpotTagRow* _vala_row = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp1_ = NULL;
+ sqlite3_stmt* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint64 _tmp4_ = 0LL;
+ DataImportsFSpotDbFSpotTagRow* _tmp5_ = NULL;
+ sqlite3_stmt* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ const gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ DataImportsFSpotDbFSpotTagRow* _tmp10_ = NULL;
+ sqlite3_stmt* _tmp11_ = NULL;
+ gint _tmp12_ = 0;
+ gint64 _tmp13_ = 0LL;
+ DataImportsFSpotDbFSpotTagRow* _tmp14_ = NULL;
+ sqlite3_stmt* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+ gint _tmp17_ = 0;
+ DataImportsFSpotDbFSpotTagRow* _tmp18_ = NULL;
+ sqlite3_stmt* _tmp19_ = NULL;
+ gint _tmp20_ = 0;
+ gint _tmp21_ = 0;
+ gchar* icon_str = NULL;
+ sqlite3_stmt* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ const gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ gboolean _tmp26_ = FALSE;
+ const gchar* _tmp27_ = NULL;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotTagsV0Behavior);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ g_return_if_fail (stmt != NULL);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp0_ = data_imports_fspot_db_fspot_tag_row_new ();
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _vala_row = _tmp0_;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp1_ = _vala_row;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp2_ = stmt;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp3_ = offset;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp4_ = sqlite3_column_int64 (_tmp2_, _tmp3_ + 0);
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp1_->tag_id = _tmp4_;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp5_ = _vala_row;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp6_ = stmt;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp7_ = offset;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp8_ = sqlite3_column_text (_tmp6_, _tmp7_ + 1);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp9_ = g_strdup (_tmp8_);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (_tmp5_->name);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp5_->name = _tmp9_;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp10_ = _vala_row;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp11_ = stmt;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp12_ = offset;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp13_ = sqlite3_column_int64 (_tmp11_, _tmp12_ + 2);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp10_->category_id = _tmp13_;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp14_ = _vala_row;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp15_ = stmt;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp16_ = offset;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp17_ = sqlite3_column_int (_tmp15_, _tmp16_ + 3);
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp14_->is_category = _tmp17_ > 0;
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp18_ = _vala_row;
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp19_ = stmt;
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp20_ = offset;
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp21_ = sqlite3_column_int (_tmp19_, _tmp20_ + 4);
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp18_->sort_priority = _tmp21_;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp22_ = stmt;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp23_ = offset;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp24_ = sqlite3_column_text (_tmp22_, _tmp23_ + 5);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp25_ = g_strdup (_tmp24_);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ icon_str = _tmp25_;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp27_ = icon_str;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_tmp27_ != NULL) {
+#line 1059 "FSpotTagsTable.c"
+ const gchar* _tmp28_ = NULL;
+ gboolean _tmp29_ = FALSE;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp28_ = icon_str;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp29_ = g_str_has_prefix (_tmp28_, DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_PREFIX_STOCK_ICON);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp26_ = _tmp29_;
+#line 1068 "FSpotTagsTable.c"
+ } else {
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp26_ = FALSE;
+#line 1072 "FSpotTagsTable.c"
+ }
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (_tmp26_) {
+#line 1076 "FSpotTagsTable.c"
+ DataImportsFSpotDbFSpotTagRow* _tmp30_ = NULL;
+ const gchar* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp30_ = _vala_row;
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp31_ = icon_str;
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp32_ = g_strdup (_tmp31_);
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (_tmp30_->stock_icon);
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp30_->stock_icon = _tmp32_;
+#line 1090 "FSpotTagsTable.c"
+ } else {
+ DataImportsFSpotDbFSpotTagRow* _tmp33_ = NULL;
+ gchar* _tmp34_ = NULL;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp33_ = _vala_row;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp34_ = g_strdup ("");
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (_tmp33_->stock_icon);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _tmp33_->stock_icon = _tmp34_;
+#line 1102 "FSpotTagsTable.c"
+ }
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_free0 (icon_str);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ if (row) {
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ *row = _vala_row;
+#line 1110 "FSpotTagsTable.c"
+ } else {
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ _g_object_unref0 (_vala_row);
+#line 1114 "FSpotTagsTable.c"
+ }
+}
+
+
+static void data_imports_fspot_db_fspot_tags_v0_behavior_class_init (DataImportsFSpotDbFSpotTagsV0BehaviorClass * klass) {
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ data_imports_fspot_db_fspot_tags_v0_behavior_parent_class = g_type_class_peek_parent (klass);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_db_fspot_tags_v0_behavior_finalize;
+#line 1124 "FSpotTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_tags_v0_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init (DataImportsFSpotDbFSpotTableBehaviorIface * iface) {
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ data_imports_fspot_db_fspot_tags_v0_behavior_data_imports_fspot_db_fspot_table_behavior_parent_iface = g_type_interface_peek_parent (iface);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ iface->get_table_name = (gchar* (*)(DataImportsFSpotDbFSpotTableBehavior*)) data_imports_fspot_db_fspot_tags_v0_behavior_real_get_table_name;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ iface->list_columns = (gchar** (*)(DataImportsFSpotDbFSpotTableBehavior*, int*)) data_imports_fspot_db_fspot_tags_v0_behavior_real_list_columns;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ iface->build_row = (void (*)(DataImportsFSpotDbFSpotTableBehavior*, sqlite3_stmt*, gpointer*, gint)) data_imports_fspot_db_fspot_tags_v0_behavior_real_build_row;
+#line 1137 "FSpotTagsTable.c"
+}
+
+
+static void data_imports_fspot_db_fspot_tags_v0_behavior_instance_init (DataImportsFSpotDbFSpotTagsV0Behavior * self) {
+}
+
+
+static void data_imports_fspot_db_fspot_tags_v0_behavior_finalize (GObject* obj) {
+ DataImportsFSpotDbFSpotTagsV0Behavior * self;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_V0_BEHAVIOR, DataImportsFSpotDbFSpotTagsV0Behavior);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotTagsTable.vala"
+ G_OBJECT_CLASS (data_imports_fspot_db_fspot_tags_v0_behavior_parent_class)->finalize (obj);
+#line 1151 "FSpotTagsTable.c"
+}
+
+
+GType data_imports_fspot_db_fspot_tags_v0_behavior_get_type (void) {
+ static volatile gsize data_imports_fspot_db_fspot_tags_v0_behavior_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_fspot_db_fspot_tags_v0_behavior_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotDbFSpotTagsV0BehaviorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_db_fspot_tags_v0_behavior_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotDbFSpotTagsV0Behavior), 0, (GInstanceInitFunc) data_imports_fspot_db_fspot_tags_v0_behavior_instance_init, NULL };
+ static const GInterfaceInfo data_imports_fspot_db_fspot_table_behavior_info = { (GInterfaceInitFunc) data_imports_fspot_db_fspot_tags_v0_behavior_data_imports_fspot_db_fspot_table_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_fspot_db_fspot_tags_v0_behavior_type_id;
+ data_imports_fspot_db_fspot_tags_v0_behavior_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotDbFSpotTagsV0Behavior", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_fspot_db_fspot_tags_v0_behavior_type_id, DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TABLE_BEHAVIOR, &data_imports_fspot_db_fspot_table_behavior_info);
+ g_once_init_leave (&data_imports_fspot_db_fspot_tags_v0_behavior_type_id__volatile, data_imports_fspot_db_fspot_tags_v0_behavior_type_id);
+ }
+ return data_imports_fspot_db_fspot_tags_v0_behavior_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-data-imports/FSpotTagsTable.vala b/plugins/shotwell-data-imports/FSpotTagsTable.vala
index 8ac9807..7660154 100644
--- a/plugins/shotwell-data-imports/FSpotTagsTable.vala
+++ b/plugins/shotwell-data-imports/FSpotTagsTable.vala
@@ -22,13 +22,13 @@ public class FSpotTagRow : Object {
* This class represents the F-Spot tags table.
*/
public class FSpotTagsTable : FSpotDatabaseTable<FSpotTagRow> {
- public static const string TABLE_NAME = "Tags";
+ public const string TABLE_NAME = "Tags";
- public static const string PREFIX_STOCK_ICON = "stock_icon:";
- public static const string STOCK_ICON_FAV = "stock_icon:emblem-favorite";
- public static const string STOCK_ICON_PEOPLE = "stock_icon:emblem-people";
- public static const string STOCK_ICON_PLACES = "stock_icon:emblem-places";
- public static const string STOCK_ICON_EVENTS = "stock_icon:emblem-event";
+ public const string PREFIX_STOCK_ICON = "stock_icon:";
+ public const string STOCK_ICON_FAV = "stock_icon:emblem-favorite";
+ public const string STOCK_ICON_PEOPLE = "stock_icon:emblem-people";
+ public const string STOCK_ICON_PLACES = "stock_icon:emblem-places";
+ public const string STOCK_ICON_EVENTS = "stock_icon:emblem-event";
private FSpotTableBehavior<FSpotPhotoTagRow> photo_tags_behavior;
diff --git a/plugins/shotwell-data-imports/Makefile b/plugins/shotwell-data-imports/Makefile
deleted file mode 100644
index 203aeed..0000000
--- a/plugins/shotwell-data-imports/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
-
-PLUGIN := shotwell-data-imports
-
-PLUGIN_PKGS := \
- gtk+-3.0 \
- gexiv2 \
- gee-0.8 \
- sqlite3 \
- libxml-2.0 \
- libsoup-2.4
-
-SRC_FILES := \
- shotwell-data-imports.vala \
- VersionNumber.vala \
- SqliteSupport.vala \
- FSpotImporter.vala \
- FSpotDatabaseBehavior.vala \
- FSpotDatabase.vala \
- FSpotDatabaseTable.vala \
- FSpotTableBehavior.vala \
- FSpotMetaTable.vala \
- FSpotPhotosTable.vala \
- FSpotPhotoTagsTable.vala \
- FSpotPhotoVersionsTable.vala \
- FSpotRollsTable.vala \
- FSpotTagsTable.vala
-
-RC_FILES := \
- f-spot-24.png
-
-include ../Makefile.plugin.mk
-
diff --git a/plugins/shotwell-data-imports/SqliteSupport.c b/plugins/shotwell-data-imports/SqliteSupport.c
new file mode 100644
index 0000000..4abfac9
--- /dev/null
+++ b/plugins/shotwell-data-imports/SqliteSupport.c
@@ -0,0 +1,644 @@
+/* SqliteSupport.c generated by valac 0.32.1, the Vala compiler
+ * generated from SqliteSupport.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 <sqlite3.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
+#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
+#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
+#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
+
+typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
+typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;
+typedef struct _ImportableDatabaseTablePrivate ImportableDatabaseTablePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+typedef struct _ParamSpecImportableDatabaseTable ParamSpecImportableDatabaseTable;
+
+typedef enum {
+ DATABASE_ERROR_ERROR,
+ DATABASE_ERROR_BACKING,
+ DATABASE_ERROR_MEMORY,
+ DATABASE_ERROR_ABORT,
+ DATABASE_ERROR_LIMITS,
+ DATABASE_ERROR_TYPESPEC
+} DatabaseError;
+#define DATABASE_ERROR database_error_quark ()
+struct _ImportableDatabaseTable {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ ImportableDatabaseTablePrivate * priv;
+ gchar* table_name;
+};
+
+struct _ImportableDatabaseTableClass {
+ GTypeClass parent_class;
+ void (*finalize) (ImportableDatabaseTable *self);
+};
+
+struct _ParamSpecImportableDatabaseTable {
+ GParamSpec parent_instance;
+};
+
+
+static gpointer importable_database_table_parent_class = NULL;
+extern sqlite3* importable_database_table_db;
+sqlite3* importable_database_table_db = NULL;
+
+GQuark database_error_quark (void);
+gpointer importable_database_table_ref (gpointer instance);
+void importable_database_table_unref (gpointer instance);
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_importable_database_table (GValue* value, gpointer v_object);
+void value_take_importable_database_table (GValue* value, gpointer v_object);
+gpointer value_get_importable_database_table (const GValue* value);
+GType importable_database_table_get_type (void) G_GNUC_CONST;
+enum {
+ IMPORTABLE_DATABASE_TABLE_DUMMY_PROPERTY
+};
+void importable_database_table_set_table_name (ImportableDatabaseTable* self, const gchar* table_name);
+void importable_database_table_throw_error (const gchar* method, gint res, GError** error);
+ImportableDatabaseTable* importable_database_table_construct (GType object_type);
+static void importable_database_table_finalize (ImportableDatabaseTable* obj);
+
+
+GQuark database_error_quark (void) {
+ return g_quark_from_static_string ("database_error-quark");
+}
+
+
+void importable_database_table_set_table_name (ImportableDatabaseTable* self, const gchar* table_name) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_if_fail (IS_IMPORTABLE_DATABASE_TABLE (self));
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_if_fail (table_name != NULL);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp0_ = table_name;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (self->table_name);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ self->table_name = _tmp1_;
+#line 99 "SqliteSupport.c"
+}
+
+
+void importable_database_table_throw_error (const gchar* method, gint res, GError** error) {
+ gchar* msg = NULL;
+ const gchar* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ sqlite3* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ GError * _inner_error_ = NULL;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_if_fail (method != NULL);
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp0_ = method;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp1_ = res;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp2_ = importable_database_table_db;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp3_ = sqlite3_errmsg (_tmp2_);
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp4_ = g_strdup_printf ("(%s) [%d] - %s", _tmp0_, _tmp1_, _tmp3_);
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ msg = _tmp4_;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp5_ = res;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ switch (_tmp5_) {
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_OK:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_DONE:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_ROW:
+#line 136 "SqliteSupport.c"
+ {
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 142 "SqliteSupport.c"
+ }
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_PERM:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_BUSY:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_READONLY:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_IOERR:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_CORRUPT:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_CANTOPEN:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_NOLFS:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_AUTH:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_FORMAT:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_NOTADB:
+#line 164 "SqliteSupport.c"
+ {
+ const gchar* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp6_ = msg;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp7_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_BACKING, _tmp6_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _inner_error_ = _tmp7_;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 182 "SqliteSupport.c"
+ } else {
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.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 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 192 "SqliteSupport.c"
+ }
+ }
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_NOMEM:
+#line 197 "SqliteSupport.c"
+ {
+ const gchar* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp8_ = msg;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp9_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_MEMORY, _tmp8_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _inner_error_ = _tmp9_;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 215 "SqliteSupport.c"
+ } else {
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.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 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 225 "SqliteSupport.c"
+ }
+ }
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_ABORT:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_LOCKED:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_INTERRUPT:
+#line 234 "SqliteSupport.c"
+ {
+ const gchar* _tmp10_ = NULL;
+ GError* _tmp11_ = NULL;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp10_ = msg;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp11_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_ABORT, _tmp10_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _inner_error_ = _tmp11_;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 252 "SqliteSupport.c"
+ } else {
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.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 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 262 "SqliteSupport.c"
+ }
+ }
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_FULL:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_EMPTY:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_TOOBIG:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_CONSTRAINT:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_RANGE:
+#line 275 "SqliteSupport.c"
+ {
+ const gchar* _tmp12_ = NULL;
+ GError* _tmp13_ = NULL;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp12_ = msg;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp13_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_LIMITS, _tmp12_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _inner_error_ = _tmp13_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 293 "SqliteSupport.c"
+ } else {
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.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 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 303 "SqliteSupport.c"
+ }
+ }
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_SCHEMA:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_MISMATCH:
+#line 310 "SqliteSupport.c"
+ {
+ const gchar* _tmp14_ = NULL;
+ GError* _tmp15_ = NULL;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp14_ = msg;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp15_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_TYPESPEC, _tmp14_);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _inner_error_ = _tmp15_;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 328 "SqliteSupport.c"
+ } else {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.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 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 338 "SqliteSupport.c"
+ }
+ }
+ default:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_ERROR:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_INTERNAL:
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ case SQLITE_MISUSE:
+#line 348 "SqliteSupport.c"
+ {
+ const gchar* _tmp16_ = NULL;
+ GError* _tmp17_ = NULL;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp16_ = msg;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _tmp17_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_ERROR, _tmp16_);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _inner_error_ = _tmp17_;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (_inner_error_->domain == DATABASE_ERROR) {
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_propagate_error (error, _inner_error_);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 366 "SqliteSupport.c"
+ } else {
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.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 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_clear_error (&_inner_error_);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return;
+#line 376 "SqliteSupport.c"
+ }
+ }
+ }
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (msg);
+#line 382 "SqliteSupport.c"
+}
+
+
+ImportableDatabaseTable* importable_database_table_construct (GType object_type) {
+ ImportableDatabaseTable* self = NULL;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ self = (ImportableDatabaseTable*) g_type_create_instance (object_type);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return self;
+#line 392 "SqliteSupport.c"
+}
+
+
+static void value_importable_database_table_init (GValue* value) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 399 "SqliteSupport.c"
+}
+
+
+static void value_importable_database_table_free_value (GValue* value) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (value->data[0].v_pointer) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ importable_database_table_unref (value->data[0].v_pointer);
+#line 408 "SqliteSupport.c"
+ }
+}
+
+
+static void value_importable_database_table_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (src_value->data[0].v_pointer) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ dest_value->data[0].v_pointer = importable_database_table_ref (src_value->data[0].v_pointer);
+#line 418 "SqliteSupport.c"
+ } else {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 422 "SqliteSupport.c"
+ }
+}
+
+
+static gpointer value_importable_database_table_peek_pointer (const GValue* value) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return value->data[0].v_pointer;
+#line 430 "SqliteSupport.c"
+}
+
+
+static gchar* value_importable_database_table_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (collect_values[0].v_pointer) {
+#line 437 "SqliteSupport.c"
+ ImportableDatabaseTable* object;
+ object = collect_values[0].v_pointer;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 444 "SqliteSupport.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.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 448 "SqliteSupport.c"
+ }
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ value->data[0].v_pointer = importable_database_table_ref (object);
+#line 452 "SqliteSupport.c"
+ } else {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 456 "SqliteSupport.c"
+ }
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return NULL;
+#line 460 "SqliteSupport.c"
+}
+
+
+static gchar* value_importable_database_table_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ ImportableDatabaseTable** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (!object_p) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 471 "SqliteSupport.c"
+ }
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (!value->data[0].v_pointer) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ *object_p = NULL;
+#line 477 "SqliteSupport.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ *object_p = value->data[0].v_pointer;
+#line 481 "SqliteSupport.c"
+ } else {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ *object_p = importable_database_table_ref (value->data[0].v_pointer);
+#line 485 "SqliteSupport.c"
+ }
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return NULL;
+#line 489 "SqliteSupport.c"
+}
+
+
+GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ ParamSpecImportableDatabaseTable* spec;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, TYPE_IMPORTABLE_DATABASE_TABLE), NULL);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return G_PARAM_SPEC (spec);
+#line 503 "SqliteSupport.c"
+}
+
+
+gpointer value_get_importable_database_table (const GValue* value) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORTABLE_DATABASE_TABLE), NULL);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return value->data[0].v_pointer;
+#line 512 "SqliteSupport.c"
+}
+
+
+void value_set_importable_database_table (GValue* value, gpointer v_object) {
+ ImportableDatabaseTable* old;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORTABLE_DATABASE_TABLE));
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ old = value->data[0].v_pointer;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (v_object) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IMPORTABLE_DATABASE_TABLE));
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ importable_database_table_ref (value->data[0].v_pointer);
+#line 532 "SqliteSupport.c"
+ } else {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 536 "SqliteSupport.c"
+ }
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (old) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ importable_database_table_unref (old);
+#line 542 "SqliteSupport.c"
+ }
+}
+
+
+void value_take_importable_database_table (GValue* value, gpointer v_object) {
+ ImportableDatabaseTable* old;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORTABLE_DATABASE_TABLE));
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ old = value->data[0].v_pointer;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (v_object) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IMPORTABLE_DATABASE_TABLE));
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ value->data[0].v_pointer = v_object;
+#line 561 "SqliteSupport.c"
+ } else {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ value->data[0].v_pointer = NULL;
+#line 565 "SqliteSupport.c"
+ }
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (old) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ importable_database_table_unref (old);
+#line 571 "SqliteSupport.c"
+ }
+}
+
+
+static void importable_database_table_class_init (ImportableDatabaseTableClass * klass) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ importable_database_table_parent_class = g_type_class_peek_parent (klass);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ ((ImportableDatabaseTableClass *) klass)->finalize = importable_database_table_finalize;
+#line 581 "SqliteSupport.c"
+}
+
+
+static void importable_database_table_instance_init (ImportableDatabaseTable * self) {
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ self->table_name = NULL;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ self->ref_count = 1;
+#line 590 "SqliteSupport.c"
+}
+
+
+static void importable_database_table_finalize (ImportableDatabaseTable* obj) {
+ ImportableDatabaseTable * self;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_signal_handlers_destroy (self);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ _g_free0 (self->table_name);
+#line 602 "SqliteSupport.c"
+}
+
+
+GType importable_database_table_get_type (void) {
+ static volatile gsize importable_database_table_type_id__volatile = 0;
+ if (g_once_init_enter (&importable_database_table_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { value_importable_database_table_init, value_importable_database_table_free_value, value_importable_database_table_copy_value, value_importable_database_table_peek_pointer, "p", value_importable_database_table_collect_value, "p", value_importable_database_table_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (ImportableDatabaseTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) importable_database_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportableDatabaseTable), 0, (GInstanceInitFunc) importable_database_table_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 importable_database_table_type_id;
+ importable_database_table_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ImportableDatabaseTable", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
+ g_once_init_leave (&importable_database_table_type_id__volatile, importable_database_table_type_id);
+ }
+ return importable_database_table_type_id__volatile;
+}
+
+
+gpointer importable_database_table_ref (gpointer instance) {
+ ImportableDatabaseTable* self;
+ self = instance;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ return instance;
+#line 627 "SqliteSupport.c"
+}
+
+
+void importable_database_table_unref (gpointer instance) {
+ ImportableDatabaseTable* self;
+ self = instance;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ IMPORTABLE_DATABASE_TABLE_GET_CLASS (self)->finalize (self);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/SqliteSupport.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 640 "SqliteSupport.c"
+ }
+}
+
+
+
diff --git a/plugins/shotwell-data-imports/VersionNumber.c b/plugins/shotwell-data-imports/VersionNumber.c
new file mode 100644
index 0000000..dec3778
--- /dev/null
+++ b/plugins/shotwell-data-imports/VersionNumber.c
@@ -0,0 +1,1053 @@
+/* VersionNumber.c generated by valac 0.32.1, the Vala compiler
+ * generated from VersionNumber.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>
+
+
+#define UTILS_TYPE_VERSION_NUMBER (utils_version_number_get_type ())
+#define UTILS_VERSION_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumber))
+#define UTILS_VERSION_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumberClass))
+#define UTILS_IS_VERSION_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UTILS_TYPE_VERSION_NUMBER))
+#define UTILS_IS_VERSION_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UTILS_TYPE_VERSION_NUMBER))
+#define UTILS_VERSION_NUMBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumberClass))
+
+typedef struct _UtilsVersionNumber UtilsVersionNumber;
+typedef struct _UtilsVersionNumberClass UtilsVersionNumberClass;
+typedef struct _UtilsVersionNumberPrivate UtilsVersionNumberPrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+struct _UtilsVersionNumber {
+ GObject parent_instance;
+ UtilsVersionNumberPrivate * priv;
+};
+
+struct _UtilsVersionNumberClass {
+ GObjectClass parent_class;
+};
+
+struct _UtilsVersionNumberPrivate {
+ gint* version;
+ gint version_length1;
+ gint _version_size_;
+};
+
+
+static gpointer utils_version_number_parent_class = NULL;
+static GeeComparableIface* utils_version_number_gee_comparable_parent_iface = NULL;
+
+GType utils_version_number_get_type (void) G_GNUC_CONST;
+#define UTILS_VERSION_NUMBER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumberPrivate))
+enum {
+ UTILS_VERSION_NUMBER_DUMMY_PROPERTY
+};
+UtilsVersionNumber* utils_version_number_new (gint* version, int version_length1);
+UtilsVersionNumber* utils_version_number_construct (GType object_type, gint* version, int version_length1);
+static gint* _vala_array_dup3 (gint* self, int length);
+UtilsVersionNumber* utils_version_number_new_from_string (const gchar* str_version, const gchar* separator);
+UtilsVersionNumber* utils_version_number_construct_from_string (GType object_type, const gchar* str_version, const gchar* separator);
+gchar* utils_version_number_to_string (UtilsVersionNumber* self);
+static gint utils_version_number_real_compare_to (GeeComparable* base, UtilsVersionNumber* other);
+static void utils_version_number_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 gint _vala_array_length (gpointer array);
+
+
+static gint* _vala_array_dup3 (gint* self, int length) {
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ return g_memdup (self, length * sizeof (gint));
+#line 70 "VersionNumber.c"
+}
+
+
+UtilsVersionNumber* utils_version_number_construct (GType object_type, gint* version, int version_length1) {
+ UtilsVersionNumber * self = NULL;
+ gint* _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gint* _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self = (UtilsVersionNumber*) g_object_new (object_type, NULL);
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp0_ = version;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp0__length1 = version_length1;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup3 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self->priv->version = (g_free (self->priv->version), NULL);
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self->priv->version = _tmp1_;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self->priv->version_length1 = _tmp1__length1;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self->priv->_version_size_ = self->priv->version_length1;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ return self;
+#line 100 "VersionNumber.c"
+}
+
+
+UtilsVersionNumber* utils_version_number_new (gint* version, int version_length1) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ return utils_version_number_construct (UTILS_TYPE_VERSION_NUMBER, version, version_length1);
+#line 107 "VersionNumber.c"
+}
+
+
+UtilsVersionNumber* utils_version_number_construct_from_string (GType object_type, const gchar* str_version, const gchar* separator) {
+ UtilsVersionNumber * self = NULL;
+ gchar** version_items = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar** _tmp2_ = NULL;
+ gchar** _tmp3_ = NULL;
+ gint version_items_length1 = 0;
+ gint _version_items_size_ = 0;
+ gchar** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ gint* _tmp5_ = NULL;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ g_return_val_if_fail (str_version != NULL, NULL);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ g_return_val_if_fail (separator != NULL, NULL);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self = (UtilsVersionNumber*) g_object_new (object_type, NULL);
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp0_ = str_version;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp1_ = separator;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp3_ = _tmp2_ = g_strsplit (_tmp0_, _tmp1_, 0);
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ version_items = _tmp3_;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ version_items_length1 = _vala_array_length (_tmp2_);
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _version_items_size_ = version_items_length1;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp4_ = version_items;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp4__length1 = version_items_length1;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp5_ = g_new0 (gint, _tmp4__length1);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self->priv->version = (g_free (self->priv->version), NULL);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self->priv->version = _tmp5_;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self->priv->version_length1 = _tmp4__length1;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self->priv->_version_size_ = self->priv->version_length1;
+#line 155 "VersionNumber.c"
+ {
+ gint i = 0;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ i = 0;
+#line 160 "VersionNumber.c"
+ {
+ gboolean _tmp6_ = FALSE;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp6_ = TRUE;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ while (TRUE) {
+#line 167 "VersionNumber.c"
+ gint _tmp8_ = 0;
+ gchar** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ gint* _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+ gint _tmp11_ = 0;
+ gchar** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ gint _tmp13_ = 0;
+ const gchar* _tmp14_ = NULL;
+ gint _tmp15_ = 0;
+ gint _tmp16_ = 0;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ if (!_tmp6_) {
+#line 182 "VersionNumber.c"
+ gint _tmp7_ = 0;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp7_ = i;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ i = _tmp7_ + 1;
+#line 188 "VersionNumber.c"
+ }
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp6_ = FALSE;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp8_ = i;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp9_ = version_items;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp9__length1 = version_items_length1;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ if (!(_tmp8_ < _tmp9__length1)) {
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ break;
+#line 202 "VersionNumber.c"
+ }
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp10_ = self->priv->version;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp10__length1 = self->priv->version_length1;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp11_ = i;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp12_ = version_items;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp12__length1 = version_items_length1;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp13_ = i;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp14_ = _tmp12_[_tmp13_];
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp15_ = atoi (_tmp14_);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp10_[_tmp11_] = _tmp15_;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp16_ = _tmp10_[_tmp11_];
+#line 224 "VersionNumber.c"
+ }
+ }
+ }
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ version_items = (_vala_array_free (version_items, version_items_length1, (GDestroyNotify) g_free), NULL);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ return self;
+#line 232 "VersionNumber.c"
+}
+
+
+UtilsVersionNumber* utils_version_number_new_from_string (const gchar* str_version, const gchar* separator) {
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ return utils_version_number_construct_from_string (UTILS_TYPE_VERSION_NUMBER, str_version, separator);
+#line 239 "VersionNumber.c"
+}
+
+
+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 256 "VersionNumber.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 266 "VersionNumber.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 276 "VersionNumber.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 282 "VersionNumber.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 293 "VersionNumber.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 305 "VersionNumber.c"
+ } else {
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = FALSE;
+#line 309 "VersionNumber.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp5_;
+#line 313 "VersionNumber.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp1_) {
+#line 317 "VersionNumber.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 340 "VersionNumber.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 349 "VersionNumber.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 362 "VersionNumber.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 368 "VersionNumber.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 378 "VersionNumber.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 390 "VersionNumber.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 394 "VersionNumber.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 400 "VersionNumber.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 411 "VersionNumber.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 426 "VersionNumber.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = FALSE;
+#line 430 "VersionNumber.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = _tmp16_;
+#line 434 "VersionNumber.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 440 "VersionNumber.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 452 "VersionNumber.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 473 "VersionNumber.c"
+ } else {
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = 0;
+#line 477 "VersionNumber.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 483 "VersionNumber.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 490 "VersionNumber.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 498 "VersionNumber.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 536 "VersionNumber.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 545 "VersionNumber.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 561 "VersionNumber.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 567 "VersionNumber.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 581 "VersionNumber.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 601 "VersionNumber.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 616 "VersionNumber.c"
+ } else {
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp53_ = "";
+#line 620 "VersionNumber.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 628 "VersionNumber.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 639 "VersionNumber.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 648 "VersionNumber.c"
+ }
+}
+
+
+gchar* utils_version_number_to_string (UtilsVersionNumber* self) {
+ gchar* result = NULL;
+ gchar** version_items = NULL;
+ gint* _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gchar** _tmp1_ = NULL;
+ gint version_items_length1 = 0;
+ gint _version_items_size_ = 0;
+ gchar** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ gchar* _tmp14_ = NULL;
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ g_return_val_if_fail (UTILS_IS_VERSION_NUMBER (self), NULL);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp0_ = self->priv->version;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp0__length1 = self->priv->version_length1;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp1_ = g_new0 (gchar*, _tmp0__length1 + 1);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ version_items = _tmp1_;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ version_items_length1 = _tmp0__length1;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _version_items_size_ = version_items_length1;
+#line 678 "VersionNumber.c"
+ {
+ gint i = 0;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ i = 0;
+#line 683 "VersionNumber.c"
+ {
+ gboolean _tmp2_ = FALSE;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp2_ = TRUE;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ while (TRUE) {
+#line 690 "VersionNumber.c"
+ gint _tmp4_ = 0;
+ gint* _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ gchar** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ gint _tmp7_ = 0;
+ gint* _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ gint _tmp9_ = 0;
+ gint _tmp10_ = 0;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ if (!_tmp2_) {
+#line 705 "VersionNumber.c"
+ gint _tmp3_ = 0;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp3_ = i;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ i = _tmp3_ + 1;
+#line 711 "VersionNumber.c"
+ }
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp2_ = FALSE;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp4_ = i;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp5_ = self->priv->version;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp5__length1 = self->priv->version_length1;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ if (!(_tmp4_ < _tmp5__length1)) {
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ break;
+#line 725 "VersionNumber.c"
+ }
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp6_ = version_items;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp6__length1 = version_items_length1;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp7_ = i;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp8_ = self->priv->version;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp8__length1 = self->priv->version_length1;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp9_ = i;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp10_ = _tmp8_[_tmp9_];
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp11_ = g_strdup_printf ("%i", _tmp10_);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _g_free0 (_tmp6_[_tmp7_]);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp6_[_tmp7_] = _tmp11_;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp12_ = _tmp6_[_tmp7_];
+#line 749 "VersionNumber.c"
+ }
+ }
+ }
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp13_ = version_items;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp13__length1 = version_items_length1;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp14_ = _vala_g_strjoinv (".", _tmp13_, _tmp13__length1);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ result = _tmp14_;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ version_items = (_vala_array_free (version_items, version_items_length1, (GDestroyNotify) g_free), NULL);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ return result;
+#line 765 "VersionNumber.c"
+}
+
+
+static gint utils_version_number_real_compare_to (GeeComparable* base, UtilsVersionNumber* other) {
+ UtilsVersionNumber * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint* _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ UtilsVersionNumber* _tmp2_ = NULL;
+ gint* _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ gint max_len = 0;
+ gint res = 0;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumber);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ g_return_val_if_fail (UTILS_IS_VERSION_NUMBER (other), 0);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp1_ = self->priv->version;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp1__length1 = self->priv->version_length1;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp2_ = other;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp3_ = _tmp2_->priv->version;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp3__length1 = _tmp2_->priv->version_length1;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ if (_tmp1__length1 > _tmp3__length1) {
+#line 796 "VersionNumber.c"
+ gint* _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp4_ = self->priv->version;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp4__length1 = self->priv->version_length1;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp0_ = _tmp4__length1;
+#line 805 "VersionNumber.c"
+ } else {
+ UtilsVersionNumber* _tmp5_ = NULL;
+ gint* _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp5_ = other;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp6_ = _tmp5_->priv->version;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp6__length1 = _tmp5_->priv->version_length1;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp0_ = _tmp6__length1;
+#line 818 "VersionNumber.c"
+ }
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ max_len = _tmp0_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ res = 0;
+#line 824 "VersionNumber.c"
+ {
+ gint i = 0;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ i = 0;
+#line 829 "VersionNumber.c"
+ {
+ gboolean _tmp7_ = FALSE;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp7_ = TRUE;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ while (TRUE) {
+#line 836 "VersionNumber.c"
+ gint _tmp9_ = 0;
+ gint _tmp10_ = 0;
+ gint _tmp11_ = 0;
+ gint _tmp12_ = 0;
+ gint* _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ gint this_v = 0;
+ gint _tmp17_ = 0;
+ gint _tmp18_ = 0;
+ UtilsVersionNumber* _tmp19_ = NULL;
+ gint* _tmp20_ = NULL;
+ gint _tmp20__length1 = 0;
+ gint other_v = 0;
+ gint _tmp25_ = 0;
+ gint _tmp26_ = 0;
+ gint _tmp27_ = 0;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ if (!_tmp7_) {
+#line 855 "VersionNumber.c"
+ gint _tmp8_ = 0;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp8_ = i;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ i = _tmp8_ + 1;
+#line 861 "VersionNumber.c"
+ }
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp7_ = FALSE;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp9_ = i;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp10_ = max_len;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ if (!(_tmp9_ < _tmp10_)) {
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ break;
+#line 873 "VersionNumber.c"
+ }
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp12_ = i;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp13_ = self->priv->version;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp13__length1 = self->priv->version_length1;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ if (_tmp12_ < _tmp13__length1) {
+#line 883 "VersionNumber.c"
+ gint* _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ gint _tmp15_ = 0;
+ gint _tmp16_ = 0;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp14_ = self->priv->version;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp14__length1 = self->priv->version_length1;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp15_ = i;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp16_ = _tmp14_[_tmp15_];
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp11_ = _tmp16_;
+#line 898 "VersionNumber.c"
+ } else {
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp11_ = 0;
+#line 902 "VersionNumber.c"
+ }
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ this_v = _tmp11_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp18_ = i;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp19_ = other;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp20_ = _tmp19_->priv->version;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp20__length1 = _tmp19_->priv->version_length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ if (_tmp18_ < _tmp20__length1) {
+#line 916 "VersionNumber.c"
+ UtilsVersionNumber* _tmp21_ = NULL;
+ gint* _tmp22_ = NULL;
+ gint _tmp22__length1 = 0;
+ gint _tmp23_ = 0;
+ gint _tmp24_ = 0;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp21_ = other;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp22_ = _tmp21_->priv->version;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp22__length1 = _tmp21_->priv->version_length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp23_ = i;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp24_ = _tmp22_[_tmp23_];
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp17_ = _tmp24_;
+#line 934 "VersionNumber.c"
+ } else {
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp17_ = 0;
+#line 938 "VersionNumber.c"
+ }
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ other_v = _tmp17_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp25_ = this_v;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp26_ = other_v;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ res = _tmp25_ - _tmp26_;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ _tmp27_ = res;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ if (_tmp27_ != 0) {
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ break;
+#line 954 "VersionNumber.c"
+ }
+ }
+ }
+ }
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ result = res;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ return result;
+#line 963 "VersionNumber.c"
+}
+
+
+static void utils_version_number_class_init (UtilsVersionNumberClass * klass) {
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ utils_version_number_parent_class = g_type_class_peek_parent (klass);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ g_type_class_add_private (klass, sizeof (UtilsVersionNumberPrivate));
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ G_OBJECT_CLASS (klass)->finalize = utils_version_number_finalize;
+#line 974 "VersionNumber.c"
+}
+
+
+static void utils_version_number_gee_comparable_interface_init (GeeComparableIface * iface) {
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ utils_version_number_gee_comparable_parent_iface = g_type_interface_peek_parent (iface);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ iface->compare_to = (gint (*)(GeeComparable*, gconstpointer)) utils_version_number_real_compare_to;
+#line 983 "VersionNumber.c"
+}
+
+
+static void utils_version_number_instance_init (UtilsVersionNumber * self) {
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self->priv = UTILS_VERSION_NUMBER_GET_PRIVATE (self);
+#line 990 "VersionNumber.c"
+}
+
+
+static void utils_version_number_finalize (GObject* obj) {
+ UtilsVersionNumber * self;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumber);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ self->priv->version = (g_free (self->priv->version), NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
+ G_OBJECT_CLASS (utils_version_number_parent_class)->finalize (obj);
+#line 1002 "VersionNumber.c"
+}
+
+
+/**
+ * A class that represents a version number in the form x.y.z and is able to compare
+ * different versions.
+ */
+GType utils_version_number_get_type (void) {
+ static volatile gsize utils_version_number_type_id__volatile = 0;
+ if (g_once_init_enter (&utils_version_number_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (UtilsVersionNumberClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) utils_version_number_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UtilsVersionNumber), 0, (GInstanceInitFunc) utils_version_number_instance_init, NULL };
+ static const GInterfaceInfo gee_comparable_info = { (GInterfaceInitFunc) utils_version_number_gee_comparable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType utils_version_number_type_id;
+ utils_version_number_type_id = g_type_register_static (G_TYPE_OBJECT, "UtilsVersionNumber", &g_define_type_info, 0);
+ g_type_add_interface_static (utils_version_number_type_id, GEE_TYPE_COMPARABLE, &gee_comparable_info);
+ g_once_init_leave (&utils_version_number_type_id__volatile, utils_version_number_type_id);
+ }
+ return utils_version_number_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);
+}
+
+
+static gint _vala_array_length (gpointer array) {
+ int length;
+ length = 0;
+ if (array) {
+ while (((gpointer*) array)[length]) {
+ length++;
+ }
+ }
+ return length;
+}
+
+
+
diff --git a/plugins/shotwell-data-imports/org.gnome.Shotwell.Imports.gresource.xml b/plugins/shotwell-data-imports/org.gnome.Shotwell.Imports.gresource.xml
new file mode 100644
index 0000000..0c77317
--- /dev/null
+++ b/plugins/shotwell-data-imports/org.gnome.Shotwell.Imports.gresource.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/gnome/Shotwell/Imports">
+ <file>f-spot-24.png</file>
+ </gresource>
+</gresources>
diff --git a/plugins/shotwell-data-imports/shotwell-data-imports.c b/plugins/shotwell-data-imports/shotwell-data-imports.c
new file mode 100644
index 0000000..0c8ea43
--- /dev/null
+++ b/plugins/shotwell-data-imports/shotwell-data-imports.c
@@ -0,0 +1,356 @@
+/* shotwell-data-imports.c generated by valac 0.32.1, the Vala compiler
+ * generated from shotwell-data-imports.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 <shotwell-plugin-dev-1.0.h>
+#include <gio/gio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib/gi18n-lib.h>
+
+
+#define TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES (shotwell_data_imports_core_services_get_type ())
+#define SHOTWELL_DATA_IMPORTS_CORE_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES, ShotwellDataImportsCoreServices))
+#define SHOTWELL_DATA_IMPORTS_CORE_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES, ShotwellDataImportsCoreServicesClass))
+#define IS_SHOTWELL_DATA_IMPORTS_CORE_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES))
+#define IS_SHOTWELL_DATA_IMPORTS_CORE_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES))
+#define SHOTWELL_DATA_IMPORTS_CORE_SERVICES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES, ShotwellDataImportsCoreServicesClass))
+
+typedef struct _ShotwellDataImportsCoreServices ShotwellDataImportsCoreServices;
+typedef struct _ShotwellDataImportsCoreServicesClass ShotwellDataImportsCoreServicesClass;
+typedef struct _ShotwellDataImportsCoreServicesPrivate ShotwellDataImportsCoreServicesPrivate;
+
+#define TYPE_FSPOT_SERVICE (fspot_service_get_type ())
+#define FSPOT_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FSPOT_SERVICE, FSpotService))
+#define FSPOT_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FSPOT_SERVICE, FSpotServiceClass))
+#define IS_FSPOT_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FSPOT_SERVICE))
+#define IS_FSPOT_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FSPOT_SERVICE))
+#define FSPOT_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FSPOT_SERVICE, FSpotServiceClass))
+
+typedef struct _FSpotService FSpotService;
+typedef struct _FSpotServiceClass FSpotServiceClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+struct _ShotwellDataImportsCoreServices {
+ GObject parent_instance;
+ ShotwellDataImportsCoreServicesPrivate * priv;
+};
+
+struct _ShotwellDataImportsCoreServicesClass {
+ GObjectClass parent_class;
+};
+
+struct _ShotwellDataImportsCoreServicesPrivate {
+ SpitPluggable** pluggables;
+ gint pluggables_length1;
+ gint _pluggables_size_;
+};
+
+
+static gpointer shotwell_data_imports_core_services_parent_class = NULL;
+static SpitModuleIface* shotwell_data_imports_core_services_spit_module_parent_iface = NULL;
+
+GType shotwell_data_imports_core_services_get_type (void) G_GNUC_CONST;
+#define SHOTWELL_DATA_IMPORTS_CORE_SERVICES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES, ShotwellDataImportsCoreServicesPrivate))
+enum {
+ SHOTWELL_DATA_IMPORTS_CORE_SERVICES_DUMMY_PROPERTY
+};
+ShotwellDataImportsCoreServices* shotwell_data_imports_core_services_new (GFile* module_file);
+ShotwellDataImportsCoreServices* shotwell_data_imports_core_services_construct (GType object_type, GFile* module_file);
+FSpotService* fspot_service_new (GFile* resource_directory);
+FSpotService* fspot_service_construct (GType object_type, GFile* resource_directory);
+GType fspot_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add7 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+static const gchar* shotwell_data_imports_core_services_real_get_module_name (SpitModule* base);
+static const gchar* shotwell_data_imports_core_services_real_get_version (SpitModule* base);
+static const gchar* shotwell_data_imports_core_services_real_get_id (SpitModule* base);
+static SpitPluggable** shotwell_data_imports_core_services_real_get_pluggables (SpitModule* base, int* result_length1);
+static void shotwell_data_imports_core_services_finalize (GObject* obj);
+SpitModule* spit_entry_point (SpitEntryPointParams* params);
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
+
+
+static void _vala_array_add7 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ if ((*length) == (*size)) {
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 89 "shotwell-data-imports.c"
+ }
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ (*array)[(*length)++] = value;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ (*array)[*length] = NULL;
+#line 95 "shotwell-data-imports.c"
+}
+
+
+ShotwellDataImportsCoreServices* shotwell_data_imports_core_services_construct (GType object_type, GFile* module_file) {
+ ShotwellDataImportsCoreServices * self = NULL;
+ GFile* resource_directory = NULL;
+ GFile* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ SpitPluggable** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ FSpotService* _tmp3_ = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ g_return_val_if_fail (G_IS_FILE (module_file), NULL);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self = (ShotwellDataImportsCoreServices*) g_object_new (object_type, NULL);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp0_ = module_file;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp1_ = g_file_get_parent (_tmp0_);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ resource_directory = _tmp1_;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp2_ = self->priv->pluggables;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp2__length1 = self->priv->pluggables_length1;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp3_ = fspot_service_new (resource_directory);
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _vala_array_add7 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _g_object_unref0 (resource_directory);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ return self;
+#line 129 "shotwell-data-imports.c"
+}
+
+
+ShotwellDataImportsCoreServices* shotwell_data_imports_core_services_new (GFile* module_file) {
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ return shotwell_data_imports_core_services_construct (TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES, module_file);
+#line 136 "shotwell-data-imports.c"
+}
+
+
+static const gchar* shotwell_data_imports_core_services_real_get_module_name (SpitModule* base) {
+ ShotwellDataImportsCoreServices * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES, ShotwellDataImportsCoreServices);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp0_ = _ ("Core Data Import Services");
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ result = _tmp0_;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ return result;
+#line 152 "shotwell-data-imports.c"
+}
+
+
+static const gchar* shotwell_data_imports_core_services_real_get_version (SpitModule* base) {
+ ShotwellDataImportsCoreServices * self;
+ const gchar* result = NULL;
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES, ShotwellDataImportsCoreServices);
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ result = _VERSION;
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ return result;
+#line 165 "shotwell-data-imports.c"
+}
+
+
+static const gchar* shotwell_data_imports_core_services_real_get_id (SpitModule* base) {
+ ShotwellDataImportsCoreServices * self;
+ const gchar* result = NULL;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES, ShotwellDataImportsCoreServices);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ result = "org.yorba.shotwell.data_imports.core_services";
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ return result;
+#line 178 "shotwell-data-imports.c"
+}
+
+
+static SpitPluggable** shotwell_data_imports_core_services_real_get_pluggables (SpitModule* base, int* result_length1) {
+ ShotwellDataImportsCoreServices * self;
+ SpitPluggable** result = NULL;
+ SpitPluggable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ SpitPluggable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES, ShotwellDataImportsCoreServices);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp0_ = self->priv->pluggables;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp0__length1 = self->priv->pluggables_length1;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp1_ = _tmp0_;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ if (result_length1) {
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ *result_length1 = _tmp1__length1;
+#line 203 "shotwell-data-imports.c"
+ }
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ result = _tmp1_;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ return result;
+#line 209 "shotwell-data-imports.c"
+}
+
+
+static void shotwell_data_imports_core_services_class_init (ShotwellDataImportsCoreServicesClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ shotwell_data_imports_core_services_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ g_type_class_add_private (klass, sizeof (ShotwellDataImportsCoreServicesPrivate));
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ G_OBJECT_CLASS (klass)->finalize = shotwell_data_imports_core_services_finalize;
+#line 220 "shotwell-data-imports.c"
+}
+
+
+static void shotwell_data_imports_core_services_spit_module_interface_init (SpitModuleIface * iface) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ shotwell_data_imports_core_services_spit_module_parent_iface = g_type_interface_peek_parent (iface);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ iface->get_module_name = (const gchar* (*)(SpitModule*)) shotwell_data_imports_core_services_real_get_module_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ iface->get_version = (const gchar* (*)(SpitModule*)) shotwell_data_imports_core_services_real_get_version;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ iface->get_id = (const gchar* (*)(SpitModule*)) shotwell_data_imports_core_services_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ iface->get_pluggables = (SpitPluggable** (*)(SpitModule*, int*)) shotwell_data_imports_core_services_real_get_pluggables;
+#line 235 "shotwell-data-imports.c"
+}
+
+
+static void shotwell_data_imports_core_services_instance_init (ShotwellDataImportsCoreServices * self) {
+ SpitPluggable** _tmp0_ = NULL;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self->priv = SHOTWELL_DATA_IMPORTS_CORE_SERVICES_GET_PRIVATE (self);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp0_ = g_new0 (SpitPluggable*, 0 + 1);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self->priv->pluggables = _tmp0_;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self->priv->pluggables_length1 = 0;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self->priv->_pluggables_size_ = self->priv->pluggables_length1;
+#line 251 "shotwell-data-imports.c"
+}
+
+
+static void shotwell_data_imports_core_services_finalize (GObject* obj) {
+ ShotwellDataImportsCoreServices * self;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_DATA_IMPORTS_CORE_SERVICES, ShotwellDataImportsCoreServices);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ G_OBJECT_CLASS (shotwell_data_imports_core_services_parent_class)->finalize (obj);
+#line 263 "shotwell-data-imports.c"
+}
+
+
+GType shotwell_data_imports_core_services_get_type (void) {
+ static volatile gsize shotwell_data_imports_core_services_type_id__volatile = 0;
+ if (g_once_init_enter (&shotwell_data_imports_core_services_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (ShotwellDataImportsCoreServicesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_data_imports_core_services_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellDataImportsCoreServices), 0, (GInstanceInitFunc) shotwell_data_imports_core_services_instance_init, NULL };
+ static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_data_imports_core_services_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType shotwell_data_imports_core_services_type_id;
+ shotwell_data_imports_core_services_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellDataImportsCoreServices", &g_define_type_info, 0);
+ g_type_add_interface_static (shotwell_data_imports_core_services_type_id, SPIT_TYPE_MODULE, &spit_module_info);
+ g_once_init_leave (&shotwell_data_imports_core_services_type_id__volatile, shotwell_data_imports_core_services_type_id);
+ }
+ return shotwell_data_imports_core_services_type_id__volatile;
+}
+
+
+SpitModule* spit_entry_point (SpitEntryPointParams* params) {
+ SpitModule* result = NULL;
+ SpitEntryPointParams* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ SpitEntryPointParams* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+ ShotwellDataImportsCoreServices* _tmp5_ = NULL;
+ SpitEntryPointParams* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp0_ = params;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp1_ = (*_tmp0_).host_min_spit_interface;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp2_ = params;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp3_ = (*_tmp2_).host_max_spit_interface;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp4_ = spit_negotiate_interfaces (_tmp1_, _tmp3_, SPIT_CURRENT_INTERFACE);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ (*params).module_spit_interface = _tmp4_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp6_ = params;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp7_ = (*_tmp6_).module_spit_interface;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ if (_tmp7_ != SPIT_UNSUPPORTED_INTERFACE) {
+#line 309 "shotwell-data-imports.c"
+ SpitEntryPointParams* _tmp8_ = NULL;
+ GFile* _tmp9_ = NULL;
+ ShotwellDataImportsCoreServices* _tmp10_ = NULL;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp8_ = params;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp9_ = (*_tmp8_).module_file;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp10_ = shotwell_data_imports_core_services_new (_tmp9_);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _g_object_unref0 (_tmp5_);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp5_ = _tmp10_;
+#line 323 "shotwell-data-imports.c"
+ } else {
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _g_object_unref0 (_tmp5_);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ _tmp5_ = NULL;
+#line 329 "shotwell-data-imports.c"
+ }
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_MODULE, SpitModule);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/shotwell-data-imports.vala"
+ return result;
+#line 335 "shotwell-data-imports.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/plugins/shotwell-plugin-common.h b/plugins/shotwell-plugin-common.h
new file mode 100644
index 0000000..a50ee95
--- /dev/null
+++ b/plugins/shotwell-plugin-common.h
@@ -0,0 +1,382 @@
+/* shotwell-plugin-common.h generated by valac 0.32.1, the Vala compiler, do not modify */
+
+
+#ifndef __PLUGINS_SHOTWELL_PLUGIN_COMMON_H__
+#define __PLUGINS_SHOTWELL_PLUGIN_COMMON_H__
+
+#include <glib.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib-object.h>
+#include <libsoup/soup.h>
+#include "shotwell-plugin-dev-1.0.h"
+#include <gee.h>
+#include <libxml/tree.h>
+#include <gio/gio.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+G_BEGIN_DECLS
+
+
+#define PUBLISHING_REST_SUPPORT_TYPE_SESSION (publishing_rest_support_session_get_type ())
+#define PUBLISHING_REST_SUPPORT_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))
+#define PUBLISHING_REST_SUPPORT_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass))
+#define PUBLISHING_REST_SUPPORT_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION))
+#define PUBLISHING_REST_SUPPORT_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION))
+#define PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass))
+
+typedef struct _PublishingRESTSupportSession PublishingRESTSupportSession;
+typedef struct _PublishingRESTSupportSessionClass PublishingRESTSupportSessionClass;
+typedef struct _PublishingRESTSupportSessionPrivate PublishingRESTSupportSessionPrivate;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_HTTP_METHOD (publishing_rest_support_http_method_get_type ())
+
+#define PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT (publishing_rest_support_argument_get_type ())
+#define PUBLISHING_REST_SUPPORT_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument))
+#define PUBLISHING_REST_SUPPORT_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass))
+#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT))
+#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT))
+#define PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass))
+
+typedef struct _PublishingRESTSupportArgument PublishingRESTSupportArgument;
+typedef struct _PublishingRESTSupportArgumentClass PublishingRESTSupportArgumentClass;
+typedef struct _PublishingRESTSupportArgumentPrivate PublishingRESTSupportArgumentPrivate;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION (publishing_rest_support_transaction_get_type ())
+#define PUBLISHING_REST_SUPPORT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction))
+#define PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass))
+#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass))
+
+typedef struct _PublishingRESTSupportTransaction PublishingRESTSupportTransaction;
+typedef struct _PublishingRESTSupportTransactionClass PublishingRESTSupportTransactionClass;
+typedef struct _PublishingRESTSupportTransactionPrivate PublishingRESTSupportTransactionPrivate;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_upload_transaction_get_type ())
+#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction))
+#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass))
+#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass))
+
+typedef struct _PublishingRESTSupportUploadTransaction PublishingRESTSupportUploadTransaction;
+typedef struct _PublishingRESTSupportUploadTransactionClass PublishingRESTSupportUploadTransactionClass;
+typedef struct _PublishingRESTSupportUploadTransactionPrivate PublishingRESTSupportUploadTransactionPrivate;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT (publishing_rest_support_xml_document_get_type ())
+#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocument))
+#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass))
+#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT))
+#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT))
+#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass))
+
+typedef struct _PublishingRESTSupportXmlDocument PublishingRESTSupportXmlDocument;
+typedef struct _PublishingRESTSupportXmlDocumentClass PublishingRESTSupportXmlDocumentClass;
+typedef struct _PublishingRESTSupportXmlDocumentPrivate PublishingRESTSupportXmlDocumentPrivate;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER (publishing_rest_support_batch_uploader_get_type ())
+#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader))
+#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass))
+#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER))
+#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER))
+#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass))
+
+typedef struct _PublishingRESTSupportBatchUploader PublishingRESTSupportBatchUploader;
+typedef struct _PublishingRESTSupportBatchUploaderClass PublishingRESTSupportBatchUploaderClass;
+typedef struct _PublishingRESTSupportBatchUploaderPrivate PublishingRESTSupportBatchUploaderPrivate;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION (publishing_rest_support_google_session_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass))
+#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION))
+#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass))
+
+typedef struct _PublishingRESTSupportGoogleSession PublishingRESTSupportGoogleSession;
+typedef struct _PublishingRESTSupportGoogleSessionClass PublishingRESTSupportGoogleSessionClass;
+typedef struct _PublishingRESTSupportGoogleSessionPrivate PublishingRESTSupportGoogleSessionPrivate;
+
+#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER (publishing_rest_support_google_publisher_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass))
+#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER))
+#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass))
+
+typedef struct _PublishingRESTSupportGooglePublisher PublishingRESTSupportGooglePublisher;
+typedef struct _PublishingRESTSupportGooglePublisherClass PublishingRESTSupportGooglePublisherClass;
+typedef struct _PublishingRESTSupportGooglePublisherPrivate PublishingRESTSupportGooglePublisherPrivate;
+
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION (publishing_rest_support_google_publisher_authenticated_transaction_get_type ())
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransaction))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION))
+#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass))
+
+typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction PublishingRESTSupportGooglePublisherAuthenticatedTransaction;
+typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass;
+typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate;
+
+struct _PublishingRESTSupportSession {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRESTSupportSessionPrivate * priv;
+};
+
+struct _PublishingRESTSupportSessionClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRESTSupportSession *self);
+ gboolean (*is_authenticated) (PublishingRESTSupportSession* self);
+};
+
+typedef enum {
+ PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET,
+ PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST,
+ PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT
+} PublishingRESTSupportHttpMethod;
+
+struct _PublishingRESTSupportArgument {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRESTSupportArgumentPrivate * priv;
+ gchar* key;
+ gchar* value;
+};
+
+struct _PublishingRESTSupportArgumentClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRESTSupportArgument *self);
+};
+
+struct _PublishingRESTSupportTransaction {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRESTSupportTransactionPrivate * priv;
+};
+
+struct _PublishingRESTSupportTransactionClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRESTSupportTransaction *self);
+ void (*add_header) (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value);
+ void (*execute) (PublishingRESTSupportTransaction* self, GError** error);
+};
+
+struct _PublishingRESTSupportUploadTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingRESTSupportUploadTransactionPrivate * priv;
+ GHashTable* binary_disposition_table;
+ SpitPublishingPublishable* publishable;
+ gchar* mime_type;
+ GeeHashMap* message_headers;
+};
+
+struct _PublishingRESTSupportUploadTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingRESTSupportXmlDocument {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRESTSupportXmlDocumentPrivate * priv;
+};
+
+struct _PublishingRESTSupportXmlDocumentClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRESTSupportXmlDocument *self);
+};
+
+typedef gchar* (*PublishingRESTSupportXmlDocumentCheckForErrorResponse) (PublishingRESTSupportXmlDocument* doc, void* user_data);
+struct _PublishingRESTSupportBatchUploader {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRESTSupportBatchUploaderPrivate * priv;
+};
+
+struct _PublishingRESTSupportBatchUploaderClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRESTSupportBatchUploader *self);
+ PublishingRESTSupportTransaction* (*create_transaction) (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable);
+};
+
+struct _PublishingRESTSupportGoogleSession {
+ PublishingRESTSupportSession parent_instance;
+ PublishingRESTSupportGoogleSessionPrivate * priv;
+};
+
+struct _PublishingRESTSupportGoogleSessionClass {
+ PublishingRESTSupportSessionClass parent_class;
+ gchar* (*get_user_name) (PublishingRESTSupportGoogleSession* self);
+ gchar* (*get_access_token) (PublishingRESTSupportGoogleSession* self);
+ gchar* (*get_refresh_token) (PublishingRESTSupportGoogleSession* self);
+ void (*deauthenticate) (PublishingRESTSupportGoogleSession* self);
+};
+
+struct _PublishingRESTSupportGooglePublisher {
+ GObject parent_instance;
+ PublishingRESTSupportGooglePublisherPrivate * priv;
+};
+
+struct _PublishingRESTSupportGooglePublisherClass {
+ GObjectClass parent_class;
+ void (*on_login_flow_complete) (PublishingRESTSupportGooglePublisher* self);
+ void (*do_logout) (PublishingRESTSupportGooglePublisher* self);
+ gboolean (*is_running) (PublishingRESTSupportGooglePublisher* self);
+ void (*start) (PublishingRESTSupportGooglePublisher* self);
+ void (*stop) (PublishingRESTSupportGooglePublisher* self);
+};
+
+struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate * priv;
+};
+
+struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+
+gchar* publishing_rest_support_hmac_sha1 (const gchar* key, const gchar* message);
+gpointer publishing_rest_support_session_ref (gpointer instance);
+void publishing_rest_support_session_unref (gpointer instance);
+GParamSpec* publishing_rest_support_param_spec_session (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rest_support_value_set_session (GValue* value, gpointer v_object);
+void publishing_rest_support_value_take_session (GValue* value, gpointer v_object);
+gpointer publishing_rest_support_value_get_session (const GValue* value);
+GType publishing_rest_support_session_get_type (void) G_GNUC_CONST;
+PublishingRESTSupportSession* publishing_rest_support_session_construct (GType object_type, const gchar* endpoint_url);
+void publishing_rest_support_session_notify_wire_message_unqueued (PublishingRESTSupportSession* self, SoupMessage* message);
+void publishing_rest_support_session_notify_authenticated (PublishingRESTSupportSession* self);
+void publishing_rest_support_session_notify_authentication_failed (PublishingRESTSupportSession* self, GError* err);
+gboolean publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self);
+gchar* publishing_rest_support_session_get_endpoint_url (PublishingRESTSupportSession* self);
+void publishing_rest_support_session_stop_transactions (PublishingRESTSupportSession* self);
+gboolean publishing_rest_support_session_are_transactions_stopped (PublishingRESTSupportSession* self);
+void publishing_rest_support_session_send_wire_message (PublishingRESTSupportSession* self, SoupMessage* message);
+GType publishing_rest_support_http_method_get_type (void) G_GNUC_CONST;
+gchar* publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self);
+PublishingRESTSupportHttpMethod publishing_rest_support_http_method_from_string (const gchar* str);
+gpointer publishing_rest_support_argument_ref (gpointer instance);
+void publishing_rest_support_argument_unref (gpointer instance);
+GParamSpec* publishing_rest_support_param_spec_argument (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rest_support_value_set_argument (GValue* value, gpointer v_object);
+void publishing_rest_support_value_take_argument (GValue* value, gpointer v_object);
+gpointer publishing_rest_support_value_get_argument (const GValue* value);
+GType publishing_rest_support_argument_get_type (void) G_GNUC_CONST;
+PublishingRESTSupportArgument* publishing_rest_support_argument_new (const gchar* key, const gchar* value);
+PublishingRESTSupportArgument* publishing_rest_support_argument_construct (GType object_type, const gchar* key, const gchar* value);
+gint publishing_rest_support_argument_compare (PublishingRESTSupportArgument* arg1, PublishingRESTSupportArgument* arg2);
+PublishingRESTSupportArgument** publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, int inputArray_length1, int* result_length1);
+gchar* publishing_rest_support_argument_to_string (PublishingRESTSupportArgument* self);
+gpointer publishing_rest_support_transaction_ref (gpointer instance);
+void publishing_rest_support_transaction_unref (gpointer instance);
+GParamSpec* publishing_rest_support_param_spec_transaction (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rest_support_value_set_transaction (GValue* value, gpointer v_object);
+void publishing_rest_support_value_take_transaction (GValue* value, gpointer v_object);
+gpointer publishing_rest_support_value_get_transaction (const GValue* value);
+GType publishing_rest_support_transaction_get_type (void) G_GNUC_CONST;
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, PublishingRESTSupportHttpMethod method);
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct (GType object_type, PublishingRESTSupportSession* parent_session, PublishingRESTSupportHttpMethod method);
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method);
+PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, PublishingRESTSupportSession* parent_session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method);
+void publishing_rest_support_transaction_check_response (PublishingRESTSupportTransaction* self, SoupMessage* message, GError** error);
+PublishingRESTSupportArgument** publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, int* result_length1);
+PublishingRESTSupportArgument** publishing_rest_support_transaction_get_sorted_arguments (PublishingRESTSupportTransaction* self, int* result_length1);
+void publishing_rest_support_transaction_set_is_executed (PublishingRESTSupportTransaction* self, gboolean is_executed);
+void publishing_rest_support_transaction_send (PublishingRESTSupportTransaction* self, GError** error);
+PublishingRESTSupportHttpMethod publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self);
+void publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value);
+void publishing_rest_support_transaction_set_custom_payload (PublishingRESTSupportTransaction* self, const gchar* custom_payload, const gchar* payload_content_type, gulong payload_length);
+void publishing_rest_support_transaction_set_message (PublishingRESTSupportTransaction* self, SoupMessage* message);
+gboolean publishing_rest_support_transaction_get_is_executed (PublishingRESTSupportTransaction* self);
+guint publishing_rest_support_transaction_get_status_code (PublishingRESTSupportTransaction* self);
+void publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, GError** error);
+gchar* publishing_rest_support_transaction_get_response (PublishingRESTSupportTransaction* self);
+SoupMessageHeaders* publishing_rest_support_transaction_get_response_headers (PublishingRESTSupportTransaction* self);
+SoupMessage* publishing_rest_support_transaction_get_message (PublishingRESTSupportTransaction* self);
+void publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, const gchar* name, const gchar* value);
+gchar* publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self);
+PublishingRESTSupportSession* publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self);
+GType publishing_rest_support_upload_transaction_get_type (void) G_GNUC_CONST;
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new (PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable);
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct (GType object_type, PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable);
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable, const gchar* endpoint_url);
+PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, PublishingRESTSupportSession* session, SpitPublishingPublishable* publishable, const gchar* endpoint_url);
+void publishing_rest_support_upload_transaction_set_binary_disposition_table (PublishingRESTSupportUploadTransaction* self, GHashTable* new_disp_table);
+gpointer publishing_rest_support_xml_document_ref (gpointer instance);
+void publishing_rest_support_xml_document_unref (gpointer instance);
+GParamSpec* publishing_rest_support_param_spec_xml_document (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rest_support_value_set_xml_document (GValue* value, gpointer v_object);
+void publishing_rest_support_value_take_xml_document (GValue* value, gpointer v_object);
+gpointer publishing_rest_support_value_get_xml_document (const GValue* value);
+GType publishing_rest_support_xml_document_get_type (void) G_GNUC_CONST;
+xmlNode* publishing_rest_support_xml_document_get_root_node (PublishingRESTSupportXmlDocument* self);
+xmlNode* publishing_rest_support_xml_document_get_named_child (PublishingRESTSupportXmlDocument* self, xmlNode* parent, const gchar* child_name, GError** error);
+gchar* publishing_rest_support_xml_document_get_property_value (PublishingRESTSupportXmlDocument* self, xmlNode* node, const gchar* property_key, GError** error);
+PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_parse_string (const gchar* input_string, PublishingRESTSupportXmlDocumentCheckForErrorResponse check_for_error_response, void* check_for_error_response_target, GError** error);
+gchar* publishing_rest_support_decimal_entity_encode (const gchar* source);
+gpointer publishing_rest_support_batch_uploader_ref (gpointer instance);
+void publishing_rest_support_batch_uploader_unref (gpointer instance);
+GParamSpec* publishing_rest_support_param_spec_batch_uploader (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rest_support_value_set_batch_uploader (GValue* value, gpointer v_object);
+void publishing_rest_support_value_take_batch_uploader (GValue* value, gpointer v_object);
+gpointer publishing_rest_support_value_get_batch_uploader (const GValue* value);
+GType publishing_rest_support_batch_uploader_get_type (void) G_GNUC_CONST;
+PublishingRESTSupportBatchUploader* publishing_rest_support_batch_uploader_construct (GType object_type, PublishingRESTSupportSession* session, SpitPublishingPublishable** publishables, int publishables_length1);
+PublishingRESTSupportSession* publishing_rest_support_batch_uploader_get_session (PublishingRESTSupportBatchUploader* self);
+SpitPublishingPublishable* publishing_rest_support_batch_uploader_get_current_publishable (PublishingRESTSupportBatchUploader* self);
+PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_create_transaction (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable);
+void publishing_rest_support_batch_uploader_upload (PublishingRESTSupportBatchUploader* self, SpitPublishingProgressCallback status_updated, void* status_updated_target);
+gchar* publishing_rest_support_asciify_string (const gchar* s);
+GType publishing_rest_support_google_session_get_type (void) G_GNUC_CONST;
+gchar* publishing_rest_support_google_session_get_user_name (PublishingRESTSupportGoogleSession* self);
+gchar* publishing_rest_support_google_session_get_access_token (PublishingRESTSupportGoogleSession* self);
+gchar* publishing_rest_support_google_session_get_refresh_token (PublishingRESTSupportGoogleSession* self);
+void publishing_rest_support_google_session_deauthenticate (PublishingRESTSupportGoogleSession* self);
+PublishingRESTSupportGoogleSession* publishing_rest_support_google_session_construct (GType object_type);
+GType publishing_rest_support_google_publisher_get_type (void) G_GNUC_CONST;
+PublishingRESTSupportGooglePublisher* publishing_rest_support_google_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host, const gchar* scope);
+SpitPublishingPluginHost* publishing_rest_support_google_publisher_get_host (PublishingRESTSupportGooglePublisher* self);
+PublishingRESTSupportGoogleSession* publishing_rest_support_google_publisher_get_session (PublishingRESTSupportGooglePublisher* self);
+void publishing_rest_support_google_publisher_start_oauth_flow (PublishingRESTSupportGooglePublisher* self, const gchar* refresh_token);
+void publishing_rest_support_google_publisher_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self);
+void publishing_rest_support_google_publisher_do_logout (PublishingRESTSupportGooglePublisher* self);
+gboolean publishing_rest_support_google_publisher_is_running (PublishingRESTSupportGooglePublisher* self);
+void publishing_rest_support_google_publisher_start (PublishingRESTSupportGooglePublisher* self);
+void publishing_rest_support_google_publisher_stop (PublishingRESTSupportGooglePublisher* self);
+GType publishing_rest_support_google_publisher_authenticated_transaction_get_type (void) G_GNUC_CONST;
+PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new (PublishingRESTSupportGoogleSession* session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method);
+PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session, const gchar* endpoint_url, PublishingRESTSupportHttpMethod method);
+#define RESOURCES_WEBSITE_NAME _ ("Visit the Shotwell home page")
+#define RESOURCES_WEBSITE_URL "https://wiki.gnome.org/Apps/Shotwell"
+#define RESOURCES_LICENSE "\n" \
+"Shotwell is free software; you can redistribute it and/or modify it un" \
+"der the \n" \
+"terms of the GNU Lesser General Public License as published by the Fre" \
+"e \n" \
+"Software Foundation; either version 2.1 of the License, or (at your op" \
+"tion) \n" \
+"any later version.\n" \
+"\n" \
+"Shotwell is distributed in the hope that it will be useful, but WITHOU" \
+"T \n" \
+"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " \
+"FITNESS\n" \
+"FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f" \
+"or \n" \
+"more details.\n" \
+"\n" \
+"You should have received a copy of the GNU Lesser General Public Licen" \
+"se \n" \
+"along with Shotwell; if not, write to the Free Software Foundation, In" \
+"c., \n" \
+"51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n"
+#define RESOURCES_TRANSLATORS _ ("translator-credits")
+GdkPixbuf** resources_load_icon_set (GFile* icon_file, int* result_length1);
+GdkPixbuf** resources_load_from_resource (const gchar* resource_path, int* result_length1);
+
+
+G_END_DECLS
+
+#endif
diff --git a/plugins/shotwell-plugin-common.vapi b/plugins/shotwell-plugin-common.vapi
new file mode 100644
index 0000000..39d0cdd
--- /dev/null
+++ b/plugins/shotwell-plugin-common.vapi
@@ -0,0 +1,139 @@
+/* shotwell-plugin-common.vapi generated by valac 0.32.1, do not modify. */
+
+namespace Publishing {
+ namespace RESTSupport {
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public class Argument {
+ public string key;
+ public string value;
+ public Argument (string key, string value);
+ public static int compare (Publishing.RESTSupport.Argument arg1, Publishing.RESTSupport.Argument arg2);
+ public static Publishing.RESTSupport.Argument[] sort (Publishing.RESTSupport.Argument[] inputArray);
+ public string to_string ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public abstract class BatchUploader {
+ public BatchUploader (Publishing.RESTSupport.Session session, Spit.Publishing.Publishable[] publishables);
+ protected abstract Publishing.RESTSupport.Transaction create_transaction (Spit.Publishing.Publishable publishable);
+ protected Spit.Publishing.Publishable get_current_publishable ();
+ protected Publishing.RESTSupport.Session get_session ();
+ public void upload (Spit.Publishing.ProgressCallback? status_updated = null);
+ public signal void upload_complete (int num_photos_published);
+ public signal void upload_error (Spit.Publishing.PublishingError err);
+ }
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public abstract class GooglePublisher : GLib.Object, Spit.Publishing.Publisher {
+ public class AuthenticatedTransaction : Publishing.RESTSupport.Transaction {
+ public AuthenticatedTransaction (Publishing.RESTSupport.GoogleSession session, string endpoint_url, Publishing.RESTSupport.HttpMethod method);
+ }
+ protected GooglePublisher (Spit.Publishing.Service service, Spit.Publishing.PluginHost host, string scope);
+ protected abstract void do_logout ();
+ protected unowned Spit.Publishing.PluginHost get_host ();
+ protected Publishing.RESTSupport.GoogleSession get_session ();
+ public abstract bool is_running ();
+ protected abstract void on_login_flow_complete ();
+ public abstract void start ();
+ protected void start_oauth_flow (string? refresh_token = null);
+ public abstract void stop ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public abstract class GoogleSession : Publishing.RESTSupport.Session {
+ public GoogleSession ();
+ public abstract void deauthenticate ();
+ public abstract string get_access_token ();
+ public abstract string get_refresh_token ();
+ public abstract string get_user_name ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public abstract class Session {
+ public Session (string? endpoint_url = null);
+ public bool are_transactions_stopped ();
+ public string? get_endpoint_url ();
+ public abstract bool is_authenticated ();
+ protected void notify_authenticated ();
+ protected void notify_authentication_failed (Spit.Publishing.PublishingError err);
+ protected void notify_wire_message_unqueued (Soup.Message message);
+ public void send_wire_message (Soup.Message message);
+ public void stop_transactions ();
+ public signal void authenticated ();
+ public signal void authentication_failed (Spit.Publishing.PublishingError err);
+ public signal void wire_message_unqueued (Soup.Message message);
+ }
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public class Transaction {
+ public Transaction (Publishing.RESTSupport.Session parent_session, Publishing.RESTSupport.HttpMethod method = HttpMethod.POST);
+ public void add_argument (string name, string value);
+ protected virtual void add_header (string key, string value);
+ protected void check_response (Soup.Message message) throws Spit.Publishing.PublishingError;
+ public virtual void execute () throws Spit.Publishing.PublishingError;
+ public Publishing.RESTSupport.Argument[] get_arguments ();
+ public string? get_endpoint_url ();
+ public bool get_is_executed ();
+ public Soup.Message get_message ();
+ public Publishing.RESTSupport.HttpMethod get_method ();
+ public Publishing.RESTSupport.Session get_parent_session ();
+ public string get_response ();
+ public unowned Soup.MessageHeaders get_response_headers ();
+ public Publishing.RESTSupport.Argument[] get_sorted_arguments ();
+ public uint get_status_code ();
+ protected void send () throws Spit.Publishing.PublishingError;
+ protected void set_custom_payload (string? custom_payload, string payload_content_type, ulong payload_length = 0);
+ protected void set_is_executed (bool is_executed);
+ protected void set_message (Soup.Message message);
+ public Transaction.with_endpoint_url (Publishing.RESTSupport.Session parent_session, string endpoint_url, Publishing.RESTSupport.HttpMethod method = HttpMethod.POST);
+ public signal void chunk_transmitted (int bytes_written_so_far, int total_bytes);
+ public signal void completed ();
+ public signal void network_error (Spit.Publishing.PublishingError err);
+ }
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public class UploadTransaction : Publishing.RESTSupport.Transaction {
+ protected GLib.HashTable<string,string> binary_disposition_table;
+ protected Gee.HashMap<string,string> message_headers;
+ protected string mime_type;
+ protected Spit.Publishing.Publishable publishable;
+ public UploadTransaction (Publishing.RESTSupport.Session session, Spit.Publishing.Publishable publishable);
+ protected override void add_header (string key, string value);
+ public override void execute () throws Spit.Publishing.PublishingError;
+ protected void set_binary_disposition_table (GLib.HashTable<string,string> new_disp_table);
+ public UploadTransaction.with_endpoint_url (Publishing.RESTSupport.Session session, Spit.Publishing.Publishable publishable, string endpoint_url);
+ }
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public class XmlDocument {
+ public delegate string? CheckForErrorResponse (Publishing.RESTSupport.XmlDocument doc);
+ public Xml.Node* get_named_child (Xml.Node* parent, string child_name) throws Spit.Publishing.PublishingError;
+ public string get_property_value (Xml.Node* node, string property_key) throws Spit.Publishing.PublishingError;
+ public Xml.Node* get_root_node ();
+ public static Publishing.RESTSupport.XmlDocument parse_string (string? input_string, Publishing.RESTSupport.XmlDocument.CheckForErrorResponse check_for_error_response) throws Spit.Publishing.PublishingError;
+ }
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public enum HttpMethod {
+ GET,
+ POST,
+ PUT;
+ public string to_string ();
+ public static Publishing.RESTSupport.HttpMethod from_string (string str);
+ }
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public static string asciify_string (string s);
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public static string decimal_entity_encode (string source);
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public static string hmac_sha1 (string key, string message);
+ }
+}
+namespace Resources {
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public const string LICENSE;
+ [CCode (cheader_filename = "shotwell-plugin-common.h", cname = "PLUGIN_RESOURCE_PATH")]
+ public const string RESOURCE_PATH;
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public const string TRANSLATORS;
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public const string WEBSITE_NAME;
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public const string WEBSITE_URL;
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public static Gdk.Pixbuf[]? load_from_resource (string resource_path);
+ [CCode (cheader_filename = "shotwell-plugin-common.h")]
+ public static Gdk.Pixbuf[]? load_icon_set (GLib.File? icon_file);
+}
diff --git a/plugins/shotwell-plugin-dev-1.0.h b/plugins/shotwell-plugin-dev-1.0.h
new file mode 100644
index 0000000..fb72125
--- /dev/null
+++ b/plugins/shotwell-plugin-dev-1.0.h
@@ -0,0 +1,900 @@
+/* shotwell-plugin-dev-1.0.h generated by valac 0.32.1, the Vala compiler, do not modify */
+
+
+#ifndef __PLUGINS_SHOTWELL_PLUGIN_DEV_1_0_H__
+#define __PLUGINS_SHOTWELL_PLUGIN_DEV_1_0_H__
+
+#include <glib.h>
+#include <gio/gio.h>
+#include <glib-object.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <float.h>
+#include <math.h>
+#include <gdk/gdk.h>
+#include <cairo.h>
+#include <gtk/gtk.h>
+#include <time.h>
+
+G_BEGIN_DECLS
+
+
+#define SPIT_TYPE_ENTRY_POINT_PARAMS (spit_entry_point_params_get_type ())
+typedef struct _SpitEntryPointParams SpitEntryPointParams;
+
+#define SPIT_TYPE_MODULE (spit_module_get_type ())
+#define SPIT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_MODULE, SpitModule))
+#define SPIT_IS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_MODULE))
+#define SPIT_MODULE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_MODULE, SpitModuleIface))
+
+typedef struct _SpitModule SpitModule;
+typedef struct _SpitModuleIface SpitModuleIface;
+
+#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ())
+#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable))
+#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE))
+#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface))
+
+typedef struct _SpitPluggable SpitPluggable;
+typedef struct _SpitPluggableIface SpitPluggableIface;
+
+#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ())
+typedef struct _SpitPluggableInfo SpitPluggableInfo;
+
+#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ())
+#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface))
+#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE))
+#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface))
+
+typedef struct _SpitHostInterface SpitHostInterface;
+typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface;
+
+#define SPIT_TRANSITIONS_TYPE_DIRECTION (spit_transitions_direction_get_type ())
+
+#define SPIT_TRANSITIONS_TYPE_VISUALS (spit_transitions_visuals_get_type ())
+#define SPIT_TRANSITIONS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals))
+#define SPIT_TRANSITIONS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass))
+#define SPIT_TRANSITIONS_IS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_VISUALS))
+#define SPIT_TRANSITIONS_IS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_VISUALS))
+#define SPIT_TRANSITIONS_VISUALS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass))
+
+typedef struct _SpitTransitionsVisuals SpitTransitionsVisuals;
+typedef struct _SpitTransitionsVisualsClass SpitTransitionsVisualsClass;
+typedef struct _SpitTransitionsVisualsPrivate SpitTransitionsVisualsPrivate;
+
+#define SPIT_TRANSITIONS_TYPE_MOTION (spit_transitions_motion_get_type ())
+#define SPIT_TRANSITIONS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion))
+#define SPIT_TRANSITIONS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass))
+#define SPIT_TRANSITIONS_IS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_MOTION))
+#define SPIT_TRANSITIONS_IS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_MOTION))
+#define SPIT_TRANSITIONS_MOTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass))
+
+typedef struct _SpitTransitionsMotion SpitTransitionsMotion;
+typedef struct _SpitTransitionsMotionClass SpitTransitionsMotionClass;
+typedef struct _SpitTransitionsMotionPrivate SpitTransitionsMotionPrivate;
+
+#define SPIT_TRANSITIONS_TYPE_DESCRIPTOR (spit_transitions_descriptor_get_type ())
+#define SPIT_TRANSITIONS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor))
+#define SPIT_TRANSITIONS_IS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR))
+#define SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptorIface))
+
+typedef struct _SpitTransitionsDescriptor SpitTransitionsDescriptor;
+typedef struct _SpitTransitionsDescriptorIface SpitTransitionsDescriptorIface;
+
+#define SPIT_TRANSITIONS_TYPE_EFFECT (spit_transitions_effect_get_type ())
+#define SPIT_TRANSITIONS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect))
+#define SPIT_TRANSITIONS_IS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT))
+#define SPIT_TRANSITIONS_EFFECT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffectIface))
+
+typedef struct _SpitTransitionsEffect SpitTransitionsEffect;
+typedef struct _SpitTransitionsEffectIface SpitTransitionsEffectIface;
+
+#define SPIT_PUBLISHING_TYPE_PUBLISHER (spit_publishing_publisher_get_type ())
+#define SPIT_PUBLISHING_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))
+#define SPIT_PUBLISHING_IS_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER))
+#define SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisherIface))
+
+typedef struct _SpitPublishingPublisher SpitPublishingPublisher;
+typedef struct _SpitPublishingPublisherIface SpitPublishingPublisherIface;
+
+#define SPIT_PUBLISHING_TYPE_SERVICE (spit_publishing_service_get_type ())
+#define SPIT_PUBLISHING_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService))
+#define SPIT_PUBLISHING_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_SERVICE))
+#define SPIT_PUBLISHING_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingServiceIface))
+
+typedef struct _SpitPublishingService SpitPublishingService;
+typedef struct _SpitPublishingServiceIface SpitPublishingServiceIface;
+
+#define SPIT_PUBLISHING_TYPE_PLUGIN_HOST (spit_publishing_plugin_host_get_type ())
+#define SPIT_PUBLISHING_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost))
+#define SPIT_PUBLISHING_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST))
+#define SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHostIface))
+
+typedef struct _SpitPublishingPluginHost SpitPublishingPluginHost;
+typedef struct _SpitPublishingPluginHostIface SpitPublishingPluginHostIface;
+
+#define SPIT_PUBLISHING_TYPE_DIALOG_PANE (spit_publishing_dialog_pane_get_type ())
+#define SPIT_PUBLISHING_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane))
+#define SPIT_PUBLISHING_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE))
+#define SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPaneIface))
+
+typedef struct _SpitPublishingDialogPane SpitPublishingDialogPane;
+typedef struct _SpitPublishingDialogPaneIface SpitPublishingDialogPaneIface;
+
+#define SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_publishing_dialog_pane_geometry_options_get_type ())
+
+#define SPIT_PUBLISHING_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_publishing_plugin_host_button_mode_get_type ())
+
+#define SPIT_PUBLISHING_TYPE_PUBLISHABLE (spit_publishing_publishable_get_type ())
+#define SPIT_PUBLISHING_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishable))
+#define SPIT_PUBLISHING_IS_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE))
+#define SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishableIface))
+
+typedef struct _SpitPublishingPublishable SpitPublishingPublishable;
+typedef struct _SpitPublishingPublishableIface SpitPublishingPublishableIface;
+
+#define SPIT_PUBLISHING_PUBLISHER_TYPE_MEDIA_TYPE (spit_publishing_publisher_media_type_get_type ())
+
+#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER (spit_data_imports_data_importer_get_type ())
+#define SPIT_DATA_IMPORTS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER))
+#define SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporterIface))
+
+typedef struct _SpitDataImportsDataImporter SpitDataImportsDataImporter;
+typedef struct _SpitDataImportsDataImporterIface SpitDataImportsDataImporterIface;
+
+#define SPIT_DATA_IMPORTS_TYPE_SERVICE (spit_data_imports_service_get_type ())
+#define SPIT_DATA_IMPORTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService))
+#define SPIT_DATA_IMPORTS_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE))
+#define SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsServiceIface))
+
+typedef struct _SpitDataImportsService SpitDataImportsService;
+typedef struct _SpitDataImportsServiceIface SpitDataImportsServiceIface;
+
+#define SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST (spit_data_imports_plugin_host_get_type ())
+#define SPIT_DATA_IMPORTS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost))
+#define SPIT_DATA_IMPORTS_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST))
+#define SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHostIface))
+
+typedef struct _SpitDataImportsPluginHost SpitDataImportsPluginHost;
+typedef struct _SpitDataImportsPluginHostIface SpitDataImportsPluginHostIface;
+
+#define SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE (spit_data_imports_dialog_pane_get_type ())
+#define SPIT_DATA_IMPORTS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane))
+#define SPIT_DATA_IMPORTS_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE))
+#define SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPaneIface))
+
+typedef struct _SpitDataImportsDialogPane SpitDataImportsDialogPane;
+typedef struct _SpitDataImportsDialogPaneIface SpitDataImportsDialogPaneIface;
+
+#define SPIT_DATA_IMPORTS_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_data_imports_dialog_pane_geometry_options_get_type ())
+
+#define SPIT_DATA_IMPORTS_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_data_imports_plugin_host_button_mode_get_type ())
+
+#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY (spit_data_imports_importable_library_get_type ())
+#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibrary))
+#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY))
+#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibraryIface))
+
+typedef struct _SpitDataImportsImportableLibrary SpitDataImportsImportableLibrary;
+typedef struct _SpitDataImportsImportableLibraryIface SpitDataImportsImportableLibraryIface;
+
+#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM (spit_data_imports_importable_media_item_get_type ())
+#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem))
+#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM))
+#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItemIface))
+
+typedef struct _SpitDataImportsImportableMediaItem SpitDataImportsImportableMediaItem;
+typedef struct _SpitDataImportsImportableMediaItemIface SpitDataImportsImportableMediaItemIface;
+
+#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG (spit_data_imports_importable_tag_get_type ())
+#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTag))
+#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG))
+#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTagIface))
+
+typedef struct _SpitDataImportsImportableTag SpitDataImportsImportableTag;
+typedef struct _SpitDataImportsImportableTagIface SpitDataImportsImportableTagIface;
+
+#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT (spit_data_imports_importable_event_get_type ())
+#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEvent))
+#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT))
+#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEventIface))
+
+typedef struct _SpitDataImportsImportableEvent SpitDataImportsImportableEvent;
+typedef struct _SpitDataImportsImportableEventIface SpitDataImportsImportableEventIface;
+
+#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING (spit_data_imports_importable_rating_get_type ())
+#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRating))
+#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING))
+#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRatingIface))
+
+typedef struct _SpitDataImportsImportableRating SpitDataImportsImportableRating;
+typedef struct _SpitDataImportsImportableRatingIface SpitDataImportsImportableRatingIface;
+
+struct _SpitEntryPointParams {
+ gint host_min_spit_interface;
+ gint host_max_spit_interface;
+ gint module_spit_interface;
+ GFile* module_file;
+};
+
+struct _SpitPluggableInfo {
+ gchar* version;
+ gchar* brief_description;
+ gchar* authors;
+ gchar* copyright;
+ gchar* license;
+ gboolean is_license_wordwrapped;
+ gchar* website_url;
+ gchar* website_name;
+ gchar* translators;
+ GdkPixbuf** icons;
+ gint icons_length1;
+};
+
+struct _SpitPluggableIface {
+ GTypeInterface parent_iface;
+ gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface);
+ const gchar* (*get_id) (SpitPluggable* self);
+ const gchar* (*get_pluggable_name) (SpitPluggable* self);
+ void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info);
+ void (*activation) (SpitPluggable* self, gboolean enabled);
+ void (*reserved0) (SpitPluggable* self);
+ void (*reserved1) (SpitPluggable* self);
+ void (*reserved2) (SpitPluggable* self);
+ void (*reserved3) (SpitPluggable* self);
+ void (*reserved4) (SpitPluggable* self);
+ void (*reserved5) (SpitPluggable* self);
+ void (*reserved6) (SpitPluggable* self);
+ void (*reserved7) (SpitPluggable* self);
+};
+
+struct _SpitModuleIface {
+ GTypeInterface parent_iface;
+ const gchar* (*get_module_name) (SpitModule* self);
+ const gchar* (*get_version) (SpitModule* self);
+ const gchar* (*get_id) (SpitModule* self);
+ SpitPluggable** (*get_pluggables) (SpitModule* self, int* result_length1);
+ void (*reserved0) (SpitModule* self);
+ void (*reserved1) (SpitModule* self);
+ void (*reserved2) (SpitModule* self);
+ void (*reserved3) (SpitModule* self);
+ void (*reserved4) (SpitModule* self);
+ void (*reserved5) (SpitModule* self);
+ void (*reserved6) (SpitModule* self);
+ void (*reserved7) (SpitModule* self);
+};
+
+typedef SpitModule* (*SpitEntryPoint) (SpitEntryPointParams* params);
+struct _SpitHostInterfaceIface {
+ GTypeInterface parent_iface;
+ GFile* (*get_module_file) (SpitHostInterface* self);
+ gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def);
+ void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val);
+ gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def);
+ void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val);
+ gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def);
+ void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val);
+ gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def);
+ void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val);
+ void (*unset_config_key) (SpitHostInterface* self, const gchar* key);
+ void (*reserved0) (SpitHostInterface* self);
+ void (*reserved1) (SpitHostInterface* self);
+ void (*reserved2) (SpitHostInterface* self);
+ void (*reserved3) (SpitHostInterface* self);
+ void (*reserved4) (SpitHostInterface* self);
+ void (*reserved5) (SpitHostInterface* self);
+ void (*reserved6) (SpitHostInterface* self);
+ void (*reserved7) (SpitHostInterface* self);
+};
+
+typedef enum {
+ SPIT_TRANSITIONS_DIRECTION_LEFT = 0,
+ SPIT_TRANSITIONS_DIRECTION_RIGHT = 1,
+ SPIT_TRANSITIONS_DIRECTION_FORWARD = SPIT_TRANSITIONS_DIRECTION_LEFT,
+ SPIT_TRANSITIONS_DIRECTION_BACKWARD = SPIT_TRANSITIONS_DIRECTION_RIGHT
+} SpitTransitionsDirection;
+
+struct _SpitTransitionsVisuals {
+ GObject parent_instance;
+ SpitTransitionsVisualsPrivate * priv;
+};
+
+struct _SpitTransitionsVisualsClass {
+ GObjectClass parent_class;
+ void (*reserved0) (SpitTransitionsVisuals* self);
+ void (*reserved1) (SpitTransitionsVisuals* self);
+ void (*reserved2) (SpitTransitionsVisuals* self);
+ void (*reserved3) (SpitTransitionsVisuals* self);
+ void (*reserved4) (SpitTransitionsVisuals* self);
+ void (*reserved5) (SpitTransitionsVisuals* self);
+ void (*reserved6) (SpitTransitionsVisuals* self);
+ void (*reserved7) (SpitTransitionsVisuals* self);
+};
+
+struct _SpitTransitionsMotion {
+ GObject parent_instance;
+ SpitTransitionsMotionPrivate * priv;
+};
+
+struct _SpitTransitionsMotionClass {
+ GObjectClass parent_class;
+ void (*reserved0) (SpitTransitionsMotion* self);
+ void (*reserved1) (SpitTransitionsMotion* self);
+ void (*reserved2) (SpitTransitionsMotion* self);
+ void (*reserved3) (SpitTransitionsMotion* self);
+ void (*reserved4) (SpitTransitionsMotion* self);
+ void (*reserved5) (SpitTransitionsMotion* self);
+ void (*reserved6) (SpitTransitionsMotion* self);
+ void (*reserved7) (SpitTransitionsMotion* self);
+};
+
+struct _SpitTransitionsEffectIface {
+ GTypeInterface parent_iface;
+ void (*get_fps) (SpitTransitionsEffect* self, gint* desired_fps, gint* min_fps);
+ void (*start) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+ gboolean (*needs_clear_background) (SpitTransitionsEffect* self);
+ void (*paint) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+ void (*advance) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+ void (*cancel) (SpitTransitionsEffect* self);
+ void (*reserved0) (SpitTransitionsEffect* self);
+ void (*reserved1) (SpitTransitionsEffect* self);
+ void (*reserved2) (SpitTransitionsEffect* self);
+ void (*reserved3) (SpitTransitionsEffect* self);
+ void (*reserved4) (SpitTransitionsEffect* self);
+ void (*reserved5) (SpitTransitionsEffect* self);
+ void (*reserved6) (SpitTransitionsEffect* self);
+ void (*reserved7) (SpitTransitionsEffect* self);
+};
+
+struct _SpitTransitionsDescriptorIface {
+ GTypeInterface parent_iface;
+ SpitTransitionsEffect* (*create) (SpitTransitionsDescriptor* self, SpitHostInterface* host);
+ void (*reserved0) (SpitTransitionsDescriptor* self);
+ void (*reserved1) (SpitTransitionsDescriptor* self);
+ void (*reserved2) (SpitTransitionsDescriptor* self);
+ void (*reserved3) (SpitTransitionsDescriptor* self);
+ void (*reserved4) (SpitTransitionsDescriptor* self);
+ void (*reserved5) (SpitTransitionsDescriptor* self);
+ void (*reserved6) (SpitTransitionsDescriptor* self);
+ void (*reserved7) (SpitTransitionsDescriptor* self);
+};
+
+typedef enum {
+ SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER,
+ SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED,
+ SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR,
+ SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR,
+ SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE,
+ SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR,
+ SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION,
+ SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED
+} SpitPublishingPublishingError;
+#define SPIT_PUBLISHING_PUBLISHING_ERROR spit_publishing_publishing_error_quark ()
+typedef enum {
+ SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0,
+ SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0,
+ SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1,
+ SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2
+} SpitPublishingDialogPaneGeometryOptions;
+
+struct _SpitPublishingDialogPaneIface {
+ GTypeInterface parent_iface;
+ GtkWidget* (*get_widget) (SpitPublishingDialogPane* self);
+ SpitPublishingDialogPaneGeometryOptions (*get_preferred_geometry) (SpitPublishingDialogPane* self);
+ void (*on_pane_installed) (SpitPublishingDialogPane* self);
+ void (*on_pane_uninstalled) (SpitPublishingDialogPane* self);
+ void (*reserved0) (SpitPublishingDialogPane* self);
+ void (*reserved1) (SpitPublishingDialogPane* self);
+ void (*reserved2) (SpitPublishingDialogPane* self);
+ void (*reserved3) (SpitPublishingDialogPane* self);
+ void (*reserved4) (SpitPublishingDialogPane* self);
+ void (*reserved5) (SpitPublishingDialogPane* self);
+ void (*reserved6) (SpitPublishingDialogPane* self);
+ void (*reserved7) (SpitPublishingDialogPane* self);
+};
+
+typedef enum {
+ SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0,
+ SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1
+} SpitPublishingPluginHostButtonMode;
+
+typedef void (*SpitPublishingLoginCallback) (void* user_data);
+typedef enum {
+ SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE = 0,
+ SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO = 1 << 0,
+ SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO = 1 << 1
+} SpitPublishingPublisherMediaType;
+
+struct _SpitPublishingPublishableIface {
+ GTypeInterface parent_iface;
+ GFile* (*get_serialized_file) (SpitPublishingPublishable* self);
+ gchar* (*get_publishing_name) (SpitPublishingPublishable* self);
+ gchar* (*get_param_string) (SpitPublishingPublishable* self, const gchar* name);
+ gchar** (*get_publishing_keywords) (SpitPublishingPublishable* self, int* result_length1);
+ SpitPublishingPublisherMediaType (*get_media_type) (SpitPublishingPublishable* self);
+ GDateTime* (*get_exposure_date_time) (SpitPublishingPublishable* self);
+ void (*reserved0) (SpitPublishingPublishable* self);
+ void (*reserved1) (SpitPublishingPublishable* self);
+ void (*reserved2) (SpitPublishingPublishable* self);
+ void (*reserved3) (SpitPublishingPublishable* self);
+ void (*reserved4) (SpitPublishingPublishable* self);
+ void (*reserved5) (SpitPublishingPublishable* self);
+ void (*reserved6) (SpitPublishingPublishable* self);
+ void (*reserved7) (SpitPublishingPublishable* self);
+};
+
+typedef void (*SpitPublishingProgressCallback) (gint file_number, gdouble fraction_complete, void* user_data);
+struct _SpitPublishingPluginHostIface {
+ GTypeInterface parent_iface;
+ void (*post_error) (SpitPublishingPluginHost* self, GError* err);
+ void (*stop_publishing) (SpitPublishingPluginHost* self);
+ SpitPublishingPublisher* (*get_publisher) (SpitPublishingPluginHost* self);
+ void (*install_dialog_pane) (SpitPublishingPluginHost* self, SpitPublishingDialogPane* pane, SpitPublishingPluginHostButtonMode mode);
+ void (*install_static_message_pane) (SpitPublishingPluginHost* self, const gchar* message, SpitPublishingPluginHostButtonMode mode);
+ void (*install_pango_message_pane) (SpitPublishingPluginHost* self, const gchar* markup, SpitPublishingPluginHostButtonMode mode);
+ void (*install_success_pane) (SpitPublishingPluginHost* self);
+ void (*install_account_fetch_wait_pane) (SpitPublishingPluginHost* self);
+ void (*install_login_wait_pane) (SpitPublishingPluginHost* self);
+ void (*install_welcome_pane) (SpitPublishingPluginHost* self, const gchar* welcome_message, SpitPublishingLoginCallback on_login_clicked, void* on_login_clicked_target);
+ void (*set_service_locked) (SpitPublishingPluginHost* self, gboolean is_locked);
+ void (*set_dialog_default_widget) (SpitPublishingPluginHost* self, GtkWidget* widget);
+ SpitPublishingPublishable** (*get_publishables) (SpitPublishingPluginHost* self, int* result_length1);
+ SpitPublishingProgressCallback (*serialize_publishables) (SpitPublishingPluginHost* self, gint content_major_axis, gboolean strip_metadata, void** result_target, GDestroyNotify* result_target_destroy_notify);
+ SpitPublishingPublisherMediaType (*get_publishable_media_type) (SpitPublishingPluginHost* self);
+ void (*reserved0) (SpitPublishingPluginHost* self);
+ void (*reserved1) (SpitPublishingPluginHost* self);
+ void (*reserved2) (SpitPublishingPluginHost* self);
+ void (*reserved3) (SpitPublishingPluginHost* self);
+ void (*reserved4) (SpitPublishingPluginHost* self);
+ void (*reserved5) (SpitPublishingPluginHost* self);
+ void (*reserved6) (SpitPublishingPluginHost* self);
+ void (*reserved7) (SpitPublishingPluginHost* self);
+};
+
+struct _SpitPublishingServiceIface {
+ GTypeInterface parent_iface;
+ SpitPublishingPublisher* (*create_publisher) (SpitPublishingService* self, SpitPublishingPluginHost* host);
+ SpitPublishingPublisherMediaType (*get_supported_media) (SpitPublishingService* self);
+ void (*reserved0) (SpitPublishingService* self);
+ void (*reserved1) (SpitPublishingService* self);
+ void (*reserved2) (SpitPublishingService* self);
+ void (*reserved3) (SpitPublishingService* self);
+ void (*reserved4) (SpitPublishingService* self);
+ void (*reserved5) (SpitPublishingService* self);
+ void (*reserved6) (SpitPublishingService* self);
+ void (*reserved7) (SpitPublishingService* self);
+};
+
+struct _SpitPublishingPublisherIface {
+ GTypeInterface parent_iface;
+ SpitPublishingService* (*get_service) (SpitPublishingPublisher* self);
+ void (*start) (SpitPublishingPublisher* self);
+ gboolean (*is_running) (SpitPublishingPublisher* self);
+ void (*stop) (SpitPublishingPublisher* self);
+ void (*reserved0) (SpitPublishingPublisher* self);
+ void (*reserved1) (SpitPublishingPublisher* self);
+ void (*reserved2) (SpitPublishingPublisher* self);
+ void (*reserved3) (SpitPublishingPublisher* self);
+ void (*reserved4) (SpitPublishingPublisher* self);
+ void (*reserved5) (SpitPublishingPublisher* self);
+ void (*reserved6) (SpitPublishingPublisher* self);
+ void (*reserved7) (SpitPublishingPublisher* self);
+};
+
+typedef enum {
+ SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR_UNSUPPORTED_VERSION
+} SpitDataImportsDataImportError;
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR spit_data_imports_data_import_error_quark ()
+typedef enum {
+ SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0,
+ SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0,
+ SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1,
+ SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2
+} SpitDataImportsDialogPaneGeometryOptions;
+
+struct _SpitDataImportsDialogPaneIface {
+ GTypeInterface parent_iface;
+ GtkWidget* (*get_widget) (SpitDataImportsDialogPane* self);
+ SpitDataImportsDialogPaneGeometryOptions (*get_preferred_geometry) (SpitDataImportsDialogPane* self);
+ void (*on_pane_installed) (SpitDataImportsDialogPane* self);
+ void (*on_pane_uninstalled) (SpitDataImportsDialogPane* self);
+ void (*reserved0) (SpitDataImportsDialogPane* self);
+ void (*reserved1) (SpitDataImportsDialogPane* self);
+ void (*reserved2) (SpitDataImportsDialogPane* self);
+ void (*reserved3) (SpitDataImportsDialogPane* self);
+ void (*reserved4) (SpitDataImportsDialogPane* self);
+ void (*reserved5) (SpitDataImportsDialogPane* self);
+ void (*reserved6) (SpitDataImportsDialogPane* self);
+ void (*reserved7) (SpitDataImportsDialogPane* self);
+};
+
+typedef enum {
+ SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0,
+ SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1
+} SpitDataImportsPluginHostButtonMode;
+
+struct _SpitDataImportsImportableLibraryIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_display_name) (SpitDataImportsImportableLibrary* self);
+};
+
+struct _SpitDataImportsImportableTagIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_name) (SpitDataImportsImportableTag* self);
+ SpitDataImportsImportableTag* (*get_parent) (SpitDataImportsImportableTag* self);
+};
+
+struct _SpitDataImportsImportableEventIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_name) (SpitDataImportsImportableEvent* self);
+};
+
+struct _SpitDataImportsImportableRatingIface {
+ GTypeInterface parent_iface;
+ gboolean (*is_unrated) (SpitDataImportsImportableRating* self);
+ gboolean (*is_rejected) (SpitDataImportsImportableRating* self);
+ gint (*get_value) (SpitDataImportsImportableRating* self);
+};
+
+struct _SpitDataImportsImportableMediaItemIface {
+ GTypeInterface parent_iface;
+ SpitDataImportsImportableTag** (*get_tags) (SpitDataImportsImportableMediaItem* self, int* result_length1);
+ SpitDataImportsImportableEvent* (*get_event) (SpitDataImportsImportableMediaItem* self);
+ SpitDataImportsImportableRating* (*get_rating) (SpitDataImportsImportableMediaItem* self);
+ gchar* (*get_title) (SpitDataImportsImportableMediaItem* self);
+ gchar* (*get_folder_path) (SpitDataImportsImportableMediaItem* self);
+ gchar* (*get_filename) (SpitDataImportsImportableMediaItem* self);
+ time_t* (*get_exposure_time) (SpitDataImportsImportableMediaItem* self);
+};
+
+typedef void (*SpitDataImportsImportedItemsCountCallback) (gint imported_items_count, void* user_data);
+struct _SpitDataImportsPluginHostIface {
+ GTypeInterface parent_iface;
+ void (*post_error) (SpitDataImportsPluginHost* self, GError* err);
+ void (*post_error_message) (SpitDataImportsPluginHost* self, const gchar* msg);
+ void (*start_importing) (SpitDataImportsPluginHost* self);
+ void (*stop_importing) (SpitDataImportsPluginHost* self);
+ SpitDataImportsDataImporter* (*get_data_importer) (SpitDataImportsPluginHost* self);
+ void (*install_dialog_pane) (SpitDataImportsPluginHost* self, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode mode);
+ void (*install_static_message_pane) (SpitDataImportsPluginHost* self, const gchar* message, SpitDataImportsPluginHostButtonMode mode);
+ void (*install_library_selection_pane) (SpitDataImportsPluginHost* self, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label);
+ void (*install_import_progress_pane) (SpitDataImportsPluginHost* self, const gchar* message);
+ void (*update_import_progress_pane) (SpitDataImportsPluginHost* self, gdouble progress, const gchar* progress_message);
+ void (*prepare_media_items_for_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message);
+ void (*finalize_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message);
+ void (*reserved0) (SpitDataImportsPluginHost* self);
+ void (*reserved1) (SpitDataImportsPluginHost* self);
+ void (*reserved2) (SpitDataImportsPluginHost* self);
+ void (*reserved3) (SpitDataImportsPluginHost* self);
+ void (*reserved4) (SpitDataImportsPluginHost* self);
+ void (*reserved5) (SpitDataImportsPluginHost* self);
+ void (*reserved6) (SpitDataImportsPluginHost* self);
+ void (*reserved7) (SpitDataImportsPluginHost* self);
+};
+
+struct _SpitDataImportsServiceIface {
+ GTypeInterface parent_iface;
+ SpitDataImportsDataImporter* (*create_data_importer) (SpitDataImportsService* self, SpitDataImportsPluginHost* host);
+ void (*reserved0) (SpitDataImportsService* self);
+ void (*reserved1) (SpitDataImportsService* self);
+ void (*reserved2) (SpitDataImportsService* self);
+ void (*reserved3) (SpitDataImportsService* self);
+ void (*reserved4) (SpitDataImportsService* self);
+ void (*reserved5) (SpitDataImportsService* self);
+ void (*reserved6) (SpitDataImportsService* self);
+ void (*reserved7) (SpitDataImportsService* self);
+};
+
+struct _SpitDataImportsDataImporterIface {
+ GTypeInterface parent_iface;
+ SpitDataImportsService* (*get_service) (SpitDataImportsDataImporter* self);
+ void (*start) (SpitDataImportsDataImporter* self);
+ gboolean (*is_running) (SpitDataImportsDataImporter* self);
+ void (*stop) (SpitDataImportsDataImporter* self);
+ void (*on_library_selected) (SpitDataImportsDataImporter* self, SpitDataImportsImportableLibrary* library);
+ void (*on_file_selected) (SpitDataImportsDataImporter* self, GFile* file);
+ void (*reserved0) (SpitDataImportsDataImporter* self);
+ void (*reserved1) (SpitDataImportsDataImporter* self);
+ void (*reserved2) (SpitDataImportsDataImporter* self);
+ void (*reserved3) (SpitDataImportsDataImporter* self);
+ void (*reserved4) (SpitDataImportsDataImporter* self);
+ void (*reserved5) (SpitDataImportsDataImporter* self);
+ void (*reserved6) (SpitDataImportsDataImporter* self);
+ void (*reserved7) (SpitDataImportsDataImporter* self);
+};
+
+
+#define SPIT_UNSUPPORTED_INTERFACE -1
+#define SPIT_CURRENT_INTERFACE 0
+gint spit_negotiate_interfaces (gint min_host_interface, gint max_host_interface, gint plugin_interface);
+GType spit_entry_point_params_get_type (void) G_GNUC_CONST;
+SpitEntryPointParams* spit_entry_point_params_dup (const SpitEntryPointParams* self);
+void spit_entry_point_params_free (SpitEntryPointParams* self);
+void spit_entry_point_params_copy (const SpitEntryPointParams* self, SpitEntryPointParams* dest);
+void spit_entry_point_params_destroy (SpitEntryPointParams* self);
+GType spit_pluggable_info_get_type (void) G_GNUC_CONST;
+SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self);
+void spit_pluggable_info_free (SpitPluggableInfo* self);
+void spit_pluggable_info_copy (const SpitPluggableInfo* self, SpitPluggableInfo* dest);
+void spit_pluggable_info_destroy (SpitPluggableInfo* self);
+GType spit_pluggable_get_type (void) G_GNUC_CONST;
+GType spit_module_get_type (void) G_GNUC_CONST;
+#define SPIT_ENTRY_POINT_NAME "spit_entry_point"
+const gchar* spit_module_get_module_name (SpitModule* self);
+const gchar* spit_module_get_version (SpitModule* self);
+const gchar* spit_module_get_id (SpitModule* self);
+SpitPluggable** spit_module_get_pluggables (SpitModule* self, int* result_length1);
+void spit_module_reserved0 (SpitModule* self);
+void spit_module_reserved1 (SpitModule* self);
+void spit_module_reserved2 (SpitModule* self);
+void spit_module_reserved3 (SpitModule* self);
+void spit_module_reserved4 (SpitModule* self);
+void spit_module_reserved5 (SpitModule* self);
+void spit_module_reserved6 (SpitModule* self);
+void spit_module_reserved7 (SpitModule* self);
+gint spit_pluggable_get_pluggable_interface (SpitPluggable* self, gint min_host_interface, gint max_host_interface);
+const gchar* spit_pluggable_get_id (SpitPluggable* self);
+const gchar* spit_pluggable_get_pluggable_name (SpitPluggable* self);
+void spit_pluggable_get_info (SpitPluggable* self, SpitPluggableInfo* info);
+void spit_pluggable_activation (SpitPluggable* self, gboolean enabled);
+void spit_pluggable_reserved0 (SpitPluggable* self);
+void spit_pluggable_reserved1 (SpitPluggable* self);
+void spit_pluggable_reserved2 (SpitPluggable* self);
+void spit_pluggable_reserved3 (SpitPluggable* self);
+void spit_pluggable_reserved4 (SpitPluggable* self);
+void spit_pluggable_reserved5 (SpitPluggable* self);
+void spit_pluggable_reserved6 (SpitPluggable* self);
+void spit_pluggable_reserved7 (SpitPluggable* self);
+GType spit_host_interface_get_type (void) G_GNUC_CONST;
+GFile* spit_host_interface_get_module_file (SpitHostInterface* self);
+gboolean spit_host_interface_get_config_bool (SpitHostInterface* self, const gchar* key, gboolean def);
+void spit_host_interface_set_config_bool (SpitHostInterface* self, const gchar* key, gboolean val);
+gint spit_host_interface_get_config_int (SpitHostInterface* self, const gchar* key, gint def);
+void spit_host_interface_set_config_int (SpitHostInterface* self, const gchar* key, gint val);
+gchar* spit_host_interface_get_config_string (SpitHostInterface* self, const gchar* key, const gchar* def);
+void spit_host_interface_set_config_string (SpitHostInterface* self, const gchar* key, const gchar* val);
+gdouble spit_host_interface_get_config_double (SpitHostInterface* self, const gchar* key, gdouble def);
+void spit_host_interface_set_config_double (SpitHostInterface* self, const gchar* key, gdouble val);
+void spit_host_interface_unset_config_key (SpitHostInterface* self, const gchar* key);
+void spit_host_interface_reserved0 (SpitHostInterface* self);
+void spit_host_interface_reserved1 (SpitHostInterface* self);
+void spit_host_interface_reserved2 (SpitHostInterface* self);
+void spit_host_interface_reserved3 (SpitHostInterface* self);
+void spit_host_interface_reserved4 (SpitHostInterface* self);
+void spit_host_interface_reserved5 (SpitHostInterface* self);
+void spit_host_interface_reserved6 (SpitHostInterface* self);
+void spit_host_interface_reserved7 (SpitHostInterface* self);
+#define SPIT_TRANSITIONS_CURRENT_INTERFACE 0
+GType spit_transitions_direction_get_type (void) G_GNUC_CONST;
+GType spit_transitions_visuals_get_type (void) G_GNUC_CONST;
+SpitTransitionsVisuals* spit_transitions_visuals_new (GdkPixbuf* from_pixbuf, GdkRectangle* from_pos, GdkPixbuf* to_pixbuf, GdkRectangle* to_pos, GdkRGBA* bg_color);
+SpitTransitionsVisuals* spit_transitions_visuals_construct (GType object_type, GdkPixbuf* from_pixbuf, GdkRectangle* from_pos, GdkPixbuf* to_pixbuf, GdkRectangle* to_pos, GdkRGBA* bg_color);
+void spit_transitions_visuals_reserved0 (SpitTransitionsVisuals* self);
+void spit_transitions_visuals_reserved1 (SpitTransitionsVisuals* self);
+void spit_transitions_visuals_reserved2 (SpitTransitionsVisuals* self);
+void spit_transitions_visuals_reserved3 (SpitTransitionsVisuals* self);
+void spit_transitions_visuals_reserved4 (SpitTransitionsVisuals* self);
+void spit_transitions_visuals_reserved5 (SpitTransitionsVisuals* self);
+void spit_transitions_visuals_reserved6 (SpitTransitionsVisuals* self);
+void spit_transitions_visuals_reserved7 (SpitTransitionsVisuals* self);
+GdkPixbuf* spit_transitions_visuals_get_from_pixbuf (SpitTransitionsVisuals* self);
+void spit_transitions_visuals_get_from_pos (SpitTransitionsVisuals* self, GdkRectangle* result);
+GdkPixbuf* spit_transitions_visuals_get_to_pixbuf (SpitTransitionsVisuals* self);
+void spit_transitions_visuals_get_to_pos (SpitTransitionsVisuals* self, GdkRectangle* result);
+void spit_transitions_visuals_get_bg_color (SpitTransitionsVisuals* self, GdkRGBA* result);
+GType spit_transitions_motion_get_type (void) G_GNUC_CONST;
+SpitTransitionsMotion* spit_transitions_motion_new (SpitTransitionsDirection direction, gint fps, gint duration_msec);
+SpitTransitionsMotion* spit_transitions_motion_construct (GType object_type, SpitTransitionsDirection direction, gint fps, gint duration_msec);
+gdouble spit_transitions_motion_get_alpha (SpitTransitionsMotion* self, gint frame_number);
+void spit_transitions_motion_reserved0 (SpitTransitionsMotion* self);
+void spit_transitions_motion_reserved1 (SpitTransitionsMotion* self);
+void spit_transitions_motion_reserved2 (SpitTransitionsMotion* self);
+void spit_transitions_motion_reserved3 (SpitTransitionsMotion* self);
+void spit_transitions_motion_reserved4 (SpitTransitionsMotion* self);
+void spit_transitions_motion_reserved5 (SpitTransitionsMotion* self);
+void spit_transitions_motion_reserved6 (SpitTransitionsMotion* self);
+void spit_transitions_motion_reserved7 (SpitTransitionsMotion* self);
+SpitTransitionsDirection spit_transitions_motion_get_direction (SpitTransitionsMotion* self);
+gint spit_transitions_motion_get_fps (SpitTransitionsMotion* self);
+gint spit_transitions_motion_get_duration_msec (SpitTransitionsMotion* self);
+gint spit_transitions_motion_get_total_frames (SpitTransitionsMotion* self);
+gint spit_transitions_motion_get_tick_msec (SpitTransitionsMotion* self);
+GType spit_transitions_effect_get_type (void) G_GNUC_CONST;
+GType spit_transitions_descriptor_get_type (void) G_GNUC_CONST;
+SpitTransitionsEffect* spit_transitions_descriptor_create (SpitTransitionsDescriptor* self, SpitHostInterface* host);
+void spit_transitions_descriptor_reserved0 (SpitTransitionsDescriptor* self);
+void spit_transitions_descriptor_reserved1 (SpitTransitionsDescriptor* self);
+void spit_transitions_descriptor_reserved2 (SpitTransitionsDescriptor* self);
+void spit_transitions_descriptor_reserved3 (SpitTransitionsDescriptor* self);
+void spit_transitions_descriptor_reserved4 (SpitTransitionsDescriptor* self);
+void spit_transitions_descriptor_reserved5 (SpitTransitionsDescriptor* self);
+void spit_transitions_descriptor_reserved6 (SpitTransitionsDescriptor* self);
+void spit_transitions_descriptor_reserved7 (SpitTransitionsDescriptor* self);
+void spit_transitions_effect_get_fps (SpitTransitionsEffect* self, gint* desired_fps, gint* min_fps);
+void spit_transitions_effect_start (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+gboolean spit_transitions_effect_needs_clear_background (SpitTransitionsEffect* self);
+void spit_transitions_effect_paint (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+void spit_transitions_effect_advance (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+void spit_transitions_effect_cancel (SpitTransitionsEffect* self);
+void spit_transitions_effect_reserved0 (SpitTransitionsEffect* self);
+void spit_transitions_effect_reserved1 (SpitTransitionsEffect* self);
+void spit_transitions_effect_reserved2 (SpitTransitionsEffect* self);
+void spit_transitions_effect_reserved3 (SpitTransitionsEffect* self);
+void spit_transitions_effect_reserved4 (SpitTransitionsEffect* self);
+void spit_transitions_effect_reserved5 (SpitTransitionsEffect* self);
+void spit_transitions_effect_reserved6 (SpitTransitionsEffect* self);
+void spit_transitions_effect_reserved7 (SpitTransitionsEffect* self);
+#define SPIT_PUBLISHING_CURRENT_INTERFACE 0
+GQuark spit_publishing_publishing_error_quark (void);
+GType spit_publishing_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST;
+GType spit_publishing_dialog_pane_get_type (void) G_GNUC_CONST;
+GType spit_publishing_plugin_host_button_mode_get_type (void) G_GNUC_CONST;
+GType spit_publishing_publisher_media_type_get_type (void) G_GNUC_CONST;
+GType spit_publishing_publishable_get_type (void) G_GNUC_CONST;
+GType spit_publishing_plugin_host_get_type (void) G_GNUC_CONST;
+GType spit_publishing_service_get_type (void) G_GNUC_CONST;
+GType spit_publishing_publisher_get_type (void) G_GNUC_CONST;
+SpitPublishingService* spit_publishing_publisher_get_service (SpitPublishingPublisher* self);
+void spit_publishing_publisher_start (SpitPublishingPublisher* self);
+gboolean spit_publishing_publisher_is_running (SpitPublishingPublisher* self);
+void spit_publishing_publisher_stop (SpitPublishingPublisher* self);
+void spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self);
+void spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self);
+void spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self);
+void spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self);
+void spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self);
+void spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self);
+void spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self);
+void spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self);
+GtkWidget* spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self);
+SpitPublishingDialogPaneGeometryOptions spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self);
+void spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self);
+void spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self);
+void spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self);
+void spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self);
+void spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self);
+void spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self);
+void spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self);
+void spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self);
+void spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self);
+void spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self);
+void spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self, GError* err);
+void spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self);
+SpitPublishingPublisher* spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self, SpitPublishingDialogPane* pane, SpitPublishingPluginHostButtonMode mode);
+void spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self, const gchar* message, SpitPublishingPluginHostButtonMode mode);
+void spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self, const gchar* markup, SpitPublishingPluginHostButtonMode mode);
+void spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self, const gchar* welcome_message, SpitPublishingLoginCallback on_login_clicked, void* on_login_clicked_target);
+void spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self, gboolean is_locked);
+void spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self, GtkWidget* widget);
+SpitPublishingPublishable** spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self, int* result_length1);
+SpitPublishingProgressCallback spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self, gint content_major_axis, gboolean strip_metadata, void** result_target, GDestroyNotify* result_target_destroy_notify);
+SpitPublishingPublisherMediaType spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self);
+void spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self);
+GFile* spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self);
+gchar* spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self);
+gchar* spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self, const gchar* name);
+gchar** spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self, int* result_length1);
+SpitPublishingPublisherMediaType spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self);
+GDateTime* spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self);
+void spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self);
+void spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self);
+void spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self);
+void spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self);
+void spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self);
+void spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self);
+void spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self);
+void spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self);
+#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME "basename"
+#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_TITLE "title"
+#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT "comment"
+#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT "eventcomment"
+SpitPublishingPublisher* spit_publishing_service_create_publisher (SpitPublishingService* self, SpitPublishingPluginHost* host);
+SpitPublishingPublisherMediaType spit_publishing_service_get_supported_media (SpitPublishingService* self);
+void spit_publishing_service_reserved0 (SpitPublishingService* self);
+void spit_publishing_service_reserved1 (SpitPublishingService* self);
+void spit_publishing_service_reserved2 (SpitPublishingService* self);
+void spit_publishing_service_reserved3 (SpitPublishingService* self);
+void spit_publishing_service_reserved4 (SpitPublishingService* self);
+void spit_publishing_service_reserved5 (SpitPublishingService* self);
+void spit_publishing_service_reserved6 (SpitPublishingService* self);
+void spit_publishing_service_reserved7 (SpitPublishingService* self);
+#define SPIT_DATA_IMPORTS_CURRENT_INTERFACE 0
+GQuark spit_data_imports_data_import_error_quark (void);
+GType spit_data_imports_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_dialog_pane_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_plugin_host_button_mode_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_importable_library_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_importable_tag_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_importable_event_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_importable_rating_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_importable_media_item_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_plugin_host_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_service_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_data_importer_get_type (void) G_GNUC_CONST;
+SpitDataImportsService* spit_data_imports_data_importer_get_service (SpitDataImportsDataImporter* self);
+void spit_data_imports_data_importer_start (SpitDataImportsDataImporter* self);
+gboolean spit_data_imports_data_importer_is_running (SpitDataImportsDataImporter* self);
+void spit_data_imports_data_importer_stop (SpitDataImportsDataImporter* self);
+void spit_data_imports_data_importer_on_library_selected (SpitDataImportsDataImporter* self, SpitDataImportsImportableLibrary* library);
+void spit_data_imports_data_importer_on_file_selected (SpitDataImportsDataImporter* self, GFile* file);
+void spit_data_imports_data_importer_reserved0 (SpitDataImportsDataImporter* self);
+void spit_data_imports_data_importer_reserved1 (SpitDataImportsDataImporter* self);
+void spit_data_imports_data_importer_reserved2 (SpitDataImportsDataImporter* self);
+void spit_data_imports_data_importer_reserved3 (SpitDataImportsDataImporter* self);
+void spit_data_imports_data_importer_reserved4 (SpitDataImportsDataImporter* self);
+void spit_data_imports_data_importer_reserved5 (SpitDataImportsDataImporter* self);
+void spit_data_imports_data_importer_reserved6 (SpitDataImportsDataImporter* self);
+void spit_data_imports_data_importer_reserved7 (SpitDataImportsDataImporter* self);
+gchar* spit_data_imports_importable_library_get_display_name (SpitDataImportsImportableLibrary* self);
+SpitDataImportsImportableTag** spit_data_imports_importable_media_item_get_tags (SpitDataImportsImportableMediaItem* self, int* result_length1);
+SpitDataImportsImportableEvent* spit_data_imports_importable_media_item_get_event (SpitDataImportsImportableMediaItem* self);
+SpitDataImportsImportableRating* spit_data_imports_importable_media_item_get_rating (SpitDataImportsImportableMediaItem* self);
+gchar* spit_data_imports_importable_media_item_get_title (SpitDataImportsImportableMediaItem* self);
+gchar* spit_data_imports_importable_media_item_get_folder_path (SpitDataImportsImportableMediaItem* self);
+gchar* spit_data_imports_importable_media_item_get_filename (SpitDataImportsImportableMediaItem* self);
+time_t* spit_data_imports_importable_media_item_get_exposure_time (SpitDataImportsImportableMediaItem* self);
+gchar* spit_data_imports_importable_tag_get_name (SpitDataImportsImportableTag* self);
+SpitDataImportsImportableTag* spit_data_imports_importable_tag_get_parent (SpitDataImportsImportableTag* self);
+gchar* spit_data_imports_importable_event_get_name (SpitDataImportsImportableEvent* self);
+gboolean spit_data_imports_importable_rating_is_unrated (SpitDataImportsImportableRating* self);
+gboolean spit_data_imports_importable_rating_is_rejected (SpitDataImportsImportableRating* self);
+gint spit_data_imports_importable_rating_get_value (SpitDataImportsImportableRating* self);
+GtkWidget* spit_data_imports_dialog_pane_get_widget (SpitDataImportsDialogPane* self);
+SpitDataImportsDialogPaneGeometryOptions spit_data_imports_dialog_pane_get_preferred_geometry (SpitDataImportsDialogPane* self);
+void spit_data_imports_dialog_pane_on_pane_installed (SpitDataImportsDialogPane* self);
+void spit_data_imports_dialog_pane_on_pane_uninstalled (SpitDataImportsDialogPane* self);
+void spit_data_imports_dialog_pane_reserved0 (SpitDataImportsDialogPane* self);
+void spit_data_imports_dialog_pane_reserved1 (SpitDataImportsDialogPane* self);
+void spit_data_imports_dialog_pane_reserved2 (SpitDataImportsDialogPane* self);
+void spit_data_imports_dialog_pane_reserved3 (SpitDataImportsDialogPane* self);
+void spit_data_imports_dialog_pane_reserved4 (SpitDataImportsDialogPane* self);
+void spit_data_imports_dialog_pane_reserved5 (SpitDataImportsDialogPane* self);
+void spit_data_imports_dialog_pane_reserved6 (SpitDataImportsDialogPane* self);
+void spit_data_imports_dialog_pane_reserved7 (SpitDataImportsDialogPane* self);
+void spit_data_imports_plugin_host_post_error (SpitDataImportsPluginHost* self, GError* err);
+void spit_data_imports_plugin_host_post_error_message (SpitDataImportsPluginHost* self, const gchar* msg);
+void spit_data_imports_plugin_host_start_importing (SpitDataImportsPluginHost* self);
+void spit_data_imports_plugin_host_stop_importing (SpitDataImportsPluginHost* self);
+SpitDataImportsDataImporter* spit_data_imports_plugin_host_get_data_importer (SpitDataImportsPluginHost* self);
+void spit_data_imports_plugin_host_install_dialog_pane (SpitDataImportsPluginHost* self, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode mode);
+void spit_data_imports_plugin_host_install_static_message_pane (SpitDataImportsPluginHost* self, const gchar* message, SpitDataImportsPluginHostButtonMode mode);
+void spit_data_imports_plugin_host_install_library_selection_pane (SpitDataImportsPluginHost* self, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label);
+void spit_data_imports_plugin_host_install_import_progress_pane (SpitDataImportsPluginHost* self, const gchar* message);
+void spit_data_imports_plugin_host_update_import_progress_pane (SpitDataImportsPluginHost* self, gdouble progress, const gchar* progress_message);
+void spit_data_imports_plugin_host_prepare_media_items_for_import (SpitDataImportsPluginHost* self, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message);
+void spit_data_imports_plugin_host_finalize_import (SpitDataImportsPluginHost* self, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message);
+void spit_data_imports_plugin_host_reserved0 (SpitDataImportsPluginHost* self);
+void spit_data_imports_plugin_host_reserved1 (SpitDataImportsPluginHost* self);
+void spit_data_imports_plugin_host_reserved2 (SpitDataImportsPluginHost* self);
+void spit_data_imports_plugin_host_reserved3 (SpitDataImportsPluginHost* self);
+void spit_data_imports_plugin_host_reserved4 (SpitDataImportsPluginHost* self);
+void spit_data_imports_plugin_host_reserved5 (SpitDataImportsPluginHost* self);
+void spit_data_imports_plugin_host_reserved6 (SpitDataImportsPluginHost* self);
+void spit_data_imports_plugin_host_reserved7 (SpitDataImportsPluginHost* self);
+SpitDataImportsDataImporter* spit_data_imports_service_create_data_importer (SpitDataImportsService* self, SpitDataImportsPluginHost* host);
+void spit_data_imports_service_reserved0 (SpitDataImportsService* self);
+void spit_data_imports_service_reserved1 (SpitDataImportsService* self);
+void spit_data_imports_service_reserved2 (SpitDataImportsService* self);
+void spit_data_imports_service_reserved3 (SpitDataImportsService* self);
+void spit_data_imports_service_reserved4 (SpitDataImportsService* self);
+void spit_data_imports_service_reserved5 (SpitDataImportsService* self);
+void spit_data_imports_service_reserved6 (SpitDataImportsService* self);
+void spit_data_imports_service_reserved7 (SpitDataImportsService* self);
+
+
+G_END_DECLS
+
+#endif
diff --git a/plugins/shotwell-plugin-dev-1.0.vapi b/plugins/shotwell-plugin-dev-1.0.vapi
new file mode 100644
index 0000000..e065dab
--- /dev/null
+++ b/plugins/shotwell-plugin-dev-1.0.vapi
@@ -0,0 +1,401 @@
+/* shotwell-plugin-dev-1.0.vapi generated by valac 0.32.1, do not modify. */
+
+namespace Spit {
+ namespace DataImports {
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface DataImporter : GLib.Object {
+ public abstract Spit.DataImports.Service get_service ();
+ public abstract bool is_running ();
+ public abstract void on_file_selected (GLib.File file);
+ public abstract void on_library_selected (Spit.DataImports.ImportableLibrary library);
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ public abstract void start ();
+ public abstract void stop ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface DialogPane : GLib.Object {
+ public enum GeometryOptions {
+ NONE,
+ EXTENDED_SIZE,
+ RESIZABLE,
+ COLOSSAL_SIZE
+ }
+ public abstract Spit.DataImports.DialogPane.GeometryOptions get_preferred_geometry ();
+ public abstract Gtk.Widget get_widget ();
+ public abstract void on_pane_installed ();
+ public abstract void on_pane_uninstalled ();
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface ImportableEvent : GLib.Object {
+ public abstract string get_name ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface ImportableLibrary : GLib.Object {
+ public abstract string get_display_name ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface ImportableMediaItem : GLib.Object {
+ public abstract Spit.DataImports.ImportableEvent? get_event ();
+ public abstract time_t? get_exposure_time ();
+ public abstract string get_filename ();
+ public abstract string get_folder_path ();
+ public abstract Spit.DataImports.ImportableRating get_rating ();
+ public abstract Spit.DataImports.ImportableTag[] get_tags ();
+ public abstract string? get_title ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface ImportableRating : GLib.Object {
+ public abstract int get_value ();
+ public abstract bool is_rejected ();
+ public abstract bool is_unrated ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface ImportableTag : GLib.Object {
+ public abstract string get_name ();
+ public abstract Spit.DataImports.ImportableTag? get_parent ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface PluginHost : GLib.Object, Spit.HostInterface {
+ public enum ButtonMode {
+ CLOSE,
+ CANCEL
+ }
+ public abstract void finalize_import (Spit.DataImports.ImportedItemsCountCallback report_imported_items_count, string? finalize_message = null);
+ public abstract Spit.DataImports.DataImporter get_data_importer ();
+ public abstract void install_dialog_pane (Spit.DataImports.DialogPane pane, Spit.DataImports.PluginHost.ButtonMode mode = ButtonMode.CANCEL);
+ public abstract void install_import_progress_pane (string message);
+ public abstract void install_library_selection_pane (string welcome_message, Spit.DataImports.ImportableLibrary[] discovered_libraries, string? file_select_label);
+ public abstract void install_static_message_pane (string message, Spit.DataImports.PluginHost.ButtonMode mode = ButtonMode.CANCEL);
+ public abstract void post_error (GLib.Error err);
+ public abstract void post_error_message (string msg);
+ public abstract void prepare_media_items_for_import (Spit.DataImports.ImportableMediaItem[] items, double progress, double host_progress_delta = 0.0, string? progress_message = null);
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ public abstract void start_importing ();
+ public abstract void stop_importing ();
+ public abstract void update_import_progress_pane (double progress, string? progress_message = null);
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface Service : GLib.Object, Spit.Pluggable {
+ public abstract Spit.DataImports.DataImporter create_data_importer (Spit.DataImports.PluginHost host);
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public errordomain DataImportError {
+ UNSUPPORTED_VERSION
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public delegate void ImportedItemsCountCallback (int imported_items_count);
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public const int CURRENT_INTERFACE;
+ }
+ namespace Publishing {
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface DialogPane : GLib.Object {
+ public enum GeometryOptions {
+ NONE,
+ EXTENDED_SIZE,
+ RESIZABLE,
+ COLOSSAL_SIZE
+ }
+ public abstract Spit.Publishing.DialogPane.GeometryOptions get_preferred_geometry ();
+ public abstract Gtk.Widget get_widget ();
+ public abstract void on_pane_installed ();
+ public abstract void on_pane_uninstalled ();
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface PluginHost : GLib.Object, Spit.HostInterface {
+ public enum ButtonMode {
+ CLOSE,
+ CANCEL
+ }
+ public abstract Spit.Publishing.Publisher.MediaType get_publishable_media_type ();
+ public abstract Spit.Publishing.Publishable[] get_publishables ();
+ public abstract Spit.Publishing.Publisher get_publisher ();
+ public abstract void install_account_fetch_wait_pane ();
+ public abstract void install_dialog_pane (Spit.Publishing.DialogPane pane, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL);
+ public abstract void install_login_wait_pane ();
+ public abstract void install_pango_message_pane (string markup, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL);
+ public abstract void install_static_message_pane (string message, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL);
+ public abstract void install_success_pane ();
+ public abstract void install_welcome_pane (string welcome_message, Spit.Publishing.LoginCallback on_login_clicked);
+ public abstract void post_error (GLib.Error err);
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ public abstract Spit.Publishing.ProgressCallback? serialize_publishables (int content_major_axis, bool strip_metadata = false);
+ public abstract void set_dialog_default_widget (Gtk.Widget widget);
+ public abstract void set_service_locked (bool is_locked);
+ public abstract void stop_publishing ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface Publishable : GLib.Object {
+ public const string PARAM_STRING_BASENAME;
+ public const string PARAM_STRING_COMMENT;
+ public const string PARAM_STRING_EVENTCOMMENT;
+ public const string PARAM_STRING_TITLE;
+ public abstract GLib.DateTime get_exposure_date_time ();
+ public abstract Spit.Publishing.Publisher.MediaType get_media_type ();
+ public abstract string? get_param_string (string name);
+ public abstract string[] get_publishing_keywords ();
+ public abstract string get_publishing_name ();
+ public abstract GLib.File? get_serialized_file ();
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface Publisher : GLib.Object {
+ public enum MediaType {
+ NONE,
+ PHOTO,
+ VIDEO
+ }
+ public abstract Spit.Publishing.Service get_service ();
+ public abstract bool is_running ();
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ public abstract void start ();
+ public abstract void stop ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface Service : GLib.Object, Spit.Pluggable {
+ public abstract Spit.Publishing.Publisher create_publisher (Spit.Publishing.PluginHost host);
+ public abstract Spit.Publishing.Publisher.MediaType get_supported_media ();
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public errordomain PublishingError {
+ NO_ANSWER,
+ COMMUNICATION_FAILED,
+ PROTOCOL_ERROR,
+ SERVICE_ERROR,
+ MALFORMED_RESPONSE,
+ LOCAL_FILE_ERROR,
+ EXPIRED_SESSION,
+ SSL_FAILED
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public delegate void LoginCallback ();
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public delegate void ProgressCallback (int file_number, double fraction_complete);
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public const int CURRENT_INTERFACE;
+ }
+ namespace Transitions {
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public class Motion : GLib.Object {
+ public Motion (Spit.Transitions.Direction direction, int fps, int duration_msec);
+ public double get_alpha (int frame_number);
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ public Spit.Transitions.Direction direction { get; private set; }
+ public int duration_msec { get; private set; }
+ public int fps { get; private set; }
+ public int tick_msec { get; }
+ public int total_frames { get; }
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public class Visuals : GLib.Object {
+ public Visuals (Gdk.Pixbuf? from_pixbuf, Gdk.Rectangle from_pos, Gdk.Pixbuf? to_pixbuf, Gdk.Rectangle to_pos, Gdk.RGBA bg_color);
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ public Gdk.RGBA bg_color { get; private set; }
+ public Gdk.Pixbuf? from_pixbuf { get; private set; }
+ public Gdk.Rectangle from_pos { get; private set; }
+ public Gdk.Pixbuf? to_pixbuf { get; private set; }
+ public Gdk.Rectangle to_pos { get; private set; }
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface Descriptor : GLib.Object, Spit.Pluggable {
+ public abstract Spit.Transitions.Effect create (Spit.HostInterface host);
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface Effect : GLib.Object {
+ public abstract void advance (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion, int frame_number);
+ public abstract void cancel ();
+ public abstract void get_fps (out int desired_fps, out int min_fps);
+ public abstract bool needs_clear_background ();
+ public abstract void paint (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion, Cairo.Context ctx, int width, int height, int frame_number);
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ public abstract void start (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion);
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public enum Direction {
+ LEFT,
+ RIGHT,
+ FORWARD,
+ BACKWARD
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public const int CURRENT_INTERFACE;
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface HostInterface : GLib.Object {
+ public abstract bool get_config_bool (string key, bool def);
+ public abstract double get_config_double (string key, double def);
+ public abstract int get_config_int (string key, int def);
+ public abstract string? get_config_string (string key, string? def);
+ public abstract GLib.File get_module_file ();
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ public abstract void set_config_bool (string key, bool val);
+ public abstract void set_config_double (string key, double val);
+ public abstract void set_config_int (string key, int val);
+ public abstract void set_config_string (string key, string? val);
+ public abstract void unset_config_key (string key);
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface Module : GLib.Object {
+ public abstract unowned string get_id ();
+ public abstract unowned string get_module_name ();
+ public abstract unowned Spit.Pluggable[]? get_pluggables ();
+ public abstract unowned string get_version ();
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public interface Pluggable : GLib.Object {
+ public abstract void activation (bool enabled);
+ public abstract unowned string get_id ();
+ public abstract void get_info (ref Spit.PluggableInfo info);
+ public abstract int get_pluggable_interface (int min_host_interface, int max_host_interface);
+ public abstract unowned string get_pluggable_name ();
+ protected virtual void reserved0 ();
+ protected virtual void reserved1 ();
+ protected virtual void reserved2 ();
+ protected virtual void reserved3 ();
+ protected virtual void reserved4 ();
+ protected virtual void reserved5 ();
+ protected virtual void reserved6 ();
+ protected virtual void reserved7 ();
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public struct EntryPointParams {
+ public int host_min_spit_interface;
+ public int host_max_spit_interface;
+ public int module_spit_interface;
+ public GLib.File module_file;
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public struct PluggableInfo {
+ public string? version;
+ public string? brief_description;
+ public string? authors;
+ public string? copyright;
+ public string? license;
+ public bool is_license_wordwrapped;
+ public string? website_url;
+ public string? website_name;
+ public string? translators;
+ public Gdk.Pixbuf[]? icons;
+ }
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h", has_target = false)]
+ public delegate Spit.Module? EntryPoint (Spit.EntryPointParams* @params);
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public const int CURRENT_INTERFACE;
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public const string ENTRY_POINT_NAME;
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public const int UNSUPPORTED_INTERFACE;
+ [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
+ public static int negotiate_interfaces (int min_host_interface, int max_host_interface, int plugin_interface);
+}
diff --git a/plugins/shotwell-publishing-extras/GalleryConnector.c b/plugins/shotwell-publishing-extras/GalleryConnector.c
new file mode 100644
index 0000000..bf0174a
--- /dev/null
+++ b/plugins/shotwell-publishing-extras/GalleryConnector.c
@@ -0,0 +1,13000 @@
+/* GalleryConnector.c generated by valac 0.32.1, the Vala compiler
+ * generated from GalleryConnector.vala, do not modify */
+
+/* Copyright 2012-2013 Joe Sapp nixphoeni@gentoo.org
+ *
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include "shotwell-plugin-common.h"
+#include <json-glib/json-glib.h>
+#include <gtk/gtk.h>
+#include <float.h>
+#include <math.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_SHOTWELL_PUBLISHING_GALLERY3 (shotwell_publishing_gallery3_get_type ())
+#define SHOTWELL_PUBLISHING_GALLERY3(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3))
+#define SHOTWELL_PUBLISHING_GALLERY3_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3Class))
+#define IS_SHOTWELL_PUBLISHING_GALLERY3(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_PUBLISHING_GALLERY3))
+#define IS_SHOTWELL_PUBLISHING_GALLERY3_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_PUBLISHING_GALLERY3))
+#define SHOTWELL_PUBLISHING_GALLERY3_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3Class))
+
+typedef struct _ShotwellPublishingGallery3 ShotwellPublishingGallery3;
+typedef struct _ShotwellPublishingGallery3Class ShotwellPublishingGallery3Class;
+typedef struct _ShotwellPublishingGallery3Private ShotwellPublishingGallery3Private;
+
+#define TYPE_GALLERY3_SERVICE (gallery3_service_get_type ())
+#define GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GALLERY3_SERVICE, Gallery3Service))
+#define GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass))
+#define IS_GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GALLERY3_SERVICE))
+#define IS_GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GALLERY3_SERVICE))
+#define GALLERY3_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass))
+
+typedef struct _Gallery3Service Gallery3Service;
+typedef struct _Gallery3ServiceClass Gallery3ServiceClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+typedef struct _Gallery3ServicePrivate Gallery3ServicePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER (publishing_gallery3_gallery_publisher_get_type ())
+#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher))
+#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisherClass))
+#define PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER))
+#define PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER))
+#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisherClass))
+
+typedef struct _PublishingGallery3GalleryPublisher PublishingGallery3GalleryPublisher;
+typedef struct _PublishingGallery3GalleryPublisherClass PublishingGallery3GalleryPublisherClass;
+
+#define PUBLISHING_GALLERY3_TYPE_ALBUM (publishing_gallery3_album_get_type ())
+#define PUBLISHING_GALLERY3_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3Album))
+#define PUBLISHING_GALLERY3_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3AlbumClass))
+#define PUBLISHING_GALLERY3_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_ALBUM))
+#define PUBLISHING_GALLERY3_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_ALBUM))
+#define PUBLISHING_GALLERY3_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3AlbumClass))
+
+typedef struct _PublishingGallery3Album PublishingGallery3Album;
+typedef struct _PublishingGallery3AlbumClass PublishingGallery3AlbumClass;
+typedef struct _PublishingGallery3AlbumPrivate PublishingGallery3AlbumPrivate;
+typedef struct _PublishingGallery3ParamSpecAlbum PublishingGallery3ParamSpecAlbum;
+
+#define PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION (publishing_gallery3_base_gallery_transaction_get_type ())
+#define PUBLISHING_GALLERY3_BASE_GALLERY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction))
+#define PUBLISHING_GALLERY3_BASE_GALLERY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransactionClass))
+#define PUBLISHING_GALLERY3_IS_BASE_GALLERY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION))
+#define PUBLISHING_GALLERY3_IS_BASE_GALLERY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION))
+#define PUBLISHING_GALLERY3_BASE_GALLERY_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransactionClass))
+
+typedef struct _PublishingGallery3BaseGalleryTransaction PublishingGallery3BaseGalleryTransaction;
+typedef struct _PublishingGallery3BaseGalleryTransactionClass PublishingGallery3BaseGalleryTransactionClass;
+typedef struct _PublishingGallery3BaseGalleryTransactionPrivate PublishingGallery3BaseGalleryTransactionPrivate;
+
+#define PUBLISHING_GALLERY3_TYPE_SESSION (publishing_gallery3_session_get_type ())
+#define PUBLISHING_GALLERY3_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session))
+#define PUBLISHING_GALLERY3_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3SessionClass))
+#define PUBLISHING_GALLERY3_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_SESSION))
+#define PUBLISHING_GALLERY3_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_SESSION))
+#define PUBLISHING_GALLERY3_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3SessionClass))
+
+typedef struct _PublishingGallery3Session PublishingGallery3Session;
+typedef struct _PublishingGallery3SessionClass PublishingGallery3SessionClass;
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+
+#define PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION (publishing_gallery3_key_fetch_transaction_get_type ())
+#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransaction))
+#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransactionClass))
+#define PUBLISHING_GALLERY3_IS_KEY_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION))
+#define PUBLISHING_GALLERY3_IS_KEY_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION))
+#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransactionClass))
+
+typedef struct _PublishingGallery3KeyFetchTransaction PublishingGallery3KeyFetchTransaction;
+typedef struct _PublishingGallery3KeyFetchTransactionClass PublishingGallery3KeyFetchTransactionClass;
+typedef struct _PublishingGallery3KeyFetchTransactionPrivate PublishingGallery3KeyFetchTransactionPrivate;
+
+#define PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION (publishing_gallery3_gallery_request_transaction_get_type ())
+#define PUBLISHING_GALLERY3_GALLERY_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, PublishingGallery3GalleryRequestTransaction))
+#define PUBLISHING_GALLERY3_GALLERY_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, PublishingGallery3GalleryRequestTransactionClass))
+#define PUBLISHING_GALLERY3_IS_GALLERY_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION))
+#define PUBLISHING_GALLERY3_IS_GALLERY_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION))
+#define PUBLISHING_GALLERY3_GALLERY_REQUEST_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, PublishingGallery3GalleryRequestTransactionClass))
+
+typedef struct _PublishingGallery3GalleryRequestTransaction PublishingGallery3GalleryRequestTransaction;
+typedef struct _PublishingGallery3GalleryRequestTransactionClass PublishingGallery3GalleryRequestTransactionClass;
+typedef struct _PublishingGallery3GalleryRequestTransactionPrivate PublishingGallery3GalleryRequestTransactionPrivate;
+
+#define PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION (publishing_gallery3_get_album_ur_ls_transaction_get_type ())
+#define PUBLISHING_GALLERY3_GET_ALBUM_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, PublishingGallery3GetAlbumURLsTransaction))
+#define PUBLISHING_GALLERY3_GET_ALBUM_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, PublishingGallery3GetAlbumURLsTransactionClass))
+#define PUBLISHING_GALLERY3_IS_GET_ALBUM_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION))
+#define PUBLISHING_GALLERY3_IS_GET_ALBUM_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION))
+#define PUBLISHING_GALLERY3_GET_ALBUM_UR_LS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, PublishingGallery3GetAlbumURLsTransactionClass))
+
+typedef struct _PublishingGallery3GetAlbumURLsTransaction PublishingGallery3GetAlbumURLsTransaction;
+typedef struct _PublishingGallery3GetAlbumURLsTransactionClass PublishingGallery3GetAlbumURLsTransactionClass;
+typedef struct _PublishingGallery3GetAlbumURLsTransactionPrivate PublishingGallery3GetAlbumURLsTransactionPrivate;
+
+#define PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION (publishing_gallery3_get_albums_transaction_get_type ())
+#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransaction))
+#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransactionClass))
+#define PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION))
+#define PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION))
+#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransactionClass))
+
+typedef struct _PublishingGallery3GetAlbumsTransaction PublishingGallery3GetAlbumsTransaction;
+typedef struct _PublishingGallery3GetAlbumsTransactionClass PublishingGallery3GetAlbumsTransactionClass;
+typedef struct _PublishingGallery3GetAlbumsTransactionPrivate PublishingGallery3GetAlbumsTransactionPrivate;
+#define _publishing_gallery3_album_unref0(var) ((var == NULL) ? NULL : (var = (publishing_gallery3_album_unref (var), NULL)))
+
+#define PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION (publishing_gallery3_gallery_get_tag_transaction_get_type ())
+#define PUBLISHING_GALLERY3_GALLERY_GET_TAG_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, PublishingGallery3GalleryGetTagTransaction))
+#define PUBLISHING_GALLERY3_GALLERY_GET_TAG_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, PublishingGallery3GalleryGetTagTransactionClass))
+#define PUBLISHING_GALLERY3_IS_GALLERY_GET_TAG_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION))
+#define PUBLISHING_GALLERY3_IS_GALLERY_GET_TAG_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION))
+#define PUBLISHING_GALLERY3_GALLERY_GET_TAG_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, PublishingGallery3GalleryGetTagTransactionClass))
+
+typedef struct _PublishingGallery3GalleryGetTagTransaction PublishingGallery3GalleryGetTagTransaction;
+typedef struct _PublishingGallery3GalleryGetTagTransactionClass PublishingGallery3GalleryGetTagTransactionClass;
+typedef struct _PublishingGallery3GalleryGetTagTransactionPrivate PublishingGallery3GalleryGetTagTransactionPrivate;
+#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL)))
+#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL)))
+
+#define PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION (publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_type ())
+#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransaction))
+#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransactionClass))
+#define PUBLISHING_GALLERY3_IS_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION))
+#define PUBLISHING_GALLERY3_IS_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION))
+#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransactionClass))
+
+typedef struct _PublishingGallery3GalleryGetItemTagsURLsTransaction PublishingGallery3GalleryGetItemTagsURLsTransaction;
+typedef struct _PublishingGallery3GalleryGetItemTagsURLsTransactionClass PublishingGallery3GalleryGetItemTagsURLsTransactionClass;
+typedef struct _PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate;
+
+#define PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION (publishing_gallery3_gallery_set_tag_relationship_transaction_get_type ())
+#define PUBLISHING_GALLERY3_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, PublishingGallery3GallerySetTagRelationshipTransaction))
+#define PUBLISHING_GALLERY3_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, PublishingGallery3GallerySetTagRelationshipTransactionClass))
+#define PUBLISHING_GALLERY3_IS_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION))
+#define PUBLISHING_GALLERY3_IS_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION))
+#define PUBLISHING_GALLERY3_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, PublishingGallery3GallerySetTagRelationshipTransactionClass))
+
+typedef struct _PublishingGallery3GallerySetTagRelationshipTransaction PublishingGallery3GallerySetTagRelationshipTransaction;
+typedef struct _PublishingGallery3GallerySetTagRelationshipTransactionClass PublishingGallery3GallerySetTagRelationshipTransactionClass;
+typedef struct _PublishingGallery3GallerySetTagRelationshipTransactionPrivate PublishingGallery3GallerySetTagRelationshipTransactionPrivate;
+
+#define PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION (publishing_gallery3_gallery_album_create_transaction_get_type ())
+#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransaction))
+#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransactionClass))
+#define PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION))
+#define PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION))
+#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransactionClass))
+
+typedef struct _PublishingGallery3GalleryAlbumCreateTransaction PublishingGallery3GalleryAlbumCreateTransaction;
+typedef struct _PublishingGallery3GalleryAlbumCreateTransactionClass PublishingGallery3GalleryAlbumCreateTransactionClass;
+typedef struct _PublishingGallery3GalleryAlbumCreateTransactionPrivate PublishingGallery3GalleryAlbumCreateTransactionPrivate;
+
+#define PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS (publishing_gallery3_publishing_parameters_get_type ())
+#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParameters))
+#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParametersClass))
+#define PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParametersClass))
+
+typedef struct _PublishingGallery3PublishingParameters PublishingGallery3PublishingParameters;
+typedef struct _PublishingGallery3PublishingParametersClass PublishingGallery3PublishingParametersClass;
+#define _publishing_gallery3_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_gallery3_publishing_parameters_unref (var), NULL)))
+
+#define PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION (publishing_gallery3_gallery_upload_transaction_get_type ())
+#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransaction))
+#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransactionClass))
+#define PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION))
+#define PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION))
+#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransactionClass))
+
+typedef struct _PublishingGallery3GalleryUploadTransaction PublishingGallery3GalleryUploadTransaction;
+typedef struct _PublishingGallery3GalleryUploadTransactionClass PublishingGallery3GalleryUploadTransactionClass;
+typedef struct _PublishingGallery3GalleryUploadTransactionPrivate PublishingGallery3GalleryUploadTransactionPrivate;
+#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL)))
+#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
+#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL)))
+typedef struct _PublishingGallery3GalleryPublisherPrivate PublishingGallery3GalleryPublisherPrivate;
+
+#define PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE (publishing_gallery3_publishing_options_pane_get_type ())
+#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane))
+#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPaneClass))
+#define PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPaneClass))
+
+typedef struct _PublishingGallery3PublishingOptionsPane PublishingGallery3PublishingOptionsPane;
+typedef struct _PublishingGallery3PublishingOptionsPaneClass PublishingGallery3PublishingOptionsPaneClass;
+
+#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_TYPE_MODE (publishing_gallery3_credentials_pane_mode_get_type ())
+
+#define PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE (publishing_gallery3_credentials_pane_get_type ())
+#define PUBLISHING_GALLERY3_CREDENTIALS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane))
+#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPaneClass))
+#define PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE))
+#define PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE))
+#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPaneClass))
+
+typedef struct _PublishingGallery3CredentialsPane PublishingGallery3CredentialsPane;
+typedef struct _PublishingGallery3CredentialsPaneClass PublishingGallery3CredentialsPaneClass;
+
+#define PUBLISHING_GALLERY3_TYPE_UPLOADER (publishing_gallery3_uploader_get_type ())
+#define PUBLISHING_GALLERY3_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3Uploader))
+#define PUBLISHING_GALLERY3_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3UploaderClass))
+#define PUBLISHING_GALLERY3_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_UPLOADER))
+#define PUBLISHING_GALLERY3_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_UPLOADER))
+#define PUBLISHING_GALLERY3_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3UploaderClass))
+
+typedef struct _PublishingGallery3Uploader PublishingGallery3Uploader;
+typedef struct _PublishingGallery3UploaderClass PublishingGallery3UploaderClass;
+#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL)))
+typedef struct _PublishingGallery3PublishingOptionsPanePrivate PublishingGallery3PublishingOptionsPanePrivate;
+#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))
+typedef struct _PublishingGallery3PublishingParametersPrivate PublishingGallery3PublishingParametersPrivate;
+typedef struct _PublishingGallery3ParamSpecPublishingParameters PublishingGallery3ParamSpecPublishingParameters;
+typedef struct _PublishingGallery3CredentialsPanePrivate PublishingGallery3CredentialsPanePrivate;
+
+#define PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID (publishing_gallery3_credentials_grid_get_type ())
+#define PUBLISHING_GALLERY3_CREDENTIALS_GRID(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid))
+#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGridClass))
+#define PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID))
+#define PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID))
+#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGridClass))
+
+typedef struct _PublishingGallery3CredentialsGrid PublishingGallery3CredentialsGrid;
+typedef struct _PublishingGallery3CredentialsGridClass PublishingGallery3CredentialsGridClass;
+typedef struct _PublishingGallery3CredentialsGridPrivate PublishingGallery3CredentialsGridPrivate;
+typedef struct _PublishingGallery3SessionPrivate PublishingGallery3SessionPrivate;
+typedef struct _PublishingGallery3UploaderPrivate PublishingGallery3UploaderPrivate;
+#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 _ShotwellPublishingGallery3 {
+ GObject parent_instance;
+ ShotwellPublishingGallery3Private * priv;
+};
+
+struct _ShotwellPublishingGallery3Class {
+ GObjectClass parent_class;
+};
+
+struct _ShotwellPublishingGallery3Private {
+ SpitPluggable** pluggables;
+ gint pluggables_length1;
+ gint _pluggables_size_;
+};
+
+struct _Gallery3Service {
+ GObject parent_instance;
+ Gallery3ServicePrivate * priv;
+};
+
+struct _Gallery3ServiceClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingGallery3Album {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingGallery3AlbumPrivate * priv;
+};
+
+struct _PublishingGallery3AlbumClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingGallery3Album *self);
+};
+
+struct _PublishingGallery3AlbumPrivate {
+ gchar* _name;
+ gchar* _title;
+ gchar* _summary;
+ gchar* _parentname;
+ gchar* _url;
+ gchar* _path;
+ gboolean _editable;
+};
+
+struct _PublishingGallery3ParamSpecAlbum {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingGallery3BaseGalleryTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingGallery3BaseGalleryTransactionPrivate * priv;
+ JsonParser* parser;
+};
+
+struct _PublishingGallery3BaseGalleryTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingGallery3KeyFetchTransaction {
+ PublishingGallery3BaseGalleryTransaction parent_instance;
+ PublishingGallery3KeyFetchTransactionPrivate * priv;
+};
+
+struct _PublishingGallery3KeyFetchTransactionClass {
+ PublishingGallery3BaseGalleryTransactionClass parent_class;
+};
+
+struct _PublishingGallery3KeyFetchTransactionPrivate {
+ gchar* key;
+};
+
+struct _PublishingGallery3GalleryRequestTransaction {
+ PublishingGallery3BaseGalleryTransaction parent_instance;
+ PublishingGallery3GalleryRequestTransactionPrivate * priv;
+};
+
+struct _PublishingGallery3GalleryRequestTransactionClass {
+ PublishingGallery3BaseGalleryTransactionClass parent_class;
+};
+
+struct _PublishingGallery3GetAlbumURLsTransaction {
+ PublishingGallery3GalleryRequestTransaction parent_instance;
+ PublishingGallery3GetAlbumURLsTransactionPrivate * priv;
+};
+
+struct _PublishingGallery3GetAlbumURLsTransactionClass {
+ PublishingGallery3GalleryRequestTransactionClass parent_class;
+};
+
+struct _PublishingGallery3GetAlbumsTransaction {
+ PublishingGallery3GalleryRequestTransaction parent_instance;
+ PublishingGallery3GetAlbumsTransactionPrivate * priv;
+};
+
+struct _PublishingGallery3GetAlbumsTransactionClass {
+ PublishingGallery3GalleryRequestTransactionClass parent_class;
+};
+
+struct _PublishingGallery3GetAlbumsTransactionPrivate {
+ gchar** _album_urls;
+ gint _album_urls_length1;
+ gint __album_urls_size_;
+ guint _urls_sent;
+ gboolean _more_urls;
+};
+
+struct _PublishingGallery3GalleryGetTagTransaction {
+ PublishingGallery3BaseGalleryTransaction parent_instance;
+ PublishingGallery3GalleryGetTagTransactionPrivate * priv;
+};
+
+struct _PublishingGallery3GalleryGetTagTransactionClass {
+ PublishingGallery3BaseGalleryTransactionClass parent_class;
+};
+
+struct _PublishingGallery3GalleryGetItemTagsURLsTransaction {
+ PublishingGallery3GalleryRequestTransaction parent_instance;
+ PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate * priv;
+};
+
+struct _PublishingGallery3GalleryGetItemTagsURLsTransactionClass {
+ PublishingGallery3GalleryRequestTransactionClass parent_class;
+};
+
+struct _PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate {
+ gchar* item_tags_path;
+};
+
+struct _PublishingGallery3GallerySetTagRelationshipTransaction {
+ PublishingGallery3BaseGalleryTransaction parent_instance;
+ PublishingGallery3GallerySetTagRelationshipTransactionPrivate * priv;
+};
+
+struct _PublishingGallery3GallerySetTagRelationshipTransactionClass {
+ PublishingGallery3BaseGalleryTransactionClass parent_class;
+};
+
+struct _PublishingGallery3GalleryAlbumCreateTransaction {
+ PublishingGallery3BaseGalleryTransaction parent_instance;
+ PublishingGallery3GalleryAlbumCreateTransactionPrivate * priv;
+};
+
+struct _PublishingGallery3GalleryAlbumCreateTransactionClass {
+ PublishingGallery3BaseGalleryTransactionClass parent_class;
+};
+
+struct _PublishingGallery3GalleryAlbumCreateTransactionPrivate {
+ PublishingGallery3PublishingParameters* _parameters;
+ gchar* session_url;
+};
+
+struct _PublishingGallery3GalleryUploadTransaction {
+ PublishingRESTSupportUploadTransaction parent_instance;
+ PublishingGallery3GalleryUploadTransactionPrivate * priv;
+};
+
+struct _PublishingGallery3GalleryUploadTransactionClass {
+ PublishingRESTSupportUploadTransactionClass parent_class;
+};
+
+struct _PublishingGallery3GalleryUploadTransactionPrivate {
+ PublishingGallery3Session* session;
+ JsonGenerator* generator;
+ PublishingGallery3PublishingParameters* parameters;
+ gchar* item_url;
+ gchar* item_path;
+ gchar* item_tags_path;
+};
+
+struct _PublishingGallery3GalleryPublisher {
+ GObject parent_instance;
+ PublishingGallery3GalleryPublisherPrivate * priv;
+};
+
+struct _PublishingGallery3GalleryPublisherClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingGallery3GalleryPublisherPrivate {
+ SpitPublishingPluginHost* host;
+ SpitPublishingProgressCallback progress_reporter;
+ gpointer progress_reporter_target;
+ GDestroyNotify progress_reporter_target_destroy_notify;
+ SpitPublishingService* service;
+ PublishingGallery3Session* session;
+ gboolean running;
+ PublishingGallery3Album** albums;
+ gint albums_length1;
+ gint _albums_size_;
+ gchar* key;
+ PublishingGallery3PublishingOptionsPane* publishing_options_pane;
+};
+
+typedef enum {
+ PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO,
+ PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY,
+ PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL
+} PublishingGallery3CredentialsPaneMode;
+
+struct _PublishingGallery3PublishingOptionsPane {
+ GObject parent_instance;
+ PublishingGallery3PublishingOptionsPanePrivate * priv;
+};
+
+struct _PublishingGallery3PublishingOptionsPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingGallery3PublishingOptionsPanePrivate {
+ GtkBuilder* builder;
+ GtkGrid* pane_widget;
+ GtkLabel* title_label;
+ GtkRadioButton* use_existing_radio;
+ GtkComboBoxText* existing_albums_combo;
+ GtkRadioButton* create_new_radio;
+ GtkEntry* new_album_entry;
+ GtkComboBoxText* scaling_combo;
+ GtkEntry* pixels;
+ GtkCheckButton* strip_metadata_check;
+ GtkButton* publish_button;
+ GtkButton* logout_button;
+ PublishingGallery3Album** albums;
+ gint albums_length1;
+ gint _albums_size_;
+ SpitPublishingPluginHost* host;
+};
+
+struct _PublishingGallery3PublishingParameters {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingGallery3PublishingParametersPrivate * priv;
+};
+
+struct _PublishingGallery3PublishingParametersClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingGallery3PublishingParameters *self);
+};
+
+struct _PublishingGallery3PublishingParametersPrivate {
+ gchar* _album_title;
+ gchar* _album_name;
+ gchar* _album_path;
+ gchar* _entity_title;
+ gint _photo_major_axis_size;
+ gboolean _strip_metadata;
+};
+
+struct _PublishingGallery3ParamSpecPublishingParameters {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingGallery3CredentialsPane {
+ GObject parent_instance;
+ PublishingGallery3CredentialsPanePrivate * priv;
+};
+
+struct _PublishingGallery3CredentialsPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingGallery3CredentialsPanePrivate {
+ PublishingGallery3CredentialsGrid* frame;
+ GtkWidget* grid_widget;
+};
+
+struct _PublishingGallery3CredentialsGrid {
+ GObject parent_instance;
+ PublishingGallery3CredentialsGridPrivate * priv;
+};
+
+struct _PublishingGallery3CredentialsGridClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingGallery3CredentialsGridPrivate {
+ GtkGrid* _pane_widget;
+ SpitPublishingPluginHost* host;
+ GtkBuilder* builder;
+ GtkLabel* intro_message_label;
+ GtkEntry* url_entry;
+ GtkEntry* username_entry;
+ GtkEntry* password_entry;
+ GtkEntry* key_entry;
+ GtkButton* login_button;
+ GtkButton* go_back_button;
+ gchar* url;
+ gchar* username;
+ gchar* key;
+};
+
+struct _PublishingGallery3Session {
+ PublishingRESTSupportSession parent_instance;
+ PublishingGallery3SessionPrivate * priv;
+};
+
+struct _PublishingGallery3SessionClass {
+ PublishingRESTSupportSessionClass parent_class;
+};
+
+struct _PublishingGallery3SessionPrivate {
+ gchar* _url;
+ gchar* _username;
+ gchar* _key;
+};
+
+struct _PublishingGallery3Uploader {
+ PublishingRESTSupportBatchUploader parent_instance;
+ PublishingGallery3UploaderPrivate * priv;
+};
+
+struct _PublishingGallery3UploaderClass {
+ PublishingRESTSupportBatchUploaderClass parent_class;
+};
+
+struct _PublishingGallery3UploaderPrivate {
+ PublishingGallery3PublishingParameters* parameters;
+ gchar* _current_publishable_name;
+ SpitPublishingPublisherMediaType _current_media_type;
+ PublishingRESTSupportTransaction* _current_transaction;
+};
+
+
+static gpointer shotwell_publishing_gallery3_parent_class = NULL;
+static SpitModuleIface* shotwell_publishing_gallery3_spit_module_parent_iface = NULL;
+static gpointer gallery3_service_parent_class = NULL;
+static GdkPixbuf** gallery3_service_icon_pixbuf_set;
+static gint gallery3_service_icon_pixbuf_set_length1;
+static GdkPixbuf** gallery3_service_icon_pixbuf_set = NULL;
+static gint gallery3_service_icon_pixbuf_set_length1 = 0;
+static gint _gallery3_service_icon_pixbuf_set_size_ = 0;
+static SpitPluggableIface* gallery3_service_spit_pluggable_parent_iface = NULL;
+static SpitPublishingServiceIface* gallery3_service_spit_publishing_service_parent_iface = NULL;
+static gpointer publishing_gallery3_album_parent_class = NULL;
+static gpointer publishing_gallery3_base_gallery_transaction_parent_class = NULL;
+static gpointer publishing_gallery3_key_fetch_transaction_parent_class = NULL;
+static gpointer publishing_gallery3_gallery_request_transaction_parent_class = NULL;
+static gpointer publishing_gallery3_get_album_ur_ls_transaction_parent_class = NULL;
+static gpointer publishing_gallery3_get_albums_transaction_parent_class = NULL;
+static gpointer publishing_gallery3_gallery_get_tag_transaction_parent_class = NULL;
+static gpointer publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_parent_class = NULL;
+static gpointer publishing_gallery3_gallery_set_tag_relationship_transaction_parent_class = NULL;
+static gpointer publishing_gallery3_gallery_album_create_transaction_parent_class = NULL;
+static gpointer publishing_gallery3_gallery_upload_transaction_parent_class = NULL;
+static gpointer publishing_gallery3_gallery_publisher_parent_class = NULL;
+static SpitPublishingPublisherIface* publishing_gallery3_gallery_publisher_spit_publishing_publisher_parent_iface = NULL;
+static gpointer publishing_gallery3_publishing_options_pane_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_gallery3_publishing_parameters_parent_class = NULL;
+static gpointer publishing_gallery3_credentials_pane_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_gallery3_credentials_grid_parent_class = NULL;
+static gpointer publishing_gallery3_session_parent_class = NULL;
+static gpointer publishing_gallery3_uploader_parent_class = NULL;
+
+#define G3_VERSION "0.1"
+#define G3_LICENSE "\n" \
+"The Gallery3Publishing module is free software; you can redistribute i" \
+"t\n" \
+"and/or modify it under the terms of the GNU Lesser General Public\n" \
+"License as published by the Free Software Foundation; either version 2" \
+".1\n" \
+"of the License, or (at your option) any later version.\n" \
+"\n" \
+"The Gallery3Publishing module is distributed in the hope that it will " \
+"be\n" \
+"useful, but WITHOUT ANY WARRANTY; without even the implied warranty of" \
+"\n" \
+"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Less" \
+"er\n" \
+"General Public License for more details.\n" \
+"\n" \
+"You should have received a copy of the GNU Lesser General Public Licen" \
+"se\n" \
+"along with The Gallery3Publishing module; if not, write to the Free\n" \
+"Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n" \
+"02110-1301 USA\n"
+#define WEBSITE_URL "https://github.com/sappjw/shotwell-gallery3"
+GType shotwell_publishing_gallery3_get_type (void) G_GNUC_CONST;
+#define SHOTWELL_PUBLISHING_GALLERY3_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3Private))
+enum {
+ SHOTWELL_PUBLISHING_GALLERY3_DUMMY_PROPERTY
+};
+ShotwellPublishingGallery3* shotwell_publishing_gallery3_new (GFile* module_file);
+ShotwellPublishingGallery3* shotwell_publishing_gallery3_construct (GType object_type, GFile* module_file);
+Gallery3Service* gallery3_service_new (GFile* resource_directory);
+Gallery3Service* gallery3_service_construct (GType object_type, GFile* resource_directory);
+GType gallery3_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add1 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+static const gchar* shotwell_publishing_gallery3_real_get_module_name (SpitModule* base);
+static const gchar* shotwell_publishing_gallery3_real_get_version (SpitModule* base);
+static const gchar* shotwell_publishing_gallery3_real_get_id (SpitModule* base);
+static SpitPluggable** shotwell_publishing_gallery3_real_get_pluggables (SpitModule* base, int* result_length1);
+static void shotwell_publishing_gallery3_finalize (GObject* obj);
+enum {
+ GALLERY3_SERVICE_DUMMY_PROPERTY
+};
+#define GALLERY3_SERVICE_ICON_FILENAME "gallery3.png"
+static gint gallery3_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+static const gchar* gallery3_service_real_get_id (SpitPluggable* base);
+static const gchar* gallery3_service_real_get_pluggable_name (SpitPluggable* base);
+static void gallery3_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length);
+static void gallery3_service_real_activation (SpitPluggable* base, gboolean enabled);
+static SpitPublishingPublisher* gallery3_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host);
+PublishingGallery3GalleryPublisher* publishing_gallery3_gallery_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host);
+PublishingGallery3GalleryPublisher* publishing_gallery3_gallery_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host);
+GType publishing_gallery3_gallery_publisher_get_type (void) G_GNUC_CONST;
+static SpitPublishingPublisherMediaType gallery3_service_real_get_supported_media (SpitPublishingService* base);
+static void gallery3_service_finalize (GObject* obj);
+#define PUBLISHING_GALLERY3_SERVICE_NAME "Gallery3"
+#define PUBLISHING_GALLERY3_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into your Gallery.\n" \
+"\n" \
+"You must have already signed up for a Gallery3 account to complete the" \
+" login process.")
+#define PUBLISHING_GALLERY3_DEFAULT_ALBUM_DIR _ ("Shotwell")
+#define PUBLISHING_GALLERY3_DEFAULT_ALBUM_TITLE _ ("Shotwell default directory")
+#define PUBLISHING_GALLERY3_REST_PATH "/index.php/rest"
+gpointer publishing_gallery3_album_ref (gpointer instance);
+void publishing_gallery3_album_unref (gpointer instance);
+GParamSpec* publishing_gallery3_param_spec_album (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_gallery3_value_set_album (GValue* value, gpointer v_object);
+void publishing_gallery3_value_take_album (GValue* value, gpointer v_object);
+gpointer publishing_gallery3_value_get_album (const GValue* value);
+GType publishing_gallery3_album_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_GALLERY3_ALBUM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3AlbumPrivate))
+enum {
+ PUBLISHING_GALLERY3_ALBUM_DUMMY_PROPERTY
+};
+PublishingGallery3Album* publishing_gallery3_album_new (JsonObject* collection);
+PublishingGallery3Album* publishing_gallery3_album_construct (GType object_type, JsonObject* collection);
+static void publishing_gallery3_album_set_title (PublishingGallery3Album* self, const gchar* value);
+static void publishing_gallery3_album_set_name (PublishingGallery3Album* self, const gchar* value);
+static void publishing_gallery3_album_set_parentname (PublishingGallery3Album* self, const gchar* value);
+static void publishing_gallery3_album_set_url (PublishingGallery3Album* self, const gchar* value);
+static void publishing_gallery3_album_set_editable (PublishingGallery3Album* self, gboolean value);
+gchar* publishing_gallery3_strip_session_url (const gchar* url);
+const gchar* publishing_gallery3_album_get_url (PublishingGallery3Album* self);
+static void publishing_gallery3_album_set_path (PublishingGallery3Album* self, const gchar* value);
+const gchar* publishing_gallery3_album_get_name (PublishingGallery3Album* self);
+const gchar* publishing_gallery3_album_get_title (PublishingGallery3Album* self);
+const gchar* publishing_gallery3_album_get_summary (PublishingGallery3Album* self);
+static void publishing_gallery3_album_set_summary (PublishingGallery3Album* self, const gchar* value);
+const gchar* publishing_gallery3_album_get_parentname (PublishingGallery3Album* self);
+const gchar* publishing_gallery3_album_get_path (PublishingGallery3Album* self);
+gboolean publishing_gallery3_album_get_editable (PublishingGallery3Album* self);
+static void publishing_gallery3_album_finalize (PublishingGallery3Album* obj);
+GType publishing_gallery3_base_gallery_transaction_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_GALLERY3_BASE_GALLERY_TRANSACTION_DUMMY_PROPERTY
+};
+GType publishing_gallery3_session_get_type (void) G_GNUC_CONST;
+PublishingGallery3BaseGalleryTransaction* publishing_gallery3_base_gallery_transaction_new (PublishingGallery3Session* session, const gchar* endpoint_url, const gchar* item_path, PublishingRESTSupportHttpMethod method);
+PublishingGallery3BaseGalleryTransaction* publishing_gallery3_base_gallery_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* endpoint_url, const gchar* item_path, PublishingRESTSupportHttpMethod method);
+JsonNode* publishing_gallery3_base_gallery_transaction_get_root_node (PublishingGallery3BaseGalleryTransaction* self, GError** error);
+static void publishing_gallery3_base_gallery_transaction_finalize (PublishingRESTSupportTransaction* obj);
+GType publishing_gallery3_key_fetch_transaction_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransactionPrivate))
+enum {
+ PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingGallery3KeyFetchTransaction* publishing_gallery3_key_fetch_transaction_new (PublishingGallery3Session* session, const gchar* url, const gchar* username, const gchar* password);
+PublishingGallery3KeyFetchTransaction* publishing_gallery3_key_fetch_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* url, const gchar* username, const gchar* password);
+gchar* publishing_gallery3_key_fetch_transaction_get_key (PublishingGallery3KeyFetchTransaction* self);
+static void publishing_gallery3_key_fetch_transaction_finalize (PublishingRESTSupportTransaction* obj);
+GType publishing_gallery3_gallery_request_transaction_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_GALLERY3_GALLERY_REQUEST_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingGallery3GalleryRequestTransaction* publishing_gallery3_gallery_request_transaction_new (PublishingGallery3Session* session, const gchar* item, PublishingRESTSupportHttpMethod method);
+PublishingGallery3GalleryRequestTransaction* publishing_gallery3_gallery_request_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* item, PublishingRESTSupportHttpMethod method);
+const gchar* publishing_gallery3_session_get_url (PublishingGallery3Session* self);
+const gchar* publishing_gallery3_session_get_key (PublishingGallery3Session* self);
+GType publishing_gallery3_get_album_ur_ls_transaction_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_GALLERY3_GET_ALBUM_UR_LS_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingGallery3GetAlbumURLsTransaction* publishing_gallery3_get_album_ur_ls_transaction_new (PublishingGallery3Session* session);
+PublishingGallery3GetAlbumURLsTransaction* publishing_gallery3_get_album_ur_ls_transaction_construct (GType object_type, PublishingGallery3Session* session);
+gchar** publishing_gallery3_get_album_ur_ls_transaction_get_album_urls (PublishingGallery3GetAlbumURLsTransaction* self, int* result_length1);
+static void _vala_array_add2 (gchar*** array, int* length, int* size, gchar* value);
+GType publishing_gallery3_get_albums_transaction_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransactionPrivate))
+enum {
+ PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingGallery3GetAlbumsTransaction* publishing_gallery3_get_albums_transaction_new (PublishingGallery3Session* session, gchar** _album_urls, int _album_urls_length1, guint start);
+PublishingGallery3GetAlbumsTransaction* publishing_gallery3_get_albums_transaction_construct (GType object_type, PublishingGallery3Session* session, gchar** _album_urls, int _album_urls_length1, guint start);
+static void publishing_gallery3_get_albums_transaction_set_album_urls (PublishingGallery3GetAlbumsTransaction* self, gchar** value, int value_length1);
+gchar** publishing_gallery3_get_albums_transaction_get_album_urls (PublishingGallery3GetAlbumsTransaction* self, int* result_length1);
+static void publishing_gallery3_get_albums_transaction_set_urls_sent (PublishingGallery3GetAlbumsTransaction* self, guint value);
+guint publishing_gallery3_get_albums_transaction_get_urls_sent (PublishingGallery3GetAlbumsTransaction* self);
+static void _vala_array_add3 (gchar*** array, int* length, int* size, gchar* value);
+static void publishing_gallery3_get_albums_transaction_set_more_urls (PublishingGallery3GetAlbumsTransaction* self, gboolean value);
+PublishingGallery3Album** publishing_gallery3_get_albums_transaction_get_albums (PublishingGallery3GetAlbumsTransaction* self, int* result_length1, GError** error);
+static void _vala_array_add4 (PublishingGallery3Album*** array, int* length, int* size, PublishingGallery3Album* value);
+static gchar** _vala_array_dup2 (gchar** self, int length);
+gboolean publishing_gallery3_get_albums_transaction_get_more_urls (PublishingGallery3GetAlbumsTransaction* self);
+static void publishing_gallery3_get_albums_transaction_finalize (PublishingRESTSupportTransaction* obj);
+GType publishing_gallery3_gallery_get_tag_transaction_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_GALLERY3_GALLERY_GET_TAG_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingGallery3GalleryGetTagTransaction* publishing_gallery3_gallery_get_tag_transaction_new (PublishingGallery3Session* session, const gchar* tag_name);
+PublishingGallery3GalleryGetTagTransaction* publishing_gallery3_gallery_get_tag_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* tag_name);
+static void _vala_JsonNode_free (JsonNode* self);
+gchar* publishing_gallery3_gallery_get_tag_transaction_tag_url (PublishingGallery3GalleryGetTagTransaction* self);
+GType publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate))
+enum {
+ PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingGallery3GalleryGetItemTagsURLsTransaction* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_new (PublishingGallery3Session* session, const gchar* item_url);
+PublishingGallery3GalleryGetItemTagsURLsTransaction* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* item_url);
+gchar* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_item_tags_path (PublishingGallery3GalleryGetItemTagsURLsTransaction* self);
+static void publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_finalize (PublishingRESTSupportTransaction* obj);
+GType publishing_gallery3_gallery_set_tag_relationship_transaction_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_GALLERY3_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingGallery3GallerySetTagRelationshipTransaction* publishing_gallery3_gallery_set_tag_relationship_transaction_new (PublishingGallery3Session* session, const gchar* item_tags_path, const gchar* tag_url, const gchar* item_url);
+PublishingGallery3GallerySetTagRelationshipTransaction* publishing_gallery3_gallery_set_tag_relationship_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* item_tags_path, const gchar* tag_url, const gchar* item_url);
+GType publishing_gallery3_gallery_album_create_transaction_get_type (void) G_GNUC_CONST;
+gpointer publishing_gallery3_publishing_parameters_ref (gpointer instance);
+void publishing_gallery3_publishing_parameters_unref (gpointer instance);
+GParamSpec* publishing_gallery3_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_gallery3_value_set_publishing_parameters (GValue* value, gpointer v_object);
+void publishing_gallery3_value_take_publishing_parameters (GValue* value, gpointer v_object);
+gpointer publishing_gallery3_value_get_publishing_parameters (const GValue* value);
+GType publishing_gallery3_publishing_parameters_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransactionPrivate))
+enum {
+ PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingGallery3GalleryAlbumCreateTransaction* publishing_gallery3_gallery_album_create_transaction_new (PublishingGallery3Session* session, PublishingGallery3PublishingParameters* parameters);
+PublishingGallery3GalleryAlbumCreateTransaction* publishing_gallery3_gallery_album_create_transaction_construct (GType object_type, PublishingGallery3Session* session, PublishingGallery3PublishingParameters* parameters);
+static void publishing_gallery3_gallery_album_create_transaction_set_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self, PublishingGallery3PublishingParameters* value);
+const gchar* publishing_gallery3_publishing_parameters_get_album_name (PublishingGallery3PublishingParameters* self);
+const gchar* publishing_gallery3_publishing_parameters_get_album_title (PublishingGallery3PublishingParameters* self);
+gchar* publishing_gallery3_gallery_album_create_transaction_get_new_album_path (PublishingGallery3GalleryAlbumCreateTransaction* self);
+PublishingGallery3PublishingParameters* publishing_gallery3_gallery_album_create_transaction_get_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self);
+static void publishing_gallery3_gallery_album_create_transaction_finalize (PublishingRESTSupportTransaction* obj);
+GType publishing_gallery3_gallery_upload_transaction_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransactionPrivate))
+enum {
+ PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingGallery3GalleryUploadTransaction* publishing_gallery3_gallery_upload_transaction_new (PublishingGallery3Session* session, PublishingGallery3PublishingParameters* parameters, SpitPublishingPublishable* publishable);
+PublishingGallery3GalleryUploadTransaction* publishing_gallery3_gallery_upload_transaction_construct (GType object_type, PublishingGallery3Session* session, PublishingGallery3PublishingParameters* parameters, SpitPublishingPublishable* publishable);
+const gchar* publishing_gallery3_publishing_parameters_get_album_path (PublishingGallery3PublishingParameters* self);
+static void _g_free0_ (gpointer var);
+static gchar* publishing_gallery3_gallery_upload_transaction_get_new_item_url (PublishingGallery3GalleryUploadTransaction* self);
+static void publishing_gallery3_gallery_upload_transaction_do_set_tag_relationship (PublishingGallery3GalleryUploadTransaction* self, const gchar* tag_url, GError** error);
+static gchar* publishing_gallery3_gallery_upload_transaction_get_new_item_tags_path (PublishingGallery3GalleryUploadTransaction* self);
+static gchar* publishing_gallery3_gallery_upload_transaction_get_tag_url (PublishingGallery3GalleryUploadTransaction* self, const gchar* tag);
+static void publishing_gallery3_gallery_upload_transaction_on_upload_completed (PublishingGallery3GalleryUploadTransaction* self, GError** error);
+gboolean publishing_gallery3_publishing_parameters_get_strip_metadata (PublishingGallery3PublishingParameters* self);
+static void publishing_gallery3_gallery_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error);
+static void publishing_gallery3_gallery_upload_transaction_finalize (PublishingRESTSupportTransaction* obj);
+GType publishing_gallery3_publishing_options_pane_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisherPrivate))
+enum {
+ PUBLISHING_GALLERY3_GALLERY_PUBLISHER_DUMMY_PROPERTY
+};
+#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_FILE_MSG _ ("\n" \
+"\n" \
+"The file \"%s\" may not be supported by or may be too large for this i" \
+"nstance of Gallery3.")
+#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_MOVIE_MSG _ ("\n" \
+"Note that Gallery3 only supports the video types that Flowplayer does.")
+PublishingGallery3Session* publishing_gallery3_session_new (void);
+PublishingGallery3Session* publishing_gallery3_session_construct (GType object_type);
+static gboolean publishing_gallery3_gallery_publisher_real_is_running (SpitPublishingPublisher* base);
+static SpitPublishingService* publishing_gallery3_gallery_publisher_real_get_service (SpitPublishingPublisher* base);
+static void publishing_gallery3_gallery_publisher_real_start (SpitPublishingPublisher* base);
+gchar* publishing_gallery3_gallery_publisher_get_api_key (PublishingGallery3GalleryPublisher* self);
+static void publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (PublishingGallery3GalleryPublisher* self);
+gchar* publishing_gallery3_gallery_publisher_get_gallery_url (PublishingGallery3GalleryPublisher* self);
+gchar* publishing_gallery3_gallery_publisher_get_gallery_username (PublishingGallery3GalleryPublisher* self);
+void publishing_gallery3_session_authenticate (PublishingGallery3Session* self, const gchar* gallery_url, const gchar* username, const gchar* key);
+static void publishing_gallery3_gallery_publisher_do_fetch_album_urls (PublishingGallery3GalleryPublisher* self);
+static void publishing_gallery3_gallery_publisher_real_stop (SpitPublishingPublisher* base);
+void publishing_gallery3_gallery_publisher_set_api_key (PublishingGallery3GalleryPublisher* self, const gchar* key);
+void publishing_gallery3_gallery_publisher_set_gallery_url (PublishingGallery3GalleryPublisher* self, const gchar* url);
+void publishing_gallery3_gallery_publisher_set_gallery_username (PublishingGallery3GalleryPublisher* self, const gchar* username);
+gboolean* publishing_gallery3_gallery_publisher_get_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self);
+static gboolean* _bool_dup (gboolean* self);
+void publishing_gallery3_gallery_publisher_set_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self, gboolean strip_metadata);
+gint* publishing_gallery3_gallery_publisher_get_scaling_constraint_id (PublishingGallery3GalleryPublisher* self);
+static gint* _int_dup (gint* self);
+void publishing_gallery3_gallery_publisher_set_scaling_constraint_id (PublishingGallery3GalleryPublisher* self, gint constraint);
+gint* publishing_gallery3_gallery_publisher_get_scaling_pixels (PublishingGallery3GalleryPublisher* self);
+void publishing_gallery3_gallery_publisher_set_scaling_pixels (PublishingGallery3GalleryPublisher* self, gint pixels);
+static void publishing_gallery3_gallery_publisher_on_service_welcome_login (PublishingGallery3GalleryPublisher* self);
+static void _publishing_gallery3_gallery_publisher_on_service_welcome_login_spit_publishing_login_callback (gpointer self);
+GType publishing_gallery3_credentials_pane_mode_get_type (void) G_GNUC_CONST;
+static void publishing_gallery3_gallery_publisher_do_show_credentials_pane (PublishingGallery3GalleryPublisher* self, PublishingGallery3CredentialsPaneMode mode);
+gchar* publishing_gallery3_credentials_pane_mode_to_string (PublishingGallery3CredentialsPaneMode self);
+void publishing_gallery3_session_deauthenticate (PublishingGallery3Session* self);
+GType publishing_gallery3_credentials_pane_get_type (void) G_GNUC_CONST;
+PublishingGallery3CredentialsPane* publishing_gallery3_credentials_pane_new (SpitPublishingPluginHost* host, PublishingGallery3CredentialsPaneMode mode, const gchar* url, const gchar* username, const gchar* key);
+PublishingGallery3CredentialsPane* publishing_gallery3_credentials_pane_construct (GType object_type, SpitPublishingPluginHost* host, PublishingGallery3CredentialsPaneMode mode, const gchar* url, const gchar* username, const gchar* key);
+static void publishing_gallery3_gallery_publisher_on_credentials_go_back (PublishingGallery3GalleryPublisher* self);
+static void _publishing_gallery3_gallery_publisher_on_credentials_go_back_publishing_gallery3_credentials_pane_go_back (PublishingGallery3CredentialsPane* _sender, gpointer self);
+static void publishing_gallery3_gallery_publisher_on_credentials_login (PublishingGallery3GalleryPublisher* self, const gchar* url, const gchar* username, const gchar* password);
+static void _publishing_gallery3_gallery_publisher_on_credentials_login_publishing_gallery3_credentials_pane_login (PublishingGallery3CredentialsPane* _sender, const gchar* url, const gchar* uname, const gchar* password, const gchar* key, gpointer self);
+static void publishing_gallery3_gallery_publisher_do_network_login (PublishingGallery3GalleryPublisher* self, const gchar* url, const gchar* username, const gchar* password);
+static void publishing_gallery3_gallery_publisher_on_key_fetch_error (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_gallery3_gallery_publisher_on_key_fetch_complete (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_gallery3_gallery_publisher_on_album_urls_fetch_error (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_gallery3_gallery_publisher_do_fetch_albums (PublishingGallery3GalleryPublisher* self, gchar** album_urls, int album_urls_length1, guint start);
+static void publishing_gallery3_gallery_publisher_on_album_fetch_error (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_gallery3_gallery_publisher_on_album_fetch_complete (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (PublishingGallery3GalleryPublisher* self, const gchar* url, const gchar* username);
+PublishingGallery3PublishingOptionsPane* publishing_gallery3_publishing_options_pane_new (SpitPublishingPluginHost* host, const gchar* url, const gchar* username, PublishingGallery3Album** albums, int albums_length1, GtkBuilder* builder, gboolean strip_metadata, gint scaling_id, gint scaling_pixels);
+PublishingGallery3PublishingOptionsPane* publishing_gallery3_publishing_options_pane_construct (GType object_type, SpitPublishingPluginHost* host, const gchar* url, const gchar* username, PublishingGallery3Album** albums, int albums_length1, GtkBuilder* builder, gboolean strip_metadata, gint scaling_id, gint scaling_pixels);
+static void publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish (PublishingGallery3GalleryPublisher* self, PublishingGallery3PublishingParameters* parameters);
+static void _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish (PublishingGallery3PublishingOptionsPane* _sender, PublishingGallery3PublishingParameters* parameters, gpointer self);
+static void publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout (PublishingGallery3GalleryPublisher* self);
+static void _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout (PublishingGallery3PublishingOptionsPane* _sender, gpointer self);
+static void publishing_gallery3_gallery_publisher_do_create_album (PublishingGallery3GalleryPublisher* self, PublishingGallery3PublishingParameters* parameters);
+static void publishing_gallery3_gallery_publisher_on_album_create_error (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_gallery3_gallery_publisher_on_album_create_complete (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_gallery3_gallery_publisher_do_publish (PublishingGallery3GalleryPublisher* self, PublishingGallery3PublishingParameters* parameters);
+gint publishing_gallery3_publishing_parameters_get_photo_major_axis_size (PublishingGallery3PublishingParameters* self);
+GType publishing_gallery3_uploader_get_type (void) G_GNUC_CONST;
+PublishingGallery3Uploader* publishing_gallery3_uploader_new (PublishingGallery3Session* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingGallery3PublishingParameters* parameters);
+PublishingGallery3Uploader* publishing_gallery3_uploader_construct (GType object_type, PublishingGallery3Session* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingGallery3PublishingParameters* parameters);
+static void publishing_gallery3_gallery_publisher_on_publish_complete (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published);
+static void _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self);
+static void publishing_gallery3_gallery_publisher_on_publish_error (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportBatchUploader* _uploader, GError* err);
+static void _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self);
+static void publishing_gallery3_gallery_publisher_on_upload_status_updated (PublishingGallery3GalleryPublisher* self, gint file_number, gdouble completed_fraction);
+static void _publishing_gallery3_gallery_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self);
+static void publishing_gallery3_gallery_publisher_do_show_success_pane (PublishingGallery3GalleryPublisher* self);
+const gchar* publishing_gallery3_session_get_username (PublishingGallery3Session* self);
+static void _vala_array_add5 (PublishingGallery3Album*** array, int* length, int* size, PublishingGallery3Album* value);
+void publishing_gallery3_publishing_parameters_set_album_path (PublishingGallery3PublishingParameters* self, const gchar* value);
+const gchar* publishing_gallery3_uploader_get_current_publishable_name (PublishingGallery3Uploader* self);
+guint publishing_gallery3_uploader_get_status_code (PublishingGallery3Uploader* self);
+SpitPublishingPublisherMediaType publishing_gallery3_uploader_get_current_publishable_type (PublishingGallery3Uploader* self);
+gboolean publishing_gallery3_publishing_parameters_is_to_new_album (PublishingGallery3PublishingParameters* self);
+static void publishing_gallery3_gallery_publisher_finalize (GObject* obj);
+#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPanePrivate))
+enum {
+ PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DUMMY_PROPERTY
+};
+#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME ""
+#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY "last-album"
+static PublishingGallery3Album** _vala_array_dup3 (PublishingGallery3Album** self, int length);
+static void publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked (PublishingGallery3PublishingOptionsPane* self);
+static void _publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked (PublishingGallery3PublishingOptionsPane* self);
+static void _publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_gallery3_publishing_options_pane_on_new_album_entry_changed (PublishingGallery3PublishingOptionsPane* self);
+static void _publishing_gallery3_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed (PublishingGallery3PublishingOptionsPane* self);
+static void _publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
+static void publishing_gallery3_publishing_options_pane_on_pixels_changed (PublishingGallery3PublishingOptionsPane* self);
+static void _publishing_gallery3_publishing_options_pane_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_gallery3_publishing_options_pane_on_logout_clicked (PublishingGallery3PublishingOptionsPane* self);
+static void _publishing_gallery3_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_gallery3_publishing_options_pane_on_publish_clicked (PublishingGallery3PublishingOptionsPane* self);
+static void _publishing_gallery3_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new_to_new_album (const gchar* album_title);
+PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct_to_new_album (GType object_type, const gchar* album_title);
+PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new_to_existing_album (const gchar* album_path);
+PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct_to_existing_album (GType object_type, const gchar* album_path);
+void publishing_gallery3_publishing_parameters_set_photo_major_axis_size (PublishingGallery3PublishingParameters* self, gint value);
+void publishing_gallery3_publishing_parameters_set_strip_metadata (PublishingGallery3PublishingParameters* self, gboolean value);
+static void publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (PublishingGallery3PublishingOptionsPane* self);
+static void publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (PublishingGallery3PublishingOptionsPane* self);
+void publishing_gallery3_publishing_options_pane_installed (PublishingGallery3PublishingOptionsPane* self);
+static GtkWidget* publishing_gallery3_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_gallery3_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_gallery3_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_gallery3_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void g_cclosure_user_marshal_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void publishing_gallery3_publishing_options_pane_finalize (GObject* obj);
+#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParametersPrivate))
+enum {
+ PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_DUMMY_PROPERTY
+};
+static PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new (void);
+static PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct (GType object_type);
+static void publishing_gallery3_publishing_parameters_set_album_name (PublishingGallery3PublishingParameters* self, const gchar* value);
+static void publishing_gallery3_publishing_parameters_set_album_title (PublishingGallery3PublishingParameters* self, const gchar* value);
+const gchar* publishing_gallery3_publishing_parameters_get_entity_title (PublishingGallery3PublishingParameters* self);
+static void publishing_gallery3_publishing_parameters_set_entity_title (PublishingGallery3PublishingParameters* self, const gchar* value);
+static void publishing_gallery3_publishing_parameters_finalize (PublishingGallery3PublishingParameters* obj);
+GType publishing_gallery3_credentials_grid_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPanePrivate))
+enum {
+ PUBLISHING_GALLERY3_CREDENTIALS_PANE_DUMMY_PROPERTY
+};
+PublishingGallery3CredentialsGrid* publishing_gallery3_credentials_grid_new (SpitPublishingPluginHost* host, PublishingGallery3CredentialsPaneMode mode, const gchar* url, const gchar* username, const gchar* key, GtkBuilder* builder);
+PublishingGallery3CredentialsGrid* publishing_gallery3_credentials_grid_construct (GType object_type, SpitPublishingPluginHost* host, PublishingGallery3CredentialsPaneMode mode, const gchar* url, const gchar* username, const gchar* key, GtkBuilder* builder);
+GtkGrid* publishing_gallery3_credentials_grid_get_pane_widget (PublishingGallery3CredentialsGrid* self);
+void publishing_gallery3_credentials_pane_notify_go_back (PublishingGallery3CredentialsPane* self);
+void publishing_gallery3_credentials_pane_notify_login (PublishingGallery3CredentialsPane* self, const gchar* url, const gchar* uname, const gchar* password, const gchar* key);
+static GtkWidget* publishing_gallery3_credentials_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_gallery3_credentials_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_gallery3_credentials_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void _publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back (PublishingGallery3CredentialsGrid* _sender, gpointer self);
+static void _publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login (PublishingGallery3CredentialsGrid* _sender, const gchar* url, const gchar* username, const gchar* password, const gchar* key, gpointer self);
+void publishing_gallery3_credentials_grid_installed (PublishingGallery3CredentialsGrid* self);
+static void publishing_gallery3_credentials_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void publishing_gallery3_credentials_pane_finalize (GObject* obj);
+#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGridPrivate))
+enum {
+ PUBLISHING_GALLERY3_CREDENTIALS_GRID_DUMMY_PROPERTY,
+ PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET
+};
+#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_INTRO_MESSAGE _ ("Enter the URL for your Gallery3 site and the username and password (or" \
+" API key) for your Gallery3 account.")
+#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_FAILED_RETRY_MESSAGE _ ("The username and password or API key were incorrect. To try again, re-" \
+"enter your username and password below.")
+#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_NOT_GALLERY_URL_MESSAGE _ ("The URL entered does not appear to be the main directory of a Gallery3" \
+" instance. Please make sure you typed it correctly and it does not hav" \
+"e any trailing components (e.g., index.php).")
+static void publishing_gallery3_credentials_grid_set_pane_widget (PublishingGallery3CredentialsGrid* self, GtkGrid* value);
+static void publishing_gallery3_credentials_grid_on_url_or_username_changed (PublishingGallery3CredentialsGrid* self);
+static void _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_gallery3_credentials_grid_on_go_back_button_clicked (PublishingGallery3CredentialsGrid* self);
+static void _publishing_gallery3_credentials_grid_on_go_back_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_gallery3_credentials_grid_on_login_button_clicked (PublishingGallery3CredentialsGrid* self);
+static void _publishing_gallery3_credentials_grid_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_gallery3_credentials_grid_finalize (GObject* obj);
+static void _vala_publishing_gallery3_credentials_grid_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
+static void _vala_publishing_gallery3_credentials_grid_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
+#define PUBLISHING_GALLERY3_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3SessionPrivate))
+enum {
+ PUBLISHING_GALLERY3_SESSION_DUMMY_PROPERTY
+};
+static gboolean publishing_gallery3_session_real_is_authenticated (PublishingRESTSupportSession* base);
+static void publishing_gallery3_session_set_url (PublishingGallery3Session* self, const gchar* value);
+static void publishing_gallery3_session_set_username (PublishingGallery3Session* self, const gchar* value);
+static void publishing_gallery3_session_set_key (PublishingGallery3Session* self, const gchar* value);
+static void publishing_gallery3_session_finalize (PublishingRESTSupportSession* obj);
+#define PUBLISHING_GALLERY3_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3UploaderPrivate))
+enum {
+ PUBLISHING_GALLERY3_UPLOADER_DUMMY_PROPERTY
+};
+static PublishingRESTSupportTransaction* publishing_gallery3_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable);
+static void publishing_gallery3_uploader_finalize (PublishingRESTSupportBatchUploader* obj);
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
+
+
+static void _vala_array_add1 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if ((*length) == (*size)) {
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 1002 "GalleryConnector.c"
+ }
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*array)[(*length)++] = value;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*array)[*length] = NULL;
+#line 1008 "GalleryConnector.c"
+}
+
+
+ShotwellPublishingGallery3* shotwell_publishing_gallery3_construct (GType object_type, GFile* module_file) {
+ ShotwellPublishingGallery3 * self = NULL;
+ GFile* resource_directory = NULL;
+ GFile* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ SpitPluggable** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ Gallery3Service* _tmp3_ = NULL;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (G_IS_FILE (module_file), NULL);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (ShotwellPublishingGallery3*) g_object_new (object_type, NULL);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = module_file;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_file_get_parent (_tmp0_);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ resource_directory = _tmp1_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->pluggables;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2__length1 = self->priv->pluggables_length1;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = gallery3_service_new (resource_directory);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (resource_directory);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 1042 "GalleryConnector.c"
+}
+
+
+ShotwellPublishingGallery3* shotwell_publishing_gallery3_new (GFile* module_file) {
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return shotwell_publishing_gallery3_construct (TYPE_SHOTWELL_PUBLISHING_GALLERY3, module_file);
+#line 1049 "GalleryConnector.c"
+}
+
+
+static const gchar* shotwell_publishing_gallery3_real_get_module_name (SpitModule* base) {
+ ShotwellPublishingGallery3 * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = _ ("Gallery3 publishing module");
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1065 "GalleryConnector.c"
+}
+
+
+static const gchar* shotwell_publishing_gallery3_real_get_version (SpitModule* base) {
+ ShotwellPublishingGallery3 * self;
+ const gchar* result = NULL;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = G3_VERSION;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1078 "GalleryConnector.c"
+}
+
+
+static const gchar* shotwell_publishing_gallery3_real_get_id (SpitModule* base) {
+ ShotwellPublishingGallery3 * self;
+ const gchar* result = NULL;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = "org.yorba.shotwell.sharing.gallery3";
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1091 "GalleryConnector.c"
+}
+
+
+static SpitPluggable** shotwell_publishing_gallery3_real_get_pluggables (SpitModule* base, int* result_length1) {
+ ShotwellPublishingGallery3 * self;
+ SpitPluggable** result = NULL;
+ SpitPluggable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ SpitPluggable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->pluggables;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0__length1 = self->priv->pluggables_length1;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = _tmp0_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (result_length1) {
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *result_length1 = _tmp1__length1;
+#line 1116 "GalleryConnector.c"
+ }
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp1_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1122 "GalleryConnector.c"
+}
+
+
+static void shotwell_publishing_gallery3_class_init (ShotwellPublishingGallery3Class * klass) {
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ shotwell_publishing_gallery3_parent_class = g_type_class_peek_parent (klass);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (ShotwellPublishingGallery3Private));
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (klass)->finalize = shotwell_publishing_gallery3_finalize;
+#line 1133 "GalleryConnector.c"
+}
+
+
+static void shotwell_publishing_gallery3_spit_module_interface_init (SpitModuleIface * iface) {
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ shotwell_publishing_gallery3_spit_module_parent_iface = g_type_interface_peek_parent (iface);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_module_name = (const gchar* (*)(SpitModule*)) shotwell_publishing_gallery3_real_get_module_name;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_version = (const gchar* (*)(SpitModule*)) shotwell_publishing_gallery3_real_get_version;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_id = (const gchar* (*)(SpitModule*)) shotwell_publishing_gallery3_real_get_id;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_pluggables = (SpitPluggable** (*)(SpitModule*, int*)) shotwell_publishing_gallery3_real_get_pluggables;
+#line 1148 "GalleryConnector.c"
+}
+
+
+static void shotwell_publishing_gallery3_instance_init (ShotwellPublishingGallery3 * self) {
+ SpitPluggable** _tmp0_ = NULL;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = SHOTWELL_PUBLISHING_GALLERY3_GET_PRIVATE (self);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = g_new0 (SpitPluggable*, 0 + 1);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->pluggables = _tmp0_;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->pluggables_length1 = 0;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_pluggables_size_ = self->priv->pluggables_length1;
+#line 1164 "GalleryConnector.c"
+}
+
+
+static void shotwell_publishing_gallery3_finalize (GObject* obj) {
+ ShotwellPublishingGallery3 * self;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (shotwell_publishing_gallery3_parent_class)->finalize (obj);
+#line 1176 "GalleryConnector.c"
+}
+
+
+GType shotwell_publishing_gallery3_get_type (void) {
+ static volatile gsize shotwell_publishing_gallery3_type_id__volatile = 0;
+ if (g_once_init_enter (&shotwell_publishing_gallery3_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (ShotwellPublishingGallery3Class), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_publishing_gallery3_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPublishingGallery3), 0, (GInstanceInitFunc) shotwell_publishing_gallery3_instance_init, NULL };
+ static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_publishing_gallery3_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType shotwell_publishing_gallery3_type_id;
+ shotwell_publishing_gallery3_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPublishingGallery3", &g_define_type_info, 0);
+ g_type_add_interface_static (shotwell_publishing_gallery3_type_id, SPIT_TYPE_MODULE, &spit_module_info);
+ g_once_init_leave (&shotwell_publishing_gallery3_type_id__volatile, shotwell_publishing_gallery3_type_id);
+ }
+ return shotwell_publishing_gallery3_type_id__volatile;
+}
+
+
+Gallery3Service* gallery3_service_construct (GType object_type, GFile* resource_directory) {
+ Gallery3Service * self = NULL;
+ GdkPixbuf** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (Gallery3Service*) g_object_new (object_type, NULL);
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = gallery3_service_icon_pixbuf_set;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0__length1 = gallery3_service_icon_pixbuf_set_length1;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp0_ == NULL) {
+#line 1208 "GalleryConnector.c"
+ gint _tmp1_ = 0;
+ GdkPixbuf** _tmp2_ = NULL;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" GALLERY3_SERVICE_ICON_FILENAME, &_tmp1_);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gallery3_service_icon_pixbuf_set = (_vala_array_free (gallery3_service_icon_pixbuf_set, gallery3_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gallery3_service_icon_pixbuf_set = _tmp2_;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gallery3_service_icon_pixbuf_set_length1 = _tmp1_;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _gallery3_service_icon_pixbuf_set_size_ = gallery3_service_icon_pixbuf_set_length1;
+#line 1221 "GalleryConnector.c"
+ }
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 1225 "GalleryConnector.c"
+}
+
+
+Gallery3Service* gallery3_service_new (GFile* resource_directory) {
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return gallery3_service_construct (TYPE_GALLERY3_SERVICE, resource_directory);
+#line 1232 "GalleryConnector.c"
+}
+
+
+static gint gallery3_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ Gallery3Service * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = min_host_interface;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = max_host_interface;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp2_;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1254 "GalleryConnector.c"
+}
+
+
+static const gchar* gallery3_service_real_get_id (SpitPluggable* base) {
+ Gallery3Service * self;
+ const gchar* result = NULL;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = "publishing-gallery3";
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1267 "GalleryConnector.c"
+}
+
+
+static const gchar* gallery3_service_real_get_pluggable_name (SpitPluggable* base) {
+ Gallery3Service * self;
+ const gchar* result = NULL;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = "Gallery3";
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1280 "GalleryConnector.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 1287 "GalleryConnector.c"
+}
+
+
+static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length) {
+ GdkPixbuf** result;
+ int i;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = g_new0 (GdkPixbuf*, length + 1);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ for (i = 0; i < length; i++) {
+#line 1298 "GalleryConnector.c"
+ GdkPixbuf* _tmp0_ = NULL;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result[i] = _tmp0_;
+#line 1304 "GalleryConnector.c"
+ }
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1308 "GalleryConnector.c"
+}
+
+
+static void gallery3_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ Gallery3Service * self;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ GdkPixbuf** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ GdkPixbuf** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service);
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (info != NULL);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = g_strdup ("Joe Sapp");
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 ((*info).authors);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*info).authors = _tmp0_;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup ("2012-2013 Joe Sapp");
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 ((*info).copyright);
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*info).copyright = _tmp1_;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 ((*info).translators);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*info).translators = _tmp2_;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = g_strdup (G3_VERSION);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 ((*info).version);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*info).version = _tmp3_;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = g_strdup (WEBSITE_URL);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 ((*info).website_url);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*info).website_url = _tmp4_;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = g_strdup (G3_LICENSE);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 ((*info).license);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*info).license = _tmp5_;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = gallery3_service_icon_pixbuf_set;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6__length1 = gallery3_service_icon_pixbuf_set_length1;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = (_tmp6_ != NULL) ? _vala_array_dup1 (_tmp6_, _tmp6__length1) : ((gpointer) _tmp6_);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7__length1 = _tmp6__length1;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*info).icons = _tmp7_;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*info).icons_length1 = _tmp7__length1;
+#line 1380 "GalleryConnector.c"
+}
+
+
+static void gallery3_service_real_activation (SpitPluggable* base, gboolean enabled) {
+ Gallery3Service * self;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service);
+#line 1388 "GalleryConnector.c"
+}
+
+
+static SpitPublishingPublisher* gallery3_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) {
+ Gallery3Service * self;
+ SpitPublishingPublisher* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingGallery3GalleryPublisher* _tmp1_ = NULL;
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service);
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = host;
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_gallery3_gallery_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1409 "GalleryConnector.c"
+}
+
+
+static SpitPublishingPublisherMediaType gallery3_service_real_get_supported_media (SpitPublishingService* base) {
+ Gallery3Service * self;
+ SpitPublishingPublisherMediaType result = 0;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service);
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1422 "GalleryConnector.c"
+}
+
+
+static void gallery3_service_class_init (Gallery3ServiceClass * klass) {
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gallery3_service_parent_class = g_type_class_peek_parent (klass);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (klass)->finalize = gallery3_service_finalize;
+#line 1431 "GalleryConnector.c"
+}
+
+
+static void gallery3_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gallery3_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) gallery3_service_real_get_pluggable_interface;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) gallery3_service_real_get_id;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) gallery3_service_real_get_pluggable_name;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) gallery3_service_real_get_info;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) gallery3_service_real_activation;
+#line 1448 "GalleryConnector.c"
+}
+
+
+static void gallery3_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) {
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gallery3_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->create_publisher = (SpitPublishingPublisher* (*)(SpitPublishingService*, SpitPublishingPluginHost*)) gallery3_service_real_create_publisher;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_supported_media = (SpitPublishingPublisherMediaType (*)(SpitPublishingService*)) gallery3_service_real_get_supported_media;
+#line 1459 "GalleryConnector.c"
+}
+
+
+static void gallery3_service_instance_init (Gallery3Service * self) {
+}
+
+
+static void gallery3_service_finalize (GObject* obj) {
+ Gallery3Service * self;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GALLERY3_SERVICE, Gallery3Service);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (gallery3_service_parent_class)->finalize (obj);
+#line 1473 "GalleryConnector.c"
+}
+
+
+GType gallery3_service_get_type (void) {
+ static volatile gsize gallery3_service_type_id__volatile = 0;
+ if (g_once_init_enter (&gallery3_service_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (Gallery3ServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gallery3_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Gallery3Service), 0, (GInstanceInitFunc) gallery3_service_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) gallery3_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) gallery3_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType gallery3_service_type_id;
+ gallery3_service_type_id = g_type_register_static (G_TYPE_OBJECT, "Gallery3Service", &g_define_type_info, 0);
+ g_type_add_interface_static (gallery3_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (gallery3_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info);
+ g_once_init_leave (&gallery3_service_type_id__volatile, gallery3_service_type_id);
+ }
+ return gallery3_service_type_id__volatile;
+}
+
+
+PublishingGallery3Album* publishing_gallery3_album_construct (GType object_type, JsonObject* collection) {
+ PublishingGallery3Album* self = NULL;
+ JsonObject* entity = NULL;
+ JsonObject* _tmp0_ = NULL;
+ JsonObject* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ JsonObject* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ const gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (collection != NULL, NULL);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3Album*) g_type_create_instance (object_type);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = collection;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = json_object_get_object_member (_tmp0_, "entity");
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ entity = _tmp1_;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = json_object_get_string_member (entity, "title");
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_set_title (self, _tmp2_);
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = json_object_get_string_member (entity, "name");
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_set_name (self, _tmp3_);
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = json_object_get_string_member (entity, "parent");
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_set_parentname (self, _tmp4_);
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = collection;
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = json_object_get_string_member (_tmp5_, "url");
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_set_url (self, _tmp6_);
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = json_object_get_boolean_member (entity, "can_edit");
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_set_editable (self, _tmp7_);
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = self->priv->_url;
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = publishing_gallery3_strip_session_url (_tmp8_);
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = _tmp9_;
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_set_path (self, _tmp10_);
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp10_);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 1551 "GalleryConnector.c"
+}
+
+
+PublishingGallery3Album* publishing_gallery3_album_new (JsonObject* collection) {
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_album_construct (PUBLISHING_GALLERY3_TYPE_ALBUM, collection);
+#line 1558 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_album_get_name (PublishingGallery3Album* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_name;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1573 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_album_set_name (PublishingGallery3Album* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self));
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_name);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_name = _tmp1_;
+#line 1590 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_album_get_title (PublishingGallery3Album* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_title;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1605 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_album_set_title (PublishingGallery3Album* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self));
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_title);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_title = _tmp1_;
+#line 1622 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_album_get_summary (PublishingGallery3Album* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_summary;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1637 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_album_set_summary (PublishingGallery3Album* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self));
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_summary);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_summary = _tmp1_;
+#line 1654 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_album_get_parentname (PublishingGallery3Album* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_parentname;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1669 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_album_set_parentname (PublishingGallery3Album* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self));
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_parentname);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_parentname = _tmp1_;
+#line 1686 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_album_get_url (PublishingGallery3Album* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_url;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1701 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_album_set_url (PublishingGallery3Album* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self));
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_url);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_url = _tmp1_;
+#line 1718 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_album_get_path (PublishingGallery3Album* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_path;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1733 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_album_set_path (PublishingGallery3Album* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self));
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_path);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_path = _tmp1_;
+#line 1750 "GalleryConnector.c"
+}
+
+
+gboolean publishing_gallery3_album_get_editable (PublishingGallery3Album* self) {
+ gboolean result;
+ gboolean _tmp0_ = FALSE;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), FALSE);
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_editable;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 1765 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_album_set_editable (PublishingGallery3Album* self, gboolean value) {
+ gboolean _tmp0_ = FALSE;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self));
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_editable = _tmp0_;
+#line 1777 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_value_album_init (GValue* value) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = NULL;
+#line 1784 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_value_album_free_value (GValue* value) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (value->data[0].v_pointer) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_unref (value->data[0].v_pointer);
+#line 1793 "GalleryConnector.c"
+ }
+}
+
+
+static void publishing_gallery3_value_album_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (src_value->data[0].v_pointer) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ dest_value->data[0].v_pointer = publishing_gallery3_album_ref (src_value->data[0].v_pointer);
+#line 1803 "GalleryConnector.c"
+ } else {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1807 "GalleryConnector.c"
+ }
+}
+
+
+static gpointer publishing_gallery3_value_album_peek_pointer (const GValue* value) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return value->data[0].v_pointer;
+#line 1815 "GalleryConnector.c"
+}
+
+
+static gchar* publishing_gallery3_value_album_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (collect_values[0].v_pointer) {
+#line 1822 "GalleryConnector.c"
+ PublishingGallery3Album* object;
+ object = collect_values[0].v_pointer;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1829 "GalleryConnector.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 1833 "GalleryConnector.c"
+ }
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = publishing_gallery3_album_ref (object);
+#line 1837 "GalleryConnector.c"
+ } else {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = NULL;
+#line 1841 "GalleryConnector.c"
+ }
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 1845 "GalleryConnector.c"
+}
+
+
+static gchar* publishing_gallery3_value_album_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingGallery3Album** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!object_p) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1856 "GalleryConnector.c"
+ }
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!value->data[0].v_pointer) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *object_p = NULL;
+#line 1862 "GalleryConnector.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1866 "GalleryConnector.c"
+ } else {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *object_p = publishing_gallery3_album_ref (value->data[0].v_pointer);
+#line 1870 "GalleryConnector.c"
+ }
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 1874 "GalleryConnector.c"
+}
+
+
+GParamSpec* publishing_gallery3_param_spec_album (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingGallery3ParamSpecAlbum* spec;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_GALLERY3_TYPE_ALBUM), NULL);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return G_PARAM_SPEC (spec);
+#line 1888 "GalleryConnector.c"
+}
+
+
+gpointer publishing_gallery3_value_get_album (const GValue* value) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_ALBUM), NULL);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return value->data[0].v_pointer;
+#line 1897 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_value_set_album (GValue* value, gpointer v_object) {
+ PublishingGallery3Album* old;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_ALBUM));
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ old = value->data[0].v_pointer;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (v_object) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_ALBUM));
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = v_object;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_ref (value->data[0].v_pointer);
+#line 1917 "GalleryConnector.c"
+ } else {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = NULL;
+#line 1921 "GalleryConnector.c"
+ }
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (old) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_unref (old);
+#line 1927 "GalleryConnector.c"
+ }
+}
+
+
+void publishing_gallery3_value_take_album (GValue* value, gpointer v_object) {
+ PublishingGallery3Album* old;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_ALBUM));
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ old = value->data[0].v_pointer;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (v_object) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_ALBUM));
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = v_object;
+#line 1946 "GalleryConnector.c"
+ } else {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = NULL;
+#line 1950 "GalleryConnector.c"
+ }
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (old) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_unref (old);
+#line 1956 "GalleryConnector.c"
+ }
+}
+
+
+static void publishing_gallery3_album_class_init (PublishingGallery3AlbumClass * klass) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_album_parent_class = g_type_class_peek_parent (klass);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingGallery3AlbumClass *) klass)->finalize = publishing_gallery3_album_finalize;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3AlbumPrivate));
+#line 1968 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_album_instance_init (PublishingGallery3Album * self) {
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_ALBUM_GET_PRIVATE (self);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = g_strdup ("");
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_name = _tmp0_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup ("");
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_title = _tmp1_;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = g_strdup ("");
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_summary = _tmp2_;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = g_strdup ("");
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_parentname = _tmp3_;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = g_strdup ("");
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_url = _tmp4_;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = g_strdup ("");
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_path = _tmp5_;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_editable = FALSE;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->ref_count = 1;
+#line 2009 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_album_finalize (PublishingGallery3Album* obj) {
+ PublishingGallery3Album * self;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3Album);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_destroy (self);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_name);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_title);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_summary);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_parentname);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_url);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_path);
+#line 2031 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_album_get_type (void) {
+ static volatile gsize publishing_gallery3_album_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_album_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_gallery3_value_album_init, publishing_gallery3_value_album_free_value, publishing_gallery3_value_album_copy_value, publishing_gallery3_value_album_peek_pointer, "p", publishing_gallery3_value_album_collect_value, "p", publishing_gallery3_value_album_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3AlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3Album), 0, (GInstanceInitFunc) publishing_gallery3_album_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 publishing_gallery3_album_type_id;
+ publishing_gallery3_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingGallery3Album", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_gallery3_album_type_id__volatile, publishing_gallery3_album_type_id);
+ }
+ return publishing_gallery3_album_type_id__volatile;
+}
+
+
+gpointer publishing_gallery3_album_ref (gpointer instance) {
+ PublishingGallery3Album* self;
+ self = instance;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return instance;
+#line 2056 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_album_unref (gpointer instance) {
+ PublishingGallery3Album* self;
+ self = instance;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_GALLERY3_ALBUM_GET_CLASS (self)->finalize (self);
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 2069 "GalleryConnector.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 2088 "GalleryConnector.c"
+}
+
+
+PublishingGallery3BaseGalleryTransaction* publishing_gallery3_base_gallery_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* endpoint_url, const gchar* item_path, PublishingRESTSupportHttpMethod method) {
+ PublishingGallery3BaseGalleryTransaction* self = NULL;
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp12_ = 0;
+ JsonParser* _tmp13_ = NULL;
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (endpoint_url != NULL, NULL);
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (item_path != NULL, NULL);
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = item_path;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (g_strcmp0 (_tmp1_, "") != 0) {
+#line 2115 "GalleryConnector.c"
+ const gchar* _tmp2_ = NULL;
+ gchar _tmp3_ = '\0';
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = item_path;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = string_get (_tmp2_, (glong) 0);
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = _tmp3_ != '/';
+#line 2124 "GalleryConnector.c"
+ } else {
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = FALSE;
+#line 2128 "GalleryConnector.c"
+ }
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp0_) {
+#line 2132 "GalleryConnector.c"
+ const gchar* _tmp4_ = NULL;
+#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_warning ("GalleryConnector.vala:164: Bad item path, this is a bug!");
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = item_path;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:165: %s", _tmp4_);
+#line 2140 "GalleryConnector.c"
+ }
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = session;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = endpoint_url;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = g_strconcat (_tmp6_, PUBLISHING_GALLERY3_REST_PATH, NULL);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = _tmp7_;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = item_path;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = g_strconcat (_tmp8_, _tmp9_, NULL);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = _tmp10_;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = method;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3BaseGalleryTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp11_, _tmp12_);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp11_);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp8_);
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = json_parser_new ();
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->parser);
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->parser = _tmp13_;
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 2172 "GalleryConnector.c"
+}
+
+
+PublishingGallery3BaseGalleryTransaction* publishing_gallery3_base_gallery_transaction_new (PublishingGallery3Session* session, const gchar* endpoint_url, const gchar* item_path, PublishingRESTSupportHttpMethod method) {
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_base_gallery_transaction_construct (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, session, endpoint_url, item_path, method);
+#line 2179 "GalleryConnector.c"
+}
+
+
+JsonNode* publishing_gallery3_base_gallery_transaction_get_root_node (PublishingGallery3BaseGalleryTransaction* self, GError** error) {
+ JsonNode* result = NULL;
+ gchar* json_object = NULL;
+ JsonNode* root_node = NULL;
+ gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ const gchar* _tmp2_ = NULL;
+ JsonParser* _tmp15_ = NULL;
+ JsonNode* _tmp16_ = NULL;
+ gboolean _tmp17_ = FALSE;
+ GError * _inner_error_ = NULL;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_BASE_GALLERY_TRANSACTION (self), NULL);
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object = _tmp0_;
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = json_object;
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (NULL == _tmp2_) {
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = TRUE;
+#line 2208 "GalleryConnector.c"
+ } else {
+ const gchar* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gint _tmp5_ = 0;
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = json_object;
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = strlen (_tmp3_);
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = _tmp4_;
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = 0 == _tmp5_;
+#line 2221 "GalleryConnector.c"
+ }
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp1_) {
+#line 2225 "GalleryConnector.c"
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = _tmp6_;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "No response data from %s", _tmp7_);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp7_);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = _tmp9_;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_propagate_error (error, _inner_error_);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 2250 "GalleryConnector.c"
+ } else {
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 2260 "GalleryConnector.c"
+ }
+ }
+ {
+ JsonParser* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = self->parser;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = json_object;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_parser_load_from_data (_tmp10_, _tmp11_, (gssize) -1, &_inner_error_);
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 2274 "GalleryConnector.c"
+ goto __catch0_g_error;
+ }
+ }
+ goto __finally0;
+ __catch0_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ GError* _tmp14_ = NULL;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ e = _inner_error_;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_warning ("GalleryConnector.vala:193: ERROR: didn't load JSON data");
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), FALSE);
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = e;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = _tmp12_->message;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, _tmp13_);
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = _tmp14_;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (e);
+#line 2303 "GalleryConnector.c"
+ goto __finally0;
+ }
+ __finally0:
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_propagate_error (error, _inner_error_);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 2317 "GalleryConnector.c"
+ } else {
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 2327 "GalleryConnector.c"
+ }
+ }
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = self->parser;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = json_parser_get_root (_tmp15_);
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp16_;
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = json_node_is_null (root_node);
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp17_) {
+#line 2340 "GalleryConnector.c"
+ GError* _tmp18_ = NULL;
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Root node is null, doesn't appear to be JSON data");
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = _tmp18_;
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_propagate_error (error, _inner_error_);
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 2354 "GalleryConnector.c"
+ } else {
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 2364 "GalleryConnector.c"
+ }
+ }
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = root_node;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 2373 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_base_gallery_transaction_class_init (PublishingGallery3BaseGalleryTransactionClass * klass) {
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_base_gallery_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_base_gallery_transaction_finalize;
+#line 2382 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_base_gallery_transaction_instance_init (PublishingGallery3BaseGalleryTransaction * self) {
+}
+
+
+static void publishing_gallery3_base_gallery_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingGallery3BaseGalleryTransaction * self;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction);
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->parser);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_base_gallery_transaction_parent_class)->finalize (obj);
+#line 2398 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_base_gallery_transaction_get_type (void) {
+ static volatile gsize publishing_gallery3_base_gallery_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_base_gallery_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3BaseGalleryTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_base_gallery_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3BaseGalleryTransaction), 0, (GInstanceInitFunc) publishing_gallery3_base_gallery_transaction_instance_init, NULL };
+ GType publishing_gallery3_base_gallery_transaction_type_id;
+ publishing_gallery3_base_gallery_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingGallery3BaseGalleryTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_base_gallery_transaction_type_id__volatile, publishing_gallery3_base_gallery_transaction_type_id);
+ }
+ return publishing_gallery3_base_gallery_transaction_type_id__volatile;
+}
+
+
+PublishingGallery3KeyFetchTransaction* publishing_gallery3_key_fetch_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* url, const gchar* username, const gchar* password) {
+ PublishingGallery3KeyFetchTransaction* self = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (username != NULL, NULL);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (password != NULL, NULL);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = session;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = url;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3KeyFetchTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, _tmp0_, _tmp1_, "", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = username;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "user", _tmp2_);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = password;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "password", _tmp3_);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 2444 "GalleryConnector.c"
+}
+
+
+PublishingGallery3KeyFetchTransaction* publishing_gallery3_key_fetch_transaction_new (PublishingGallery3Session* session, const gchar* url, const gchar* username, const gchar* password) {
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_key_fetch_transaction_construct (PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, session, url, username, password);
+#line 2451 "GalleryConnector.c"
+}
+
+
+static gchar* string_slice (const gchar* self, glong start, glong end) {
+ gchar* result = NULL;
+ glong string_length = 0L;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ glong _tmp2_ = 0L;
+ glong _tmp5_ = 0L;
+ gboolean _tmp8_ = FALSE;
+ glong _tmp9_ = 0L;
+ gboolean _tmp12_ = FALSE;
+ glong _tmp13_ = 0L;
+ glong _tmp16_ = 0L;
+ glong _tmp17_ = 0L;
+ glong _tmp18_ = 0L;
+ glong _tmp19_ = 0L;
+ glong _tmp20_ = 0L;
+ gchar* _tmp21_ = NULL;
+#line 1328 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = strlen (self);
+#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp0_;
+#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ string_length = (glong) _tmp1_;
+#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = start;
+#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp2_ < ((glong) 0)) {
+#line 2484 "GalleryConnector.c"
+ glong _tmp3_ = 0L;
+ glong _tmp4_ = 0L;
+#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = string_length;
+#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = start;
+#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ start = _tmp3_ + _tmp4_;
+#line 2493 "GalleryConnector.c"
+ }
+#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = end;
+#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp5_ < ((glong) 0)) {
+#line 2499 "GalleryConnector.c"
+ glong _tmp6_ = 0L;
+ glong _tmp7_ = 0L;
+#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp6_ = string_length;
+#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp7_ = end;
+#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ end = _tmp6_ + _tmp7_;
+#line 2508 "GalleryConnector.c"
+ }
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp9_ = start;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp9_ >= ((glong) 0)) {
+#line 2514 "GalleryConnector.c"
+ glong _tmp10_ = 0L;
+ glong _tmp11_ = 0L;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp10_ = start;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = string_length;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp8_ = _tmp10_ <= _tmp11_;
+#line 2523 "GalleryConnector.c"
+ } else {
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp8_ = FALSE;
+#line 2527 "GalleryConnector.c"
+ }
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp8_, NULL);
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp13_ = end;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp13_ >= ((glong) 0)) {
+#line 2535 "GalleryConnector.c"
+ glong _tmp14_ = 0L;
+ glong _tmp15_ = 0L;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp14_ = end;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp15_ = string_length;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = _tmp14_ <= _tmp15_;
+#line 2544 "GalleryConnector.c"
+ } else {
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 2548 "GalleryConnector.c"
+ }
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp12_, NULL);
+#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = start;
+#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp17_ = end;
+#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp18_ = start;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp19_ = end;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp20_ = start;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp21_;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 2570 "GalleryConnector.c"
+}
+
+
+gchar* publishing_gallery3_key_fetch_transaction_get_key (PublishingGallery3KeyFetchTransaction* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+ gboolean _tmp5_ = FALSE;
+ const gchar* _tmp6_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_KEY_FETCH_TRANSACTION (self), NULL);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->key;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (g_strcmp0 (_tmp0_, "") != 0) {
+#line 2591 "GalleryConnector.c"
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->key;
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp2_;
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 2602 "GalleryConnector.c"
+ }
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->key);
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->key = _tmp3_;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = self->priv->key;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (NULL == _tmp6_) {
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = TRUE;
+#line 2616 "GalleryConnector.c"
+ } else {
+ const gchar* _tmp7_ = NULL;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = self->priv->key;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = g_strcmp0 ("", _tmp7_) == 0;
+#line 2623 "GalleryConnector.c"
+ }
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp5_) {
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = TRUE;
+#line 2629 "GalleryConnector.c"
+ } else {
+ const gchar* _tmp8_ = NULL;
+ gint _tmp9_ = 0;
+ gint _tmp10_ = 0;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = self->priv->key;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = strlen (_tmp8_);
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = _tmp9_;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = 0 == _tmp10_;
+#line 2642 "GalleryConnector.c"
+ }
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp4_) {
+#line 2646 "GalleryConnector.c"
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = _tmp11_;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_warning ("GalleryConnector.vala:232: No response data from \"%s\"", _tmp12_);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp12_);
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = g_strdup ("");
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp13_;
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 2664 "GalleryConnector.c"
+ }
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = self->priv->key;
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = string_slice (_tmp14_, (glong) 1, (glong) -1);
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->key);
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->key = _tmp15_;
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = self->priv->key;
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = g_strdup (_tmp16_);
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp17_;
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 2682 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_key_fetch_transaction_class_init (PublishingGallery3KeyFetchTransactionClass * klass) {
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_key_fetch_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_key_fetch_transaction_finalize;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3KeyFetchTransactionPrivate));
+#line 2693 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_key_fetch_transaction_instance_init (PublishingGallery3KeyFetchTransaction * self) {
+ gchar* _tmp0_ = NULL;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_GET_PRIVATE (self);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = g_strdup ("");
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->key = _tmp0_;
+#line 2705 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_key_fetch_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingGallery3KeyFetchTransaction * self;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransaction);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->key);
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_key_fetch_transaction_parent_class)->finalize (obj);
+#line 2717 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_key_fetch_transaction_get_type (void) {
+ static volatile gsize publishing_gallery3_key_fetch_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_key_fetch_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3KeyFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_key_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3KeyFetchTransaction), 0, (GInstanceInitFunc) publishing_gallery3_key_fetch_transaction_instance_init, NULL };
+ GType publishing_gallery3_key_fetch_transaction_type_id;
+ publishing_gallery3_key_fetch_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3KeyFetchTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_key_fetch_transaction_type_id__volatile, publishing_gallery3_key_fetch_transaction_type_id);
+ }
+ return publishing_gallery3_key_fetch_transaction_type_id__volatile;
+}
+
+
+PublishingGallery3GalleryRequestTransaction* publishing_gallery3_gallery_request_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* item, PublishingRESTSupportHttpMethod method) {
+ PublishingGallery3GalleryRequestTransaction* self = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (item != NULL, NULL);
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = session;
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp1_) {
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:254: Not authenticated");
+#line 2749 "GalleryConnector.c"
+ } else {
+ PublishingGallery3Session* _tmp2_ = NULL;
+ PublishingGallery3Session* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp7_ = 0;
+ PublishingGallery3Session* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = session;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = session;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = publishing_gallery3_session_get_url (_tmp3_);
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = _tmp4_;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = item;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = method;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3GalleryRequestTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, _tmp2_, _tmp5_, _tmp6_, _tmp7_);
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = session;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = publishing_gallery3_session_get_key (_tmp8_);
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = _tmp9_;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp10_);
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "GET");
+#line 2784 "GalleryConnector.c"
+ }
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 2788 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GalleryRequestTransaction* publishing_gallery3_gallery_request_transaction_new (PublishingGallery3Session* session, const gchar* item, PublishingRESTSupportHttpMethod method) {
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_gallery_request_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, session, item, method);
+#line 2795 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_request_transaction_class_init (PublishingGallery3GalleryRequestTransactionClass * klass) {
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_request_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 2802 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_request_transaction_instance_init (PublishingGallery3GalleryRequestTransaction * self) {
+}
+
+
+GType publishing_gallery3_gallery_request_transaction_get_type (void) {
+ static volatile gsize publishing_gallery3_gallery_request_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_gallery_request_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryRequestTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_request_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryRequestTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_request_transaction_instance_init, NULL };
+ GType publishing_gallery3_gallery_request_transaction_type_id;
+ publishing_gallery3_gallery_request_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GalleryRequestTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_gallery_request_transaction_type_id__volatile, publishing_gallery3_gallery_request_transaction_type_id);
+ }
+ return publishing_gallery3_gallery_request_transaction_type_id__volatile;
+}
+
+
+PublishingGallery3GetAlbumURLsTransaction* publishing_gallery3_get_album_ur_ls_transaction_construct (GType object_type, PublishingGallery3Session* session) {
+ PublishingGallery3GetAlbumURLsTransaction* self = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = session;
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3GetAlbumURLsTransaction*) publishing_gallery3_gallery_request_transaction_construct (object_type, _tmp0_, "/item/1", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "type", "album");
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "scope", "all");
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 2837 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GetAlbumURLsTransaction* publishing_gallery3_get_album_ur_ls_transaction_new (PublishingGallery3Session* session) {
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_get_album_ur_ls_transaction_construct (PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, session);
+#line 2844 "GalleryConnector.c"
+}
+
+
+static void _vala_array_add2 (gchar*** array, int* length, int* size, gchar* value) {
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if ((*length) == (*size)) {
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *array = g_renew (gchar*, *array, (*size) + 1);
+#line 2855 "GalleryConnector.c"
+ }
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*array)[(*length)++] = value;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*array)[*length] = NULL;
+#line 2861 "GalleryConnector.c"
+}
+
+
+gchar** publishing_gallery3_get_album_ur_ls_transaction_get_album_urls (PublishingGallery3GetAlbumURLsTransaction* self, int* result_length1) {
+ gchar** result = NULL;
+ JsonNode* root_node = NULL;
+ JsonArray* all_members = NULL;
+ JsonObject* _tmp2_ = NULL;
+ JsonArray* _tmp3_ = NULL;
+ gchar** member_urls = NULL;
+ gint member_urls_length1 = 0;
+ gint _member_urls_size_ = 0;
+ gchar** _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ GError * _inner_error_ = NULL;
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUM_UR_LS_TRANSACTION (self), NULL);
+#line 2879 "GalleryConnector.c"
+ {
+ JsonNode* _tmp0_ = NULL;
+ JsonNode* _tmp1_ = NULL;
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_);
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = _tmp1_;
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2891 "GalleryConnector.c"
+ goto __catch1_spit_publishing_publishing_error;
+ }
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 2900 "GalleryConnector.c"
+ }
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp0_;
+#line 2904 "GalleryConnector.c"
+ }
+ goto __finally1;
+ __catch1_spit_publishing_publishing_error:
+ {
+ GError* e = NULL;
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ e = _inner_error_;
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:285: Could not get root node");
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (e);
+#line 2918 "GalleryConnector.c"
+ }
+ __finally1:
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 2929 "GalleryConnector.c"
+ }
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = json_node_get_object (root_node);
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = json_object_get_array_member (_tmp2_, "members");
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ all_members = _tmp3_;
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ member_urls = NULL;
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ member_urls_length1 = 0;
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _member_urls_size_ = member_urls_length1;
+#line 2943 "GalleryConnector.c"
+ {
+ guint i = 0U;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ i = (guint) 0;
+#line 2948 "GalleryConnector.c"
+ {
+ gboolean _tmp4_ = FALSE;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = TRUE;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ while (TRUE) {
+#line 2955 "GalleryConnector.c"
+ guint _tmp6_ = 0U;
+ JsonArray* _tmp7_ = NULL;
+ guint _tmp8_ = 0U;
+ gchar** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ JsonArray* _tmp10_ = NULL;
+ guint _tmp11_ = 0U;
+ const gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 2967 "GalleryConnector.c"
+ guint _tmp5_ = 0U;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = i;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ i = _tmp5_ + 1;
+#line 2973 "GalleryConnector.c"
+ }
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = FALSE;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = i;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = all_members;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = json_array_get_length (_tmp7_);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!(_tmp6_ <= (_tmp8_ - 1))) {
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 2987 "GalleryConnector.c"
+ }
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = member_urls;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9__length1 = member_urls_length1;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = all_members;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = i;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = json_array_get_string_element (_tmp10_, _tmp11_);
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = g_strdup (_tmp12_);
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_array_add2 (&member_urls, &member_urls_length1, &_member_urls_size_, _tmp13_);
+#line 3003 "GalleryConnector.c"
+ }
+ }
+ }
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = member_urls;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14__length1 = member_urls_length1;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (result_length1) {
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *result_length1 = _tmp14__length1;
+#line 3015 "GalleryConnector.c"
+ }
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp14_;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 3021 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_get_album_ur_ls_transaction_class_init (PublishingGallery3GetAlbumURLsTransactionClass * klass) {
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_get_album_ur_ls_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 3028 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_get_album_ur_ls_transaction_instance_init (PublishingGallery3GetAlbumURLsTransaction * self) {
+}
+
+
+GType publishing_gallery3_get_album_ur_ls_transaction_get_type (void) {
+ static volatile gsize publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GetAlbumURLsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_get_album_ur_ls_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GetAlbumURLsTransaction), 0, (GInstanceInitFunc) publishing_gallery3_get_album_ur_ls_transaction_instance_init, NULL };
+ GType publishing_gallery3_get_album_ur_ls_transaction_type_id;
+ publishing_gallery3_get_album_ur_ls_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, "PublishingGallery3GetAlbumURLsTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile, publishing_gallery3_get_album_ur_ls_transaction_type_id);
+ }
+ return publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile;
+}
+
+
+static void _vala_array_add3 (gchar*** array, int* length, int* size, gchar* value) {
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if ((*length) == (*size)) {
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *array = g_renew (gchar*, *array, (*size) + 1);
+#line 3055 "GalleryConnector.c"
+ }
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*array)[(*length)++] = value;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*array)[*length] = NULL;
+#line 3061 "GalleryConnector.c"
+}
+
+
+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 3078 "GalleryConnector.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 3088 "GalleryConnector.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 3098 "GalleryConnector.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 3104 "GalleryConnector.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 3115 "GalleryConnector.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 3127 "GalleryConnector.c"
+ } else {
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = FALSE;
+#line 3131 "GalleryConnector.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp5_;
+#line 3135 "GalleryConnector.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp1_) {
+#line 3139 "GalleryConnector.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 3162 "GalleryConnector.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 3171 "GalleryConnector.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 3184 "GalleryConnector.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 3190 "GalleryConnector.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 3200 "GalleryConnector.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 3212 "GalleryConnector.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 3216 "GalleryConnector.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 3222 "GalleryConnector.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 3233 "GalleryConnector.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 3248 "GalleryConnector.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = FALSE;
+#line 3252 "GalleryConnector.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = _tmp16_;
+#line 3256 "GalleryConnector.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 3262 "GalleryConnector.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 3274 "GalleryConnector.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 3295 "GalleryConnector.c"
+ } else {
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = 0;
+#line 3299 "GalleryConnector.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 3305 "GalleryConnector.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 3312 "GalleryConnector.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 3320 "GalleryConnector.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 3358 "GalleryConnector.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 3367 "GalleryConnector.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 3383 "GalleryConnector.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 3389 "GalleryConnector.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 3403 "GalleryConnector.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 3423 "GalleryConnector.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 3438 "GalleryConnector.c"
+ } else {
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp53_ = "";
+#line 3442 "GalleryConnector.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 3450 "GalleryConnector.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 3461 "GalleryConnector.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 3470 "GalleryConnector.c"
+ }
+}
+
+
+PublishingGallery3GetAlbumsTransaction* publishing_gallery3_get_albums_transaction_construct (GType object_type, PublishingGallery3Session* session, gchar** _album_urls, int _album_urls_length1, guint start) {
+ PublishingGallery3GetAlbumsTransaction* self = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+ gchar** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ gchar* url_list = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar** my_album_urls = NULL;
+ gint my_album_urls_length1 = 0;
+ gint _my_album_urls_size_ = 0;
+ gchar* endpoint_url = NULL;
+ PublishingGallery3Session* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ const gchar* _tmp6_ = NULL;
+ gint url_length = 0;
+ gint _tmp10_ = 0;
+ guint _tmp11_ = 0U;
+ gchar** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ gchar** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ const gchar* _tmp51_ = NULL;
+ gchar* _tmp52_ = NULL;
+ const gchar* _tmp53_ = NULL;
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = session;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3GetAlbumsTransaction*) publishing_gallery3_gallery_request_transaction_construct (object_type, _tmp0_, "/items", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "scope", "all");
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = _album_urls;
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1__length1 = _album_urls_length1;
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_get_albums_transaction_set_album_urls (self, _tmp1_, _tmp1__length1);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = g_strdup ("[");
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url_list = _tmp2_;
+#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ my_album_urls = NULL;
+#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ my_album_urls_length1 = 0;
+#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _my_album_urls_size_ = my_album_urls_length1;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = session;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = publishing_rest_support_session_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ endpoint_url = _tmp4_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = endpoint_url;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (NULL != _tmp6_) {
+#line 3534 "GalleryConnector.c"
+ const gchar* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+ gint _tmp9_ = 0;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = endpoint_url;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = strlen (_tmp7_);
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = _tmp9_;
+#line 3546 "GalleryConnector.c"
+ } else {
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = 0;
+#line 3550 "GalleryConnector.c"
+ }
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url_length = _tmp5_;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = url_length;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url_length = _tmp10_ + 18;
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = start;
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp12__length1);
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = _tmp12_;
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13__length1 = _tmp12__length1;
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp11_ <= ((guint) (_tmp13__length1 - 1))) {
+#line 3568 "GalleryConnector.c"
+ guint _tmp14_ = 0U;
+ const gchar* _tmp43_ = NULL;
+ gchar** _tmp44_ = NULL;
+ gint _tmp44__length1 = 0;
+ gchar* _tmp45_ = NULL;
+ gchar* _tmp46_ = NULL;
+ gchar* _tmp47_ = NULL;
+ guint _tmp48_ = 0U;
+ gchar** _tmp49_ = NULL;
+ gint _tmp49__length1 = 0;
+ gchar** _tmp50_ = NULL;
+ gint _tmp50__length1 = 0;
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = start;
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_get_albums_transaction_set_urls_sent (self, _tmp14_);
+#line 3585 "GalleryConnector.c"
+ {
+ gboolean _tmp15_ = FALSE;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = TRUE;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ while (TRUE) {
+#line 3592 "GalleryConnector.c"
+ gchar** _tmp27_ = NULL;
+ gint _tmp27__length1 = 0;
+ gchar** _tmp28_ = NULL;
+ gint _tmp28__length1 = 0;
+ gchar** _tmp29_ = NULL;
+ gint _tmp29__length1 = 0;
+ guint _tmp30_ = 0U;
+ const gchar* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+ gchar* _tmp33_ = NULL;
+ gchar* _tmp34_ = NULL;
+ gint _tmp35_ = 0;
+ gchar** _tmp36_ = NULL;
+ gint _tmp36__length1 = 0;
+ gchar** _tmp37_ = NULL;
+ gint _tmp37__length1 = 0;
+ guint _tmp38_ = 0U;
+ const gchar* _tmp39_ = NULL;
+ gint _tmp40_ = 0;
+ gint _tmp41_ = 0;
+ guint _tmp42_ = 0U;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp15_) {
+#line 3616 "GalleryConnector.c"
+ gboolean _tmp16_ = FALSE;
+ guint _tmp17_ = 0U;
+ gchar** _tmp18_ = NULL;
+ gint _tmp18__length1 = 0;
+ gchar** _tmp19_ = NULL;
+ gint _tmp19__length1 = 0;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = self->priv->_urls_sent;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp18__length1);
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = _tmp18_;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19__length1 = _tmp18__length1;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp17_ <= ((guint) (_tmp19__length1 - 1))) {
+#line 3633 "GalleryConnector.c"
+ gint _tmp20_ = 0;
+ gchar** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+ gchar** _tmp22_ = NULL;
+ gint _tmp22__length1 = 0;
+ guint _tmp23_ = 0U;
+ const gchar* _tmp24_ = NULL;
+ gint _tmp25_ = 0;
+ gint _tmp26_ = 0;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = url_length;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp21__length1);
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = _tmp21_;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22__length1 = _tmp21__length1;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = self->priv->_urls_sent;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp24_ = _tmp22_[_tmp23_];
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = strlen (_tmp24_);
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = _tmp25_;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = ((_tmp20_ + _tmp26_) + 3) <= 255;
+#line 3661 "GalleryConnector.c"
+ } else {
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = FALSE;
+#line 3665 "GalleryConnector.c"
+ }
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp16_) {
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 3671 "GalleryConnector.c"
+ }
+ }
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = FALSE;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27_ = my_album_urls;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27__length1 = my_album_urls_length1;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp28__length1);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29_ = _tmp28_;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29__length1 = _tmp28__length1;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp30_ = self->priv->_urls_sent;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp31_ = _tmp29_[_tmp30_];
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp32_ = g_strconcat ("\"", _tmp31_, NULL);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp33_ = _tmp32_;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp34_ = g_strconcat (_tmp33_, "\"", NULL);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_array_add3 (&my_album_urls, &my_album_urls_length1, &_my_album_urls_size_, _tmp34_);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp33_);
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp35_ = url_length;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp36_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp36__length1);
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp37_ = _tmp36_;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp37__length1 = _tmp36__length1;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp38_ = self->priv->_urls_sent;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp39_ = _tmp37_[_tmp38_];
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp40_ = strlen (_tmp39_);
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp41_ = _tmp40_;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url_length = _tmp35_ + (_tmp41_ + 3);
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp42_ = self->priv->_urls_sent;
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_get_albums_transaction_set_urls_sent (self, _tmp42_ + 1);
+#line 3722 "GalleryConnector.c"
+ }
+ }
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp43_ = url_list;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp44_ = my_album_urls;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp44__length1 = my_album_urls_length1;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp45_ = _vala_g_strjoinv (",", _tmp44_, _tmp44__length1);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp46_ = _tmp45_;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp47_ = g_strconcat (_tmp43_, _tmp46_, NULL);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (url_list);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url_list = _tmp47_;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp46_);
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp48_ = self->priv->_urls_sent;
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp49_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp49__length1);
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp50_ = _tmp49_;
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp50__length1 = _tmp49__length1;
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_get_albums_transaction_set_more_urls (self, _tmp48_ <= ((guint) (_tmp50__length1 - 1)));
+#line 3753 "GalleryConnector.c"
+ }
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp51_ = url_list;
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp52_ = g_strconcat (_tmp51_, "]", NULL);
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (url_list);
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url_list = _tmp52_;
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp53_ = url_list;
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "urls", _tmp53_);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (endpoint_url);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ my_album_urls = (_vala_array_free (my_album_urls, my_album_urls_length1, (GDestroyNotify) g_free), NULL);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (url_list);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 3775 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GetAlbumsTransaction* publishing_gallery3_get_albums_transaction_new (PublishingGallery3Session* session, gchar** _album_urls, int _album_urls_length1, guint start) {
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_get_albums_transaction_construct (PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, session, _album_urls, _album_urls_length1, start);
+#line 3782 "GalleryConnector.c"
+}
+
+
+static gpointer _publishing_gallery3_album_ref0 (gpointer self) {
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self ? publishing_gallery3_album_ref (self) : NULL;
+#line 3789 "GalleryConnector.c"
+}
+
+
+static void _vala_array_add4 (PublishingGallery3Album*** array, int* length, int* size, PublishingGallery3Album* value) {
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if ((*length) == (*size)) {
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *array = g_renew (PublishingGallery3Album*, *array, (*size) + 1);
+#line 3800 "GalleryConnector.c"
+ }
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*array)[(*length)++] = value;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*array)[*length] = NULL;
+#line 3806 "GalleryConnector.c"
+}
+
+
+static const gchar* string_to_string (const gchar* self) {
+ const gchar* result = NULL;
+#line 1412 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1413 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = self;
+#line 1413 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 3818 "GalleryConnector.c"
+}
+
+
+PublishingGallery3Album** publishing_gallery3_get_albums_transaction_get_albums (PublishingGallery3GetAlbumsTransaction* self, int* result_length1, GError** error) {
+ PublishingGallery3Album** result = NULL;
+ PublishingGallery3Album** albums = NULL;
+ gint albums_length1 = 0;
+ gint _albums_size_ = 0;
+ PublishingGallery3Album* tmp_album = NULL;
+ JsonNode* root_node = NULL;
+ JsonNode* _tmp0_ = NULL;
+ JsonArray* members = NULL;
+ JsonArray* _tmp1_ = NULL;
+ PublishingGallery3Album** _tmp23_ = NULL;
+ gint _tmp23__length1 = 0;
+ GError * _inner_error_ = NULL;
+#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), NULL);
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ albums = NULL;
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ albums_length1 = 0;
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _albums_size_ = albums_length1;
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_);
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp0_;
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_propagate_error (error, _inner_error_);
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_album_unref0 (tmp_album);
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 3859 "GalleryConnector.c"
+ } else {
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_album_unref0 (tmp_album);
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 3871 "GalleryConnector.c"
+ }
+ }
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = json_node_get_array (root_node);
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ members = _tmp1_;
+#line 3878 "GalleryConnector.c"
+ {
+ guint i = 0U;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ i = (guint) 0;
+#line 3883 "GalleryConnector.c"
+ {
+ gboolean _tmp2_ = FALSE;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = TRUE;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ while (TRUE) {
+#line 3890 "GalleryConnector.c"
+ guint _tmp4_ = 0U;
+ JsonArray* _tmp5_ = NULL;
+ guint _tmp6_ = 0U;
+ JsonArray* _tmp7_ = NULL;
+ guint _tmp8_ = 0U;
+ JsonObject* _tmp9_ = NULL;
+ PublishingGallery3Album* _tmp10_ = NULL;
+ PublishingGallery3Album* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+ gboolean _tmp13_ = FALSE;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp2_) {
+#line 3903 "GalleryConnector.c"
+ guint _tmp3_ = 0U;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = i;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ i = _tmp3_ + 1;
+#line 3909 "GalleryConnector.c"
+ }
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = FALSE;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = i;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = members;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = json_array_get_length (_tmp5_);
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!(_tmp4_ <= (_tmp6_ - 1))) {
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 3923 "GalleryConnector.c"
+ }
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = members;
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = i;
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = json_array_get_object_element (_tmp7_, _tmp8_);
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_album_new (_tmp9_);
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_album_unref0 (tmp_album);
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ tmp_album = _tmp10_;
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = tmp_album;
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = publishing_gallery3_album_get_editable (_tmp11_);
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = _tmp12_;
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp13_) {
+#line 3945 "GalleryConnector.c"
+ PublishingGallery3Album** _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ PublishingGallery3Album* _tmp15_ = NULL;
+ PublishingGallery3Album* _tmp16_ = NULL;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = albums;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14__length1 = albums_length1;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = tmp_album;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = _publishing_gallery3_album_ref0 (_tmp15_);
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_array_add4 (&albums, &albums_length1, &_albums_size_, _tmp16_);
+#line 3960 "GalleryConnector.c"
+ } else {
+ PublishingGallery3Album* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = tmp_album;
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = publishing_gallery3_album_get_title (_tmp17_);
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = _tmp18_;
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = string_to_string (_tmp19_);
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = g_strconcat ("Album \"", _tmp20_, "\" is not editable", NULL);
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = _tmp21_;
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_warning ("GalleryConnector.vala:373: %s", _tmp22_);
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp22_);
+#line 3984 "GalleryConnector.c"
+ }
+ }
+ }
+ }
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = albums;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23__length1 = albums_length1;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (result_length1) {
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *result_length1 = _tmp23__length1;
+#line 3997 "GalleryConnector.c"
+ }
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp23_;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_album_unref0 (tmp_album);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 4005 "GalleryConnector.c"
+}
+
+
+gchar** publishing_gallery3_get_albums_transaction_get_album_urls (PublishingGallery3GetAlbumsTransaction* self, int* result_length1) {
+ gchar** result;
+ gchar** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gchar** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), NULL);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_album_urls;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0__length1 = self->priv->_album_urls_length1;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = _tmp0_;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (result_length1) {
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *result_length1 = _tmp1__length1;
+#line 4029 "GalleryConnector.c"
+ }
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp1_;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 4035 "GalleryConnector.c"
+}
+
+
+static gchar** _vala_array_dup2 (gchar** self, int length) {
+ gchar** result;
+ int i;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = g_new0 (gchar*, length + 1);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ for (i = 0; i < length; i++) {
+#line 4046 "GalleryConnector.c"
+ gchar* _tmp0_ = NULL;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = g_strdup (self[i]);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result[i] = _tmp0_;
+#line 4052 "GalleryConnector.c"
+ }
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 4056 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_get_albums_transaction_set_album_urls (PublishingGallery3GetAlbumsTransaction* self, gchar** value, int value_length1) {
+ gchar** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gchar** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self));
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0__length1 = value_length1;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup2 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_urls = (_vala_array_free (self->priv->_album_urls, self->priv->_album_urls_length1, (GDestroyNotify) g_free), NULL);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_urls = _tmp1_;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_urls_length1 = _tmp1__length1;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->__album_urls_size_ = self->priv->_album_urls_length1;
+#line 4083 "GalleryConnector.c"
+}
+
+
+guint publishing_gallery3_get_albums_transaction_get_urls_sent (PublishingGallery3GetAlbumsTransaction* self) {
+ guint result;
+ guint _tmp0_ = 0U;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), 0U);
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_urls_sent;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 4098 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_get_albums_transaction_set_urls_sent (PublishingGallery3GetAlbumsTransaction* self, guint value) {
+ guint _tmp0_ = 0U;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self));
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_urls_sent = _tmp0_;
+#line 4110 "GalleryConnector.c"
+}
+
+
+gboolean publishing_gallery3_get_albums_transaction_get_more_urls (PublishingGallery3GetAlbumsTransaction* self) {
+ gboolean result;
+ gboolean _tmp0_ = FALSE;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), FALSE);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_more_urls;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 4125 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_get_albums_transaction_set_more_urls (PublishingGallery3GetAlbumsTransaction* self, gboolean value) {
+ gboolean _tmp0_ = FALSE;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self));
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_more_urls = _tmp0_;
+#line 4137 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_get_albums_transaction_class_init (PublishingGallery3GetAlbumsTransactionClass * klass) {
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_get_albums_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_get_albums_transaction_finalize;
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3GetAlbumsTransactionPrivate));
+#line 4148 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_get_albums_transaction_instance_init (PublishingGallery3GetAlbumsTransaction * self) {
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_GET_PRIVATE (self);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_urls = NULL;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_urls_length1 = 0;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->__album_urls_size_ = self->priv->_album_urls_length1;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_urls_sent = (guint) 0;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_more_urls = FALSE;
+#line 4165 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_get_albums_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingGallery3GetAlbumsTransaction * self;
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransaction);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_urls = (_vala_array_free (self->priv->_album_urls, self->priv->_album_urls_length1, (GDestroyNotify) g_free), NULL);
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_get_albums_transaction_parent_class)->finalize (obj);
+#line 4177 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_get_albums_transaction_get_type (void) {
+ static volatile gsize publishing_gallery3_get_albums_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_get_albums_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GetAlbumsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_get_albums_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GetAlbumsTransaction), 0, (GInstanceInitFunc) publishing_gallery3_get_albums_transaction_instance_init, NULL };
+ GType publishing_gallery3_get_albums_transaction_type_id;
+ publishing_gallery3_get_albums_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, "PublishingGallery3GetAlbumsTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_get_albums_transaction_type_id__volatile, publishing_gallery3_get_albums_transaction_type_id);
+ }
+ return publishing_gallery3_get_albums_transaction_type_id__volatile;
+}
+
+
+static void _vala_JsonNode_free (JsonNode* self) {
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_boxed_free (json_node_get_type (), self);
+#line 4196 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GalleryGetTagTransaction* publishing_gallery3_gallery_get_tag_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* tag_name) {
+ PublishingGallery3GalleryGetTagTransaction* self = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (tag_name != NULL, NULL);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = session;
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp1_) {
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:389: Not authenticated");
+#line 4216 "GalleryConnector.c"
+ } else {
+ JsonGenerator* entity = NULL;
+ JsonGenerator* _tmp2_ = NULL;
+ JsonNode* root_node = NULL;
+ JsonNode* _tmp3_ = NULL;
+ JsonObject* obj = NULL;
+ JsonObject* _tmp4_ = NULL;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ PublishingGallery3Session* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ PublishingGallery3Session* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ gsize entity_length = 0UL;
+ gchar* entity_value = NULL;
+ gsize _tmp13_ = 0UL;
+ gchar* _tmp14_ = NULL;
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = json_generator_new ();
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ entity = _tmp2_;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = json_node_new (JSON_NODE_OBJECT);
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp3_;
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = json_object_new ();
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ obj = _tmp4_;
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = session;
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = session;
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = publishing_gallery3_session_get_url (_tmp6_);
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = _tmp7_;
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3GalleryGetTagTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, _tmp5_, _tmp8_, "/tags", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = session;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_session_get_key (_tmp9_);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = _tmp10_;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp11_);
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST");
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = tag_name;
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object_set_string_member (obj, "name", _tmp12_);
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_node_set_object (root_node, obj);
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_generator_set_root (entity, root_node);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = json_generator_to_data (entity, &_tmp13_);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ entity_length = _tmp13_;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ entity_value = _tmp14_;
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:409: created entity: %s", entity_value);
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", entity_value);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (entity_value);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _json_object_unref0 (obj);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ __vala_JsonNode_free0 (root_node);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (entity);
+#line 4294 "GalleryConnector.c"
+ }
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 4298 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GalleryGetTagTransaction* publishing_gallery3_gallery_get_tag_transaction_new (PublishingGallery3Session* session, const gchar* tag_name) {
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_gallery_get_tag_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, session, tag_name);
+#line 4305 "GalleryConnector.c"
+}
+
+
+gchar* publishing_gallery3_gallery_get_tag_transaction_tag_url (PublishingGallery3GalleryGetTagTransaction* self) {
+ gchar* result = NULL;
+ JsonNode* root_node = NULL;
+ gchar* url = NULL;
+ JsonObject* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_GET_TAG_TRANSACTION (self), NULL);
+#line 4319 "GalleryConnector.c"
+ {
+ JsonNode* _tmp0_ = NULL;
+ JsonNode* _tmp1_ = NULL;
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = _tmp1_;
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4331 "GalleryConnector.c"
+ goto __catch2_spit_publishing_publishing_error;
+ }
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (url);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 4342 "GalleryConnector.c"
+ }
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp0_;
+#line 4346 "GalleryConnector.c"
+ }
+ goto __finally2;
+ __catch2_spit_publishing_publishing_error:
+ {
+ GError* e = NULL;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ e = _inner_error_;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:425: Could not get root node");
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (e);
+#line 4360 "GalleryConnector.c"
+ }
+ __finally2:
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (url);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 4373 "GalleryConnector.c"
+ }
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = json_node_get_object (root_node);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = json_object_get_string_member (_tmp2_, "url");
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = g_strdup (_tmp3_);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (url);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url = _tmp4_;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = url;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 4389 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_get_tag_transaction_class_init (PublishingGallery3GalleryGetTagTransactionClass * klass) {
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_get_tag_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 4396 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_get_tag_transaction_instance_init (PublishingGallery3GalleryGetTagTransaction * self) {
+}
+
+
+GType publishing_gallery3_gallery_get_tag_transaction_get_type (void) {
+ static volatile gsize publishing_gallery3_gallery_get_tag_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_gallery_get_tag_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryGetTagTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_get_tag_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryGetTagTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_get_tag_transaction_instance_init, NULL };
+ GType publishing_gallery3_gallery_get_tag_transaction_type_id;
+ publishing_gallery3_gallery_get_tag_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GalleryGetTagTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_gallery_get_tag_transaction_type_id__volatile, publishing_gallery3_gallery_get_tag_transaction_type_id);
+ }
+ return publishing_gallery3_gallery_get_tag_transaction_type_id__volatile;
+}
+
+
+PublishingGallery3GalleryGetItemTagsURLsTransaction* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* item_url) {
+ PublishingGallery3GalleryGetItemTagsURLsTransaction* self = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (item_url != NULL, NULL);
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = session;
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = item_url;
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3GalleryGetItemTagsURLsTransaction*) publishing_gallery3_gallery_request_transaction_construct (object_type, _tmp0_, _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 4432 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GalleryGetItemTagsURLsTransaction* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_new (PublishingGallery3Session* session, const gchar* item_url) {
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, session, item_url);
+#line 4439 "GalleryConnector.c"
+}
+
+
+gchar* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_item_tags_path (PublishingGallery3GalleryGetItemTagsURLsTransaction* self) {
+ gchar* result = NULL;
+ JsonNode* root_node = NULL;
+ JsonObject* relationships = NULL;
+ JsonObject* tags = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION (self), NULL);
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->item_tags_path;
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (g_strcmp0 ("", _tmp0_) == 0) {
+#line 4458 "GalleryConnector.c"
+ JsonNode* _tmp3_ = NULL;
+ JsonObject* _tmp4_ = NULL;
+ JsonObject* _tmp5_ = NULL;
+ JsonObject* _tmp6_ = NULL;
+ JsonObject* _tmp7_ = NULL;
+ JsonObject* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ {
+ JsonNode* _tmp1_ = NULL;
+ JsonNode* _tmp2_ = NULL;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_);
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = _tmp2_;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4480 "GalleryConnector.c"
+ goto __catch3_spit_publishing_publishing_error;
+ }
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 4489 "GalleryConnector.c"
+ }
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp1_;
+#line 4493 "GalleryConnector.c"
+ }
+ goto __finally3;
+ __catch3_spit_publishing_publishing_error:
+ {
+ GError* e = NULL;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ e = _inner_error_;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:461: Could not get root node");
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (e);
+#line 4507 "GalleryConnector.c"
+ }
+ __finally3:
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 4518 "GalleryConnector.c"
+ }
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = root_node;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = json_node_get_object (_tmp3_);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = json_object_get_object_member (_tmp4_, "relationships");
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ relationships = _tmp5_;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = relationships;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = json_object_get_object_member (_tmp6_, "tags");
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ tags = _tmp7_;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = tags;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = json_object_get_string_member (_tmp8_, "url");
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = g_strdup (_tmp9_);
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->item_tags_path);
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->item_tags_path = _tmp10_;
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = self->priv->item_tags_path;
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = publishing_gallery3_strip_session_url (_tmp11_);
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->item_tags_path);
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->item_tags_path = _tmp12_;
+#line 4552 "GalleryConnector.c"
+ }
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = self->priv->item_tags_path;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = g_strdup (_tmp13_);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp14_;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 4562 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_class_init (PublishingGallery3GalleryGetItemTagsURLsTransactionClass * klass) {
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_finalize;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate));
+#line 4573 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_instance_init (PublishingGallery3GalleryGetItemTagsURLsTransaction * self) {
+ gchar* _tmp0_ = NULL;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_GET_PRIVATE (self);
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = g_strdup ("");
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->item_tags_path = _tmp0_;
+#line 4585 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingGallery3GalleryGetItemTagsURLsTransaction * self;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransaction);
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->item_tags_path);
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_parent_class)->finalize (obj);
+#line 4597 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_type (void) {
+ static volatile gsize publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryGetItemTagsURLsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryGetItemTagsURLsTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_instance_init, NULL };
+ GType publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id;
+ publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, "PublishingGallery3GalleryGetItemTagsURLsTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile, publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id);
+ }
+ return publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile;
+}
+
+
+PublishingGallery3GallerySetTagRelationshipTransaction* publishing_gallery3_gallery_set_tag_relationship_transaction_construct (GType object_type, PublishingGallery3Session* session, const gchar* item_tags_path, const gchar* tag_url, const gchar* item_url) {
+ PublishingGallery3GallerySetTagRelationshipTransaction* self = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (item_tags_path != NULL, NULL);
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (tag_url != NULL, NULL);
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (item_url != NULL, NULL);
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = session;
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp1_) {
+#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:489: Not authenticated");
+#line 4633 "GalleryConnector.c"
+ } else {
+ JsonGenerator* entity = NULL;
+ JsonGenerator* _tmp2_ = NULL;
+ JsonNode* root_node = NULL;
+ JsonNode* _tmp3_ = NULL;
+ JsonObject* obj = NULL;
+ JsonObject* _tmp4_ = NULL;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ PublishingGallery3Session* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ PublishingGallery3Session* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ gsize entity_length = 0UL;
+ gchar* entity_value = NULL;
+ gsize _tmp15_ = 0UL;
+ gchar* _tmp16_ = NULL;
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = json_generator_new ();
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ entity = _tmp2_;
+#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = json_node_new (JSON_NODE_OBJECT);
+#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp3_;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = json_object_new ();
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ obj = _tmp4_;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = session;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = session;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = publishing_gallery3_session_get_url (_tmp6_);
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = _tmp7_;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = item_tags_path;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3GallerySetTagRelationshipTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, _tmp5_, _tmp8_, _tmp9_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = session;
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = publishing_gallery3_session_get_key (_tmp10_);
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = _tmp11_;
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp12_);
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST");
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = tag_url;
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object_set_string_member (obj, "tag", _tmp13_);
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = item_url;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object_set_string_member (obj, "item", _tmp14_);
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_node_set_object (root_node, obj);
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_generator_set_root (entity, root_node);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = json_generator_to_data (entity, &_tmp15_);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ entity_length = _tmp15_;
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ entity_value = _tmp16_;
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:510: created entity: %s", entity_value);
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", entity_value);
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (entity_value);
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _json_object_unref0 (obj);
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ __vala_JsonNode_free0 (root_node);
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (entity);
+#line 4719 "GalleryConnector.c"
+ }
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 4723 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GallerySetTagRelationshipTransaction* publishing_gallery3_gallery_set_tag_relationship_transaction_new (PublishingGallery3Session* session, const gchar* item_tags_path, const gchar* tag_url, const gchar* item_url) {
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_gallery_set_tag_relationship_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, session, item_tags_path, tag_url, item_url);
+#line 4730 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_set_tag_relationship_transaction_class_init (PublishingGallery3GallerySetTagRelationshipTransactionClass * klass) {
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_set_tag_relationship_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 4737 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_set_tag_relationship_transaction_instance_init (PublishingGallery3GallerySetTagRelationshipTransaction * self) {
+}
+
+
+GType publishing_gallery3_gallery_set_tag_relationship_transaction_get_type (void) {
+ static volatile gsize publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GallerySetTagRelationshipTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_set_tag_relationship_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GallerySetTagRelationshipTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_set_tag_relationship_transaction_instance_init, NULL };
+ GType publishing_gallery3_gallery_set_tag_relationship_transaction_type_id;
+ publishing_gallery3_gallery_set_tag_relationship_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GallerySetTagRelationshipTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile, publishing_gallery3_gallery_set_tag_relationship_transaction_type_id);
+ }
+ return publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile;
+}
+
+
+PublishingGallery3GalleryAlbumCreateTransaction* publishing_gallery3_gallery_album_create_transaction_construct (GType object_type, PublishingGallery3Session* session, PublishingGallery3PublishingParameters* parameters) {
+ PublishingGallery3GalleryAlbumCreateTransaction* self = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = session;
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp1_) {
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:533: Not authenticated");
+#line 4773 "GalleryConnector.c"
+ } else {
+ JsonGenerator* entity = NULL;
+ JsonGenerator* _tmp2_ = NULL;
+ JsonNode* root_node = NULL;
+ JsonNode* _tmp3_ = NULL;
+ JsonObject* obj = NULL;
+ JsonObject* _tmp4_ = NULL;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ PublishingGallery3Session* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ PublishingGallery3Session* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ PublishingGallery3Session* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp16_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ gchar* entity_value = NULL;
+ gchar* _tmp23_ = NULL;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = json_generator_new ();
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ entity = _tmp2_;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = json_node_new (JSON_NODE_OBJECT);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp3_;
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = json_object_new ();
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ obj = _tmp4_;
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = session;
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = session;
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = publishing_gallery3_session_get_url (_tmp6_);
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = _tmp7_;
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3GalleryAlbumCreateTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, _tmp5_, _tmp8_, "/item/1", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = session;
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_session_get_key (_tmp9_);
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = _tmp10_;
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp11_);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST");
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = session;
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = publishing_gallery3_session_get_url (_tmp12_);
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = _tmp13_;
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = g_strdup (_tmp14_);
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->session_url);
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->session_url = _tmp15_;
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = parameters;
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_album_create_transaction_set_parameters (self, _tmp16_);
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = parameters;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = publishing_gallery3_publishing_parameters_get_album_name (_tmp17_);
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = _tmp18_;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object_set_string_member (obj, "name", _tmp19_);
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object_set_string_member (obj, "type", "album");
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = parameters;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = publishing_gallery3_publishing_parameters_get_album_title (_tmp20_);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = _tmp21_;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object_set_string_member (obj, "title", _tmp22_);
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_node_set_object (root_node, obj);
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_generator_set_root (entity, root_node);
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = json_generator_to_data (entity, NULL);
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ entity_value = _tmp23_;
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:556: created entity: %s", entity_value);
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", entity_value);
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (entity_value);
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _json_object_unref0 (obj);
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ __vala_JsonNode_free0 (root_node);
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (entity);
+#line 4887 "GalleryConnector.c"
+ }
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 4891 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GalleryAlbumCreateTransaction* publishing_gallery3_gallery_album_create_transaction_new (PublishingGallery3Session* session, PublishingGallery3PublishingParameters* parameters) {
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_gallery_album_create_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, session, parameters);
+#line 4898 "GalleryConnector.c"
+}
+
+
+gchar* publishing_gallery3_gallery_album_create_transaction_get_new_album_path (PublishingGallery3GalleryAlbumCreateTransaction* self) {
+ gchar* result = NULL;
+ JsonNode* root_node = NULL;
+ gchar* new_path = NULL;
+ JsonObject* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION (self), NULL);
+#line 4914 "GalleryConnector.c"
+ {
+ JsonNode* _tmp0_ = NULL;
+ JsonNode* _tmp1_ = NULL;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = _tmp1_;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4926 "GalleryConnector.c"
+ goto __catch4_spit_publishing_publishing_error;
+ }
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_path);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 4937 "GalleryConnector.c"
+ }
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp0_;
+#line 4941 "GalleryConnector.c"
+ }
+ goto __finally4;
+ __catch4_spit_publishing_publishing_error:
+ {
+ GError* e = NULL;
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ e = _inner_error_;
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:572: Could not get root node");
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (e);
+#line 4955 "GalleryConnector.c"
+ }
+ __finally4:
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_path);
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 4968 "GalleryConnector.c"
+ }
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = json_node_get_object (root_node);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = json_object_get_string_member (_tmp2_, "url");
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = g_strdup (_tmp3_);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_path);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_path = _tmp4_;
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = new_path;
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_gallery3_strip_session_url (_tmp5_);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_path);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_path = _tmp6_;
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = new_path;
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 4992 "GalleryConnector.c"
+}
+
+
+PublishingGallery3PublishingParameters* publishing_gallery3_gallery_album_create_transaction_get_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self) {
+ PublishingGallery3PublishingParameters* result;
+ PublishingGallery3PublishingParameters* _tmp0_ = NULL;
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION (self), NULL);
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_parameters;
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 5007 "GalleryConnector.c"
+}
+
+
+static gpointer _publishing_gallery3_publishing_parameters_ref0 (gpointer self) {
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self ? publishing_gallery3_publishing_parameters_ref (self) : NULL;
+#line 5014 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_album_create_transaction_set_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self, PublishingGallery3PublishingParameters* value) {
+ PublishingGallery3PublishingParameters* _tmp0_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp1_ = NULL;
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION (self));
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = _publishing_gallery3_publishing_parameters_ref0 (_tmp0_);
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_publishing_parameters_unref0 (self->priv->_parameters);
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_parameters = _tmp1_;
+#line 5031 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_album_create_transaction_class_init (PublishingGallery3GalleryAlbumCreateTransactionClass * klass) {
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_album_create_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_gallery_album_create_transaction_finalize;
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryAlbumCreateTransactionPrivate));
+#line 5042 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_album_create_transaction_instance_init (PublishingGallery3GalleryAlbumCreateTransaction * self) {
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_GET_PRIVATE (self);
+#line 5049 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_album_create_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingGallery3GalleryAlbumCreateTransaction * self;
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransaction);
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_publishing_parameters_unref0 (self->priv->_parameters);
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->session_url);
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_album_create_transaction_parent_class)->finalize (obj);
+#line 5063 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_gallery_album_create_transaction_get_type (void) {
+ static volatile gsize publishing_gallery3_gallery_album_create_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_gallery_album_create_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryAlbumCreateTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_album_create_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryAlbumCreateTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_album_create_transaction_instance_init, NULL };
+ GType publishing_gallery3_gallery_album_create_transaction_type_id;
+ publishing_gallery3_gallery_album_create_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GalleryAlbumCreateTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_gallery_album_create_transaction_type_id__volatile, publishing_gallery3_gallery_album_create_transaction_type_id);
+ }
+ return publishing_gallery3_gallery_album_create_transaction_type_id__volatile;
+}
+
+
+static gpointer _publishing_rest_support_session_ref0 (gpointer self) {
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self ? publishing_rest_support_session_ref (self) : NULL;
+#line 5082 "GalleryConnector.c"
+}
+
+
+static void _g_free0_ (gpointer var) {
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ var = (g_free (var), NULL);
+#line 5089 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GalleryUploadTransaction* publishing_gallery3_gallery_upload_transaction_construct (GType object_type, PublishingGallery3Session* session, PublishingGallery3PublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+ PublishingGallery3GalleryUploadTransaction* self = NULL;
+ PublishingGallery3PublishingParameters* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar _tmp3_ = '\0';
+ PublishingGallery3Session* _tmp7_ = NULL;
+ SpitPublishingPublishable* _tmp8_ = NULL;
+ PublishingGallery3Session* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp19_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp20_ = NULL;
+ PublishingGallery3Session* _tmp21_ = NULL;
+ PublishingGallery3Session* _tmp22_ = NULL;
+ PublishingGallery3Session* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ const gchar* _tmp25_ = NULL;
+ GHashTable* disposition_table = NULL;
+ GHashFunc _tmp26_ = NULL;
+ GEqualFunc _tmp27_ = NULL;
+ GHashTable* _tmp28_ = NULL;
+ gchar* title = NULL;
+ SpitPublishingPublishable* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gchar* filename = NULL;
+ SpitPublishingPublishable* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+ gboolean _tmp33_ = FALSE;
+ const gchar* _tmp34_ = NULL;
+ GHashTable* _tmp38_ = NULL;
+ gchar* _tmp39_ = NULL;
+ const gchar* _tmp40_ = NULL;
+ const gchar* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+ GHashTable* _tmp43_ = NULL;
+ gchar* _tmp44_ = NULL;
+ gchar* _tmp45_ = NULL;
+ GHashTable* _tmp46_ = NULL;
+ JsonGenerator* _tmp47_ = NULL;
+ gchar* desc = NULL;
+ SpitPublishingPublishable* _tmp48_ = NULL;
+ gchar* _tmp49_ = NULL;
+ const gchar* _tmp50_ = NULL;
+ SpitPublishingPublishable* _tmp51_ = NULL;
+ SpitPublishingPublisherMediaType _tmp52_ = 0;
+ gchar* type = NULL;
+ gchar* _tmp53_ = NULL;
+ JsonNode* root_node = NULL;
+ JsonNode* _tmp54_ = NULL;
+ JsonObject* obj = NULL;
+ JsonObject* _tmp55_ = NULL;
+ const gchar* _tmp56_ = NULL;
+ const gchar* _tmp57_ = NULL;
+ const gchar* _tmp58_ = NULL;
+ JsonGenerator* _tmp59_ = NULL;
+ JsonGenerator* _tmp60_ = NULL;
+ gchar* _tmp61_ = NULL;
+ gchar* _tmp62_ = NULL;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = parameters;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_gallery3_publishing_parameters_get_album_path (_tmp0_);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = _tmp1_;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = string_get (_tmp2_, (glong) 0);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp3_ != '/') {
+#line 5175 "GalleryConnector.c"
+ PublishingGallery3PublishingParameters* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_warning ("GalleryConnector.vala:601: Bad upload item path, this is a bug!");
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = parameters;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = publishing_gallery3_publishing_parameters_get_album_path (_tmp4_);
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = _tmp5_;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:602: %s", _tmp6_);
+#line 5189 "GalleryConnector.c"
+ }
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = session;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishable;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = session;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_session_get_url (_tmp9_);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = _tmp10_;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = g_strconcat (_tmp11_, PUBLISHING_GALLERY3_REST_PATH, NULL);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = _tmp12_;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = parameters;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = publishing_gallery3_publishing_parameters_get_album_path (_tmp14_);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = _tmp15_;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = g_strconcat (_tmp13_, _tmp16_, NULL);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = _tmp17_;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3GalleryUploadTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp8_, _tmp18_);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp18_);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp13_);
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = parameters;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = _publishing_gallery3_publishing_parameters_ref0 (_tmp19_);
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters);
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->parameters = _tmp20_;
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = session;
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = _publishing_rest_support_session_ref0 (_tmp21_);
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->session = _tmp22_;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = session;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp24_ = publishing_gallery3_session_get_key (_tmp23_);
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = _tmp24_;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp25_);
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST");
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = g_str_hash;
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27_ = g_str_equal;
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28_ = g_hash_table_new_full (_tmp26_, _tmp27_, _g_free0_, _g_free0_);
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ disposition_table = _tmp28_;
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29_ = publishable;
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp30_ = spit_publishing_publishable_get_publishing_name (_tmp29_);
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ title = _tmp30_;
+#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp31_ = publishable;
+#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp32_ = spit_publishing_publishable_get_param_string (_tmp31_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME);
+#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ filename = _tmp32_;
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp34_ = title;
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp34_ == NULL) {
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp33_ = TRUE;
+#line 5273 "GalleryConnector.c"
+ } else {
+ const gchar* _tmp35_ = NULL;
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp35_ = title;
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp33_ = g_strcmp0 (_tmp35_, "") == 0;
+#line 5280 "GalleryConnector.c"
+ }
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp33_) {
+#line 5284 "GalleryConnector.c"
+ const gchar* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp36_ = filename;
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp37_ = g_strdup (_tmp36_);
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (title);
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ title = _tmp37_;
+#line 5295 "GalleryConnector.c"
+ }
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp38_ = disposition_table;
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp39_ = g_strdup ("filename");
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp40_ = filename;
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp41_ = string_to_string (_tmp40_);
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp42_ = g_strdup (_tmp41_);
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_hash_table_insert (_tmp38_, _tmp39_, _tmp42_);
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp43_ = disposition_table;
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp44_ = g_strdup ("name");
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp45_ = g_strdup ("file");
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_hash_table_insert (_tmp43_, _tmp44_, _tmp45_);
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp46_ = disposition_table;
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), _tmp46_);
+#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp47_ = json_generator_new ();
+#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->generator);
+#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->generator = _tmp47_;
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp48_ = publishable;
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp49_ = spit_publishing_publishable_get_param_string (_tmp48_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT);
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ desc = _tmp49_;
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp51_ = publishable;
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp52_ = spit_publishing_publishable_get_media_type (_tmp51_);
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp52_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp50_ = "movie";
+#line 5341 "GalleryConnector.c"
+ } else {
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp50_ = "photo";
+#line 5345 "GalleryConnector.c"
+ }
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp53_ = g_strdup (_tmp50_);
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ type = _tmp53_;
+#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp54_ = json_node_new (JSON_NODE_OBJECT);
+#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp54_;
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp55_ = json_object_new ();
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ obj = _tmp55_;
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp56_ = filename;
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object_set_string_member (obj, "name", _tmp56_);
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object_set_string_member (obj, "type", type);
+#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp57_ = title;
+#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object_set_string_member (obj, "title", _tmp57_);
+#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp58_ = desc;
+#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object_set_string_member (obj, "description", _tmp58_);
+#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_node_set_object (root_node, obj);
+#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp59_ = self->priv->generator;
+#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_generator_set_root (_tmp59_, root_node);
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp60_ = self->priv->generator;
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp61_ = json_generator_to_data (_tmp60_, NULL);
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp62_ = _tmp61_;
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", _tmp62_);
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp62_);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _json_object_unref0 (obj);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ __vala_JsonNode_free0 (root_node);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (type);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (desc);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (filename);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (title);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_hash_table_unref0 (disposition_table);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 5405 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GalleryUploadTransaction* publishing_gallery3_gallery_upload_transaction_new (PublishingGallery3Session* session, PublishingGallery3PublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_gallery_upload_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, session, parameters, publishable);
+#line 5412 "GalleryConnector.c"
+}
+
+
+static gchar* publishing_gallery3_gallery_upload_transaction_get_new_item_url (PublishingGallery3GalleryUploadTransaction* self) {
+ gchar* result = NULL;
+ gchar* json_object = NULL;
+ gchar* new_url = NULL;
+ JsonNode* root_node = NULL;
+ JsonParser* parser = NULL;
+ JsonParser* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ const gchar* _tmp3_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ JsonParser* _tmp14_ = NULL;
+ JsonNode* _tmp15_ = NULL;
+ JsonNode* _tmp16_ = NULL;
+ gboolean _tmp17_ = FALSE;
+ JsonNode* _tmp19_ = NULL;
+ JsonObject* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self), NULL);
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = json_parser_new ();
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ parser = _tmp0_;
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_object = _tmp1_;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = json_object;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (NULL == _tmp3_) {
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = TRUE;
+#line 5454 "GalleryConnector.c"
+ } else {
+ const gchar* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = json_object;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = strlen (_tmp4_);
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = _tmp5_;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = 0 == _tmp6_;
+#line 5467 "GalleryConnector.c"
+ }
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp2_) {
+#line 5471 "GalleryConnector.c"
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = _tmp7_;
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_warning ("GalleryConnector.vala:660: No response data from %s", _tmp8_);
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp8_);
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = g_strdup ("");
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp9_;
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (parser);
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_url);
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 5495 "GalleryConnector.c"
+ }
+#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = json_object;
+#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:664: json_object: %s", _tmp10_);
+#line 5501 "GalleryConnector.c"
+ {
+ JsonParser* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = parser;
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = json_object;
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ json_parser_load_from_data (_tmp11_, _tmp12_, (gssize) -1, &_inner_error_);
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 5513 "GalleryConnector.c"
+ goto __catch5_g_error;
+ }
+ }
+ goto __finally5;
+ __catch5_g_error:
+ {
+ GError* e = NULL;
+ const gchar* _tmp13_ = NULL;
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ e = _inner_error_;
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_warning ("GalleryConnector.vala:672: ERROR: didn't load JSON data");
+#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), FALSE);
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = e->message;
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:674: %s", _tmp13_);
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (e);
+#line 5536 "GalleryConnector.c"
+ }
+ __finally5:
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (parser);
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_url);
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 5553 "GalleryConnector.c"
+ }
+#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = parser;
+#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = json_parser_get_root (_tmp14_);
+#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ root_node = _tmp15_;
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = root_node;
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = json_node_is_null (_tmp16_);
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp17_) {
+#line 5567 "GalleryConnector.c"
+ gchar* _tmp18_ = NULL;
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_warning ("GalleryConnector.vala:679: Root node is null, doesn't appear to be JSO" \
+"N data");
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = g_strdup ("");
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp18_;
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (parser);
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_url);
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 5583 "GalleryConnector.c"
+ }
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = root_node;
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = json_node_get_object (_tmp19_);
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = json_object_get_string_member (_tmp20_, "url");
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = g_strdup (_tmp21_);
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_url);
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_url = _tmp22_;
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = new_url;
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (parser);
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (json_object);
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 5605 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_upload_transaction_do_set_tag_relationship (PublishingGallery3GalleryUploadTransaction* self, const gchar* tag_url, GError** error) {
+ PublishingGallery3GallerySetTagRelationshipTransaction* tag_txn = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingGallery3Session* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ PublishingGallery3GallerySetTagRelationshipTransaction* _tmp5_ = NULL;
+ PublishingGallery3GallerySetTagRelationshipTransaction* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self));
+#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (tag_url != NULL);
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session);
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->item_tags_path;
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = tag_url;
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = self->priv->item_url;
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = publishing_gallery3_gallery_set_tag_relationship_transaction_new (_tmp1_, _tmp2_, _tmp3_, _tmp4_);
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = _tmp5_;
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ tag_txn = _tmp6_;
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (tag_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_propagate_error (error, _inner_error_);
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_txn);
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 5655 "GalleryConnector.c"
+ } else {
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_txn);
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 5665 "GalleryConnector.c"
+ }
+ }
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (tag_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = _tmp7_;
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:699: Response from setting tag relationship: %s", _tmp8_);
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp8_);
+#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_txn);
+#line 5678 "GalleryConnector.c"
+}
+
+
+static gchar* publishing_gallery3_gallery_upload_transaction_get_new_item_tags_path (PublishingGallery3GalleryUploadTransaction* self) {
+ gchar* result = NULL;
+ PublishingGallery3GalleryGetItemTagsURLsTransaction* tag_urls_txn = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingGallery3Session* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp3_ = NULL;
+ PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp4_ = NULL;
+ PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self), NULL);
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session);
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->item_path;
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_new (_tmp1_, _tmp2_);
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = _tmp3_;
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ tag_urls_txn = _tmp4_;
+#line 5709 "GalleryConnector.c"
+ {
+ PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp5_ = NULL;
+#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = tag_urls_txn;
+#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5720 "GalleryConnector.c"
+ goto __catch6_spit_publishing_publishing_error;
+ }
+#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_urls_txn);
+#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 5731 "GalleryConnector.c"
+ }
+ }
+ goto __finally6;
+ __catch6_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ err = _inner_error_;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = err;
+#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = _tmp6_->message;
+#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:711: Problem getting the item_tags URL: %s", _tmp7_);
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = g_strdup ("");
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp8_;
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (err);
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_urls_txn);
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 5761 "GalleryConnector.c"
+ }
+ __finally6:
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_urls_txn);
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 5774 "GalleryConnector.c"
+ }
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = tag_urls_txn;
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_item_tags_path (_tmp9_);
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp10_;
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_urls_txn);
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 5786 "GalleryConnector.c"
+}
+
+
+static gchar* publishing_gallery3_gallery_upload_transaction_get_tag_url (PublishingGallery3GalleryUploadTransaction* self, const gchar* tag) {
+ gchar* result = NULL;
+ PublishingGallery3GalleryGetTagTransaction* tag_txn = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingGallery3Session* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingGallery3GalleryGetTagTransaction* _tmp3_ = NULL;
+ PublishingGallery3GalleryGetTagTransaction* _tmp4_ = NULL;
+ PublishingGallery3GalleryGetTagTransaction* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self), NULL);
+#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (tag != NULL, NULL);
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session);
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = tag;
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = publishing_gallery3_gallery_get_tag_transaction_new (_tmp1_, _tmp2_);
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = _tmp3_;
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ tag_txn = _tmp4_;
+#line 5819 "GalleryConnector.c"
+ {
+ PublishingGallery3GalleryGetTagTransaction* _tmp5_ = NULL;
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = tag_txn;
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5830 "GalleryConnector.c"
+ goto __catch7_spit_publishing_publishing_error;
+ }
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_txn);
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 5841 "GalleryConnector.c"
+ }
+ }
+ goto __finally7;
+ __catch7_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ err = _inner_error_;
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = err;
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = _tmp6_->message;
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:728: Problem getting the tags URL: %s", _tmp7_);
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = g_strdup ("");
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp8_;
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (err);
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_txn);
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 5871 "GalleryConnector.c"
+ }
+ __finally7:
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_txn);
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 5884 "GalleryConnector.c"
+ }
+#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = tag_txn;
+#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_gallery_get_tag_transaction_tag_url (_tmp9_);
+#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp10_;
+#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (tag_txn);
+#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 5896 "GalleryConnector.c"
+}
+
+
+static gpointer _g_error_copy0 (gpointer self) {
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self ? g_error_copy (self) : NULL;
+#line 5903 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_upload_transaction_on_upload_completed (PublishingGallery3GalleryUploadTransaction* self, GError** error) {
+ PublishingGallery3PublishingParameters* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ gboolean _tmp2_ = FALSE;
+ GError * _inner_error_ = NULL;
+#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self));
+#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:740: EVENT: upload completed");
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->parameters;
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_gallery3_publishing_parameters_get_strip_metadata (_tmp0_);
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = _tmp1_;
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp2_) {
+#line 5924 "GalleryConnector.c"
+ gchar** keywords = NULL;
+ gint keywords_length1 = 0;
+ gint _keywords_size_ = 0;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gchar** _tmp5_ = NULL;
+ gchar** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ gboolean _tmp13_ = FALSE;
+ const gchar* _tmp14_ = NULL;
+ gchar** _tmp17_ = NULL;
+ gint _tmp17__length1 = 0;
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:746: EVENT: evaluating tags");
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->publishable;
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = spit_publishing_publishable_get_publishing_keywords (_tmp3_, &_tmp4_);
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ keywords = _tmp5_;
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ keywords_length1 = _tmp4_;
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _keywords_size_ = keywords_length1;
+#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = keywords;
+#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6__length1 = keywords_length1;
+#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (NULL == _tmp6_) {
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:752: No tags");
+#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 5969 "GalleryConnector.c"
+ }
+#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = publishing_gallery3_gallery_upload_transaction_get_new_item_url (self);
+#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->item_url);
+#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->item_url = _tmp7_;
+#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = self->priv->item_url;
+#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = publishing_gallery3_strip_session_url (_tmp8_);
+#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->item_path);
+#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->item_path = _tmp9_;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_gallery_upload_transaction_get_new_item_tags_path (self);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->item_tags_path);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->item_tags_path = _tmp10_;
+#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = self->priv->item_path;
+#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:760: new item path is %s", _tmp11_);
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = self->priv->item_tags_path;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:761: item_tags path is %s", _tmp12_);
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = self->priv->item_path;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (g_strcmp0 ("", _tmp14_) == 0) {
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = TRUE;
+#line 6005 "GalleryConnector.c"
+ } else {
+ const gchar* _tmp15_ = NULL;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = self->priv->item_tags_path;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = g_strcmp0 ("", _tmp15_) == 0;
+#line 6012 "GalleryConnector.c"
+ }
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp13_) {
+#line 6016 "GalleryConnector.c"
+ GError* _tmp16_ = NULL;
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED, "Could not obtain URL of uploaded item or its " "\"item_tags\" relationship URL");
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = _tmp16_;
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_propagate_error (error, _inner_error_);
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6030 "GalleryConnector.c"
+ } else {
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6040 "GalleryConnector.c"
+ }
+ }
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = keywords;
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17__length1 = keywords_length1;
+#line 6047 "GalleryConnector.c"
+ {
+ gchar** tag_collection = NULL;
+ gint tag_collection_length1 = 0;
+ gint _tag_collection_size_ = 0;
+ gint tag_it = 0;
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ tag_collection = _tmp17_;
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ tag_collection_length1 = _tmp17__length1;
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ for (tag_it = 0; tag_it < _tmp17__length1; tag_it = tag_it + 1) {
+#line 6059 "GalleryConnector.c"
+ gchar* _tmp18_ = NULL;
+ gchar* tag = NULL;
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = g_strdup (tag_collection[tag_it]);
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ tag = _tmp18_;
+#line 6066 "GalleryConnector.c"
+ {
+ const gchar* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ gchar* new_tag_url = NULL;
+ const gchar* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = tag;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = string_to_string (_tmp19_);
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = g_strconcat ("Found tag: ", _tmp20_, NULL);
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = _tmp21_;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:773: %s", _tmp22_);
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp22_);
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = tag;
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp24_ = publishing_gallery3_gallery_upload_transaction_get_tag_url (self, _tmp23_);
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_tag_url = _tmp24_;
+#line 6093 "GalleryConnector.c"
+ {
+ const gchar* _tmp25_ = NULL;
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = new_tag_url;
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_upload_transaction_do_set_tag_relationship (self, _tmp25_, &_inner_error_);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 6104 "GalleryConnector.c"
+ goto __catch8_spit_publishing_publishing_error;
+ }
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_tag_url);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (tag);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6119 "GalleryConnector.c"
+ }
+ }
+ goto __finally8;
+ __catch8_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+ GError* _tmp28_ = NULL;
+ GError* _tmp29_ = NULL;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ err = _inner_error_;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = err;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27_ = _tmp26_->message;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("Problem setting the relationship between tag " "and item: %s", _tmp27_);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28_ = err;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29_ = _g_error_copy0 (_tmp28_);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = _tmp29_;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (err);
+#line 6148 "GalleryConnector.c"
+ goto __finally8;
+ }
+ __finally8:
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_propagate_error (error, _inner_error_);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_tag_url);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (tag);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6166 "GalleryConnector.c"
+ } else {
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_tag_url);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (tag);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6180 "GalleryConnector.c"
+ }
+ }
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (new_tag_url);
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (tag);
+#line 6187 "GalleryConnector.c"
+ }
+ }
+ }
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 6193 "GalleryConnector.c"
+ }
+}
+
+
+static void publishing_gallery3_gallery_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) {
+ PublishingGallery3GalleryUploadTransaction * self;
+ GError * _inner_error_ = NULL;
+#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransaction);
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_upload_transaction_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_propagate_error (error, _inner_error_);
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6213 "GalleryConnector.c"
+ } else {
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6221 "GalleryConnector.c"
+ }
+ }
+#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_upload_transaction_on_upload_completed (self, &_inner_error_);
+#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_propagate_error (error, _inner_error_);
+#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6234 "GalleryConnector.c"
+ } else {
+#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6242 "GalleryConnector.c"
+ }
+ }
+}
+
+
+static void publishing_gallery3_gallery_upload_transaction_class_init (PublishingGallery3GalleryUploadTransactionClass * klass) {
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_upload_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_gallery_upload_transaction_finalize;
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryUploadTransactionPrivate));
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->execute = publishing_gallery3_gallery_upload_transaction_real_execute;
+#line 6257 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_upload_transaction_instance_init (PublishingGallery3GalleryUploadTransaction * self) {
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_GET_PRIVATE (self);
+#line 6264 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_upload_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingGallery3GalleryUploadTransaction * self;
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransaction);
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->generator);
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->item_url);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->item_path);
+#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->item_tags_path);
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_upload_transaction_parent_class)->finalize (obj);
+#line 6286 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_gallery_upload_transaction_get_type (void) {
+ static volatile gsize publishing_gallery3_gallery_upload_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_gallery_upload_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryUploadTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_upload_transaction_instance_init, NULL };
+ GType publishing_gallery3_gallery_upload_transaction_type_id;
+ publishing_gallery3_gallery_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingGallery3GalleryUploadTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_gallery_upload_transaction_type_id__volatile, publishing_gallery3_gallery_upload_transaction_type_id);
+ }
+ return publishing_gallery3_gallery_upload_transaction_type_id__volatile;
+}
+
+
+PublishingGallery3GalleryPublisher* publishing_gallery3_gallery_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) {
+ PublishingGallery3GalleryPublisher * self = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingGallery3Session* _tmp2_ = NULL;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3GalleryPublisher*) g_object_new (object_type, NULL);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = service;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->service = _tmp0_;
+#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = host;
+#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->host = _tmp1_;
+#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = publishing_gallery3_session_new ();
+#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->session = _tmp2_;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 6329 "GalleryConnector.c"
+}
+
+
+PublishingGallery3GalleryPublisher* publishing_gallery3_gallery_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) {
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_gallery_publisher_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, service, host);
+#line 6336 "GalleryConnector.c"
+}
+
+
+static gboolean publishing_gallery3_gallery_publisher_real_is_running (SpitPublishingPublisher* base) {
+ PublishingGallery3GalleryPublisher * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher);
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->running;
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 6352 "GalleryConnector.c"
+}
+
+
+static SpitPublishingService* publishing_gallery3_gallery_publisher_real_get_service (SpitPublishingPublisher* base) {
+ PublishingGallery3GalleryPublisher * self;
+ SpitPublishingService* result = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->service;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp1_;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 6371 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_real_start (SpitPublishingPublisher* base) {
+ PublishingGallery3GalleryPublisher * self;
+ gboolean _tmp0_ = FALSE;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ const gchar* _tmp4_ = NULL;
+#line 829 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher);
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp0_) {
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6390 "GalleryConnector.c"
+ }
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->host;
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp1_ == NULL) {
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:834: %s", "GalleryPublisher: start( ): can't start; this " "publisher is not restartable.");
+#line 6398 "GalleryConnector.c"
+ }
+#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:837: GalleryPublisher: starting interaction.");
+#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->running = TRUE;
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = publishing_gallery3_gallery_publisher_get_api_key (self);
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->key);
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->key = _tmp2_;
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = self->priv->key;
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (NULL == _tmp4_) {
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = TRUE;
+#line 6416 "GalleryConnector.c"
+ } else {
+ const gchar* _tmp5_ = NULL;
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->key;
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = g_strcmp0 ("", _tmp5_) == 0;
+#line 6423 "GalleryConnector.c"
+ }
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp3_) {
+#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self);
+#line 6429 "GalleryConnector.c"
+ } else {
+ gchar* url = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* username = NULL;
+ gchar* _tmp7_ = NULL;
+ gboolean _tmp8_ = FALSE;
+ gboolean _tmp9_ = FALSE;
+ const gchar* _tmp10_ = NULL;
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_gallery3_gallery_publisher_get_gallery_url (self);
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url = _tmp6_;
+#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = publishing_gallery3_gallery_publisher_get_gallery_username (self);
+#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ username = _tmp7_;
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = username;
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (NULL == _tmp10_) {
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = TRUE;
+#line 6452 "GalleryConnector.c"
+ } else {
+ const gchar* _tmp11_ = NULL;
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = self->priv->key;
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = NULL == _tmp11_;
+#line 6459 "GalleryConnector.c"
+ }
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp9_) {
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = TRUE;
+#line 6465 "GalleryConnector.c"
+ } else {
+ const gchar* _tmp12_ = NULL;
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = url;
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = NULL == _tmp12_;
+#line 6472 "GalleryConnector.c"
+ }
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp8_) {
+#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self);
+#line 6478 "GalleryConnector.c"
+ } else {
+ const gchar* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ SpitPublishingPluginHost* _tmp15_ = NULL;
+ PublishingGallery3Session* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = username;
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = url;
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("ACTION: attempting network login for user " "'%s' at URL '%s' from saved credentials.", _tmp13_, _tmp14_);
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = self->priv->host;
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp15_);
+#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = self->priv->session;
+#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = url;
+#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = username;
+#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = self->priv->key;
+#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_authenticate (_tmp16_, _tmp17_, _tmp18_, _tmp19_);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_fetch_album_urls (self);
+#line 6509 "GalleryConnector.c"
+ }
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (username);
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (url);
+#line 6515 "GalleryConnector.c"
+ }
+}
+
+
+static void publishing_gallery3_gallery_publisher_real_stop (SpitPublishingPublisher* base) {
+ PublishingGallery3GalleryPublisher * self;
+#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher);
+#line 867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:867: GalleryPublisher: stop( ) invoked.");
+#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->running = FALSE;
+#line 6528 "GalleryConnector.c"
+}
+
+
+gchar* publishing_gallery3_gallery_publisher_get_api_key (PublishingGallery3GalleryPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL);
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "api-key", NULL);
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp1_;
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 6546 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_gallery_publisher_set_api_key (PublishingGallery3GalleryPublisher* self, const gchar* key) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (key != NULL);
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = key;
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "api-key", _tmp1_);
+#line 6563 "GalleryConnector.c"
+}
+
+
+gchar* publishing_gallery3_gallery_publisher_get_gallery_url (PublishingGallery3GalleryPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL);
+#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", NULL);
+#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp1_;
+#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 6581 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_gallery_publisher_set_gallery_url (PublishingGallery3GalleryPublisher* self, const gchar* url) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (url != NULL);
+#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = url;
+#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", _tmp1_);
+#line 6598 "GalleryConnector.c"
+}
+
+
+gchar* publishing_gallery3_gallery_publisher_get_gallery_username (PublishingGallery3GalleryPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL);
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", NULL);
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp1_;
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 6616 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_gallery_publisher_set_gallery_username (PublishingGallery3GalleryPublisher* self, const gchar* username) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (username != NULL);
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = username;
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", _tmp1_);
+#line 6633 "GalleryConnector.c"
+}
+
+
+static gboolean* _bool_dup (gboolean* self) {
+ gboolean* dup;
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ dup = g_new0 (gboolean, 1);
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ memcpy (dup, self, sizeof (gboolean));
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return dup;
+#line 6645 "GalleryConnector.c"
+}
+
+
+static gpointer __bool_dup0 (gpointer self) {
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self ? _bool_dup (self) : NULL;
+#line 6652 "GalleryConnector.c"
+}
+
+
+gboolean* publishing_gallery3_gallery_publisher_get_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self) {
+ gboolean* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ gboolean* _tmp2_ = NULL;
+#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL);
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip-metadata", FALSE);
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = __bool_dup0 (&_tmp1_);
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp2_;
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 6673 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_gallery_publisher_set_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self, gboolean strip_metadata) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = strip_metadata;
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip-metadata", _tmp1_);
+#line 6688 "GalleryConnector.c"
+}
+
+
+static gint* _int_dup (gint* self) {
+ gint* dup;
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ dup = g_new0 (gint, 1);
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ memcpy (dup, self, sizeof (gint));
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return dup;
+#line 6700 "GalleryConnector.c"
+}
+
+
+static gpointer __int_dup0 (gpointer self) {
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self ? _int_dup (self) : NULL;
+#line 6707 "GalleryConnector.c"
+}
+
+
+gint* publishing_gallery3_gallery_publisher_get_scaling_constraint_id (PublishingGallery3GalleryPublisher* self) {
+ gint* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gint* _tmp2_ = NULL;
+#line 908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL);
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-constraint-id", 0);
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = __int_dup0 (&_tmp1_);
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp2_;
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 6728 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_gallery_publisher_set_scaling_constraint_id (PublishingGallery3GalleryPublisher* self, gint constraint) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = constraint;
+#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-constraint-id", _tmp1_);
+#line 6743 "GalleryConnector.c"
+}
+
+
+gint* publishing_gallery3_gallery_publisher_get_scaling_pixels (PublishingGallery3GalleryPublisher* self) {
+ gint* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gint* _tmp2_ = NULL;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL);
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-pixels", 1024);
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = __int_dup0 (&_tmp1_);
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp2_;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 6764 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_gallery_publisher_set_scaling_pixels (PublishingGallery3GalleryPublisher* self, gint pixels) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = pixels;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-pixels", _tmp1_);
+#line 6779 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_service_welcome_login_spit_publishing_login_callback (gpointer self) {
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_service_welcome_login ((PublishingGallery3GalleryPublisher*) self);
+#line 6786 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (PublishingGallery3GalleryPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:926: ACTION: showing service welcome pane.");
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_install_welcome_pane (_tmp0_, PUBLISHING_GALLERY3_SERVICE_WELCOME_MESSAGE, _publishing_gallery3_gallery_publisher_on_service_welcome_login_spit_publishing_login_callback, self);
+#line 6800 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_credentials_go_back_publishing_gallery3_credentials_pane_go_back (PublishingGallery3CredentialsPane* _sender, gpointer self) {
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_credentials_go_back ((PublishingGallery3GalleryPublisher*) self);
+#line 6807 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_credentials_login_publishing_gallery3_credentials_pane_login (PublishingGallery3CredentialsPane* _sender, const gchar* url, const gchar* uname, const gchar* password, const gchar* key, gpointer self) {
+#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_credentials_login ((PublishingGallery3GalleryPublisher*) self, url, uname, password);
+#line 6814 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_do_show_credentials_pane (PublishingGallery3GalleryPublisher* self, PublishingGallery3CredentialsPaneMode mode) {
+ PublishingGallery3CredentialsPaneMode _tmp0_ = 0;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ PublishingGallery3Session* _tmp3_ = NULL;
+ PublishingGallery3CredentialsPane* creds_pane = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ PublishingGallery3CredentialsPaneMode _tmp5_ = 0;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ PublishingGallery3CredentialsPane* _tmp12_ = NULL;
+ PublishingGallery3CredentialsPane* _tmp13_ = NULL;
+ SpitPublishingPluginHost* _tmp14_ = NULL;
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = mode;
+#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_gallery3_credentials_pane_mode_to_string (_tmp0_);
+#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = _tmp1_;
+#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:933: ACTION: showing credentials capture pane in" \
+" %s mode.", _tmp2_);
+#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp2_);
+#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = self->priv->session;
+#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_deauthenticate (_tmp3_);
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = self->priv->host;
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = mode;
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_gallery3_gallery_publisher_get_gallery_url (self);
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = _tmp6_;
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishing_gallery3_gallery_publisher_get_gallery_username (self);
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_gallery_publisher_get_api_key (self);
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = _tmp10_;
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = publishing_gallery3_credentials_pane_new (_tmp4_, _tmp5_, _tmp7_, _tmp9_, _tmp11_);
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = _tmp12_;
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp11_);
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp9_);
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp7_);
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ creds_pane = _tmp13_;
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (creds_pane, "go-back", (GCallback) _publishing_gallery3_gallery_publisher_on_credentials_go_back_publishing_gallery3_credentials_pane_go_back, self, 0);
+#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (creds_pane, "login", (GCallback) _publishing_gallery3_gallery_publisher_on_credentials_login_publishing_gallery3_credentials_pane_login, self, 0);
+#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = self->priv->host;
+#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (creds_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (creds_pane);
+#line 6889 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_key_fetch_error ((PublishingGallery3GalleryPublisher*) self, _sender, err);
+#line 6896 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_key_fetch_complete ((PublishingGallery3GalleryPublisher*) self, _sender);
+#line 6903 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_do_network_login (PublishingGallery3GalleryPublisher* self, const gchar* url, const gchar* username, const gchar* password) {
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ PublishingGallery3KeyFetchTransaction* fetch_trans = NULL;
+ PublishingGallery3Session* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ PublishingGallery3KeyFetchTransaction* _tmp7_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (url != NULL);
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (username != NULL);
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (password != NULL);
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = username;
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = url;
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("ACTION: attempting network login for user '%s' at URL " "'%s'.", _tmp0_, _tmp1_);
+#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->host;
+#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_install_login_wait_pane (_tmp2_);
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = self->priv->session;
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = url;
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = username;
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = password;
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = publishing_gallery3_key_fetch_transaction_new (_tmp3_, _tmp4_, _tmp5_, _tmp6_);
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ fetch_trans = _tmp7_;
+#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 6952 "GalleryConnector.c"
+ {
+#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 6960 "GalleryConnector.c"
+ goto __catch9_spit_publishing_publishing_error;
+ }
+#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (fetch_trans);
+#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 6971 "GalleryConnector.c"
+ }
+ }
+ goto __finally9;
+ __catch9_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp8_ = NULL;
+#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ err = _inner_error_;
+#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:962: Caught an error attempting to login");
+#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = err;
+#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_key_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp8_);
+#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (err);
+#line 6991 "GalleryConnector.c"
+ }
+ __finally9:
+#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (fetch_trans);
+#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7004 "GalleryConnector.c"
+ }
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (fetch_trans);
+#line 7008 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_album_urls_fetch_error ((PublishingGallery3GalleryPublisher*) self, _sender, err);
+#line 7015 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete ((PublishingGallery3GalleryPublisher*) self, _sender);
+#line 7022 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_do_fetch_album_urls (PublishingGallery3GalleryPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingGallery3GetAlbumURLsTransaction* album_trans = NULL;
+ PublishingGallery3Session* _tmp1_ = NULL;
+ PublishingGallery3GetAlbumURLsTransaction* _tmp2_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp0_);
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->session;
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = publishing_gallery3_get_album_ur_ls_transaction_new (_tmp1_);
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ album_trans = _tmp2_;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 7048 "GalleryConnector.c"
+ {
+#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 7056 "GalleryConnector.c"
+ goto __catch10_spit_publishing_publishing_error;
+ }
+#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (album_trans);
+#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7067 "GalleryConnector.c"
+ }
+ }
+ goto __finally10;
+ __catch10_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp3_ = NULL;
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ err = _inner_error_;
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:981: Caught an error attempting to fetch albums");
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = err;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_album_urls_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp3_);
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (err);
+#line 7087 "GalleryConnector.c"
+ }
+ __finally10:
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (album_trans);
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7100 "GalleryConnector.c"
+ }
+#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (album_trans);
+#line 7104 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_album_fetch_error ((PublishingGallery3GalleryPublisher*) self, _sender, err);
+#line 7111 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_album_fetch_complete ((PublishingGallery3GalleryPublisher*) self, _sender);
+#line 7118 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_do_fetch_albums (PublishingGallery3GalleryPublisher* self, gchar** album_urls, int album_urls_length1, guint start) {
+ PublishingGallery3GetAlbumsTransaction* album_trans = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+ gchar** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ guint _tmp2_ = 0U;
+ PublishingGallery3GetAlbumsTransaction* _tmp3_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->session;
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = album_urls;
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1__length1 = album_urls_length1;
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = start;
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = publishing_gallery3_get_albums_transaction_new (_tmp0_, _tmp1_, _tmp1__length1, _tmp2_);
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ album_trans = _tmp3_;
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 7148 "GalleryConnector.c"
+ {
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 7156 "GalleryConnector.c"
+ goto __catch11_spit_publishing_publishing_error;
+ }
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (album_trans);
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7167 "GalleryConnector.c"
+ }
+ }
+ goto __finally11;
+ __catch11_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp4_ = NULL;
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ err = _inner_error_;
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = err;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_album_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp4_);
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (err);
+#line 7185 "GalleryConnector.c"
+ }
+ __finally11:
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (album_trans);
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7198 "GalleryConnector.c"
+ }
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (album_trans);
+#line 7202 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish (PublishingGallery3PublishingOptionsPane* _sender, PublishingGallery3PublishingParameters* parameters, gpointer self) {
+#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish ((PublishingGallery3GalleryPublisher*) self, parameters);
+#line 7209 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout (PublishingGallery3PublishingOptionsPane* _sender, gpointer self) {
+#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout ((PublishingGallery3GalleryPublisher*) self);
+#line 7216 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (PublishingGallery3GalleryPublisher* self, const gchar* url, const gchar* username) {
+ GtkBuilder* builder = NULL;
+ GtkBuilder* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ PublishingGallery3Album** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ GtkBuilder* _tmp14_ = NULL;
+ gboolean* _tmp15_ = NULL;
+ gboolean* _tmp16_ = NULL;
+ gint* _tmp17_ = NULL;
+ gint* _tmp18_ = NULL;
+ gint* _tmp19_ = NULL;
+ gint* _tmp20_ = NULL;
+ PublishingGallery3PublishingOptionsPane* _tmp21_ = NULL;
+ PublishingGallery3PublishingOptionsPane* _tmp22_ = NULL;
+ PublishingGallery3PublishingOptionsPane* _tmp23_ = NULL;
+ SpitPublishingPluginHost* _tmp24_ = NULL;
+ PublishingGallery3PublishingOptionsPane* _tmp25_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (url != NULL);
+#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (username != NULL);
+#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1009: ACTION: showing publishing options pane");
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = gtk_builder_new ();
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ builder = _tmp0_;
+#line 7253 "GalleryConnector.c"
+ {
+ GtkBuilder* _tmp1_ = NULL;
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = builder;
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/gallery3_publishing_options_pane.ui", &_inner_error_);
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 7262 "GalleryConnector.c"
+ goto __catch12_g_error;
+ }
+ }
+ goto __finally12;
+ __catch12_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ e = _inner_error_;
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = e;
+#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = _tmp2_->message;
+#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_warning ("GalleryConnector.vala:1018: Could not parse UI file! Error: %s.", _tmp3_);
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = self->priv->host;
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = _ ("A file required for publishing is unavailable. Publishing to %s can't " \
+"continue.");
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = g_strdup_printf (_tmp5_, PUBLISHING_GALLERY3_SERVICE_NAME);
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = _tmp6_;
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp7_);
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_post_error (_tmp4_, _tmp9_);
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (_tmp9_);
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp7_);
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (e);
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (builder);
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7312 "GalleryConnector.c"
+ }
+ __finally12:
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (builder);
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7325 "GalleryConnector.c"
+ }
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = self->priv->host;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = url;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = username;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = self->priv->albums;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13__length1 = self->priv->albums_length1;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = builder;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = publishing_gallery3_gallery_publisher_get_persistent_strip_metadata (self);
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = _tmp15_;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = publishing_gallery3_gallery_publisher_get_scaling_constraint_id (self);
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = _tmp17_;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = publishing_gallery3_gallery_publisher_get_scaling_pixels (self);
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = _tmp19_;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = publishing_gallery3_publishing_options_pane_new (_tmp10_, _tmp11_, _tmp12_, _tmp13_, _tmp13__length1, _tmp14_, *_tmp16_, *_tmp18_, *_tmp20_);
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->publishing_options_pane);
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->publishing_options_pane = _tmp21_;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp20_);
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp18_);
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp16_);
+#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = self->priv->publishing_options_pane;
+#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (_tmp22_, "publish", (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish, self, 0);
+#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = self->priv->publishing_options_pane;
+#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (_tmp23_, "logout", (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout, self, 0);
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp24_ = self->priv->host;
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = self->priv->publishing_options_pane;
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp24_, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (builder);
+#line 7379 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_album_create_error ((PublishingGallery3GalleryPublisher*) self, _sender, err);
+#line 7386 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_album_create_complete ((PublishingGallery3GalleryPublisher*) self, _sender);
+#line 7393 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_do_create_album (PublishingGallery3GalleryPublisher* self, PublishingGallery3PublishingParameters* parameters) {
+ PublishingGallery3GalleryAlbumCreateTransaction* album_trans = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp1_ = NULL;
+ PublishingGallery3GalleryAlbumCreateTransaction* _tmp2_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters));
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1042: ACTION: creating album");
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->session;
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = parameters;
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = publishing_gallery3_gallery_album_create_transaction_new (_tmp0_, _tmp1_);
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ album_trans = _tmp2_;
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 7421 "GalleryConnector.c"
+ {
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 7429 "GalleryConnector.c"
+ goto __catch13_spit_publishing_publishing_error;
+ }
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (album_trans);
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7440 "GalleryConnector.c"
+ }
+ }
+ goto __finally13;
+ __catch13_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp3_ = NULL;
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ err = _inner_error_;
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = err;
+#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_album_create_error (self, G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp3_);
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (err);
+#line 7458 "GalleryConnector.c"
+ }
+ __finally13:
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (album_trans);
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7471 "GalleryConnector.c"
+ }
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (album_trans);
+#line 7475 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self) {
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_publish_complete ((PublishingGallery3GalleryPublisher*) self, _sender, num_photos_published);
+#line 7482 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self) {
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_publish_error ((PublishingGallery3GalleryPublisher*) self, _sender, err);
+#line 7489 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_gallery_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self) {
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_upload_status_updated ((PublishingGallery3GalleryPublisher*) self, file_number, fraction_complete);
+#line 7496 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_do_publish (PublishingGallery3GalleryPublisher* self, PublishingGallery3PublishingParameters* parameters) {
+ PublishingGallery3PublishingParameters* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ gboolean _tmp2_ = FALSE;
+ gint _tmp3_ = 0;
+ PublishingGallery3PublishingParameters* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ PublishingGallery3PublishingParameters* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+ gint _tmp9_ = 0;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ SpitPublishingPluginHost* _tmp11_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ gint _tmp14_ = 0;
+ PublishingGallery3PublishingParameters* _tmp15_ = NULL;
+ gboolean _tmp16_ = FALSE;
+ gboolean _tmp17_ = FALSE;
+ void* _tmp18_ = NULL;
+ GDestroyNotify _tmp19_ = NULL;
+ SpitPublishingProgressCallback _tmp20_ = NULL;
+ gboolean _tmp21_ = FALSE;
+ PublishingGallery3Uploader* uploader = NULL;
+ PublishingGallery3Session* _tmp22_ = NULL;
+ SpitPublishingPluginHost* _tmp23_ = NULL;
+ gint _tmp24_ = 0;
+ SpitPublishingPublishable** _tmp25_ = NULL;
+ SpitPublishingPublishable** _tmp26_ = NULL;
+ gint _tmp26__length1 = 0;
+ PublishingGallery3PublishingParameters* _tmp27_ = NULL;
+ PublishingGallery3Uploader* _tmp28_ = NULL;
+ PublishingGallery3Uploader* _tmp29_ = NULL;
+ PublishingGallery3Uploader* _tmp30_ = NULL;
+ PublishingGallery3Uploader* _tmp31_ = NULL;
+ PublishingGallery3Uploader* _tmp32_ = NULL;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters));
+#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1061: ACTION: publishing items");
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = parameters;
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_gallery3_publishing_parameters_get_strip_metadata (_tmp0_);
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = _tmp1_;
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_set_persistent_strip_metadata (self, _tmp2_);
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = parameters;
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = publishing_gallery3_publishing_parameters_get_photo_major_axis_size (_tmp4_);
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = _tmp5_;
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp6_ <= 0) {
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = 0;
+#line 7560 "GalleryConnector.c"
+ } else {
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = 1;
+#line 7564 "GalleryConnector.c"
+ }
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_set_scaling_constraint_id (self, _tmp3_);
+#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = parameters;
+#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishing_gallery3_publishing_parameters_get_photo_major_axis_size (_tmp7_);
+#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_set_scaling_pixels (self, _tmp9_);
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = self->priv->host;
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp10_, TRUE);
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = self->priv->host;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = parameters;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = publishing_gallery3_publishing_parameters_get_photo_major_axis_size (_tmp12_);
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = _tmp13_;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = parameters;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = publishing_gallery3_publishing_parameters_get_strip_metadata (_tmp15_);
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = _tmp16_;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = spit_publishing_plugin_host_serialize_publishables (_tmp11_, _tmp14_, _tmp17_, &_tmp18_, &_tmp19_);
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->progress_reporter = NULL;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->progress_reporter = _tmp20_;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->progress_reporter_target = _tmp18_;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->progress_reporter_target_destroy_notify = _tmp19_;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp21_) {
+#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7616 "GalleryConnector.c"
+ }
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = self->priv->session;
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = self->priv->host;
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = spit_publishing_plugin_host_get_publishables (_tmp23_, &_tmp24_);
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = _tmp25_;
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26__length1 = _tmp24_;
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27_ = parameters;
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28_ = publishing_gallery3_uploader_new (_tmp22_, _tmp26_, _tmp24_, _tmp27_);
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29_ = _tmp28_;
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = (_vala_array_free (_tmp26_, _tmp26__length1, (GDestroyNotify) g_object_unref), NULL);
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ uploader = _tmp29_;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp30_ = uploader;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0);
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp31_ = uploader;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error, self, 0);
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp32_ = uploader;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_gallery3_gallery_publisher_on_upload_status_updated_spit_publishing_progress_callback, self);
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_batch_uploader_unref0 (uploader);
+#line 7652 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_do_show_success_pane (PublishingGallery3GalleryPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1090: ACTION: showing success pane.");
+#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->host;
+#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_install_success_pane (_tmp1_);
+#line 7671 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_service_welcome_login (PublishingGallery3GalleryPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 1097 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp0_) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7685 "GalleryConnector.c"
+ }
+#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1101: EVENT: user clicked 'Login' in welcome pan" \
+"e.");
+#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO);
+#line 7691 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_credentials_login (PublishingGallery3GalleryPublisher* self, const gchar* url, const gchar* username, const gchar* password) {
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (url != NULL);
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (username != NULL);
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (password != NULL);
+#line 1108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp0_) {
+#line 1109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7717 "GalleryConnector.c"
+ }
+#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = username;
+#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1111: EVENT: user '%s' clicked 'Login' in creden" \
+"tials pane.", _tmp1_);
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = url;
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_set_gallery_url (self, _tmp2_);
+#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = username;
+#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_set_gallery_username (self, _tmp3_);
+#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = url;
+#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = username;
+#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = password;
+#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_network_login (self, _tmp4_, _tmp5_, _tmp6_);
+#line 7739 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_credentials_go_back (PublishingGallery3GalleryPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp0_) {
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7753 "GalleryConnector.c"
+ }
+#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1123: EVENT: user is attempting to go back.");
+#line 1125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self);
+#line 7759 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_key_fetch_error (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingRESTSupportTransaction* _tmp10_ = NULL;
+ guint _tmp11_ = 0U;
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = bad_txn;
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = bad_txn;
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7798 "GalleryConnector.c"
+ }
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->session;
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp6_) {
+#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7808 "GalleryConnector.c"
+ }
+#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = bad_txn;
+#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("EVENT: network transaction to fetch key for login " "failed; response = '%s'.", _tmp9_);
+#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp9_);
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = bad_txn;
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = publishing_rest_support_transaction_get_status_code (_tmp10_);
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp11_ == ((guint) 403)) {
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY);
+#line 7828 "GalleryConnector.c"
+ } else {
+ PublishingRESTSupportTransaction* _tmp12_ = NULL;
+ guint _tmp13_ = 0U;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = bad_txn;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = publishing_rest_support_transaction_get_status_code (_tmp12_);
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp13_ == ((guint) 400)) {
+#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL);
+#line 7840 "GalleryConnector.c"
+ } else {
+ SpitPublishingPluginHost* _tmp14_ = NULL;
+ GError* _tmp15_ = NULL;
+#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = self->priv->host;
+#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = err;
+#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_post_error (_tmp14_, _tmp15_);
+#line 7850 "GalleryConnector.c"
+ }
+ }
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_key_fetch_complete (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = txn;
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = txn;
+#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7889 "GalleryConnector.c"
+ }
+#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->session;
+#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp6_) {
+#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7899 "GalleryConnector.c"
+ }
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = txn;
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishing_gallery3_key_fetch_transaction_get_key (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION) ? ((PublishingGallery3KeyFetchTransaction*) _tmp7_) : NULL);
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->key);
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->key = _tmp8_;
+#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = self->priv->key;
+#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp9_ == NULL) {
+#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:1178: key doesn\'t exist");
+#line 7915 "GalleryConnector.c"
+ } else {
+ gchar* url = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* username = NULL;
+ gchar* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ PublishingGallery3Session* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_gallery_publisher_get_gallery_url (self);
+#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url = _tmp10_;
+#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = publishing_gallery3_gallery_publisher_get_gallery_username (self);
+#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ username = _tmp11_;
+#line 1183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1183: %s", "EVENT: network transaction to fetch key completed " "successfully.");
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = self->priv->key;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_set_api_key (self, _tmp12_);
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = self->priv->session;
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = url;
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = username;
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = self->priv->key;
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_authenticate (_tmp13_, _tmp14_, _tmp15_, _tmp16_);
+#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_fetch_album_urls (self);
+#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (username);
+#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (url);
+#line 7956 "GalleryConnector.c"
+ }
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_album_urls_fetch_error (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingRESTSupportTransaction* _tmp10_ = NULL;
+ guint _tmp11_ = 0U;
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = bad_txn;
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = bad_txn;
+#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 7996 "GalleryConnector.c"
+ }
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->session;
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp6_) {
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8006 "GalleryConnector.c"
+ }
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = bad_txn;
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("EVENT: network transaction to fetch album URLs " "failed; response = \'%s\'.", _tmp9_);
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp9_);
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = bad_txn;
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = publishing_rest_support_transaction_get_status_code (_tmp10_);
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp11_ == ((guint) 403)) {
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY);
+#line 8026 "GalleryConnector.c"
+ } else {
+ PublishingRESTSupportTransaction* _tmp12_ = NULL;
+ guint _tmp13_ = 0U;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = bad_txn;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = publishing_rest_support_transaction_get_status_code (_tmp12_);
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp13_ == ((guint) 400)) {
+#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL);
+#line 8038 "GalleryConnector.c"
+ } else {
+ SpitPublishingPluginHost* _tmp14_ = NULL;
+ GError* _tmp15_ = NULL;
+#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = self->priv->host;
+#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = err;
+#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_post_error (_tmp14_, _tmp15_);
+#line 8048 "GalleryConnector.c"
+ }
+ }
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ gchar** album_urls = NULL;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+ gchar** _tmp9_ = NULL;
+ gint album_urls_length1 = 0;
+ gint _album_urls_size_ = 0;
+ gchar** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = txn;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = txn;
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8092 "GalleryConnector.c"
+ }
+#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->session;
+#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp6_) {
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8102 "GalleryConnector.c"
+ }
+#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1242: EVENT: retrieving all album URLs.");
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = txn;
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = publishing_gallery3_get_album_ur_ls_transaction_get_album_urls (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION) ? ((PublishingGallery3GetAlbumURLsTransaction*) _tmp7_) : NULL, &_tmp8_);
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ album_urls = _tmp9_;
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ album_urls_length1 = _tmp8_;
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _album_urls_size_ = album_urls_length1;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = album_urls;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10__length1 = album_urls_length1;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (NULL == _tmp10_) {
+#line 8122 "GalleryConnector.c"
+ gchar* url = NULL;
+ PublishingGallery3Session* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gchar* username = NULL;
+ PublishingGallery3Session* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = self->priv->session;
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = publishing_gallery3_session_get_url (_tmp11_);
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = _tmp12_;
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = g_strdup (_tmp13_);
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url = _tmp14_;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = self->priv->session;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = publishing_gallery3_session_get_username (_tmp15_);
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = _tmp16_;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = g_strdup (_tmp17_);
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ username = _tmp18_;
+#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = url;
+#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = username;
+#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (self, _tmp19_, _tmp20_);
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (username);
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (url);
+#line 8165 "GalleryConnector.c"
+ } else {
+ gchar** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = album_urls;
+#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21__length1 = album_urls_length1;
+#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_fetch_albums (self, _tmp21_, _tmp21__length1, (guint) 0);
+#line 8175 "GalleryConnector.c"
+ }
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ album_urls = (_vala_array_free (album_urls, album_urls_length1, (GDestroyNotify) g_free), NULL);
+#line 8179 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_album_fetch_error (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingRESTSupportTransaction* _tmp10_ = NULL;
+ guint _tmp11_ = 0U;
+#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = bad_txn;
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = bad_txn;
+#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8218 "GalleryConnector.c"
+ }
+#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->session;
+#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp6_) {
+#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8228 "GalleryConnector.c"
+ }
+#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = bad_txn;
+#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("EVENT: network transaction to fetch albums " "failed; response = \'%s\'.", _tmp9_);
+#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp9_);
+#line 1281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = bad_txn;
+#line 1281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = publishing_rest_support_transaction_get_status_code (_tmp10_);
+#line 1281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp11_ == ((guint) 403)) {
+#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY);
+#line 8248 "GalleryConnector.c"
+ } else {
+ PublishingRESTSupportTransaction* _tmp12_ = NULL;
+ guint _tmp13_ = 0U;
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = bad_txn;
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = publishing_rest_support_transaction_get_status_code (_tmp12_);
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp13_ == ((guint) 400)) {
+#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL);
+#line 8260 "GalleryConnector.c"
+ } else {
+ SpitPublishingPluginHost* _tmp14_ = NULL;
+ GError* _tmp15_ = NULL;
+#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = self->priv->host;
+#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = err;
+#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_post_error (_tmp14_, _tmp15_);
+#line 8270 "GalleryConnector.c"
+ }
+ }
+}
+
+
+static void _vala_array_add5 (PublishingGallery3Album*** array, int* length, int* size, PublishingGallery3Album* value) {
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if ((*length) == (*size)) {
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *array = g_renew (PublishingGallery3Album*, *array, (*size) + 1);
+#line 8283 "GalleryConnector.c"
+ }
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*array)[(*length)++] = value;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (*array)[*length] = NULL;
+#line 8289 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_album_fetch_complete (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingGallery3Album** new_albums = NULL;
+ gint new_albums_length1 = 0;
+ gint _new_albums_size_ = 0;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp23_ = NULL;
+ gboolean _tmp24_ = FALSE;
+ gboolean _tmp25_ = FALSE;
+ GError * _inner_error_ = NULL;
+#line 1295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = txn;
+#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = txn;
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_albums = NULL;
+#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_albums_length1 = 0;
+#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _new_albums_size_ = new_albums_length1;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8338 "GalleryConnector.c"
+ }
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->session;
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp6_) {
+#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8350 "GalleryConnector.c"
+ }
+#line 1309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1309: EVENT: user is attempting to populate the " \
+"album list.");
+#line 8354 "GalleryConnector.c"
+ {
+ PublishingGallery3Album** _tmp7_ = NULL;
+ PublishingRESTSupportTransaction* _tmp8_ = NULL;
+ gint _tmp9_ = 0;
+ PublishingGallery3Album** _tmp10_ = NULL;
+ gint _tmp7__length1 = 0;
+ gint __tmp7__size_ = 0;
+ PublishingGallery3Album** _tmp11_ = NULL;
+ gint _tmp11__length1 = 0;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = txn;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_get_albums_transaction_get_albums (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) _tmp8_) : NULL, &_tmp9_, &_inner_error_);
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = _tmp10_;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7__length1 = _tmp9_;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ __tmp7__size_ = _tmp7__length1;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 8378 "GalleryConnector.c"
+ goto __catch14_spit_publishing_publishing_error;
+ }
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8389 "GalleryConnector.c"
+ }
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = _tmp7_;
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11__length1 = _tmp7__length1;
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = NULL;
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7__length1 = 0;
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_albums = _tmp11_;
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_albums_length1 = _tmp11__length1;
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _new_albums_size_ = new_albums_length1;
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 8409 "GalleryConnector.c"
+ }
+ goto __finally14;
+ __catch14_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ PublishingRESTSupportTransaction* _tmp12_ = NULL;
+ GError* _tmp13_ = NULL;
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ err = _inner_error_;
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = txn;
+#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = err;
+#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_on_album_fetch_error (self, _tmp12_, _tmp13_);
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (err);
+#line 8429 "GalleryConnector.c"
+ }
+ __finally14:
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8442 "GalleryConnector.c"
+ }
+ {
+ gint i = 0;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ i = 0;
+#line 8448 "GalleryConnector.c"
+ {
+ gboolean _tmp14_ = FALSE;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = TRUE;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ while (TRUE) {
+#line 8455 "GalleryConnector.c"
+ gint _tmp16_ = 0;
+ PublishingGallery3Album** _tmp17_ = NULL;
+ gint _tmp17__length1 = 0;
+ PublishingGallery3Album** _tmp18_ = NULL;
+ gint _tmp18__length1 = 0;
+ PublishingGallery3Album** _tmp19_ = NULL;
+ gint _tmp19__length1 = 0;
+ gint _tmp20_ = 0;
+ PublishingGallery3Album* _tmp21_ = NULL;
+ PublishingGallery3Album* _tmp22_ = NULL;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp14_) {
+#line 8468 "GalleryConnector.c"
+ gint _tmp15_ = 0;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = i;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ i = _tmp15_ + 1;
+#line 8474 "GalleryConnector.c"
+ }
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = FALSE;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = i;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = new_albums;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17__length1 = new_albums_length1;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!(_tmp16_ <= (_tmp17__length1 - 1))) {
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 8488 "GalleryConnector.c"
+ }
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = self->priv->albums;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18__length1 = self->priv->albums_length1;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = new_albums;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19__length1 = new_albums_length1;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = i;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = _tmp19_[_tmp20_];
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = _publishing_gallery3_album_ref0 (_tmp21_);
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_array_add5 (&self->priv->albums, &self->priv->albums_length1, &self->priv->_albums_size_, _tmp22_);
+#line 8506 "GalleryConnector.c"
+ }
+ }
+ }
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = txn;
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp24_ = publishing_gallery3_get_albums_transaction_get_more_urls (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) _tmp23_) : NULL);
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = _tmp24_;
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp25_) {
+#line 8518 "GalleryConnector.c"
+ PublishingRESTSupportTransaction* _tmp26_ = NULL;
+ gchar** _tmp27_ = NULL;
+ gint _tmp27__length1 = 0;
+ gchar** _tmp28_ = NULL;
+ gint _tmp28__length1 = 0;
+ PublishingRESTSupportTransaction* _tmp29_ = NULL;
+ guint _tmp30_ = 0U;
+ guint _tmp31_ = 0U;
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = txn;
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27_ = publishing_gallery3_get_albums_transaction_get_album_urls (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) _tmp26_) : NULL, &_tmp27__length1);
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28_ = _tmp27_;
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28__length1 = _tmp27__length1;
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29_ = txn;
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp30_ = publishing_gallery3_get_albums_transaction_get_urls_sent (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) _tmp29_) : NULL);
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp31_ = _tmp30_;
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_fetch_albums (self, _tmp28_, _tmp28__length1, _tmp31_);
+#line 8543 "GalleryConnector.c"
+ } else {
+ gchar* url = NULL;
+ PublishingGallery3Session* _tmp32_ = NULL;
+ const gchar* _tmp33_ = NULL;
+ const gchar* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+ gchar* username = NULL;
+ PublishingGallery3Session* _tmp36_ = NULL;
+ const gchar* _tmp37_ = NULL;
+ const gchar* _tmp38_ = NULL;
+ gchar* _tmp39_ = NULL;
+ const gchar* _tmp40_ = NULL;
+ const gchar* _tmp41_ = NULL;
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp32_ = self->priv->session;
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp33_ = publishing_gallery3_session_get_url (_tmp32_);
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp34_ = _tmp33_;
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp35_ = g_strdup (_tmp34_);
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ url = _tmp35_;
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp36_ = self->priv->session;
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp37_ = publishing_gallery3_session_get_username (_tmp36_);
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp38_ = _tmp37_;
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp39_ = g_strdup (_tmp38_);
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ username = _tmp39_;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp40_ = url;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp41_ = username;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (self, _tmp40_, _tmp41_);
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (username);
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (url);
+#line 8587 "GalleryConnector.c"
+ }
+#line 1295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 8591 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_album_create_error (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingRESTSupportTransaction* _tmp10_ = NULL;
+ guint _tmp11_ = 0U;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = bad_txn;
+#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed, self);
+#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = bad_txn;
+#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error, self);
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8630 "GalleryConnector.c"
+ }
+#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->session;
+#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp6_) {
+#line 1349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8640 "GalleryConnector.c"
+ }
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = bad_txn;
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("EVENT: network transaction to create an album " "failed; response = \'%s\'.", _tmp9_);
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp9_);
+#line 1360 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = bad_txn;
+#line 1360 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = publishing_rest_support_transaction_get_status_code (_tmp10_);
+#line 1360 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp11_ == ((guint) 403)) {
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY);
+#line 8660 "GalleryConnector.c"
+ } else {
+ PublishingRESTSupportTransaction* _tmp12_ = NULL;
+ guint _tmp13_ = 0U;
+#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = bad_txn;
+#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = publishing_rest_support_transaction_get_status_code (_tmp12_);
+#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp13_ == ((guint) 400)) {
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL);
+#line 8672 "GalleryConnector.c"
+ } else {
+ SpitPublishingPluginHost* _tmp14_ = NULL;
+ GError* _tmp15_ = NULL;
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = self->priv->host;
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = err;
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_post_error (_tmp14_, _tmp15_);
+#line 8682 "GalleryConnector.c"
+ }
+ }
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_album_create_complete (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingGallery3PublishingParameters* new_params = NULL;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp8_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp9_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp10_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp11_ = NULL;
+ PublishingRESTSupportTransaction* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp18_ = NULL;
+#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = txn;
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed, self);
+#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = txn;
+#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error, self);
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8731 "GalleryConnector.c"
+ }
+#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->session;
+#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp6_) {
+#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8741 "GalleryConnector.c"
+ }
+#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = txn;
+#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishing_gallery3_gallery_album_create_transaction_get_parameters (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION) ? ((PublishingGallery3GalleryAlbumCreateTransaction*) _tmp7_) : NULL);
+#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = _publishing_gallery3_publishing_parameters_ref0 (_tmp9_);
+#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ new_params = _tmp10_;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = new_params;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = txn;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = publishing_gallery3_gallery_album_create_transaction_get_new_album_path (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION) ? ((PublishingGallery3GalleryAlbumCreateTransaction*) _tmp12_) : NULL);
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = _tmp13_;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_set_album_path (_tmp11_, _tmp14_);
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp14_);
+#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = new_params;
+#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = publishing_gallery3_publishing_parameters_get_album_path (_tmp15_);
+#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = _tmp16_;
+#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1391: EVENT: user has created an album at \"%s\"" \
+".", _tmp17_);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = new_params;
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_publish (self, _tmp18_);
+#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_publishing_parameters_unref0 (new_params);
+#line 8779 "GalleryConnector.c"
+}
+
+
+static gpointer _publishing_rest_support_batch_uploader_ref0 (gpointer self) {
+#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self ? publishing_rest_support_batch_uploader_ref (self) : NULL;
+#line 8786 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_publish_error (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportBatchUploader* _uploader, GError* err) {
+ gboolean _tmp0_ = FALSE;
+ PublishingGallery3Uploader* uploader = NULL;
+ PublishingRESTSupportBatchUploader* _tmp1_ = NULL;
+ PublishingGallery3Uploader* _tmp2_ = NULL;
+ GError* g3_err = NULL;
+ GError* _tmp3_ = NULL;
+ GError* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ PublishingGallery3Uploader* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ PublishingGallery3Uploader* _tmp10_ = NULL;
+ guint _tmp11_ = 0U;
+ guint _tmp12_ = 0U;
+ PublishingGallery3Uploader* _tmp13_ = NULL;
+ guint _tmp14_ = 0U;
+ PublishingGallery3Uploader* _tmp15_ = NULL;
+ guint _tmp16_ = 0U;
+ PublishingGallery3Uploader* _tmp17_ = NULL;
+ guint _tmp18_ = 0U;
+ guint _tmp19_ = 0U;
+ SpitPublishingPluginHost* _tmp36_ = NULL;
+ GError* _tmp37_ = NULL;
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (_uploader));
+#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp0_) {
+#line 1401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8825 "GalleryConnector.c"
+ }
+#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = _uploader;
+#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = _publishing_rest_support_batch_uploader_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, PUBLISHING_GALLERY3_TYPE_UPLOADER) ? ((PublishingGallery3Uploader*) _tmp1_) : NULL);
+#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ uploader = _tmp2_;
+#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = err;
+#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = g_error_copy (_tmp3_);
+#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g3_err = _tmp4_;
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = err;
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = _tmp5_->message;
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = uploader;
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishing_gallery3_uploader_get_current_publishable_name (_tmp7_);
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = uploader;
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = publishing_gallery3_uploader_get_status_code (_tmp10_);
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = _tmp11_;
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("EVENT: uploader reports upload error = '%s' " "for file '%s' (code %d)", _tmp6_, _tmp9_, _tmp12_);
+#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = uploader;
+#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp14_, NULL, FALSE);
+#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = uploader;
+#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp16_, NULL, FALSE);
+#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp16_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = uploader;
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = publishing_gallery3_uploader_get_status_code (_tmp17_);
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = _tmp18_;
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp19_ == ((guint) 400)) {
+#line 8877 "GalleryConnector.c"
+ GError* _tmp20_ = NULL;
+ GError* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ PublishingGallery3Uploader* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ const gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ PublishingGallery3Uploader* _tmp29_ = NULL;
+ SpitPublishingPublisherMediaType _tmp30_ = 0;
+ SpitPublishingPublisherMediaType _tmp31_ = 0;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = g3_err;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = g3_err;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = _tmp21_->message;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = uploader;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp24_ = publishing_gallery3_uploader_get_current_publishable_name (_tmp23_);
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = _tmp24_;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = g_strdup_printf (PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_FILE_MSG, _tmp25_);
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27_ = _tmp26_;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28_ = g_strconcat (_tmp22_, _tmp27_, NULL);
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp21_->message);
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_->message = _tmp28_;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp27_);
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29_ = uploader;
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp30_ = publishing_gallery3_uploader_get_current_publishable_type (_tmp29_);
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp31_ = _tmp30_;
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp31_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 8922 "GalleryConnector.c"
+ GError* _tmp32_ = NULL;
+ GError* _tmp33_ = NULL;
+ const gchar* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp32_ = g3_err;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp33_ = g3_err;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp34_ = _tmp33_->message;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp35_ = g_strconcat (_tmp34_, PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_MOVIE_MSG, NULL);
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp33_->message);
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp33_->message = _tmp35_;
+#line 8939 "GalleryConnector.c"
+ }
+ }
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp36_ = self->priv->host;
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp37_ = g3_err;
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_post_error (_tmp36_, _tmp37_);
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (g3_err);
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_batch_uploader_unref0 (uploader);
+#line 8952 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_upload_status_updated (PublishingGallery3GalleryPublisher* self, gint file_number, gdouble completed_fraction) {
+ gboolean _tmp0_ = FALSE;
+ gdouble _tmp1_ = 0.0;
+ SpitPublishingProgressCallback _tmp2_ = NULL;
+ void* _tmp2__target = NULL;
+ SpitPublishingProgressCallback _tmp3_ = NULL;
+ void* _tmp3__target = NULL;
+ gint _tmp4_ = 0;
+ gdouble _tmp5_ = 0.0;
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp0_) {
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 8973 "GalleryConnector.c"
+ }
+#line 1432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = completed_fraction;
+#line 1432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1432: EVENT: uploader reports upload %.2f percen" \
+"t complete.", 100.0 * _tmp1_);
+#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->progress_reporter;
+#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2__target = self->priv->progress_reporter_target;
+#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_assert (_tmp2_ != NULL, "progress_reporter != null");
+#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = self->priv->progress_reporter;
+#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3__target = self->priv->progress_reporter_target;
+#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = file_number;
+#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = completed_fraction;
+#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ (_tmp4_, _tmp5_, _tmp3__target);
+#line 8995 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_publish_complete (PublishingGallery3GalleryPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) {
+ PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3Session* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ gint _tmp7_ = 0;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = uploader;
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = uploader;
+#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 1447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 9030 "GalleryConnector.c"
+ }
+#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->session;
+#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp6_) {
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 9040 "GalleryConnector.c"
+ }
+#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = num_published;
+#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1454: EVENT: publishing complete; %d items publi" \
+"shed", _tmp7_);
+#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_success_pane (self);
+#line 9048 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout (PublishingGallery3GalleryPublisher* self) {
+ PublishingGallery3PublishingOptionsPane* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingGallery3PublishingOptionsPane* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3Session* _tmp5_ = NULL;
+#line 1461 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->publishing_options_pane;
+#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("publish", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE);
+#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish, self);
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->publishing_options_pane;
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("logout", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE);
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout, self);
+#line 1467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 9079 "GalleryConnector.c"
+ }
+#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1470: EVENT: user is attempting to log out.");
+#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->session;
+#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_deauthenticate (_tmp5_);
+#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self);
+#line 9089 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish (PublishingGallery3GalleryPublisher* self, PublishingGallery3PublishingParameters* parameters) {
+ PublishingGallery3PublishingOptionsPane* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingGallery3PublishingOptionsPane* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingGallery3PublishingParameters* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self));
+#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters));
+#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->publishing_options_pane;
+#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("publish", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE);
+#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish, self);
+#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->publishing_options_pane;
+#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("logout", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE);
+#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout, self);
+#line 1482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 1482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp4_) {
+#line 1483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return;
+#line 9123 "GalleryConnector.c"
+ }
+#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1485: EVENT: user is attempting to publish somet" \
+"hing.");
+#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = parameters;
+#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_gallery3_publishing_parameters_is_to_new_album (_tmp5_);
+#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp6_) {
+#line 9133 "GalleryConnector.c"
+ PublishingGallery3PublishingParameters* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp10_ = NULL;
+#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = parameters;
+#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = publishing_gallery3_publishing_parameters_get_album_name (_tmp7_);
+#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1488: EVENT: must create new album \"%s\" first.", _tmp9_);
+#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = parameters;
+#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_create_album (self, _tmp10_);
+#line 9150 "GalleryConnector.c"
+ } else {
+ PublishingGallery3PublishingParameters* _tmp11_ = NULL;
+#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = parameters;
+#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_do_publish (self, _tmp11_);
+#line 9157 "GalleryConnector.c"
+ }
+}
+
+
+static void publishing_gallery3_gallery_publisher_class_init (PublishingGallery3GalleryPublisherClass * klass) {
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_parent_class = g_type_class_peek_parent (klass);
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryPublisherPrivate));
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_gallery_publisher_finalize;
+#line 9169 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) {
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_gallery_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface);
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->is_running = (gboolean (*)(SpitPublishingPublisher*)) publishing_gallery3_gallery_publisher_real_is_running;
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_service = (SpitPublishingService* (*)(SpitPublishingPublisher*)) publishing_gallery3_gallery_publisher_real_get_service;
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->start = (void (*)(SpitPublishingPublisher*)) publishing_gallery3_gallery_publisher_real_start;
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->stop = (void (*)(SpitPublishingPublisher*)) publishing_gallery3_gallery_publisher_real_stop;
+#line 9184 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_instance_init (PublishingGallery3GalleryPublisher * self) {
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_GALLERY_PUBLISHER_GET_PRIVATE (self);
+#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->host = NULL;
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->progress_reporter = NULL;
+#line 806 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->service = NULL;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->session = NULL;
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->running = FALSE;
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->albums = NULL;
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->albums_length1 = 0;
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_albums_size_ = self->priv->albums_length1;
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->key = NULL;
+#line 812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->publishing_options_pane = NULL;
+#line 9211 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_gallery_publisher_finalize (GObject* obj) {
+ PublishingGallery3GalleryPublisher * self;
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher);
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->progress_reporter = NULL;
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->key);
+#line 812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->publishing_options_pane);
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (publishing_gallery3_gallery_publisher_parent_class)->finalize (obj);
+#line 9237 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_gallery_publisher_get_type (void) {
+ static volatile gsize publishing_gallery3_gallery_publisher_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_gallery_publisher_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryPublisher), 0, (GInstanceInitFunc) publishing_gallery3_gallery_publisher_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_gallery3_gallery_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_gallery3_gallery_publisher_type_id;
+ publishing_gallery3_gallery_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3GalleryPublisher", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_gallery3_gallery_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info);
+ g_once_init_leave (&publishing_gallery3_gallery_publisher_type_id__volatile, publishing_gallery3_gallery_publisher_type_id);
+ }
+ return publishing_gallery3_gallery_publisher_type_id__volatile;
+}
+
+
+static PublishingGallery3Album** _vala_array_dup3 (PublishingGallery3Album** self, int length) {
+ PublishingGallery3Album** result;
+ int i;
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = g_new0 (PublishingGallery3Album*, length + 1);
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ for (i = 0; i < length; i++) {
+#line 9262 "GalleryConnector.c"
+ PublishingGallery3Album* _tmp0_ = NULL;
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = _publishing_gallery3_album_ref0 (self[i]);
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result[i] = _tmp0_;
+#line 9268 "GalleryConnector.c"
+ }
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 9272 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked ((PublishingGallery3PublishingOptionsPane*) self);
+#line 9279 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked ((PublishingGallery3PublishingOptionsPane*) self);
+#line 9286 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_on_new_album_entry_changed ((PublishingGallery3PublishingOptionsPane*) self);
+#line 9293 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
+#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed ((PublishingGallery3PublishingOptionsPane*) self);
+#line 9300 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_publishing_options_pane_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_on_pixels_changed ((PublishingGallery3PublishingOptionsPane*) self);
+#line 9307 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_on_logout_clicked ((PublishingGallery3PublishingOptionsPane*) self);
+#line 9314 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_on_publish_clicked ((PublishingGallery3PublishingOptionsPane*) self);
+#line 9321 "GalleryConnector.c"
+}
+
+
+PublishingGallery3PublishingOptionsPane* publishing_gallery3_publishing_options_pane_construct (GType object_type, SpitPublishingPluginHost* host, const gchar* url, const gchar* username, PublishingGallery3Album** albums, int albums_length1, GtkBuilder* builder, gboolean strip_metadata, gint scaling_id, gint scaling_pixels) {
+ PublishingGallery3PublishingOptionsPane * self = NULL;
+ PublishingGallery3Album** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingGallery3Album** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ GtkBuilder* _tmp3_ = NULL;
+ GtkBuilder* _tmp4_ = NULL;
+ GtkBuilder* _tmp5_ = NULL;
+ GtkBuilder* _tmp6_ = NULL;
+ GSList* _tmp7_ = NULL;
+ GSList* _tmp8_ = NULL;
+ guint _tmp9_ = 0U;
+ GtkBuilder* _tmp10_ = NULL;
+ GObject* _tmp11_ = NULL;
+ GtkGrid* _tmp12_ = NULL;
+ GtkBuilder* _tmp13_ = NULL;
+ GObject* _tmp14_ = NULL;
+ GtkLabel* _tmp15_ = NULL;
+ GtkBuilder* _tmp16_ = NULL;
+ GObject* _tmp17_ = NULL;
+ GtkRadioButton* _tmp18_ = NULL;
+ GtkBuilder* _tmp19_ = NULL;
+ GObject* _tmp20_ = NULL;
+ GtkComboBoxText* _tmp21_ = NULL;
+ GtkBuilder* _tmp22_ = NULL;
+ GObject* _tmp23_ = NULL;
+ GtkComboBoxText* _tmp24_ = NULL;
+ GtkBuilder* _tmp25_ = NULL;
+ GObject* _tmp26_ = NULL;
+ GtkEntry* _tmp27_ = NULL;
+ GtkBuilder* _tmp28_ = NULL;
+ GObject* _tmp29_ = NULL;
+ GtkRadioButton* _tmp30_ = NULL;
+ GtkBuilder* _tmp31_ = NULL;
+ GObject* _tmp32_ = NULL;
+ GtkEntry* _tmp33_ = NULL;
+ GtkBuilder* _tmp34_ = NULL;
+ GObject* _tmp35_ = NULL;
+ GtkCheckButton* _tmp36_ = NULL;
+ GtkBuilder* _tmp37_ = NULL;
+ GObject* _tmp38_ = NULL;
+ GtkButton* _tmp39_ = NULL;
+ GtkBuilder* _tmp40_ = NULL;
+ GObject* _tmp41_ = NULL;
+ GtkButton* _tmp42_ = NULL;
+ GtkLabel* _tmp43_ = NULL;
+ const gchar* _tmp44_ = NULL;
+ const gchar* _tmp45_ = NULL;
+ const gchar* _tmp46_ = NULL;
+ gchar* _tmp47_ = NULL;
+ gchar* _tmp48_ = NULL;
+ GtkCheckButton* _tmp49_ = NULL;
+ gboolean _tmp50_ = FALSE;
+ GtkComboBoxText* _tmp51_ = NULL;
+ gint _tmp52_ = 0;
+ GtkEntry* _tmp53_ = NULL;
+ gint _tmp54_ = 0;
+ gchar* _tmp55_ = NULL;
+ gchar* _tmp56_ = NULL;
+ GtkRadioButton* _tmp57_ = NULL;
+ GtkRadioButton* _tmp58_ = NULL;
+ GtkEntry* _tmp59_ = NULL;
+ GtkComboBoxText* _tmp60_ = NULL;
+ GtkEntry* _tmp61_ = NULL;
+ GtkButton* _tmp62_ = NULL;
+ GtkButton* _tmp63_ = NULL;
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (username != NULL, NULL);
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL);
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3PublishingOptionsPane*) g_object_new (object_type, NULL);
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = albums;
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0__length1 = albums_length1;
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup3 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->albums = _tmp1_;
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->albums_length1 = _tmp1__length1;
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_albums_size_ = self->priv->albums_length1;
+#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = host;
+#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->host = _tmp2_;
+#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = builder;
+#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = _g_object_ref0 (_tmp3_);
+#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->builder = _tmp4_;
+#line 1531 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = builder;
+#line 1531 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_assert (NULL != _tmp5_, "null != builder");
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = builder;
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = gtk_builder_get_objects (_tmp6_);
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = _tmp7_;
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = g_slist_length (_tmp8_);
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_assert (_tmp9_ > ((guint) 0), "builder.get_objects().length() > 0");
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_slist_free0 (_tmp8_);
+#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = builder;
+#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = gtk_builder_get_object (_tmp10_, "pane_widget");
+#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, gtk_grid_get_type ()) ? ((GtkGrid*) _tmp11_) : NULL);
+#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->pane_widget = _tmp12_;
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = builder;
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = gtk_builder_get_object (_tmp13_, "title_label");
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp14_) : NULL);
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->title_label);
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->title_label = _tmp15_;
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = builder;
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = gtk_builder_get_object (_tmp16_, "publish_to_existing_radio");
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp17_) : NULL);
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->use_existing_radio);
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->use_existing_radio = _tmp18_;
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = builder;
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = gtk_builder_get_object (_tmp19_, "existing_albums_combo");
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp20_) : NULL);
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->existing_albums_combo);
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->existing_albums_combo = _tmp21_;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = builder;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = gtk_builder_get_object (_tmp22_, "scaling_constraint_combo");
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp23_) : NULL);
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->scaling_combo);
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->scaling_combo = _tmp24_;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = builder;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = gtk_builder_get_object (_tmp25_, "major_axis_pixels");
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp26_) : NULL);
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->pixels);
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->pixels = _tmp27_;
+#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28_ = builder;
+#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29_ = gtk_builder_get_object (_tmp28_, "publish_new_radio");
+#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp29_) : NULL);
+#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->create_new_radio);
+#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->create_new_radio = _tmp30_;
+#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp31_ = builder;
+#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp32_ = gtk_builder_get_object (_tmp31_, "new_album_name");
+#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp32_) : NULL);
+#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->new_album_entry);
+#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->new_album_entry = _tmp33_;
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp34_ = self->priv->builder;
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp35_ = gtk_builder_get_object (_tmp34_, "strip_metadata_check");
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp35_) : NULL);
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->strip_metadata_check);
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->strip_metadata_check = _tmp36_;
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp37_ = builder;
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp38_ = gtk_builder_get_object (_tmp37_, "publish_button");
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp39_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp38_, gtk_button_get_type ()) ? ((GtkButton*) _tmp38_) : NULL);
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->publish_button = _tmp39_;
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp40_ = builder;
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp41_ = gtk_builder_get_object (_tmp40_, "logout_button");
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp42_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp41_, gtk_button_get_type ()) ? ((GtkButton*) _tmp41_) : NULL);
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->logout_button = _tmp42_;
+#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp43_ = self->priv->title_label;
+#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp44_ = _ ("Publishing to %s as %s.");
+#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp45_ = url;
+#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp46_ = username;
+#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp47_ = g_strdup_printf (_tmp44_, _tmp45_, _tmp46_);
+#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp48_ = _tmp47_;
+#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_label_set_label (_tmp43_, _tmp48_);
+#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp48_);
+#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp49_ = self->priv->strip_metadata_check;
+#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp50_ = strip_metadata;
+#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp50_);
+#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp51_ = self->priv->scaling_combo;
+#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp52_ = scaling_id;
+#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_combo_box_get_type (), GtkComboBox), _tmp52_);
+#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp53_ = self->priv->pixels;
+#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp54_ = scaling_pixels;
+#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp55_ = g_strdup_printf ("%i", _tmp54_);
+#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp56_ = _tmp55_;
+#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_entry_set_text (_tmp53_, _tmp56_);
+#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp56_);
+#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp57_ = self->priv->use_existing_radio;
+#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked, self, 0);
+#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp58_ = self->priv->create_new_radio;
+#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked, self, 0);
+#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp59_ = self->priv->new_album_entry;
+#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_gallery3_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed, self, 0);
+#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp60_ = self->priv->scaling_combo;
+#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed_gtk_combo_box_changed, self, 0);
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp61_ = self->priv->pixels;
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_gallery3_publishing_options_pane_on_pixels_changed_gtk_editable_changed, self, 0);
+#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp62_ = self->priv->logout_button;
+#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (_tmp62_, "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0);
+#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp63_ = self->priv->publish_button;
+#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (_tmp63_, "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0);
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 9627 "GalleryConnector.c"
+}
+
+
+PublishingGallery3PublishingOptionsPane* publishing_gallery3_publishing_options_pane_new (SpitPublishingPluginHost* host, const gchar* url, const gchar* username, PublishingGallery3Album** albums, int albums_length1, GtkBuilder* builder, gboolean strip_metadata, gint scaling_id, gint scaling_pixels) {
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_publishing_options_pane_construct (PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, host, url, username, albums, albums_length1, builder, strip_metadata, scaling_id, scaling_pixels);
+#line 9634 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_on_publish_clicked (PublishingGallery3PublishingOptionsPane* self) {
+ gchar* album_name = NULL;
+ gint _tmp0_ = 0;
+ GtkComboBoxText* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gint photo_major_axis_size = 0;
+ PublishingGallery3PublishingParameters* param = NULL;
+ GtkRadioButton* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ PublishingGallery3PublishingParameters* _tmp34_ = NULL;
+ gint _tmp35_ = 0;
+ PublishingGallery3PublishingParameters* _tmp36_ = NULL;
+ GtkCheckButton* _tmp37_ = NULL;
+ gboolean _tmp38_ = FALSE;
+ PublishingGallery3PublishingParameters* _tmp39_ = NULL;
+#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->scaling_combo;
+#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp2_ == 1) {
+#line 9661 "GalleryConnector.c"
+ GtkEntry* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = self->priv->pixels;
+#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = gtk_entry_get_text (_tmp3_);
+#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = atoi (_tmp4_);
+#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = _tmp5_;
+#line 9673 "GalleryConnector.c"
+ } else {
+#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = -1;
+#line 9677 "GalleryConnector.c"
+ }
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ photo_major_axis_size = _tmp0_;
+#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = self->priv->create_new_radio;
+#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp7_) {
+#line 9687 "GalleryConnector.c"
+ GtkEntry* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ SpitPublishingPluginHost* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = self->priv->new_album_entry;
+#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = gtk_entry_get_text (_tmp8_);
+#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = g_strdup (_tmp9_);
+#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (album_name);
+#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ album_name = _tmp10_;
+#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = self->priv->host;
+#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = album_name;
+#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY, _tmp12_);
+#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = album_name;
+#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = publishing_gallery3_publishing_parameters_new_to_new_album (_tmp13_);
+#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_publishing_parameters_unref0 (param);
+#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ param = _tmp14_;
+#line 1577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = album_name;
+#line 1577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:1577: Trying to publish to \"%s\"", _tmp15_);
+#line 9724 "GalleryConnector.c"
+ } else {
+ PublishingGallery3Album** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+ GtkComboBoxText* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+ PublishingGallery3Album* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ SpitPublishingPluginHost* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ gchar* album_path = NULL;
+ PublishingGallery3Album** _tmp25_ = NULL;
+ gint _tmp25__length1 = 0;
+ GtkComboBoxText* _tmp26_ = NULL;
+ gint _tmp27_ = 0;
+ PublishingGallery3Album* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+ const gchar* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp33_ = NULL;
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = self->priv->albums;
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16__length1 = self->priv->albums_length1;
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = self->priv->existing_albums_combo;
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = _tmp16_[_tmp18_];
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = publishing_gallery3_album_get_title (_tmp19_);
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = _tmp20_;
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = g_strdup (_tmp21_);
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (album_name);
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ album_name = _tmp22_;
+#line 1581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = self->priv->host;
+#line 1581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp24_ = album_name;
+#line 1581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY, _tmp24_);
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = self->priv->albums;
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25__length1 = self->priv->albums_length1;
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = self->priv->existing_albums_combo;
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28_ = _tmp25_[_tmp27_];
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29_ = publishing_gallery3_album_get_path (_tmp28_);
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp30_ = _tmp29_;
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp31_ = g_strdup (_tmp30_);
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ album_path = _tmp31_;
+#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp32_ = album_path;
+#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp33_ = publishing_gallery3_publishing_parameters_new_to_existing_album (_tmp32_);
+#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_publishing_parameters_unref0 (param);
+#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ param = _tmp33_;
+#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (album_path);
+#line 9801 "GalleryConnector.c"
+ }
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp34_ = param;
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp35_ = photo_major_axis_size;
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_set_photo_major_axis_size (_tmp34_, _tmp35_);
+#line 1589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp36_ = param;
+#line 1589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp37_ = self->priv->strip_metadata_check;
+#line 1589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp38_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_set_strip_metadata (_tmp36_, _tmp38_);
+#line 1591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp39_ = param;
+#line 1591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_emit_by_name (self, "publish", _tmp39_);
+#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_publishing_parameters_unref0 (param);
+#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (album_name);
+#line 9825 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked (PublishingGallery3PublishingOptionsPane* self) {
+ GtkComboBoxText* _tmp0_ = NULL;
+ GtkEntry* _tmp1_ = NULL;
+ GtkComboBoxText* _tmp2_ = NULL;
+#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->existing_albums_combo;
+#line 1595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->new_album_entry;
+#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->existing_albums_combo;
+#line 1597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
+#line 1598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 9849 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked (PublishingGallery3PublishingOptionsPane* self) {
+ GtkEntry* _tmp0_ = NULL;
+ GtkComboBoxText* _tmp1_ = NULL;
+ GtkEntry* _tmp2_ = NULL;
+#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->new_album_entry;
+#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->existing_albums_combo;
+#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1604 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->new_album_entry;
+#line 1604 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
+#line 1605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 9873 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_on_logout_clicked (PublishingGallery3PublishingOptionsPane* self) {
+#line 1608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 9882 "GalleryConnector.c"
+}
+
+
+static gchar* string_strip (const gchar* self) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strdup (self);
+#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp0_;
+#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _result_;
+#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_strstrip (_tmp1_);
+#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _result_;
+#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 9905 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (PublishingGallery3PublishingOptionsPane* self) {
+ gchar* album_name = NULL;
+ GtkEntry* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ GtkButton* _tmp10_ = NULL;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->new_album_entry;
+#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = gtk_entry_get_text (_tmp0_);
+#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ album_name = _tmp2_;
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = album_name;
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = string_strip (_tmp4_);
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = _tmp5_;
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = g_strcmp0 (_tmp6_, "") == 0;
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp6_);
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp7_) {
+#line 9942 "GalleryConnector.c"
+ GtkRadioButton* _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+#line 1615 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = self->priv->create_new_radio;
+#line 1615 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1615 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = _tmp9_;
+#line 9951 "GalleryConnector.c"
+ } else {
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = FALSE;
+#line 9955 "GalleryConnector.c"
+ }
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = self->priv->publish_button;
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), !_tmp3_);
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (album_name);
+#line 9963 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_on_new_album_entry_changed (PublishingGallery3PublishingOptionsPane* self) {
+#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 9972 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (PublishingGallery3PublishingOptionsPane* self) {
+ GtkEntry* _tmp0_ = NULL;
+ GtkComboBoxText* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+#line 1622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->pixels;
+#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->scaling_combo;
+#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), _tmp2_ == 1);
+#line 9990 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed (PublishingGallery3PublishingOptionsPane* self) {
+#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (self);
+#line 9999 "GalleryConnector.c"
+}
+
+
+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 10022 "GalleryConnector.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 10030 "GalleryConnector.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 10042 "GalleryConnector.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 10066 "GalleryConnector.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 10072 "GalleryConnector.c"
+ } else {
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = FALSE;
+#line 10076 "GalleryConnector.c"
+ }
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp0_) {
+#line 10080 "GalleryConnector.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 10092 "GalleryConnector.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 10102 "GalleryConnector.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 10108 "GalleryConnector.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 10122 "GalleryConnector.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 10132 "GalleryConnector.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 10138 "GalleryConnector.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 10147 "GalleryConnector.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 10167 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_on_pixels_changed (PublishingGallery3PublishingOptionsPane* self) {
+ gchar* orig_text = NULL;
+ GtkEntry* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar last_char = '\0';
+ const gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ gchar _tmp7_ = '\0';
+ const gchar* _tmp8_ = NULL;
+ gint _tmp9_ = 0;
+ gint _tmp10_ = 0;
+#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->pixels;
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = gtk_entry_get_text (_tmp0_);
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ orig_text = _tmp2_;
+#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = orig_text;
+#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = orig_text;
+#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = strlen (_tmp4_);
+#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = _tmp5_;
+#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = string_get (_tmp3_, (glong) (_tmp6_ - 1));
+#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ last_char = _tmp7_;
+#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = orig_text;
+#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = strlen (_tmp8_);
+#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = _tmp9_;
+#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp10_ > 0) {
+#line 10215 "GalleryConnector.c"
+ gchar _tmp11_ = '\0';
+ gboolean _tmp12_ = FALSE;
+#line 1635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = last_char;
+#line 1635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = g_ascii_isdigit (_tmp11_);
+#line 1635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp12_) {
+#line 10224 "GalleryConnector.c"
+ GtkEntry* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+ gint _tmp17_ = 0;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = self->priv->pixels;
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = orig_text;
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = orig_text;
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = strlen (_tmp15_);
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = _tmp16_;
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = string_substring (_tmp14_, (glong) 0, (glong) (_tmp17_ - 1));
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = _tmp18_;
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_entry_set_text (_tmp13_, _tmp19_);
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp19_);
+#line 10250 "GalleryConnector.c"
+ }
+ }
+#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (orig_text);
+#line 10255 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_publishing_options_pane_installed (PublishingGallery3PublishingOptionsPane* self) {
+ gint default_album_id = 0;
+ gchar* last_album = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ PublishingGallery3Album** _tmp27_ = NULL;
+ gint _tmp27__length1 = 0;
+#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ default_album_id = -1;
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY, "");
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ last_album = _tmp1_;
+#line 10276 "GalleryConnector.c"
+ {
+ gint i = 0;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ i = 0;
+#line 10281 "GalleryConnector.c"
+ {
+ gboolean _tmp2_ = FALSE;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = TRUE;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ while (TRUE) {
+#line 10288 "GalleryConnector.c"
+ gint _tmp4_ = 0;
+ PublishingGallery3Album** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ GtkComboBoxText* _tmp6_ = NULL;
+ PublishingGallery3Album** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ gint _tmp8_ = 0;
+ PublishingGallery3Album* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+ PublishingGallery3Album** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ gint _tmp14_ = 0;
+ PublishingGallery3Album* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!_tmp2_) {
+#line 10309 "GalleryConnector.c"
+ gint _tmp3_ = 0;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = i;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ i = _tmp3_ + 1;
+#line 10315 "GalleryConnector.c"
+ }
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = FALSE;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = i;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->albums;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5__length1 = self->priv->albums_length1;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!(_tmp4_ <= (_tmp5__length1 - 1))) {
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 10329 "GalleryConnector.c"
+ }
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = self->priv->existing_albums_combo;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = self->priv->albums;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7__length1 = self->priv->albums_length1;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = i;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp7_[_tmp8_];
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = publishing_gallery3_album_get_title (_tmp9_);
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = _tmp10_;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_combo_box_text_append_text (_tmp6_, _tmp11_);
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = self->priv->albums;
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13__length1 = self->priv->albums_length1;
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = i;
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = _tmp13_[_tmp14_];
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = publishing_gallery3_album_get_title (_tmp15_);
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = _tmp16_;
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = last_album;
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (g_strcmp0 (_tmp17_, _tmp18_) == 0) {
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = TRUE;
+#line 10365 "GalleryConnector.c"
+ } else {
+ gboolean _tmp19_ = FALSE;
+ PublishingGallery3Album** _tmp20_ = NULL;
+ gint _tmp20__length1 = 0;
+ gint _tmp21_ = 0;
+ PublishingGallery3Album* _tmp22_ = NULL;
+ const gchar* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = self->priv->albums;
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20__length1 = self->priv->albums_length1;
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = i;
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = _tmp20_[_tmp21_];
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = publishing_gallery3_album_get_title (_tmp22_);
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp24_ = _tmp23_;
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (g_strcmp0 (PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME, _tmp24_) == 0) {
+#line 10388 "GalleryConnector.c"
+ gint _tmp25_ = 0;
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = default_album_id;
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = -1 == _tmp25_;
+#line 10394 "GalleryConnector.c"
+ } else {
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = FALSE;
+#line 10398 "GalleryConnector.c"
+ }
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = _tmp19_;
+#line 10402 "GalleryConnector.c"
+ }
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp12_) {
+#line 10406 "GalleryConnector.c"
+ gint _tmp26_ = 0;
+#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = i;
+#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ default_album_id = _tmp26_;
+#line 10412 "GalleryConnector.c"
+ }
+ }
+ }
+ }
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27_ = self->priv->albums;
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27__length1 = self->priv->albums_length1;
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp27__length1 == 0) {
+#line 10423 "GalleryConnector.c"
+ GtkComboBoxText* _tmp28_ = NULL;
+ GtkRadioButton* _tmp29_ = NULL;
+ GtkRadioButton* _tmp30_ = NULL;
+ GtkEntry* _tmp31_ = NULL;
+ GtkEntry* _tmp32_ = NULL;
+#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28_ = self->priv->existing_albums_combo;
+#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29_ = self->priv->use_existing_radio;
+#line 1655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp30_ = self->priv->create_new_radio;
+#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 1657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp31_ = self->priv->new_album_entry;
+#line 1657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget));
+#line 1658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp32_ = self->priv->new_album_entry;
+#line 1658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_entry_set_text (_tmp32_, PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME);
+#line 10449 "GalleryConnector.c"
+ } else {
+ gint _tmp33_ = 0;
+#line 1660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp33_ = default_album_id;
+#line 1660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp33_ >= 0) {
+#line 10456 "GalleryConnector.c"
+ GtkRadioButton* _tmp34_ = NULL;
+ GtkComboBoxText* _tmp35_ = NULL;
+ gint _tmp36_ = 0;
+ GtkEntry* _tmp37_ = NULL;
+#line 1661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp34_ = self->priv->use_existing_radio;
+#line 1661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp35_ = self->priv->existing_albums_combo;
+#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp36_ = default_album_id;
+#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_combo_box_get_type (), GtkComboBox), _tmp36_);
+#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp37_ = self->priv->new_album_entry;
+#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 10475 "GalleryConnector.c"
+ } else {
+ GtkRadioButton* _tmp38_ = NULL;
+ GtkComboBoxText* _tmp39_ = NULL;
+ GtkEntry* _tmp40_ = NULL;
+ GtkEntry* _tmp41_ = NULL;
+#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp38_ = self->priv->create_new_radio;
+#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 1666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp39_ = self->priv->existing_albums_combo;
+#line 1666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp40_ = self->priv->new_album_entry;
+#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_entry_set_text (_tmp40_, PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME);
+#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp41_ = self->priv->new_album_entry;
+#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget));
+#line 10497 "GalleryConnector.c"
+ }
+ }
+#line 1671 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 1672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (self);
+#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (last_album);
+#line 10506 "GalleryConnector.c"
+}
+
+
+static GtkWidget* publishing_gallery3_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingGallery3PublishingOptionsPane * self;
+ GtkWidget* result = NULL;
+ GtkGrid* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 1675 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane);
+#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp1_;
+#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 10525 "GalleryConnector.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_gallery3_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingGallery3PublishingOptionsPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 1679 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane);
+#line 1680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 1680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 10538 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingGallery3PublishingOptionsPane * self;
+#line 1683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane);
+#line 1684 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_installed (self);
+#line 10548 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingGallery3PublishingOptionsPane * self;
+#line 1687 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane);
+#line 10556 "GalleryConnector.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS) (gpointer data1, gpointer arg_1, gpointer data2);
+ register GMarshalFunc_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (n_param_values == 2);
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ data1 = closure->data;
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 10575 "GalleryConnector.c"
+ } else {
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ data2 = closure->data;
+#line 10581 "GalleryConnector.c"
+ }
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ callback = (GMarshalFunc_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS) (marshal_data ? marshal_data : cc->callback);
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ callback (data1, publishing_gallery3_value_get_publishing_parameters (param_values + 1), data2);
+#line 10587 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_class_init (PublishingGallery3PublishingOptionsPaneClass * klass) {
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_parent_class = g_type_class_peek_parent (klass);
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3PublishingOptionsPanePrivate));
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_publishing_options_pane_finalize;
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_new ("publish", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS, G_TYPE_NONE, 1, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS);
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_new ("logout", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 10602 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_gallery3_publishing_options_pane_real_get_widget;
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_gallery3_publishing_options_pane_real_get_preferred_geometry;
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_gallery3_publishing_options_pane_real_on_pane_installed;
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_gallery3_publishing_options_pane_real_on_pane_uninstalled;
+#line 10617 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_instance_init (PublishingGallery3PublishingOptionsPane * self) {
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self);
+#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->builder = NULL;
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->pane_widget = NULL;
+#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->title_label = NULL;
+#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->use_existing_radio = NULL;
+#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->existing_albums_combo = NULL;
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->create_new_radio = NULL;
+#line 1510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->new_album_entry = NULL;
+#line 1511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->scaling_combo = NULL;
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->pixels = NULL;
+#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->strip_metadata_check = NULL;
+#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->publish_button = NULL;
+#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->logout_button = NULL;
+#line 10648 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_options_pane_finalize (GObject* obj) {
+ PublishingGallery3PublishingOptionsPane * self;
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane);
+#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->title_label);
+#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->use_existing_radio);
+#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->existing_albums_combo);
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->create_new_radio);
+#line 1510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->new_album_entry);
+#line 1511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->scaling_combo);
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->pixels);
+#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->strip_metadata_check);
+#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL);
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (publishing_gallery3_publishing_options_pane_parent_class)->finalize (obj);
+#line 10684 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_publishing_options_pane_get_type (void) {
+ static volatile gsize publishing_gallery3_publishing_options_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_publishing_options_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3PublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3PublishingOptionsPane), 0, (GInstanceInitFunc) publishing_gallery3_publishing_options_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_gallery3_publishing_options_pane_type_id;
+ publishing_gallery3_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3PublishingOptionsPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_gallery3_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_gallery3_publishing_options_pane_type_id__volatile, publishing_gallery3_publishing_options_pane_type_id);
+ }
+ return publishing_gallery3_publishing_options_pane_type_id__volatile;
+}
+
+
+static PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct (GType object_type) {
+ PublishingGallery3PublishingParameters* self = NULL;
+#line 1710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3PublishingParameters*) g_type_create_instance (object_type);
+#line 1710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 10708 "GalleryConnector.c"
+}
+
+
+static PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new (void) {
+#line 1710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_publishing_parameters_construct (PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS);
+#line 10715 "GalleryConnector.c"
+}
+
+
+static gchar* string_delimit (const gchar* self, const gchar* delimiters, gchar new_delimiter) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar _tmp3_ = '\0';
+#line 1215 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1215 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (delimiters != NULL, NULL);
+#line 1216 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strdup (self);
+#line 1216 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp0_;
+#line 1217 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _result_;
+#line 1217 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = delimiters;
+#line 1217 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = new_delimiter;
+#line 1217 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_strdelimit (_tmp1_, _tmp2_, _tmp3_);
+#line 1218 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _result_;
+#line 1218 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 10746 "GalleryConnector.c"
+}
+
+
+PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct_to_new_album (GType object_type, const gchar* album_title) {
+ PublishingGallery3PublishingParameters* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (album_title != NULL, NULL);
+#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3PublishingParameters*) g_type_create_instance (object_type);
+#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = album_title;
+#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = string_delimit (_tmp0_, " ", '-');
+#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = _tmp1_;
+#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_set_album_name (self, _tmp2_);
+#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp2_);
+#line 1716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = album_title;
+#line 1716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_set_album_title (self, _tmp3_);
+#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 10776 "GalleryConnector.c"
+}
+
+
+PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new_to_new_album (const gchar* album_title) {
+#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_publishing_parameters_construct_to_new_album (PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, album_title);
+#line 10783 "GalleryConnector.c"
+}
+
+
+PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct_to_existing_album (GType object_type, const gchar* album_path) {
+ PublishingGallery3PublishingParameters* self = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (album_path != NULL, NULL);
+#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3PublishingParameters*) g_type_create_instance (object_type);
+#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = album_path;
+#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_set_album_path (self, _tmp0_);
+#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 10800 "GalleryConnector.c"
+}
+
+
+PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new_to_existing_album (const gchar* album_path) {
+#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_publishing_parameters_construct_to_existing_album (PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, album_path);
+#line 10807 "GalleryConnector.c"
+}
+
+
+gboolean publishing_gallery3_publishing_parameters_is_to_new_album (PublishingGallery3PublishingParameters* self) {
+ gboolean result = FALSE;
+ const gchar* _tmp0_ = NULL;
+#line 1723 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), FALSE);
+#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_album_name;
+#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = g_strcmp0 (_tmp0_, "") != 0;
+#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 10822 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_publishing_parameters_get_album_title (PublishingGallery3PublishingParameters* self) {
+ const gchar* result;
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 1699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = publishing_gallery3_publishing_parameters_is_to_new_album (self);
+#line 1699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_assert (_tmp0_, "is_to_new_album()");
+#line 1700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->_album_title;
+#line 1700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp1_;
+#line 1700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 10842 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_parameters_set_album_title (PublishingGallery3PublishingParameters* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self));
+#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_album_title);
+#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_title = _tmp1_;
+#line 10859 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_publishing_parameters_get_album_name (PublishingGallery3PublishingParameters* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_album_name;
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 10874 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_parameters_set_album_name (PublishingGallery3PublishingParameters* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self));
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_album_name);
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_name = _tmp1_;
+#line 10891 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_publishing_parameters_get_album_path (PublishingGallery3PublishingParameters* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_album_path;
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 10906 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_publishing_parameters_set_album_path (PublishingGallery3PublishingParameters* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self));
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_album_path);
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_path = _tmp1_;
+#line 10923 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_publishing_parameters_get_entity_title (PublishingGallery3PublishingParameters* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_entity_title;
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 10938 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_parameters_set_entity_title (PublishingGallery3PublishingParameters* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self));
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_entity_title);
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_entity_title = _tmp1_;
+#line 10955 "GalleryConnector.c"
+}
+
+
+gint publishing_gallery3_publishing_parameters_get_photo_major_axis_size (PublishingGallery3PublishingParameters* self) {
+ gint result;
+ gint _tmp0_ = 0;
+#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), 0);
+#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_photo_major_axis_size;
+#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 10970 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_publishing_parameters_set_photo_major_axis_size (PublishingGallery3PublishingParameters* self, gint value) {
+ gint _tmp0_ = 0;
+#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self));
+#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_photo_major_axis_size = _tmp0_;
+#line 10982 "GalleryConnector.c"
+}
+
+
+gboolean publishing_gallery3_publishing_parameters_get_strip_metadata (PublishingGallery3PublishingParameters* self) {
+ gboolean result;
+ gboolean _tmp0_ = FALSE;
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), FALSE);
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_strip_metadata;
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 10997 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_publishing_parameters_set_strip_metadata (PublishingGallery3PublishingParameters* self, gboolean value) {
+ gboolean _tmp0_ = FALSE;
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self));
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_strip_metadata = _tmp0_;
+#line 11009 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_value_publishing_parameters_init (GValue* value) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = NULL;
+#line 11016 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_value_publishing_parameters_free_value (GValue* value) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (value->data[0].v_pointer) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_unref (value->data[0].v_pointer);
+#line 11025 "GalleryConnector.c"
+ }
+}
+
+
+static void publishing_gallery3_value_publishing_parameters_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (src_value->data[0].v_pointer) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ dest_value->data[0].v_pointer = publishing_gallery3_publishing_parameters_ref (src_value->data[0].v_pointer);
+#line 11035 "GalleryConnector.c"
+ } else {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 11039 "GalleryConnector.c"
+ }
+}
+
+
+static gpointer publishing_gallery3_value_publishing_parameters_peek_pointer (const GValue* value) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return value->data[0].v_pointer;
+#line 11047 "GalleryConnector.c"
+}
+
+
+static gchar* publishing_gallery3_value_publishing_parameters_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (collect_values[0].v_pointer) {
+#line 11054 "GalleryConnector.c"
+ PublishingGallery3PublishingParameters* object;
+ object = collect_values[0].v_pointer;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 11061 "GalleryConnector.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 11065 "GalleryConnector.c"
+ }
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = publishing_gallery3_publishing_parameters_ref (object);
+#line 11069 "GalleryConnector.c"
+ } else {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = NULL;
+#line 11073 "GalleryConnector.c"
+ }
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 11077 "GalleryConnector.c"
+}
+
+
+static gchar* publishing_gallery3_value_publishing_parameters_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingGallery3PublishingParameters** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!object_p) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 11088 "GalleryConnector.c"
+ }
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (!value->data[0].v_pointer) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *object_p = NULL;
+#line 11094 "GalleryConnector.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *object_p = value->data[0].v_pointer;
+#line 11098 "GalleryConnector.c"
+ } else {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ *object_p = publishing_gallery3_publishing_parameters_ref (value->data[0].v_pointer);
+#line 11102 "GalleryConnector.c"
+ }
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 11106 "GalleryConnector.c"
+}
+
+
+GParamSpec* publishing_gallery3_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingGallery3ParamSpecPublishingParameters* spec;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return G_PARAM_SPEC (spec);
+#line 11120 "GalleryConnector.c"
+}
+
+
+gpointer publishing_gallery3_value_get_publishing_parameters (const GValue* value) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return value->data[0].v_pointer;
+#line 11129 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_value_set_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingGallery3PublishingParameters* old;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS));
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ old = value->data[0].v_pointer;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (v_object) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS));
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = v_object;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_ref (value->data[0].v_pointer);
+#line 11149 "GalleryConnector.c"
+ } else {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = NULL;
+#line 11153 "GalleryConnector.c"
+ }
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (old) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_unref (old);
+#line 11159 "GalleryConnector.c"
+ }
+}
+
+
+void publishing_gallery3_value_take_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingGallery3PublishingParameters* old;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS));
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ old = value->data[0].v_pointer;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (v_object) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS));
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = v_object;
+#line 11178 "GalleryConnector.c"
+ } else {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ value->data[0].v_pointer = NULL;
+#line 11182 "GalleryConnector.c"
+ }
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (old) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_unref (old);
+#line 11188 "GalleryConnector.c"
+ }
+}
+
+
+static void publishing_gallery3_publishing_parameters_class_init (PublishingGallery3PublishingParametersClass * klass) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_publishing_parameters_parent_class = g_type_class_peek_parent (klass);
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingGallery3PublishingParametersClass *) klass)->finalize = publishing_gallery3_publishing_parameters_finalize;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3PublishingParametersPrivate));
+#line 11200 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_parameters_instance_init (PublishingGallery3PublishingParameters * self) {
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_PRIVATE (self);
+#line 1694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = g_strdup ("");
+#line 1694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_title = _tmp0_;
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup ("");
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_name = _tmp1_;
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = g_strdup ("");
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_album_path = _tmp2_;
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = g_strdup ("");
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_entity_title = _tmp3_;
+#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_photo_major_axis_size = -1;
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_strip_metadata = FALSE;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->ref_count = 1;
+#line 11233 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_publishing_parameters_finalize (PublishingGallery3PublishingParameters* obj) {
+ PublishingGallery3PublishingParameters * self;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParameters);
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_destroy (self);
+#line 1694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_album_title);
+#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_album_name);
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_album_path);
+#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_entity_title);
+#line 11251 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_publishing_parameters_get_type (void) {
+ static volatile gsize publishing_gallery3_publishing_parameters_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_publishing_parameters_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_gallery3_value_publishing_parameters_init, publishing_gallery3_value_publishing_parameters_free_value, publishing_gallery3_value_publishing_parameters_copy_value, publishing_gallery3_value_publishing_parameters_peek_pointer, "p", publishing_gallery3_value_publishing_parameters_collect_value, "p", publishing_gallery3_value_publishing_parameters_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3PublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3PublishingParameters), 0, (GInstanceInitFunc) publishing_gallery3_publishing_parameters_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 publishing_gallery3_publishing_parameters_type_id;
+ publishing_gallery3_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingGallery3PublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_gallery3_publishing_parameters_type_id__volatile, publishing_gallery3_publishing_parameters_type_id);
+ }
+ return publishing_gallery3_publishing_parameters_type_id__volatile;
+}
+
+
+gpointer publishing_gallery3_publishing_parameters_ref (gpointer instance) {
+ PublishingGallery3PublishingParameters* self;
+ self = instance;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return instance;
+#line 11276 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_publishing_parameters_unref (gpointer instance) {
+ PublishingGallery3PublishingParameters* self;
+ self = instance;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self);
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 11289 "GalleryConnector.c"
+ }
+}
+
+
+gchar* publishing_gallery3_credentials_pane_mode_to_string (PublishingGallery3CredentialsPaneMode self) {
+ gchar* result = NULL;
+#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ switch (self) {
+#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO:
+#line 11300 "GalleryConnector.c"
+ {
+ gchar* _tmp0_ = NULL;
+#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = g_strdup ("INTRO");
+#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 11309 "GalleryConnector.c"
+ }
+#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY:
+#line 11313 "GalleryConnector.c"
+ {
+ gchar* _tmp1_ = NULL;
+#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup ("FAILED_RETRY");
+#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp1_;
+#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 11322 "GalleryConnector.c"
+ }
+#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL:
+#line 11326 "GalleryConnector.c"
+ {
+ gchar* _tmp2_ = NULL;
+#line 1743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = g_strdup ("NOT_GALLERY_URL");
+#line 1743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp2_;
+#line 1743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 11335 "GalleryConnector.c"
+ }
+ default:
+ {
+#line 1746 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:1746: unrecognized CredentialsPane.Mode enumerat" \
+"ion value");
+#line 11341 "GalleryConnector.c"
+ }
+ }
+}
+
+
+GType publishing_gallery3_credentials_pane_mode_get_type (void) {
+ static volatile gsize publishing_gallery3_credentials_pane_mode_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_credentials_pane_mode_type_id__volatile)) {
+ static const GEnumValue values[] = {{PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO, "PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO", "intro"}, {PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY, "PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY", "failed-retry"}, {PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL, "PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL", "not-gallery-url"}, {0, NULL, NULL}};
+ GType publishing_gallery3_credentials_pane_mode_type_id;
+ publishing_gallery3_credentials_pane_mode_type_id = g_enum_register_static ("PublishingGallery3CredentialsPaneMode", values);
+ g_once_init_leave (&publishing_gallery3_credentials_pane_mode_type_id__volatile, publishing_gallery3_credentials_pane_mode_type_id);
+ }
+ return publishing_gallery3_credentials_pane_mode_type_id__volatile;
+}
+
+
+PublishingGallery3CredentialsPane* publishing_gallery3_credentials_pane_construct (GType object_type, SpitPublishingPluginHost* host, PublishingGallery3CredentialsPaneMode mode, const gchar* url, const gchar* username, const gchar* key) {
+ PublishingGallery3CredentialsPane * self = NULL;
+ GtkBuilder* builder = NULL;
+ GtkBuilder* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ PublishingGallery3CredentialsPaneMode _tmp11_ = 0;
+ const gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ GtkBuilder* _tmp15_ = NULL;
+ PublishingGallery3CredentialsGrid* _tmp16_ = NULL;
+ PublishingGallery3CredentialsGrid* _tmp17_ = NULL;
+ GtkGrid* _tmp18_ = NULL;
+ GtkGrid* _tmp19_ = NULL;
+ GtkWidget* _tmp20_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3CredentialsPane*) g_object_new (object_type, NULL);
+#line 1763 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = gtk_builder_new ();
+#line 1763 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ builder = _tmp0_;
+#line 11383 "GalleryConnector.c"
+ {
+ GtkBuilder* _tmp1_ = NULL;
+#line 1766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = builder;
+#line 1766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/gallery3_authentication_pane.ui", &_inner_error_);
+#line 1766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 11392 "GalleryConnector.c"
+ goto __catch15_g_error;
+ }
+ }
+ goto __finally15;
+ __catch15_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ e = _inner_error_;
+#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _inner_error_ = NULL;
+#line 1770 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = e;
+#line 1770 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = _tmp2_->message;
+#line 1770 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_warning ("GalleryConnector.vala:1770: Could not parse UI file! Error: %s.", _tmp3_);
+#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = host;
+#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = _ ("A file required for publishing is unavailable. Publishing to %s can't " \
+"continue.");
+#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = g_strdup_printf (_tmp5_, PUBLISHING_GALLERY3_SERVICE_NAME);
+#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = _tmp6_;
+#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp7_);
+#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = _tmp8_;
+#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_post_error (_tmp4_, _tmp9_);
+#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (_tmp9_);
+#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp7_);
+#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_error_free0 (e);
+#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (builder);
+#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 11442 "GalleryConnector.c"
+ }
+ __finally15:
+#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (builder);
+#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.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 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_clear_error (&_inner_error_);
+#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return NULL;
+#line 11455 "GalleryConnector.c"
+ }
+#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = host;
+#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = mode;
+#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = url;
+#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = username;
+#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = key;
+#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = builder;
+#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = publishing_gallery3_credentials_grid_new (_tmp10_, _tmp11_, _tmp12_, _tmp13_, _tmp14_, _tmp15_);
+#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->frame);
+#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->frame = _tmp16_;
+#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = self->priv->frame;
+#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = publishing_gallery3_credentials_grid_get_pane_widget (_tmp17_);
+#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = _tmp18_;
+#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp19_) : NULL);
+#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->grid_widget);
+#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->grid_widget = _tmp20_;
+#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (builder);
+#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 11491 "GalleryConnector.c"
+}
+
+
+PublishingGallery3CredentialsPane* publishing_gallery3_credentials_pane_new (SpitPublishingPluginHost* host, PublishingGallery3CredentialsPaneMode mode, const gchar* url, const gchar* username, const gchar* key) {
+#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_credentials_pane_construct (PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, host, mode, url, username, key);
+#line 11498 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_credentials_pane_notify_go_back (PublishingGallery3CredentialsPane* self) {
+#line 1785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE (self));
+#line 1786 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_emit_by_name (self, "go-back");
+#line 11507 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_credentials_pane_notify_login (PublishingGallery3CredentialsPane* self, const gchar* url, const gchar* uname, const gchar* password, const gchar* key) {
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE (self));
+#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (url != NULL);
+#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (uname != NULL);
+#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (password != NULL);
+#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (key != NULL);
+#line 1791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = url;
+#line 1791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = uname;
+#line 1791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = password;
+#line 1791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = key;
+#line 1791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_emit_by_name (self, "login", _tmp0_, _tmp1_, _tmp2_, _tmp3_);
+#line 11536 "GalleryConnector.c"
+}
+
+
+static GtkWidget* publishing_gallery3_credentials_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingGallery3CredentialsPane * self;
+ GtkWidget* result = NULL;
+ GtkWidget* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+ GtkWidget* _tmp2_ = NULL;
+#line 1794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane);
+#line 1795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->grid_widget;
+#line 1795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_assert (NULL != _tmp0_, "null != grid_widget");
+#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->grid_widget;
+#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = _g_object_ref0 (_tmp1_);
+#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp2_;
+#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 11560 "GalleryConnector.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_gallery3_credentials_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingGallery3CredentialsPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 1799 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane);
+#line 1800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 1800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 11573 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back (PublishingGallery3CredentialsGrid* _sender, gpointer self) {
+#line 1804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_pane_notify_go_back ((PublishingGallery3CredentialsPane*) self);
+#line 11580 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login (PublishingGallery3CredentialsGrid* _sender, const gchar* url, const gchar* username, const gchar* password, const gchar* key, gpointer self) {
+#line 1805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_pane_notify_login ((PublishingGallery3CredentialsPane*) self, url, username, password, key);
+#line 11587 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingGallery3CredentialsPane * self;
+ PublishingGallery3CredentialsGrid* _tmp0_ = NULL;
+ PublishingGallery3CredentialsGrid* _tmp1_ = NULL;
+ PublishingGallery3CredentialsGrid* _tmp2_ = NULL;
+#line 1803 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane);
+#line 1804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->frame;
+#line 1804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (_tmp0_, "go-back", (GCallback) _publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back, self, 0);
+#line 1805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->frame;
+#line 1805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (_tmp1_, "login", (GCallback) _publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login, self, 0);
+#line 1807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->frame;
+#line 1807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_grid_installed (_tmp2_);
+#line 11610 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingGallery3CredentialsPane * self;
+ PublishingGallery3CredentialsGrid* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingGallery3CredentialsGrid* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+#line 1810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane);
+#line 1811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->frame;
+#line 1811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("go-back", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, &_tmp1_, NULL, FALSE);
+#line 1811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back, self);
+#line 1812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->frame;
+#line 1812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_parse_name ("login", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, &_tmp3_, NULL, FALSE);
+#line 1812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login, self);
+#line 11634 "GalleryConnector.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__STRING_STRING_STRING_STRING) (gpointer data1, const char* arg_1, const char* arg_2, const char* arg_3, const char* arg_4, gpointer data2);
+ register GMarshalFunc_VOID__STRING_STRING_STRING_STRING callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (n_param_values == 5);
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ data1 = closure->data;
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 11653 "GalleryConnector.c"
+ } else {
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ data2 = closure->data;
+#line 11659 "GalleryConnector.c"
+ }
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ callback = (GMarshalFunc_VOID__STRING_STRING_STRING_STRING) (marshal_data ? marshal_data : cc->callback);
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_string (param_values + 3), g_value_get_string (param_values + 4), data2);
+#line 11665 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_pane_class_init (PublishingGallery3CredentialsPaneClass * klass) {
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_pane_parent_class = g_type_class_peek_parent (klass);
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3CredentialsPanePrivate));
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_credentials_pane_finalize;
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_new ("go_back", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_new ("login", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
+#line 11680 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_gallery3_credentials_pane_real_get_widget;
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_gallery3_credentials_pane_real_get_preferred_geometry;
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_gallery3_credentials_pane_real_on_pane_installed;
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_gallery3_credentials_pane_real_on_pane_uninstalled;
+#line 11695 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_pane_instance_init (PublishingGallery3CredentialsPane * self) {
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_CREDENTIALS_PANE_GET_PRIVATE (self);
+#line 1751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->frame = NULL;
+#line 1752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->grid_widget = NULL;
+#line 11706 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_pane_finalize (GObject* obj) {
+ PublishingGallery3CredentialsPane * self;
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane);
+#line 1751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->frame);
+#line 1752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->grid_widget);
+#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (publishing_gallery3_credentials_pane_parent_class)->finalize (obj);
+#line 11720 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_credentials_pane_get_type (void) {
+ static volatile gsize publishing_gallery3_credentials_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_credentials_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3CredentialsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_credentials_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3CredentialsPane), 0, (GInstanceInitFunc) publishing_gallery3_credentials_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_gallery3_credentials_pane_type_id;
+ publishing_gallery3_credentials_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3CredentialsPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_gallery3_credentials_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_gallery3_credentials_pane_type_id__volatile, publishing_gallery3_credentials_pane_type_id);
+ }
+ return publishing_gallery3_credentials_pane_type_id__volatile;
+}
+
+
+static void _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 1890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_grid_on_url_or_username_changed ((PublishingGallery3CredentialsGrid*) self);
+#line 11741 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_credentials_grid_on_go_back_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_grid_on_go_back_button_clicked ((PublishingGallery3CredentialsGrid*) self);
+#line 11748 "GalleryConnector.c"
+}
+
+
+static void _publishing_gallery3_credentials_grid_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1907 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_grid_on_login_button_clicked ((PublishingGallery3CredentialsGrid*) self);
+#line 11755 "GalleryConnector.c"
+}
+
+
+PublishingGallery3CredentialsGrid* publishing_gallery3_credentials_grid_construct (GType object_type, SpitPublishingPluginHost* host, PublishingGallery3CredentialsPaneMode mode, const gchar* url, const gchar* username, const gchar* key, GtkBuilder* builder) {
+ PublishingGallery3CredentialsGrid * self = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ GtkBuilder* _tmp7_ = NULL;
+ GtkBuilder* _tmp8_ = NULL;
+ GtkBuilder* _tmp9_ = NULL;
+ GtkBuilder* _tmp10_ = NULL;
+ GSList* _tmp11_ = NULL;
+ GSList* _tmp12_ = NULL;
+ guint _tmp13_ = 0U;
+ GtkBuilder* _tmp14_ = NULL;
+ GObject* _tmp15_ = NULL;
+ GtkBuilder* _tmp16_ = NULL;
+ GObject* _tmp17_ = NULL;
+ GtkLabel* _tmp18_ = NULL;
+ GtkBuilder* _tmp19_ = NULL;
+ GObject* _tmp20_ = NULL;
+ GtkEntry* _tmp21_ = NULL;
+ GtkBuilder* _tmp22_ = NULL;
+ GObject* _tmp23_ = NULL;
+ GtkEntry* _tmp24_ = NULL;
+ GtkBuilder* _tmp25_ = NULL;
+ GObject* _tmp26_ = NULL;
+ GtkEntry* _tmp27_ = NULL;
+ GtkBuilder* _tmp28_ = NULL;
+ GObject* _tmp29_ = NULL;
+ GtkEntry* _tmp30_ = NULL;
+ GtkBuilder* _tmp31_ = NULL;
+ GObject* _tmp32_ = NULL;
+ GtkButton* _tmp33_ = NULL;
+ GtkBuilder* _tmp34_ = NULL;
+ GObject* _tmp35_ = NULL;
+ GtkButton* _tmp36_ = NULL;
+ PublishingGallery3CredentialsPaneMode _tmp37_ = 0;
+ const gchar* _tmp47_ = NULL;
+ GtkEntry* _tmp51_ = NULL;
+ const gchar* _tmp52_ = NULL;
+ GtkEntry* _tmp56_ = NULL;
+ const gchar* _tmp57_ = NULL;
+ GtkEntry* _tmp61_ = NULL;
+ GtkButton* _tmp62_ = NULL;
+ GtkButton* _tmp63_ = NULL;
+ gboolean _tmp64_ = FALSE;
+ const gchar* _tmp65_ = NULL;
+ GtkButton* _tmp67_ = NULL;
+#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL);
+#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3CredentialsGrid*) g_object_new (object_type, NULL);
+#line 1845 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = host;
+#line 1845 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->host = _tmp0_;
+#line 1846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = url;
+#line 1846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->url);
+#line 1846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->url = _tmp2_;
+#line 1847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = key;
+#line 1847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = g_strdup (_tmp3_);
+#line 1847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->key);
+#line 1847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->key = _tmp4_;
+#line 1848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = username;
+#line 1848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = g_strdup (_tmp5_);
+#line 1848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->username);
+#line 1848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->username = _tmp6_;
+#line 1850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = builder;
+#line 1850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = _g_object_ref0 (_tmp7_);
+#line 1850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->builder = _tmp8_;
+#line 1851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp9_ = builder;
+#line 1851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_assert (_tmp9_ != NULL, "builder != null");
+#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp10_ = builder;
+#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp11_ = gtk_builder_get_objects (_tmp10_);
+#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp12_ = _tmp11_;
+#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp13_ = g_slist_length (_tmp12_);
+#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _vala_assert (_tmp13_ > ((guint) 0), "builder.get_objects().length() > 0");
+#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_slist_free0 (_tmp12_);
+#line 1855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp14_ = builder;
+#line 1855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp15_ = gtk_builder_get_object (_tmp14_, "gallery3_auth_pane_widget");
+#line 1855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_grid_set_pane_widget (self, G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, gtk_grid_get_type ()) ? ((GtkGrid*) _tmp15_) : NULL);
+#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp16_ = builder;
+#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp17_ = gtk_builder_get_object (_tmp16_, "intro_message_label");
+#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp17_) : NULL);
+#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->intro_message_label);
+#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->intro_message_label = _tmp18_;
+#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp19_ = builder;
+#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp20_ = gtk_builder_get_object (_tmp19_, "url_entry");
+#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp20_) : NULL);
+#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->url_entry);
+#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->url_entry = _tmp21_;
+#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp22_ = builder;
+#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp23_ = gtk_builder_get_object (_tmp22_, "username_entry");
+#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp23_) : NULL);
+#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->username_entry);
+#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->username_entry = _tmp24_;
+#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp25_ = builder;
+#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp26_ = gtk_builder_get_object (_tmp25_, "key_entry");
+#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp26_) : NULL);
+#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->key_entry);
+#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->key_entry = _tmp27_;
+#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp28_ = builder;
+#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp29_ = gtk_builder_get_object (_tmp28_, "password_entry");
+#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp29_) : NULL);
+#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->password_entry);
+#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->password_entry = _tmp30_;
+#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp31_ = builder;
+#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp32_ = gtk_builder_get_object (_tmp31_, "go_back_button");
+#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, gtk_button_get_type ()) ? ((GtkButton*) _tmp32_) : NULL);
+#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->go_back_button);
+#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->go_back_button = _tmp33_;
+#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp34_ = builder;
+#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp35_ = gtk_builder_get_object (_tmp34_, "login_button");
+#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, gtk_button_get_type ()) ? ((GtkButton*) _tmp35_) : NULL);
+#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->login_button);
+#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->login_button = _tmp36_;
+#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp37_ = mode;
+#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ switch (_tmp37_) {
+#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO:
+#line 11950 "GalleryConnector.c"
+ {
+ GtkLabel* _tmp38_ = NULL;
+#line 1867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp38_ = self->priv->intro_message_label;
+#line 1867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_label_set_markup (_tmp38_, PUBLISHING_GALLERY3_CREDENTIALS_GRID_INTRO_MESSAGE);
+#line 1868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 11959 "GalleryConnector.c"
+ }
+#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY:
+#line 11963 "GalleryConnector.c"
+ {
+ GtkLabel* _tmp39_ = NULL;
+ const gchar* _tmp40_ = NULL;
+ gchar* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp39_ = self->priv->intro_message_label;
+#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp40_ = _ ("Unrecognized User");
+#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp41_ = g_strdup_printf ("<b>%s</b>\n\n%s", _tmp40_, PUBLISHING_GALLERY3_CREDENTIALS_GRID_FAILED_RETRY_MESSAGE);
+#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp42_ = _tmp41_;
+#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_label_set_markup (_tmp39_, _tmp42_);
+#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp42_);
+#line 1873 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 11983 "GalleryConnector.c"
+ }
+#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL:
+#line 11987 "GalleryConnector.c"
+ {
+ GtkLabel* _tmp43_ = NULL;
+ const gchar* _tmp44_ = NULL;
+ gchar* _tmp45_ = NULL;
+ gchar* _tmp46_ = NULL;
+#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp43_ = self->priv->intro_message_label;
+#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp44_ = _ (PUBLISHING_GALLERY3_SERVICE_NAME " Site Not Found");
+#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp45_ = g_strdup_printf ("<b>%s</b>\n\n%s", _tmp44_, PUBLISHING_GALLERY3_CREDENTIALS_GRID_NOT_GALLERY_URL_MESSAGE);
+#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp46_ = _tmp45_;
+#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_label_set_markup (_tmp43_, _tmp46_);
+#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (_tmp46_);
+#line 1879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 12007 "GalleryConnector.c"
+ }
+ default:
+ {
+#line 1882 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("GalleryConnector.vala:1882: Invalid CredentialsPane mode");
+#line 12013 "GalleryConnector.c"
+ }
+ }
+#line 1886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp47_ = url;
+#line 1886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp47_ != NULL) {
+#line 12020 "GalleryConnector.c"
+ GtkEntry* _tmp48_ = NULL;
+ const gchar* _tmp49_ = NULL;
+ GtkEntry* _tmp50_ = NULL;
+#line 1887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp48_ = self->priv->url_entry;
+#line 1887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp49_ = url;
+#line 1887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_entry_set_text (_tmp48_, _tmp49_);
+#line 1888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp50_ = self->priv->username_entry;
+#line 1888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget));
+#line 12034 "GalleryConnector.c"
+ }
+#line 1890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp51_ = self->priv->url_entry;
+#line 1890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed, self, 0);
+#line 1892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp52_ = username;
+#line 1892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp52_ != NULL) {
+#line 12044 "GalleryConnector.c"
+ GtkEntry* _tmp53_ = NULL;
+ const gchar* _tmp54_ = NULL;
+ GtkEntry* _tmp55_ = NULL;
+#line 1893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp53_ = self->priv->username_entry;
+#line 1893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp54_ = username;
+#line 1893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_entry_set_text (_tmp53_, _tmp54_);
+#line 1894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp55_ = self->priv->password_entry;
+#line 1894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_widget_get_type (), GtkWidget));
+#line 12058 "GalleryConnector.c"
+ }
+#line 1896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp56_ = self->priv->username_entry;
+#line 1896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed, self, 0);
+#line 1899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp57_ = key;
+#line 1899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp57_ != NULL) {
+#line 12068 "GalleryConnector.c"
+ GtkEntry* _tmp58_ = NULL;
+ const gchar* _tmp59_ = NULL;
+ GtkEntry* _tmp60_ = NULL;
+#line 1900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp58_ = self->priv->key_entry;
+#line 1900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp59_ = key;
+#line 1900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_entry_set_text (_tmp58_, _tmp59_);
+#line 1901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp60_ = self->priv->key_entry;
+#line 1901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_widget_get_type (), GtkWidget));
+#line 12082 "GalleryConnector.c"
+ }
+#line 1903 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp61_ = self->priv->key_entry;
+#line 1903 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed, self, 0);
+#line 1906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp62_ = self->priv->go_back_button;
+#line 1906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (_tmp62_, "clicked", (GCallback) _publishing_gallery3_credentials_grid_on_go_back_button_clicked_gtk_button_clicked, self, 0);
+#line 1907 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp63_ = self->priv->login_button;
+#line 1907 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_connect_object (_tmp63_, "clicked", (GCallback) _publishing_gallery3_credentials_grid_on_login_button_clicked_gtk_button_clicked, self, 0);
+#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp65_ = url;
+#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp65_ != NULL) {
+#line 12100 "GalleryConnector.c"
+ const gchar* _tmp66_ = NULL;
+#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp66_ = username;
+#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp64_ = _tmp66_ != NULL;
+#line 12106 "GalleryConnector.c"
+ } else {
+#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp64_ = FALSE;
+#line 12110 "GalleryConnector.c"
+ }
+#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp67_ = self->priv->login_button;
+#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, gtk_widget_get_type (), GtkWidget), _tmp64_);
+#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 12118 "GalleryConnector.c"
+}
+
+
+PublishingGallery3CredentialsGrid* publishing_gallery3_credentials_grid_new (SpitPublishingPluginHost* host, PublishingGallery3CredentialsPaneMode mode, const gchar* url, const gchar* username, const gchar* key, GtkBuilder* builder) {
+#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_credentials_grid_construct (PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, host, mode, url, username, key, builder);
+#line 12125 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_grid_on_login_button_clicked (PublishingGallery3CredentialsGrid* self) {
+ GtkEntry* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ GtkEntry* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ GtkEntry* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ GtkEntry* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+#line 1911 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self));
+#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->url_entry;
+#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = gtk_entry_get_text (_tmp0_);
+#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->username_entry;
+#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = gtk_entry_get_text (_tmp2_);
+#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = self->priv->password_entry;
+#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = gtk_entry_get_text (_tmp4_);
+#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = self->priv->key_entry;
+#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = gtk_entry_get_text (_tmp6_);
+#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_emit_by_name (self, "login", _tmp1_, _tmp3_, _tmp5_, _tmp7_);
+#line 12158 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_grid_on_go_back_button_clicked (PublishingGallery3CredentialsGrid* self) {
+#line 1916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self));
+#line 1917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_emit_by_name (self, "go-back");
+#line 12167 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_grid_on_url_or_username_changed (PublishingGallery3CredentialsGrid* self) {
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
+ GtkEntry* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ GtkButton* _tmp8_ = NULL;
+#line 1920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self));
+#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->url_entry;
+#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = gtk_entry_get_text (_tmp2_);
+#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (g_strcmp0 (_tmp3_, "") != 0) {
+#line 12185 "GalleryConnector.c"
+ GtkEntry* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+#line 1923 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = self->priv->username_entry;
+#line 1923 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = gtk_entry_get_text (_tmp4_);
+#line 1923 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strcmp0 (_tmp5_, "") != 0;
+#line 12194 "GalleryConnector.c"
+ } else {
+#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = FALSE;
+#line 12198 "GalleryConnector.c"
+ }
+#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (_tmp1_) {
+#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = TRUE;
+#line 12204 "GalleryConnector.c"
+ } else {
+ GtkEntry* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+#line 1924 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = self->priv->key_entry;
+#line 1924 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = gtk_entry_get_text (_tmp6_);
+#line 1924 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = g_strcmp0 (_tmp7_, "") != 0;
+#line 12214 "GalleryConnector.c"
+ }
+#line 1921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = self->priv->login_button;
+#line 1921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), _tmp0_);
+#line 12220 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_credentials_grid_installed (PublishingGallery3CredentialsGrid* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ GtkButton* _tmp2_ = NULL;
+#line 1927 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self));
+#line 1928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->host;
+#line 1928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 1931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = self->priv->host;
+#line 1931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = self->priv->login_button;
+#line 1931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ spit_publishing_plugin_host_set_dialog_default_widget (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
+#line 12240 "GalleryConnector.c"
+}
+
+
+GtkGrid* publishing_gallery3_credentials_grid_get_pane_widget (PublishingGallery3CredentialsGrid* self) {
+ GtkGrid* result;
+ GtkGrid* _tmp0_ = NULL;
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self), NULL);
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_pane_widget;
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 12255 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_grid_set_pane_widget (PublishingGallery3CredentialsGrid* self, GtkGrid* value) {
+ GtkGrid* _tmp0_ = NULL;
+ GtkGrid* _tmp1_ = NULL;
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self));
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->_pane_widget);
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_pane_widget = _tmp1_;
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_object_notify ((GObject *) self, "pane-widget");
+#line 12274 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_grid_class_init (PublishingGallery3CredentialsGridClass * klass) {
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_grid_parent_class = g_type_class_peek_parent (klass);
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3CredentialsGridPrivate));
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (klass)->get_property = _vala_publishing_gallery3_credentials_grid_get_property;
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (klass)->set_property = _vala_publishing_gallery3_credentials_grid_set_property;
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_credentials_grid_finalize;
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET, g_param_spec_object ("pane-widget", "pane-widget", "pane-widget", gtk_grid_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_new ("go_back", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_signal_new ("login", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
+#line 12295 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_grid_instance_init (PublishingGallery3CredentialsGrid * self) {
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_CREDENTIALS_GRID_GET_PRIVATE (self);
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_pane_widget = NULL;
+#line 1823 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->host = NULL;
+#line 1824 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->builder = NULL;
+#line 1825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->intro_message_label = NULL;
+#line 1826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->url_entry = NULL;
+#line 1827 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->username_entry = NULL;
+#line 1828 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->password_entry = NULL;
+#line 1829 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->key_entry = NULL;
+#line 1830 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->login_button = NULL;
+#line 1831 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->go_back_button = NULL;
+#line 1832 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->url = NULL;
+#line 1833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->username = NULL;
+#line 1834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->key = NULL;
+#line 12328 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_credentials_grid_finalize (GObject* obj) {
+ PublishingGallery3CredentialsGrid * self;
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid);
+#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->_pane_widget);
+#line 1824 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->intro_message_label);
+#line 1826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->url_entry);
+#line 1827 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->username_entry);
+#line 1828 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->password_entry);
+#line 1829 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->key_entry);
+#line 1830 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->login_button);
+#line 1831 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (self->priv->go_back_button);
+#line 1832 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->url);
+#line 1833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->username);
+#line 1834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->key);
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_CLASS (publishing_gallery3_credentials_grid_parent_class)->finalize (obj);
+#line 12362 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_credentials_grid_get_type (void) {
+ static volatile gsize publishing_gallery3_credentials_grid_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_credentials_grid_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3CredentialsGridClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_credentials_grid_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3CredentialsGrid), 0, (GInstanceInitFunc) publishing_gallery3_credentials_grid_instance_init, NULL };
+ GType publishing_gallery3_credentials_grid_type_id;
+ publishing_gallery3_credentials_grid_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3CredentialsGrid", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_credentials_grid_type_id__volatile, publishing_gallery3_credentials_grid_type_id);
+ }
+ return publishing_gallery3_credentials_grid_type_id__volatile;
+}
+
+
+static void _vala_publishing_gallery3_credentials_grid_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
+ PublishingGallery3CredentialsGrid * self;
+ self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid);
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ switch (property_id) {
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ case PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET:
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_value_set_object (value, publishing_gallery3_credentials_grid_get_pane_widget (self));
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 12389 "GalleryConnector.c"
+ default:
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 12395 "GalleryConnector.c"
+ }
+}
+
+
+static void _vala_publishing_gallery3_credentials_grid_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
+ PublishingGallery3CredentialsGrid * self;
+ self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid);
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ switch (property_id) {
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ case PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET:
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_credentials_grid_set_pane_widget (self, g_value_get_object (value));
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 12411 "GalleryConnector.c"
+ default:
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ break;
+#line 12417 "GalleryConnector.c"
+ }
+}
+
+
+PublishingGallery3Session* publishing_gallery3_session_construct (GType object_type) {
+ PublishingGallery3Session* self = NULL;
+#line 1942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3Session*) publishing_rest_support_session_construct (object_type, NULL);
+#line 1942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 12428 "GalleryConnector.c"
+}
+
+
+PublishingGallery3Session* publishing_gallery3_session_new (void) {
+#line 1942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_session_construct (PUBLISHING_GALLERY3_TYPE_SESSION);
+#line 12435 "GalleryConnector.c"
+}
+
+
+static gboolean publishing_gallery3_session_real_is_authenticated (PublishingRESTSupportSession* base) {
+ PublishingGallery3Session * self;
+ gboolean result = FALSE;
+ const gchar* _tmp0_ = NULL;
+#line 1945 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session);
+#line 1946 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_key;
+#line 1946 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = NULL != _tmp0_;
+#line 1946 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 12451 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_session_authenticate (PublishingGallery3Session* self, const gchar* gallery_url, const gchar* username, const gchar* key) {
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self));
+#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (gallery_url != NULL);
+#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (username != NULL);
+#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (key != NULL);
+#line 1950 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = gallery_url;
+#line 1950 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_set_url (self, _tmp0_);
+#line 1951 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = username;
+#line 1951 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_set_username (self, _tmp1_);
+#line 1952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = key;
+#line 1952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_set_key (self, _tmp2_);
+#line 1954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_rest_support_session_notify_authenticated (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 12481 "GalleryConnector.c"
+}
+
+
+void publishing_gallery3_session_deauthenticate (PublishingGallery3Session* self) {
+#line 1957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self));
+#line 1958 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_set_url (self, NULL);
+#line 1959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_set_username (self, NULL);
+#line 1960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_set_key (self, NULL);
+#line 12494 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_session_get_url (PublishingGallery3Session* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self), NULL);
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_url;
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 12509 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_session_set_url (PublishingGallery3Session* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self));
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_url);
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_url = _tmp1_;
+#line 12526 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_session_get_username (PublishingGallery3Session* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self), NULL);
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_username;
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 12541 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_session_set_username (PublishingGallery3Session* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self));
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_username);
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_username = _tmp1_;
+#line 12558 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_session_get_key (PublishingGallery3Session* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self), NULL);
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_key;
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 12573 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_session_set_key (PublishingGallery3Session* self, const gchar* value) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self));
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = value;
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_key);
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_key = _tmp1_;
+#line 12590 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_session_class_init (PublishingGallery3SessionClass * klass) {
+#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_session_parent_class = g_type_class_peek_parent (klass);
+#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_gallery3_session_finalize;
+#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3SessionPrivate));
+#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = publishing_gallery3_session_real_is_authenticated;
+#line 12603 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_session_instance_init (PublishingGallery3Session * self) {
+#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_SESSION_GET_PRIVATE (self);
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_url = NULL;
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_username = NULL;
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_key = NULL;
+#line 12616 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_session_finalize (PublishingRESTSupportSession* obj) {
+ PublishingGallery3Session * self;
+#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session);
+#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_url);
+#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_username);
+#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_key);
+#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_gallery3_session_parent_class)->finalize (obj);
+#line 12632 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_session_get_type (void) {
+ static volatile gsize publishing_gallery3_session_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_session_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3SessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3Session), 0, (GInstanceInitFunc) publishing_gallery3_session_instance_init, NULL };
+ GType publishing_gallery3_session_type_id;
+ publishing_gallery3_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingGallery3Session", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_session_type_id__volatile, publishing_gallery3_session_type_id);
+ }
+ return publishing_gallery3_session_type_id__volatile;
+}
+
+
+PublishingGallery3Uploader* publishing_gallery3_uploader_construct (GType object_type, PublishingGallery3Session* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingGallery3PublishingParameters* parameters) {
+ PublishingGallery3Uploader* self = NULL;
+ PublishingGallery3Session* _tmp0_ = NULL;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingGallery3PublishingParameters* _tmp2_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp3_ = NULL;
+#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL);
+#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 1994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = session;
+#line 1994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishables;
+#line 1994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1__length1 = publishables_length1;
+#line 1994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = (PublishingGallery3Uploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp1__length1);
+#line 1996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = parameters;
+#line 1996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = _publishing_gallery3_publishing_parameters_ref0 (_tmp2_);
+#line 1996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters);
+#line 1996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->parameters = _tmp3_;
+#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self;
+#line 12677 "GalleryConnector.c"
+}
+
+
+PublishingGallery3Uploader* publishing_gallery3_uploader_new (PublishingGallery3Session* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingGallery3PublishingParameters* parameters) {
+#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return publishing_gallery3_uploader_construct (PUBLISHING_GALLERY3_TYPE_UPLOADER, session, publishables, publishables_length1, parameters);
+#line 12684 "GalleryConnector.c"
+}
+
+
+static gpointer _publishing_rest_support_transaction_ref0 (gpointer self) {
+#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return self ? publishing_rest_support_transaction_ref (self) : NULL;
+#line 12691 "GalleryConnector.c"
+}
+
+
+static PublishingRESTSupportTransaction* publishing_gallery3_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) {
+ PublishingGallery3Uploader * self;
+ PublishingRESTSupportTransaction* result = NULL;
+ SpitPublishingPublishable* p = NULL;
+ SpitPublishingPublishable* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ SpitPublishingPublisherMediaType _tmp2_ = 0;
+ PublishingRESTSupportSession* _tmp3_ = NULL;
+ PublishingGallery3Session* _tmp4_ = NULL;
+ PublishingGallery3PublishingParameters* _tmp5_ = NULL;
+ PublishingGallery3GalleryUploadTransaction* _tmp6_ = NULL;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ PublishingRESTSupportTransaction* _tmp8_ = NULL;
+#line 2000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3Uploader);
+#line 2000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 2003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 2003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ p = _tmp0_;
+#line 2004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = spit_publishing_publishable_get_param_string (p, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME);
+#line 2004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_current_publishable_name);
+#line 2004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_current_publishable_name = _tmp1_;
+#line 2006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = spit_publishing_publishable_get_media_type (p);
+#line 2006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_current_media_type = _tmp2_;
+#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session);
+#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = self->priv->parameters;
+#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = publishing_gallery3_gallery_upload_transaction_new (_tmp4_, _tmp5_, p);
+#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (self->priv->_current_transaction);
+#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv->_current_transaction = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction);
+#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_session_unref0 (_tmp4_);
+#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = self->priv->_current_transaction;
+#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp8_ = _publishing_rest_support_transaction_ref0 (_tmp7_);
+#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp8_;
+#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_object_unref0 (p);
+#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 12750 "GalleryConnector.c"
+}
+
+
+const gchar* publishing_gallery3_uploader_get_current_publishable_name (PublishingGallery3Uploader* self) {
+ const gchar* result;
+ const gchar* _tmp0_ = NULL;
+#line 1974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_UPLOADER (self), NULL);
+#line 1975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_current_publishable_name;
+#line 1975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 12765 "GalleryConnector.c"
+}
+
+
+guint publishing_gallery3_uploader_get_status_code (PublishingGallery3Uploader* self) {
+ guint result;
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+#line 1979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_UPLOADER (self), 0U);
+#line 1980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_current_transaction;
+#line 1980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = publishing_rest_support_transaction_get_status_code (_tmp0_);
+#line 1980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp1_;
+#line 1980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 12783 "GalleryConnector.c"
+}
+
+
+SpitPublishingPublisherMediaType publishing_gallery3_uploader_get_current_publishable_type (PublishingGallery3Uploader* self) {
+ SpitPublishingPublisherMediaType result;
+ SpitPublishingPublisherMediaType _tmp0_ = 0;
+#line 1985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (PUBLISHING_GALLERY3_IS_UPLOADER (self), 0);
+#line 1986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = self->priv->_current_media_type;
+#line 1986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp0_;
+#line 1986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 12798 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_uploader_class_init (PublishingGallery3UploaderClass * klass) {
+#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ publishing_gallery3_uploader_parent_class = g_type_class_peek_parent (klass);
+#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_gallery3_uploader_finalize;
+#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_type_class_add_private (klass, sizeof (PublishingGallery3UploaderPrivate));
+#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = publishing_gallery3_uploader_real_create_transaction;
+#line 12811 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_uploader_instance_init (PublishingGallery3Uploader * self) {
+#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self->priv = PUBLISHING_GALLERY3_UPLOADER_GET_PRIVATE (self);
+#line 12818 "GalleryConnector.c"
+}
+
+
+static void publishing_gallery3_uploader_finalize (PublishingRESTSupportBatchUploader* obj) {
+ PublishingGallery3Uploader * self;
+#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3Uploader);
+#line 1967 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters);
+#line 1968 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _g_free0 (self->priv->_current_publishable_name);
+#line 1970 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _publishing_rest_support_transaction_unref0 (self->priv->_current_transaction);
+#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_gallery3_uploader_parent_class)->finalize (obj);
+#line 12834 "GalleryConnector.c"
+}
+
+
+GType publishing_gallery3_uploader_get_type (void) {
+ static volatile gsize publishing_gallery3_uploader_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_gallery3_uploader_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3UploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3Uploader), 0, (GInstanceInitFunc) publishing_gallery3_uploader_instance_init, NULL };
+ GType publishing_gallery3_uploader_type_id;
+ publishing_gallery3_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingGallery3Uploader", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_gallery3_uploader_type_id__volatile, publishing_gallery3_uploader_type_id);
+ }
+ return publishing_gallery3_uploader_type_id__volatile;
+}
+
+
+static gint string_last_index_of (const gchar* self, const gchar* needle, gint start_index) {
+ gint result = 0;
+ gchar* _result_ = NULL;
+ gint _tmp0_ = 0;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 997 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, 0);
+#line 997 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (needle != NULL, 0);
+#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = start_index;
+#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = needle;
+#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = g_strrstr (((gchar*) self) + _tmp0_, (gchar*) _tmp1_);
+#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp2_;
+#line 1000 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = _result_;
+#line 1000 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp3_ != NULL) {
+#line 12873 "GalleryConnector.c"
+ gchar* _tmp4_ = NULL;
+#line 1001 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = _result_;
+#line 1001 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = (gint) (_tmp4_ - ((gchar*) self));
+#line 1001 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 12881 "GalleryConnector.c"
+ } else {
+#line 1003 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = -1;
+#line 1003 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 12887 "GalleryConnector.c"
+ }
+}
+
+
+gchar* publishing_gallery3_strip_session_url (const gchar* url) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gint item_loc = 0;
+ const gchar* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ const gchar* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ gchar* _tmp7_ = NULL;
+#line 2017 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 2020 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp0_ = url;
+#line 2020 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_debug ("GalleryConnector.vala:2020: Searching for \"%s\" in \"%s\"", PUBLISHING_GALLERY3_REST_PATH, _tmp0_);
+#line 2022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp1_ = url;
+#line 2022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp2_ = string_last_index_of (_tmp1_, PUBLISHING_GALLERY3_REST_PATH, 0);
+#line 2022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ item_loc = _tmp2_;
+#line 2025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ if (-1 == item_loc) {
+#line 12916 "GalleryConnector.c"
+ const gchar* _tmp3_ = NULL;
+#line 2026 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp3_ = url;
+#line 2026 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ g_error ("Did not find \"%s\" in the base of the new item " "URL \"%s\"", PUBLISHING_GALLERY3_REST_PATH, _tmp3_);
+#line 12922 "GalleryConnector.c"
+ }
+#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp4_ = url;
+#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp5_ = strlen (PUBLISHING_GALLERY3_REST_PATH);
+#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp6_ = _tmp5_;
+#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ _tmp7_ = string_substring (_tmp4_, (glong) (item_loc + _tmp6_), (glong) -1);
+#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ result = _tmp7_;
+#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala"
+ return result;
+#line 12936 "GalleryConnector.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/plugins/shotwell-publishing-extras/GalleryConnector.vala b/plugins/shotwell-publishing-extras/GalleryConnector.vala
index 6eb5a3a..ee7bd19 100644
--- a/plugins/shotwell-publishing-extras/GalleryConnector.vala
+++ b/plugins/shotwell-publishing-extras/GalleryConnector.vala
@@ -5,9 +5,9 @@
*/
-static const string G3_VERSION = "0.1";
+const string G3_VERSION = "0.1";
-static const string G3_LICENSE = """
+const string G3_LICENSE = """
The Gallery3Publishing module is free software; you can redistribute it
and/or modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either version 2.1
@@ -24,7 +24,7 @@ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA
""";
-static const string WEBSITE_URL =
+const string WEBSITE_URL =
"https://github.com/sappjw/shotwell-gallery3";
// This module's Spit.Module
@@ -63,8 +63,8 @@ public class Gallery3Service : Object, Spit.Pluggable,
public Gallery3Service(GLib.File resource_directory) {
if (icon_pixbuf_set == null)
- icon_pixbuf_set = Resources.load_icon_set(
- resource_directory.get_child(ICON_FILENAME));
+ icon_pixbuf_set = Resources.load_from_resource
+ (Resources.RESOURCE_PATH + "/" + ICON_FILENAME);
}
public int get_pluggable_interface(int min_host_interface,
@@ -1011,9 +1011,8 @@ public class GalleryPublisher : Spit.Publishing.Publisher, GLib.Object {
Gtk.Builder builder = new Gtk.Builder();
try {
- builder.add_from_file(
- host.get_module_file().get_parent().get_child(
- "gallery3_publishing_options_pane.glade").get_path());
+ builder.add_from_resource(Resources.RESOURCE_PATH +
+ "/gallery3_publishing_options_pane.ui");
}
catch (Error e) {
warning("Could not parse UI file! Error: %s.", e.message);
@@ -1764,9 +1763,8 @@ internal class CredentialsPane : Spit.Publishing.DialogPane, GLib.Object {
Gtk.Builder builder = new Gtk.Builder();
try {
- builder.add_from_file(
- host.get_module_file().get_parent().get_child(
- "gallery3_authentication_pane.glade").get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH +
+ "/gallery3_authentication_pane.ui");
}
catch (Error e) {
warning("Could not parse UI file! Error: %s.", e.message);
diff --git a/plugins/shotwell-publishing-extras/Makefile b/plugins/shotwell-publishing-extras/Makefile
deleted file mode 100644
index 83a42c2..0000000
--- a/plugins/shotwell-publishing-extras/Makefile
+++ /dev/null
@@ -1,34 +0,0 @@
-
-PLUGIN := shotwell-publishing-extras
-
-PLUGIN_PKGS := \
- gtk+-3.0 \
- libsoup-2.4 \
- libxml-2.0 \
- webkit2gtk-4.0 \
- gee-0.8 \
- rest-0.7 \
- json-glib-1.0
-
-SRC_FILES := \
- GalleryConnector.vala \
- shotwell-publishing-extras.vala \
- YandexPublishing.vala \
- TumblrPublishing.vala \
- RajcePublishing.vala \
-
-# RC_FILES must also be added to ../plugins.mk to ensure they're installed properly
-RC_FILES := \
- gallery3.png \
- gallery3_authentication_pane.glade \
- gallery3_publishing_options_pane.glade \
- yandex_publish_model.glade \
- tumblr.png \
- tumblr_authentication_pane.glade \
- tumblr_publishing_options_pane.glade \
- rajce.png \
- rajce_authentication_pane.glade \
- rajce_publishing_options_pane.glade
-
-include ../Makefile.plugin.mk
-
diff --git a/plugins/shotwell-publishing-extras/RajcePublishing.c b/plugins/shotwell-publishing-extras/RajcePublishing.c
new file mode 100644
index 0000000..3653b1b
--- /dev/null
+++ b/plugins/shotwell-publishing-extras/RajcePublishing.c
@@ -0,0 +1,11473 @@
+/* RajcePublishing.c generated by valac 0.32.1, the Vala compiler
+ * generated from RajcePublishing.vala, do not modify */
+
+/* Copyright 2014 rajce.net
+ *
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include "shotwell-plugin-common.h"
+#include <glib/gi18n-lib.h>
+#include <gtk/gtk.h>
+#include <libxml/tree.h>
+#include <gee.h>
+#include <float.h>
+#include <math.h>
+#include <libxml/parser.h>
+#include <libsoup/soup.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_RAJCE_SERVICE (rajce_service_get_type ())
+#define RAJCE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAJCE_SERVICE, RajceService))
+#define RAJCE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAJCE_SERVICE, RajceServiceClass))
+#define IS_RAJCE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAJCE_SERVICE))
+#define IS_RAJCE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAJCE_SERVICE))
+#define RAJCE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAJCE_SERVICE, RajceServiceClass))
+
+typedef struct _RajceService RajceService;
+typedef struct _RajceServiceClass RajceServiceClass;
+typedef struct _RajceServicePrivate RajceServicePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER (publishing_rajce_rajce_publisher_get_type ())
+#define PUBLISHING_RAJCE_RAJCE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher))
+#define PUBLISHING_RAJCE_RAJCE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisherClass))
+#define PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER))
+#define PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER))
+#define PUBLISHING_RAJCE_RAJCE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisherClass))
+
+typedef struct _PublishingRajceRajcePublisher PublishingRajceRajcePublisher;
+typedef struct _PublishingRajceRajcePublisherClass PublishingRajceRajcePublisherClass;
+typedef struct _PublishingRajceRajcePublisherPrivate PublishingRajceRajcePublisherPrivate;
+
+#define PUBLISHING_RAJCE_TYPE_SESSION (publishing_rajce_session_get_type ())
+#define PUBLISHING_RAJCE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession))
+#define PUBLISHING_RAJCE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSessionClass))
+#define PUBLISHING_RAJCE_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_SESSION))
+#define PUBLISHING_RAJCE_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_SESSION))
+#define PUBLISHING_RAJCE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSessionClass))
+
+typedef struct _PublishingRajceSession PublishingRajceSession;
+typedef struct _PublishingRajceSessionClass PublishingRajceSessionClass;
+
+#define PUBLISHING_RAJCE_TYPE_ALBUM (publishing_rajce_album_get_type ())
+#define PUBLISHING_RAJCE_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbum))
+#define PUBLISHING_RAJCE_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbumClass))
+#define PUBLISHING_RAJCE_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_ALBUM))
+#define PUBLISHING_RAJCE_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_ALBUM))
+#define PUBLISHING_RAJCE_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbumClass))
+
+typedef struct _PublishingRajceAlbum PublishingRajceAlbum;
+typedef struct _PublishingRajceAlbumClass PublishingRajceAlbumClass;
+
+#define PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS (publishing_rajce_publishing_parameters_get_type ())
+#define PUBLISHING_RAJCE_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParameters))
+#define PUBLISHING_RAJCE_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParametersClass))
+#define PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_RAJCE_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParametersClass))
+
+typedef struct _PublishingRajcePublishingParameters PublishingRajcePublishingParameters;
+typedef struct _PublishingRajcePublishingParametersClass PublishingRajcePublishingParametersClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL)))
+#define _publishing_rajce_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_publishing_parameters_unref (var), NULL)))
+
+#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_TYPE_MODE (publishing_rajce_authentication_pane_mode_get_type ())
+
+#define PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE (publishing_rajce_authentication_pane_get_type ())
+#define PUBLISHING_RAJCE_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane))
+#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPaneClass))
+#define PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE))
+#define PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE))
+#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPaneClass))
+
+typedef struct _PublishingRajceAuthenticationPane PublishingRajceAuthenticationPane;
+typedef struct _PublishingRajceAuthenticationPaneClass PublishingRajceAuthenticationPaneClass;
+
+#define PUBLISHING_RAJCE_TYPE_TRANSACTION (publishing_rajce_transaction_get_type ())
+#define PUBLISHING_RAJCE_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_TRANSACTION, PublishingRajceTransaction))
+#define PUBLISHING_RAJCE_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_TRANSACTION, PublishingRajceTransactionClass))
+#define PUBLISHING_RAJCE_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_TRANSACTION))
+#define PUBLISHING_RAJCE_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_TRANSACTION))
+#define PUBLISHING_RAJCE_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_TRANSACTION, PublishingRajceTransactionClass))
+
+typedef struct _PublishingRajceTransaction PublishingRajceTransaction;
+typedef struct _PublishingRajceTransactionClass PublishingRajceTransactionClass;
+
+#define PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION (publishing_rajce_session_login_transaction_get_type ())
+#define PUBLISHING_RAJCE_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, PublishingRajceSessionLoginTransaction))
+#define PUBLISHING_RAJCE_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, PublishingRajceSessionLoginTransactionClass))
+#define PUBLISHING_RAJCE_IS_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION))
+#define PUBLISHING_RAJCE_IS_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION))
+#define PUBLISHING_RAJCE_SESSION_LOGIN_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, PublishingRajceSessionLoginTransactionClass))
+
+typedef struct _PublishingRajceSessionLoginTransaction PublishingRajceSessionLoginTransaction;
+typedef struct _PublishingRajceSessionLoginTransactionClass PublishingRajceSessionLoginTransactionClass;
+#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL)))
+
+#define PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION (publishing_rajce_get_albums_transaction_get_type ())
+#define PUBLISHING_RAJCE_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, PublishingRajceGetAlbumsTransaction))
+#define PUBLISHING_RAJCE_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, PublishingRajceGetAlbumsTransactionClass))
+#define PUBLISHING_RAJCE_IS_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION))
+#define PUBLISHING_RAJCE_IS_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION))
+#define PUBLISHING_RAJCE_GET_ALBUMS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, PublishingRajceGetAlbumsTransactionClass))
+
+typedef struct _PublishingRajceGetAlbumsTransaction PublishingRajceGetAlbumsTransaction;
+typedef struct _PublishingRajceGetAlbumsTransactionClass PublishingRajceGetAlbumsTransactionClass;
+#define _publishing_rajce_album_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_album_unref (var), NULL)))
+
+#define PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE (publishing_rajce_publishing_options_pane_get_type ())
+#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane))
+#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPaneClass))
+#define PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPaneClass))
+
+typedef struct _PublishingRajcePublishingOptionsPane PublishingRajcePublishingOptionsPane;
+typedef struct _PublishingRajcePublishingOptionsPaneClass PublishingRajcePublishingOptionsPaneClass;
+typedef struct _PublishingRajcePublishingParametersPrivate PublishingRajcePublishingParametersPrivate;
+
+#define PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION (publishing_rajce_create_album_transaction_get_type ())
+#define PUBLISHING_RAJCE_CREATE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, PublishingRajceCreateAlbumTransaction))
+#define PUBLISHING_RAJCE_CREATE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, PublishingRajceCreateAlbumTransactionClass))
+#define PUBLISHING_RAJCE_IS_CREATE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION))
+#define PUBLISHING_RAJCE_IS_CREATE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION))
+#define PUBLISHING_RAJCE_CREATE_ALBUM_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, PublishingRajceCreateAlbumTransactionClass))
+
+typedef struct _PublishingRajceCreateAlbumTransaction PublishingRajceCreateAlbumTransaction;
+typedef struct _PublishingRajceCreateAlbumTransactionClass PublishingRajceCreateAlbumTransactionClass;
+
+#define PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION (publishing_rajce_open_album_transaction_get_type ())
+#define PUBLISHING_RAJCE_OPEN_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, PublishingRajceOpenAlbumTransaction))
+#define PUBLISHING_RAJCE_OPEN_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, PublishingRajceOpenAlbumTransactionClass))
+#define PUBLISHING_RAJCE_IS_OPEN_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION))
+#define PUBLISHING_RAJCE_IS_OPEN_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION))
+#define PUBLISHING_RAJCE_OPEN_ALBUM_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, PublishingRajceOpenAlbumTransactionClass))
+
+typedef struct _PublishingRajceOpenAlbumTransaction PublishingRajceOpenAlbumTransaction;
+typedef struct _PublishingRajceOpenAlbumTransactionClass PublishingRajceOpenAlbumTransactionClass;
+
+#define PUBLISHING_RAJCE_TYPE_UPLOADER (publishing_rajce_uploader_get_type ())
+#define PUBLISHING_RAJCE_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploader))
+#define PUBLISHING_RAJCE_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploaderClass))
+#define PUBLISHING_RAJCE_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_UPLOADER))
+#define PUBLISHING_RAJCE_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_UPLOADER))
+#define PUBLISHING_RAJCE_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploaderClass))
+
+typedef struct _PublishingRajceUploader PublishingRajceUploader;
+typedef struct _PublishingRajceUploaderClass PublishingRajceUploaderClass;
+#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL)))
+
+#define PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION (publishing_rajce_get_album_url_transaction_get_type ())
+#define PUBLISHING_RAJCE_GET_ALBUM_URL_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, PublishingRajceGetAlbumUrlTransaction))
+#define PUBLISHING_RAJCE_GET_ALBUM_URL_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, PublishingRajceGetAlbumUrlTransactionClass))
+#define PUBLISHING_RAJCE_IS_GET_ALBUM_URL_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION))
+#define PUBLISHING_RAJCE_IS_GET_ALBUM_URL_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION))
+#define PUBLISHING_RAJCE_GET_ALBUM_URL_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, PublishingRajceGetAlbumUrlTransactionClass))
+
+typedef struct _PublishingRajceGetAlbumUrlTransaction PublishingRajceGetAlbumUrlTransaction;
+typedef struct _PublishingRajceGetAlbumUrlTransactionClass PublishingRajceGetAlbumUrlTransactionClass;
+
+#define PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION (publishing_rajce_close_album_transaction_get_type ())
+#define PUBLISHING_RAJCE_CLOSE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, PublishingRajceCloseAlbumTransaction))
+#define PUBLISHING_RAJCE_CLOSE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, PublishingRajceCloseAlbumTransactionClass))
+#define PUBLISHING_RAJCE_IS_CLOSE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION))
+#define PUBLISHING_RAJCE_IS_CLOSE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION))
+#define PUBLISHING_RAJCE_CLOSE_ALBUM_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, PublishingRajceCloseAlbumTransactionClass))
+
+typedef struct _PublishingRajceCloseAlbumTransaction PublishingRajceCloseAlbumTransaction;
+typedef struct _PublishingRajceCloseAlbumTransactionClass PublishingRajceCloseAlbumTransactionClass;
+typedef struct _PublishingRajceAlbumPrivate PublishingRajceAlbumPrivate;
+typedef struct _PublishingRajceParamSpecAlbum PublishingRajceParamSpecAlbum;
+typedef struct _PublishingRajceUploaderPrivate PublishingRajceUploaderPrivate;
+
+#define PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION (publishing_rajce_add_photo_transaction_get_type ())
+#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransaction))
+#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransactionClass))
+#define PUBLISHING_RAJCE_IS_ADD_PHOTO_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION))
+#define PUBLISHING_RAJCE_IS_ADD_PHOTO_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION))
+#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransactionClass))
+
+typedef struct _PublishingRajceAddPhotoTransaction PublishingRajceAddPhotoTransaction;
+typedef struct _PublishingRajceAddPhotoTransactionClass PublishingRajceAddPhotoTransactionClass;
+typedef struct _PublishingRajceAuthenticationPanePrivate PublishingRajceAuthenticationPanePrivate;
+typedef struct _PublishingRajcePublishingOptionsPanePrivate PublishingRajcePublishingOptionsPanePrivate;
+typedef struct _PublishingRajceParamSpecPublishingParameters PublishingRajceParamSpecPublishingParameters;
+typedef struct _PublishingRajceSessionPrivate PublishingRajceSessionPrivate;
+
+#define PUBLISHING_RAJCE_TYPE_ARG_ITEM (publishing_rajce_arg_item_get_type ())
+#define PUBLISHING_RAJCE_ARG_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItem))
+#define PUBLISHING_RAJCE_ARG_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItemClass))
+#define PUBLISHING_RAJCE_IS_ARG_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_ARG_ITEM))
+#define PUBLISHING_RAJCE_IS_ARG_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_ARG_ITEM))
+#define PUBLISHING_RAJCE_ARG_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItemClass))
+
+typedef struct _PublishingRajceArgItem PublishingRajceArgItem;
+typedef struct _PublishingRajceArgItemClass PublishingRajceArgItemClass;
+typedef struct _PublishingRajceArgItemPrivate PublishingRajceArgItemPrivate;
+#define _publishing_rajce_arg_item_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_arg_item_unref (var), NULL)))
+typedef struct _PublishingRajceParamSpecArgItem PublishingRajceParamSpecArgItem;
+
+#define PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST (publishing_rajce_live_api_request_get_type ())
+#define PUBLISHING_RAJCE_LIVE_API_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequest))
+#define PUBLISHING_RAJCE_LIVE_API_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequestClass))
+#define PUBLISHING_RAJCE_IS_LIVE_API_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST))
+#define PUBLISHING_RAJCE_IS_LIVE_API_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST))
+#define PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequestClass))
+
+typedef struct _PublishingRajceLiveApiRequest PublishingRajceLiveApiRequest;
+typedef struct _PublishingRajceLiveApiRequestClass PublishingRajceLiveApiRequestClass;
+typedef struct _PublishingRajceLiveApiRequestPrivate PublishingRajceLiveApiRequestPrivate;
+typedef struct _PublishingRajceParamSpecLiveApiRequest PublishingRajceParamSpecLiveApiRequest;
+typedef struct _PublishingRajceTransactionPrivate PublishingRajceTransactionPrivate;
+typedef struct _PublishingRajceSessionLoginTransactionPrivate PublishingRajceSessionLoginTransactionPrivate;
+#define _publishing_rajce_live_api_request_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_live_api_request_unref (var), NULL)))
+typedef struct _PublishingRajceGetAlbumsTransactionPrivate PublishingRajceGetAlbumsTransactionPrivate;
+typedef struct _PublishingRajceCreateAlbumTransactionPrivate PublishingRajceCreateAlbumTransactionPrivate;
+typedef struct _PublishingRajceOpenAlbumTransactionPrivate PublishingRajceOpenAlbumTransactionPrivate;
+typedef struct _PublishingRajceGetAlbumUrlTransactionPrivate PublishingRajceGetAlbumUrlTransactionPrivate;
+typedef struct _PublishingRajceCloseAlbumTransactionPrivate PublishingRajceCloseAlbumTransactionPrivate;
+
+#define PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION (publishing_rajce_get_categories_transaction_get_type ())
+#define PUBLISHING_RAJCE_GET_CATEGORIES_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, PublishingRajceGetCategoriesTransaction))
+#define PUBLISHING_RAJCE_GET_CATEGORIES_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, PublishingRajceGetCategoriesTransactionClass))
+#define PUBLISHING_RAJCE_IS_GET_CATEGORIES_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION))
+#define PUBLISHING_RAJCE_IS_GET_CATEGORIES_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION))
+#define PUBLISHING_RAJCE_GET_CATEGORIES_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, PublishingRajceGetCategoriesTransactionClass))
+
+typedef struct _PublishingRajceGetCategoriesTransaction PublishingRajceGetCategoriesTransaction;
+typedef struct _PublishingRajceGetCategoriesTransactionClass PublishingRajceGetCategoriesTransactionClass;
+typedef struct _PublishingRajceGetCategoriesTransactionPrivate PublishingRajceGetCategoriesTransactionPrivate;
+typedef struct _PublishingRajceAddPhotoTransactionPrivate PublishingRajceAddPhotoTransactionPrivate;
+#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
+#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 _RajceService {
+ GObject parent_instance;
+ RajceServicePrivate * priv;
+};
+
+struct _RajceServiceClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingRajceRajcePublisher {
+ GObject parent_instance;
+ PublishingRajceRajcePublisherPrivate * priv;
+};
+
+struct _PublishingRajceRajcePublisherClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingRajceRajcePublisherPrivate {
+ SpitPublishingPluginHost* host;
+ SpitPublishingProgressCallback progress_reporter;
+ gpointer progress_reporter_target;
+ GDestroyNotify progress_reporter_target_destroy_notify;
+ SpitPublishingService* service;
+ gboolean running;
+ PublishingRajceSession* session;
+ PublishingRajceAlbum** albums;
+ gint albums_length1;
+ gint _albums_size_;
+ PublishingRajcePublishingParameters* parameters;
+ SpitPublishingPublisherMediaType media_type;
+};
+
+typedef enum {
+ PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO,
+ PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER
+} PublishingRajceAuthenticationPaneMode;
+
+struct _PublishingRajcePublishingParameters {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRajcePublishingParametersPrivate * priv;
+ gchar* album_name;
+ gboolean* album_hidden;
+ gint* album_id;
+};
+
+struct _PublishingRajcePublishingParametersClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRajcePublishingParameters *self);
+};
+
+struct _PublishingRajceAlbum {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRajceAlbumPrivate * priv;
+ gint id;
+ gchar* albumName;
+ gchar* url;
+ gchar* thumbUrl;
+ gchar* createDate;
+ gchar* updateDate;
+ gboolean hidden;
+ gboolean secure;
+ gint photoCount;
+};
+
+struct _PublishingRajceAlbumClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRajceAlbum *self);
+};
+
+struct _PublishingRajceParamSpecAlbum {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingRajceUploader {
+ PublishingRESTSupportBatchUploader parent_instance;
+ PublishingRajceUploaderPrivate * priv;
+};
+
+struct _PublishingRajceUploaderClass {
+ PublishingRESTSupportBatchUploaderClass parent_class;
+};
+
+struct _PublishingRajceUploaderPrivate {
+ PublishingRajcePublishingParameters* parameters;
+ gchar* url;
+};
+
+struct _PublishingRajceAuthenticationPane {
+ GObject parent_instance;
+ PublishingRajceAuthenticationPanePrivate * priv;
+};
+
+struct _PublishingRajceAuthenticationPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingRajceAuthenticationPanePrivate {
+ GtkBox* pane_widget;
+ GtkBuilder* builder;
+ GtkEntry* username_entry;
+ GtkEntry* password_entry;
+ GtkCheckButton* remember_checkbutton;
+ GtkButton* login_button;
+ gboolean crypt;
+};
+
+struct _PublishingRajcePublishingOptionsPane {
+ GObject parent_instance;
+ PublishingRajcePublishingOptionsPanePrivate * priv;
+};
+
+struct _PublishingRajcePublishingOptionsPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingRajcePublishingOptionsPanePrivate {
+ PublishingRajceRajcePublisher* publisher;
+ PublishingRajceAlbum** albums;
+ gint albums_length1;
+ gint _albums_size_;
+ gchar* username;
+ GtkBuilder* builder;
+ GtkBox* pane_widget;
+ GtkLabel* login_identity_label;
+ GtkLabel* publish_to_label;
+ GtkRadioButton* use_existing_radio;
+ GtkComboBoxText* existing_albums_combo;
+ GtkRadioButton* create_new_radio;
+ GtkEntry* new_album_entry;
+ GtkCheckButton* hide_check;
+ GtkCheckButton* show_check;
+ GtkButton* publish_button;
+ GtkButton* logout_button;
+};
+
+struct _PublishingRajceParamSpecPublishingParameters {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingRajceSession {
+ PublishingRESTSupportSession parent_instance;
+ PublishingRajceSessionPrivate * priv;
+};
+
+struct _PublishingRajceSessionClass {
+ PublishingRESTSupportSessionClass parent_class;
+};
+
+struct _PublishingRajceSessionPrivate {
+ gchar* usertoken;
+ gchar* albumtoken;
+ gchar* albumticket;
+ gchar* username;
+ gint* userid;
+ gint* maxsize;
+ gint* quality;
+};
+
+struct _PublishingRajceArgItem {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRajceArgItemPrivate * priv;
+ gchar* key;
+ gchar* val;
+ PublishingRajceArgItem** children;
+ gint children_length1;
+ gint _children_size_;
+};
+
+struct _PublishingRajceArgItemClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRajceArgItem *self);
+};
+
+struct _PublishingRajceParamSpecArgItem {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingRajceLiveApiRequest {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingRajceLiveApiRequestPrivate * priv;
+};
+
+struct _PublishingRajceLiveApiRequestClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingRajceLiveApiRequest *self);
+};
+
+struct _PublishingRajceLiveApiRequestPrivate {
+ PublishingRajceArgItem** _params;
+ gint _params_length1;
+ gint __params_size_;
+ gchar* _cmd;
+};
+
+struct _PublishingRajceParamSpecLiveApiRequest {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingRajceTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingRajceTransactionPrivate * priv;
+};
+
+struct _PublishingRajceTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingRajceSessionLoginTransaction {
+ PublishingRajceTransaction parent_instance;
+ PublishingRajceSessionLoginTransactionPrivate * priv;
+};
+
+struct _PublishingRajceSessionLoginTransactionClass {
+ PublishingRajceTransactionClass parent_class;
+};
+
+struct _PublishingRajceGetAlbumsTransaction {
+ PublishingRajceTransaction parent_instance;
+ PublishingRajceGetAlbumsTransactionPrivate * priv;
+};
+
+struct _PublishingRajceGetAlbumsTransactionClass {
+ PublishingRajceTransactionClass parent_class;
+};
+
+struct _PublishingRajceCreateAlbumTransaction {
+ PublishingRajceTransaction parent_instance;
+ PublishingRajceCreateAlbumTransactionPrivate * priv;
+};
+
+struct _PublishingRajceCreateAlbumTransactionClass {
+ PublishingRajceTransactionClass parent_class;
+};
+
+struct _PublishingRajceOpenAlbumTransaction {
+ PublishingRajceTransaction parent_instance;
+ PublishingRajceOpenAlbumTransactionPrivate * priv;
+};
+
+struct _PublishingRajceOpenAlbumTransactionClass {
+ PublishingRajceTransactionClass parent_class;
+};
+
+struct _PublishingRajceGetAlbumUrlTransaction {
+ PublishingRajceTransaction parent_instance;
+ PublishingRajceGetAlbumUrlTransactionPrivate * priv;
+};
+
+struct _PublishingRajceGetAlbumUrlTransactionClass {
+ PublishingRajceTransactionClass parent_class;
+};
+
+struct _PublishingRajceCloseAlbumTransaction {
+ PublishingRajceTransaction parent_instance;
+ PublishingRajceCloseAlbumTransactionPrivate * priv;
+};
+
+struct _PublishingRajceCloseAlbumTransactionClass {
+ PublishingRajceTransactionClass parent_class;
+};
+
+struct _PublishingRajceGetCategoriesTransaction {
+ PublishingRajceTransaction parent_instance;
+ PublishingRajceGetCategoriesTransactionPrivate * priv;
+};
+
+struct _PublishingRajceGetCategoriesTransactionClass {
+ PublishingRajceTransactionClass parent_class;
+};
+
+struct _PublishingRajceAddPhotoTransaction {
+ PublishingRESTSupportUploadTransaction parent_instance;
+ PublishingRajceAddPhotoTransactionPrivate * priv;
+};
+
+struct _PublishingRajceAddPhotoTransactionClass {
+ PublishingRESTSupportUploadTransactionClass parent_class;
+};
+
+struct _PublishingRajceAddPhotoTransactionPrivate {
+ PublishingRajcePublishingParameters* parameters;
+};
+
+
+static gpointer rajce_service_parent_class = NULL;
+static GdkPixbuf** rajce_service_icon_pixbuf_set;
+static gint rajce_service_icon_pixbuf_set_length1;
+static GdkPixbuf** rajce_service_icon_pixbuf_set = NULL;
+static gint rajce_service_icon_pixbuf_set_length1 = 0;
+static gint _rajce_service_icon_pixbuf_set_size_ = 0;
+static SpitPluggableIface* rajce_service_spit_pluggable_parent_iface = NULL;
+static SpitPublishingServiceIface* rajce_service_spit_publishing_service_parent_iface = NULL;
+static gpointer publishing_rajce_rajce_publisher_parent_class = NULL;
+static SpitPublishingPublisherIface* publishing_rajce_rajce_publisher_spit_publishing_publisher_parent_iface = NULL;
+static gpointer publishing_rajce_album_parent_class = NULL;
+static gpointer publishing_rajce_uploader_parent_class = NULL;
+static gpointer publishing_rajce_authentication_pane_parent_class = NULL;
+static gchar* publishing_rajce_authentication_pane_INTRO_MESSAGE;
+static gchar* publishing_rajce_authentication_pane_INTRO_MESSAGE = NULL;
+static gchar* publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE;
+static gchar* publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE = NULL;
+static SpitPublishingDialogPaneIface* publishing_rajce_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_rajce_publishing_options_pane_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_rajce_publishing_parameters_parent_class = NULL;
+static gpointer publishing_rajce_session_parent_class = NULL;
+static gpointer publishing_rajce_arg_item_parent_class = NULL;
+static gpointer publishing_rajce_live_api_request_parent_class = NULL;
+static gpointer publishing_rajce_transaction_parent_class = NULL;
+static gpointer publishing_rajce_session_login_transaction_parent_class = NULL;
+static gpointer publishing_rajce_get_albums_transaction_parent_class = NULL;
+static gpointer publishing_rajce_create_album_transaction_parent_class = NULL;
+static gpointer publishing_rajce_open_album_transaction_parent_class = NULL;
+static gpointer publishing_rajce_get_album_url_transaction_parent_class = NULL;
+static gpointer publishing_rajce_close_album_transaction_parent_class = NULL;
+static gpointer publishing_rajce_get_categories_transaction_parent_class = NULL;
+static gpointer publishing_rajce_add_photo_transaction_parent_class = NULL;
+
+GType rajce_service_get_type (void) G_GNUC_CONST;
+enum {
+ RAJCE_SERVICE_DUMMY_PROPERTY
+};
+#define RAJCE_SERVICE_ICON_FILENAME "rajce.png"
+RajceService* rajce_service_new (GFile* resource_directory);
+RajceService* rajce_service_construct (GType object_type, GFile* resource_directory);
+static gint rajce_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+static const gchar* rajce_service_real_get_id (SpitPluggable* base);
+static const gchar* rajce_service_real_get_pluggable_name (SpitPluggable* base);
+static void rajce_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static GdkPixbuf** _vala_array_dup4 (GdkPixbuf** self, int length);
+static SpitPublishingPublisher* rajce_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host);
+PublishingRajceRajcePublisher* publishing_rajce_rajce_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host);
+PublishingRajceRajcePublisher* publishing_rajce_rajce_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host);
+GType publishing_rajce_rajce_publisher_get_type (void) G_GNUC_CONST;
+static SpitPublishingPublisherMediaType rajce_service_real_get_supported_media (SpitPublishingService* base);
+static void rajce_service_real_activation (SpitPluggable* base, gboolean enabled);
+static void rajce_service_finalize (GObject* obj);
+GType publishing_rajce_session_get_type (void) G_GNUC_CONST;
+gpointer publishing_rajce_album_ref (gpointer instance);
+void publishing_rajce_album_unref (gpointer instance);
+GParamSpec* publishing_rajce_param_spec_album (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rajce_value_set_album (GValue* value, gpointer v_object);
+void publishing_rajce_value_take_album (GValue* value, gpointer v_object);
+gpointer publishing_rajce_value_get_album (const GValue* value);
+GType publishing_rajce_album_get_type (void) G_GNUC_CONST;
+gpointer publishing_rajce_publishing_parameters_ref (gpointer instance);
+void publishing_rajce_publishing_parameters_unref (gpointer instance);
+GParamSpec* publishing_rajce_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rajce_value_set_publishing_parameters (GValue* value, gpointer v_object);
+void publishing_rajce_value_take_publishing_parameters (GValue* value, gpointer v_object);
+gpointer publishing_rajce_value_get_publishing_parameters (const GValue* value);
+GType publishing_rajce_publishing_parameters_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_RAJCE_RAJCE_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisherPrivate))
+enum {
+ PUBLISHING_RAJCE_RAJCE_PUBLISHER_DUMMY_PROPERTY
+};
+PublishingRajceSession* publishing_rajce_session_new (void);
+PublishingRajceSession* publishing_rajce_session_construct (GType object_type);
+static gchar* publishing_rajce_rajce_publisher_get_rajce_url (PublishingRajceRajcePublisher* self);
+static SpitPublishingService* publishing_rajce_rajce_publisher_real_get_service (SpitPublishingPublisher* base);
+SpitPublishingPluginHost* publishing_rajce_rajce_publisher_get_host (PublishingRajceRajcePublisher* self);
+static gboolean publishing_rajce_rajce_publisher_real_is_running (SpitPublishingPublisher* base);
+static void publishing_rajce_rajce_publisher_real_start (SpitPublishingPublisher* base);
+static void publishing_rajce_rajce_publisher_do_fetch_albums (PublishingRajceRajcePublisher* self);
+gchar* publishing_rajce_rajce_publisher_get_username (PublishingRajceRajcePublisher* self);
+gchar* publishing_rajce_rajce_publisher_get_token (PublishingRajceRajcePublisher* self);
+gboolean publishing_rajce_rajce_publisher_get_remember (PublishingRajceRajcePublisher* self);
+static gboolean* _bool_dup (gboolean* self);
+static void publishing_rajce_rajce_publisher_do_network_login (PublishingRajceRajcePublisher* self, const gchar* username, const gchar* token, gboolean remember);
+GType publishing_rajce_authentication_pane_mode_get_type (void) G_GNUC_CONST;
+static void publishing_rajce_rajce_publisher_do_show_authentication_pane (PublishingRajceRajcePublisher* self, PublishingRajceAuthenticationPaneMode mode);
+static void publishing_rajce_rajce_publisher_real_stop (SpitPublishingPublisher* base);
+gchar* publishing_rajce_rajce_publisher_get_url (PublishingRajceRajcePublisher* self);
+static void publishing_rajce_rajce_publisher_set_username (PublishingRajceRajcePublisher* self, const gchar* username);
+static void publishing_rajce_rajce_publisher_set_token (PublishingRajceRajcePublisher* self, const gchar* token);
+static void publishing_rajce_rajce_publisher_set_remember (PublishingRajceRajcePublisher* self, gboolean remember);
+gboolean publishing_rajce_rajce_publisher_get_hide_album (PublishingRajceRajcePublisher* self);
+void publishing_rajce_rajce_publisher_set_hide_album (PublishingRajceRajcePublisher* self, gboolean hide_album);
+gboolean publishing_rajce_rajce_publisher_get_show_album (PublishingRajceRajcePublisher* self);
+void publishing_rajce_rajce_publisher_set_show_album (PublishingRajceRajcePublisher* self, gboolean show_album);
+GType publishing_rajce_authentication_pane_get_type (void) G_GNUC_CONST;
+PublishingRajceAuthenticationPane* publishing_rajce_authentication_pane_new (PublishingRajceRajcePublisher* publisher, PublishingRajceAuthenticationPaneMode mode);
+PublishingRajceAuthenticationPane* publishing_rajce_authentication_pane_construct (GType object_type, PublishingRajceRajcePublisher* publisher, PublishingRajceAuthenticationPaneMode mode);
+static void publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked (PublishingRajceRajcePublisher* self, const gchar* username, const gchar* token, gboolean remember);
+static void _publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked_publishing_rajce_authentication_pane_login (PublishingRajceAuthenticationPane* _sender, const gchar* user, const gchar* token, gboolean remember, gpointer self);
+GtkWidget* publishing_rajce_authentication_pane_get_default_widget (PublishingRajceAuthenticationPane* self);
+GType publishing_rajce_transaction_get_type (void) G_GNUC_CONST;
+GType publishing_rajce_session_login_transaction_get_type (void) G_GNUC_CONST;
+PublishingRajceSessionLoginTransaction* publishing_rajce_session_login_transaction_new (PublishingRajceSession* session, const gchar* url, const gchar* username, const gchar* token);
+PublishingRajceSessionLoginTransaction* publishing_rajce_session_login_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url, const gchar* username, const gchar* token);
+static void publishing_rajce_rajce_publisher_on_login_network_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_rajce_rajce_publisher_on_login_network_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_rajce_rajce_publisher_do_show_error (PublishingRajceRajcePublisher* self, GError* e);
+gchar* publishing_rajce_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc);
+static gchar* _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self);
+void publishing_rajce_session_authenticate (PublishingRajceSession* self, const gchar* token, const gchar* name, gint id, gint maxsize, gint quality);
+GType publishing_rajce_get_albums_transaction_get_type (void) G_GNUC_CONST;
+PublishingRajceGetAlbumsTransaction* publishing_rajce_get_albums_transaction_new (PublishingRajceSession* session, const gchar* url);
+PublishingRajceGetAlbumsTransaction* publishing_rajce_get_albums_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url);
+static void publishing_rajce_rajce_publisher_on_albums_fetch_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_rajce_rajce_publisher_on_albums_fetch_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+PublishingRajceAlbum* publishing_rajce_album_new (gint id, const gchar* albumName, const gchar* url, const gchar* thumbUrl, const gchar* createDate, const gchar* updateDate, gboolean hidden, gboolean secure, gint photoCount);
+PublishingRajceAlbum* publishing_rajce_album_construct (GType object_type, gint id, const gchar* albumName, const gchar* url, const gchar* thumbUrl, const gchar* createDate, const gchar* updateDate, gboolean hidden, gboolean secure, gint photoCount);
+gint publishing_rajce_album_compare_albums (PublishingRajceAlbum* a, PublishingRajceAlbum* b);
+static gint _publishing_rajce_album_compare_albums_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
+void publishing_rajce_session_set_usertoken (PublishingRajceSession* self, const gchar* usertoken);
+static void publishing_rajce_rajce_publisher_do_show_publishing_options_pane (PublishingRajceRajcePublisher* self);
+static void publishing_rajce_rajce_publisher_on_network_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+GType publishing_rajce_publishing_options_pane_get_type (void) G_GNUC_CONST;
+gchar* publishing_rajce_session_get_username (PublishingRajceSession* self);
+PublishingRajcePublishingOptionsPane* publishing_rajce_publishing_options_pane_new (PublishingRajceRajcePublisher* publisher, const gchar* username, PublishingRajceAlbum** albums, int albums_length1);
+PublishingRajcePublishingOptionsPane* publishing_rajce_publishing_options_pane_construct (GType object_type, PublishingRajceRajcePublisher* publisher, const gchar* username, PublishingRajceAlbum** albums, int albums_length1);
+static void publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked (PublishingRajceRajcePublisher* self);
+static void _publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, gpointer self);
+static void publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked (PublishingRajceRajcePublisher* self, PublishingRajcePublishingParameters* parameters);
+static void _publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, PublishingRajcePublishingParameters* parameters, gpointer self);
+GtkWidget* publishing_rajce_publishing_options_pane_get_default_widget (PublishingRajcePublishingOptionsPane* self);
+void publishing_rajce_session_deauthenticate (PublishingRajceSession* self);
+static void publishing_rajce_rajce_publisher_do_begin_upload (PublishingRajceRajcePublisher* self);
+static gboolean _int_equal (const gint* s1, const gint* s2);
+GType publishing_rajce_create_album_transaction_get_type (void) G_GNUC_CONST;
+PublishingRajceCreateAlbumTransaction* publishing_rajce_create_album_transaction_new (PublishingRajceSession* session, const gchar* url, const gchar* albumName, gboolean hidden);
+PublishingRajceCreateAlbumTransaction* publishing_rajce_create_album_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url, const gchar* albumName, gboolean hidden);
+static void publishing_rajce_rajce_publisher_on_create_album_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_rajce_rajce_publisher_on_create_album_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+GType publishing_rajce_open_album_transaction_get_type (void) G_GNUC_CONST;
+PublishingRajceOpenAlbumTransaction* publishing_rajce_open_album_transaction_new (PublishingRajceSession* session, const gchar* url, gint albumID);
+PublishingRajceOpenAlbumTransaction* publishing_rajce_open_album_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url, gint albumID);
+static void publishing_rajce_rajce_publisher_on_open_album_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_rajce_rajce_publisher_on_open_album_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static gint* _int_dup (gint* self);
+void publishing_rajce_session_set_albumtoken (PublishingRajceSession* self, const gchar* albumtoken);
+static void publishing_rajce_rajce_publisher_do_upload_photos (PublishingRajceRajcePublisher* self);
+gint publishing_rajce_session_get_maxsize (PublishingRajceSession* self);
+GType publishing_rajce_uploader_get_type (void) G_GNUC_CONST;
+PublishingRajceUploader* publishing_rajce_uploader_new (PublishingRajceSession* session, const gchar* url, SpitPublishingPublishable** publishables, int publishables_length1, PublishingRajcePublishingParameters* parameters);
+PublishingRajceUploader* publishing_rajce_uploader_construct (GType object_type, PublishingRajceSession* session, const gchar* url, SpitPublishingPublishable** publishables, int publishables_length1, PublishingRajcePublishingParameters* parameters);
+static void publishing_rajce_rajce_publisher_on_upload_photos_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published);
+static void _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self);
+static void publishing_rajce_rajce_publisher_on_upload_photos_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err);
+static void _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self);
+static void publishing_rajce_rajce_publisher_on_upload_photos_status_updated (PublishingRajceRajcePublisher* self, gint file_number, gdouble completed_fraction);
+static void _publishing_rajce_rajce_publisher_on_upload_photos_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self);
+static void publishing_rajce_rajce_publisher_do_end_upload (PublishingRajceRajcePublisher* self);
+static void publishing_rajce_rajce_publisher_do_get_album_url (PublishingRajceRajcePublisher* self);
+static void publishing_rajce_rajce_publisher_do_close_album (PublishingRajceRajcePublisher* self);
+GType publishing_rajce_get_album_url_transaction_get_type (void) G_GNUC_CONST;
+PublishingRajceGetAlbumUrlTransaction* publishing_rajce_get_album_url_transaction_new (PublishingRajceSession* session, const gchar* url);
+PublishingRajceGetAlbumUrlTransaction* publishing_rajce_get_album_url_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url);
+static void publishing_rajce_rajce_publisher_on_get_album_url_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_rajce_rajce_publisher_on_get_album_url_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+void publishing_rajce_session_set_albumticket (PublishingRajceSession* self, const gchar* albumticket);
+GType publishing_rajce_close_album_transaction_get_type (void) G_GNUC_CONST;
+PublishingRajceCloseAlbumTransaction* publishing_rajce_close_album_transaction_new (PublishingRajceSession* session, const gchar* url);
+PublishingRajceCloseAlbumTransaction* publishing_rajce_close_album_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url);
+static void publishing_rajce_rajce_publisher_on_close_album_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_rajce_rajce_publisher_on_close_album_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_rajce_rajce_publisher_do_show_success_pane (PublishingRajceRajcePublisher* self);
+gchar* publishing_rajce_session_get_albumticket (PublishingRajceSession* self);
+static void publishing_rajce_rajce_publisher_do_show_error_message (PublishingRajceRajcePublisher* self, const gchar* message);
+static void publishing_rajce_rajce_publisher_finalize (GObject* obj);
+enum {
+ PUBLISHING_RAJCE_ALBUM_DUMMY_PROPERTY
+};
+static void publishing_rajce_album_finalize (PublishingRajceAlbum* obj);
+#define PUBLISHING_RAJCE_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploaderPrivate))
+enum {
+ PUBLISHING_RAJCE_UPLOADER_DUMMY_PROPERTY
+};
+static PublishingRESTSupportTransaction* publishing_rajce_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable);
+PublishingRajceAddPhotoTransaction* publishing_rajce_add_photo_transaction_new (PublishingRajceSession* session, const gchar* url, PublishingRajcePublishingParameters* parameters, SpitPublishingPublishable* publishable);
+PublishingRajceAddPhotoTransaction* publishing_rajce_add_photo_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url, PublishingRajcePublishingParameters* parameters, SpitPublishingPublishable* publishable);
+GType publishing_rajce_add_photo_transaction_get_type (void) G_GNUC_CONST;
+static void publishing_rajce_uploader_finalize (PublishingRESTSupportBatchUploader* obj);
+#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPanePrivate))
+enum {
+ PUBLISHING_RAJCE_AUTHENTICATION_PANE_DUMMY_PROPERTY
+};
+static void publishing_rajce_authentication_pane_on_user_changed (PublishingRajceAuthenticationPane* self);
+static void _publishing_rajce_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_rajce_authentication_pane_on_password_changed (PublishingRajceAuthenticationPane* self);
+static void _publishing_rajce_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_rajce_authentication_pane_on_login_button_clicked (PublishingRajceAuthenticationPane* self);
+static void _publishing_rajce_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_rajce_authentication_pane_update_login_button_sensitivity (PublishingRajceAuthenticationPane* self);
+static GtkWidget* publishing_rajce_authentication_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_rajce_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_rajce_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_rajce_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void g_cclosure_user_marshal_VOID__STRING_STRING_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void publishing_rajce_authentication_pane_finalize (GObject* obj);
+#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPanePrivate))
+enum {
+ PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_DUMMY_PROPERTY
+};
+static PublishingRajceAlbum** _vala_array_dup5 (PublishingRajceAlbum** self, int length);
+static void publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked (PublishingRajcePublishingOptionsPane* self);
+static void _publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_rajce_publishing_options_pane_on_create_new_radio_clicked (PublishingRajcePublishingOptionsPane* self);
+static void _publishing_rajce_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_rajce_publishing_options_pane_on_new_album_entry_changed (PublishingRajcePublishingOptionsPane* self);
+static void _publishing_rajce_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_rajce_publishing_options_pane_on_logout_clicked (PublishingRajcePublishingOptionsPane* self);
+static void _publishing_rajce_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_rajce_publishing_options_pane_on_publish_clicked (PublishingRajcePublishingOptionsPane* self);
+static void _publishing_rajce_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new_to_new_album (const gchar* album_name, gboolean album_hidden);
+PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct_to_new_album (GType object_type, const gchar* album_name, gboolean album_hidden);
+PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new_to_existing_album (const gchar* album_name, gint album_id);
+PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct_to_existing_album (GType object_type, const gchar* album_name, gint album_id);
+static void publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (PublishingRajcePublishingOptionsPane* self);
+void publishing_rajce_publishing_options_pane_installed (PublishingRajcePublishingOptionsPane* self);
+void publishing_rajce_publishing_options_pane_notify_publish (PublishingRajcePublishingOptionsPane* self, PublishingRajcePublishingParameters* parameters);
+void publishing_rajce_publishing_options_pane_notify_logout (PublishingRajcePublishingOptionsPane* self);
+static GtkWidget* publishing_rajce_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_rajce_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_rajce_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void _publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, PublishingRajcePublishingParameters* parameters, gpointer self);
+static void _publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, gpointer self);
+static void publishing_rajce_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void g_cclosure_user_marshal_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void publishing_rajce_publishing_options_pane_finalize (GObject* obj);
+enum {
+ PUBLISHING_RAJCE_PUBLISHING_PARAMETERS_DUMMY_PROPERTY
+};
+static PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new (void);
+static PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct (GType object_type);
+static void publishing_rajce_publishing_parameters_finalize (PublishingRajcePublishingParameters* obj);
+#define PUBLISHING_RAJCE_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSessionPrivate))
+enum {
+ PUBLISHING_RAJCE_SESSION_DUMMY_PROPERTY
+};
+static gboolean publishing_rajce_session_real_is_authenticated (PublishingRESTSupportSession* base);
+gchar* publishing_rajce_session_get_usertoken (PublishingRajceSession* self);
+gchar* publishing_rajce_session_get_albumtoken (PublishingRajceSession* self);
+static void publishing_rajce_session_finalize (PublishingRESTSupportSession* obj);
+gpointer publishing_rajce_arg_item_ref (gpointer instance);
+void publishing_rajce_arg_item_unref (gpointer instance);
+GParamSpec* publishing_rajce_param_spec_arg_item (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rajce_value_set_arg_item (GValue* value, gpointer v_object);
+void publishing_rajce_value_take_arg_item (GValue* value, gpointer v_object);
+gpointer publishing_rajce_value_get_arg_item (const GValue* value);
+GType publishing_rajce_arg_item_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_RAJCE_ARG_ITEM_DUMMY_PROPERTY
+};
+PublishingRajceArgItem* publishing_rajce_arg_item_new (const gchar* k, const gchar* v);
+PublishingRajceArgItem* publishing_rajce_arg_item_construct (GType object_type, const gchar* k, const gchar* v);
+void publishing_rajce_arg_item_AddChild (PublishingRajceArgItem* self, PublishingRajceArgItem* child);
+static void _vala_array_add6 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value);
+void publishing_rajce_arg_item_AddChildren (PublishingRajceArgItem* self, PublishingRajceArgItem** newchildren, int newchildren_length1);
+static void publishing_rajce_arg_item_finalize (PublishingRajceArgItem* obj);
+gpointer publishing_rajce_live_api_request_ref (gpointer instance);
+void publishing_rajce_live_api_request_unref (gpointer instance);
+GParamSpec* publishing_rajce_param_spec_live_api_request (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_rajce_value_set_live_api_request (GValue* value, gpointer v_object);
+void publishing_rajce_value_take_live_api_request (GValue* value, gpointer v_object);
+gpointer publishing_rajce_value_get_live_api_request (const GValue* value);
+GType publishing_rajce_live_api_request_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequestPrivate))
+enum {
+ PUBLISHING_RAJCE_LIVE_API_REQUEST_DUMMY_PROPERTY
+};
+PublishingRajceLiveApiRequest* publishing_rajce_live_api_request_new (const gchar* cmd);
+PublishingRajceLiveApiRequest* publishing_rajce_live_api_request_construct (GType object_type, const gchar* cmd);
+void publishing_rajce_live_api_request_AddParam (PublishingRajceLiveApiRequest* self, const gchar* name, const gchar* val);
+static void _vala_array_add7 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value);
+void publishing_rajce_live_api_request_AddParamBool (PublishingRajceLiveApiRequest* self, const gchar* name, gboolean val);
+void publishing_rajce_live_api_request_AddParamInt (PublishingRajceLiveApiRequest* self, const gchar* name, gint val);
+void publishing_rajce_live_api_request_AddParamNode (PublishingRajceLiveApiRequest* self, const gchar* name, PublishingRajceArgItem** val, int val_length1);
+static void _vala_array_add8 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value);
+gchar* publishing_rajce_live_api_request_Params2XmlString (PublishingRajceLiveApiRequest* self, gboolean urlencode);
+static void publishing_rajce_live_api_request_WriteParam (xmlNode* node, PublishingRajceArgItem* arg);
+static void publishing_rajce_live_api_request_finalize (PublishingRajceLiveApiRequest* obj);
+enum {
+ PUBLISHING_RAJCE_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingRajceTransaction* publishing_rajce_transaction_new (PublishingRajceSession* session);
+PublishingRajceTransaction* publishing_rajce_transaction_construct (GType object_type, PublishingRajceSession* session);
+enum {
+ PUBLISHING_RAJCE_SESSION_LOGIN_TRANSACTION_DUMMY_PROPERTY
+};
+enum {
+ PUBLISHING_RAJCE_GET_ALBUMS_TRANSACTION_DUMMY_PROPERTY
+};
+static void _vala_array_add9 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value);
+static void _vala_array_add10 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value);
+static void _vala_array_add11 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value);
+static void _vala_array_add12 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value);
+static void _vala_array_add13 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value);
+enum {
+ PUBLISHING_RAJCE_CREATE_ALBUM_TRANSACTION_DUMMY_PROPERTY
+};
+enum {
+ PUBLISHING_RAJCE_OPEN_ALBUM_TRANSACTION_DUMMY_PROPERTY
+};
+enum {
+ PUBLISHING_RAJCE_GET_ALBUM_URL_TRANSACTION_DUMMY_PROPERTY
+};
+enum {
+ PUBLISHING_RAJCE_CLOSE_ALBUM_TRANSACTION_DUMMY_PROPERTY
+};
+GType publishing_rajce_get_categories_transaction_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_RAJCE_GET_CATEGORIES_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingRajceGetCategoriesTransaction* publishing_rajce_get_categories_transaction_new (PublishingRajceSession* session, const gchar* url);
+PublishingRajceGetCategoriesTransaction* publishing_rajce_get_categories_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url);
+#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransactionPrivate))
+enum {
+ PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_DUMMY_PROPERTY
+};
+static void _g_free0_ (gpointer var);
+static void publishing_rajce_add_photo_transaction_finalize (PublishingRESTSupportTransaction* 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);
+
+
+RajceService* rajce_service_construct (GType object_type, GFile* resource_directory) {
+ RajceService * self = NULL;
+ GdkPixbuf** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (RajceService*) g_object_new (object_type, NULL);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = rajce_service_icon_pixbuf_set;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0__length1 = rajce_service_icon_pixbuf_set_length1;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 910 "RajcePublishing.c"
+ gint _tmp1_ = 0;
+ GdkPixbuf** _tmp2_ = NULL;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" RAJCE_SERVICE_ICON_FILENAME, &_tmp1_);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ rajce_service_icon_pixbuf_set = (_vala_array_free (rajce_service_icon_pixbuf_set, rajce_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ rajce_service_icon_pixbuf_set = _tmp2_;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ rajce_service_icon_pixbuf_set_length1 = _tmp1_;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _rajce_service_icon_pixbuf_set_size_ = rajce_service_icon_pixbuf_set_length1;
+#line 923 "RajcePublishing.c"
+ }
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 927 "RajcePublishing.c"
+}
+
+
+RajceService* rajce_service_new (GFile* resource_directory) {
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return rajce_service_construct (TYPE_RAJCE_SERVICE, resource_directory);
+#line 934 "RajcePublishing.c"
+}
+
+
+static gint rajce_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ RajceService * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = min_host_interface;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = max_host_interface;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp2_;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 956 "RajcePublishing.c"
+}
+
+
+static const gchar* rajce_service_real_get_id (SpitPluggable* base) {
+ RajceService * self;
+ const gchar* result = NULL;
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService);
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = "org.yorba.shotwell.publishing.rajce";
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 969 "RajcePublishing.c"
+}
+
+
+static const gchar* rajce_service_real_get_pluggable_name (SpitPluggable* base) {
+ RajceService * self;
+ const gchar* result = NULL;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = "Rajce";
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 982 "RajcePublishing.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 989 "RajcePublishing.c"
+}
+
+
+static GdkPixbuf** _vala_array_dup4 (GdkPixbuf** self, int length) {
+ GdkPixbuf** result;
+ int i;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = g_new0 (GdkPixbuf*, length + 1);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 1000 "RajcePublishing.c"
+ GdkPixbuf* _tmp0_ = NULL;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result[i] = _tmp0_;
+#line 1006 "RajcePublishing.c"
+ }
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1010 "RajcePublishing.c"
+}
+
+
+static void rajce_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ RajceService * self;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GdkPixbuf** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GdkPixbuf** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (info != NULL);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = g_strdup ("rajce.net developers");
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 ((*info).authors);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).authors = _tmp0_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _ ("Copyright (C) 2013 rajce.net");
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 ((*info).copyright);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).copyright = _tmp2_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 ((*info).translators);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).translators = _tmp3_;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = g_strdup (_VERSION);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 ((*info).version);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).version = _tmp4_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 ((*info).website_name);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).website_name = _tmp5_;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 ((*info).website_url);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).website_url = _tmp6_;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = g_strdup (RESOURCES_LICENSE);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 ((*info).license);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).license = _tmp7_;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = rajce_service_icon_pixbuf_set;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8__length1 = rajce_service_icon_pixbuf_set_length1;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup4 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9__length1 = _tmp8__length1;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).icons = _tmp9_;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*info).icons_length1 = _tmp9__length1;
+#line 1092 "RajcePublishing.c"
+}
+
+
+static SpitPublishingPublisher* rajce_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) {
+ RajceService * self;
+ SpitPublishingPublisher* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRajceRajcePublisher* _tmp1_ = NULL;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = host;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = publishing_rajce_rajce_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1113 "RajcePublishing.c"
+}
+
+
+static SpitPublishingPublisherMediaType rajce_service_real_get_supported_media (SpitPublishingService* base) {
+ RajceService * self;
+ SpitPublishingPublisherMediaType result = 0;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1126 "RajcePublishing.c"
+}
+
+
+static void rajce_service_real_activation (SpitPluggable* base, gboolean enabled) {
+ RajceService * self;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService);
+#line 1134 "RajcePublishing.c"
+}
+
+
+static void rajce_service_class_init (RajceServiceClass * klass) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ rajce_service_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = rajce_service_finalize;
+#line 1143 "RajcePublishing.c"
+}
+
+
+static void rajce_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ rajce_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) rajce_service_real_get_pluggable_interface;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) rajce_service_real_get_id;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) rajce_service_real_get_pluggable_name;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) rajce_service_real_get_info;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) rajce_service_real_activation;
+#line 1160 "RajcePublishing.c"
+}
+
+
+static void rajce_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ rajce_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->create_publisher = (SpitPublishingPublisher* (*)(SpitPublishingService*, SpitPublishingPluginHost*)) rajce_service_real_create_publisher;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->get_supported_media = (SpitPublishingPublisherMediaType (*)(SpitPublishingService*)) rajce_service_real_get_supported_media;
+#line 1171 "RajcePublishing.c"
+}
+
+
+static void rajce_service_instance_init (RajceService * self) {
+}
+
+
+static void rajce_service_finalize (GObject* obj) {
+ RajceService * self;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RAJCE_SERVICE, RajceService);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_OBJECT_CLASS (rajce_service_parent_class)->finalize (obj);
+#line 1185 "RajcePublishing.c"
+}
+
+
+GType rajce_service_get_type (void) {
+ static volatile gsize rajce_service_type_id__volatile = 0;
+ if (g_once_init_enter (&rajce_service_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (RajceServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rajce_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RajceService), 0, (GInstanceInitFunc) rajce_service_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) rajce_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) rajce_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType rajce_service_type_id;
+ rajce_service_type_id = g_type_register_static (G_TYPE_OBJECT, "RajceService", &g_define_type_info, 0);
+ g_type_add_interface_static (rajce_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (rajce_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info);
+ g_once_init_leave (&rajce_service_type_id__volatile, rajce_service_type_id);
+ }
+ return rajce_service_type_id__volatile;
+}
+
+
+PublishingRajceRajcePublisher* publishing_rajce_rajce_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) {
+ PublishingRajceRajcePublisher * self = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ PublishingRajceSession* _tmp4_ = NULL;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ SpitPublishingPublishable** _tmp7_ = NULL;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceRajcePublisher*) g_object_new (object_type, NULL);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:86: RajcePublisher created.");
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = service;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->service);
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->service = _tmp1_;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = host;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->host);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->host = _tmp3_;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishing_rajce_session_new ();
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->session = _tmp4_;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = host;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = spit_publishing_plugin_host_get_publishables (_tmp5_, &_tmp6_);
+#line 1249 "RajcePublishing.c"
+ {
+ SpitPublishingPublishable** p_collection = NULL;
+ gint p_collection_length1 = 0;
+ gint _p_collection_size_ = 0;
+ gint p_it = 0;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ p_collection = _tmp7_;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ p_collection_length1 = _tmp6_;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ for (p_it = 0; p_it < _tmp6_; p_it = p_it + 1) {
+#line 1261 "RajcePublishing.c"
+ SpitPublishingPublishable* _tmp8_ = NULL;
+ SpitPublishingPublishable* p = NULL;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = _g_object_ref0 (p_collection[p_it]);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ p = _tmp8_;
+#line 1268 "RajcePublishing.c"
+ {
+ SpitPublishingPublisherMediaType _tmp9_ = 0;
+ SpitPublishingPublishable* _tmp10_ = NULL;
+ SpitPublishingPublisherMediaType _tmp11_ = 0;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = self->priv->media_type;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = p;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = spit_publishing_publishable_get_media_type (_tmp10_);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->media_type = _tmp9_ | _tmp11_;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (p);
+#line 1283 "RajcePublishing.c"
+ }
+ }
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ p_collection = (_vala_array_free (p_collection, p_collection_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 1288 "RajcePublishing.c"
+ }
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 1292 "RajcePublishing.c"
+}
+
+
+PublishingRajceRajcePublisher* publishing_rajce_rajce_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) {
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_rajce_publisher_construct (PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, service, host);
+#line 1299 "RajcePublishing.c"
+}
+
+
+static gchar* publishing_rajce_rajce_publisher_get_rajce_url (PublishingRajceRajcePublisher* self) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = g_strdup ("http://www.rajce.idnes.cz/liveAPI/index.php");
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp0_;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1314 "RajcePublishing.c"
+}
+
+
+static SpitPublishingService* publishing_rajce_rajce_publisher_real_get_service (SpitPublishingPublisher* base) {
+ PublishingRajceRajcePublisher * self;
+ SpitPublishingService* result = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher);
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->service;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1333 "RajcePublishing.c"
+}
+
+
+SpitPublishingPluginHost* publishing_rajce_rajce_publisher_get_host (PublishingRajceRajcePublisher* self) {
+ SpitPublishingPluginHost* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL);
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1351 "RajcePublishing.c"
+}
+
+
+static gboolean publishing_rajce_rajce_publisher_real_is_running (SpitPublishingPublisher* base) {
+ PublishingRajceRajcePublisher * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher);
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp0_;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1367 "RajcePublishing.c"
+}
+
+
+static gboolean* _bool_dup (gboolean* self) {
+ gboolean* dup;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ dup = g_new0 (gboolean, 1);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ memcpy (dup, self, sizeof (gboolean));
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return dup;
+#line 1379 "RajcePublishing.c"
+}
+
+
+static gpointer __bool_dup0 (gpointer self) {
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self ? _bool_dup (self) : NULL;
+#line 1386 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_real_start (SpitPublishingPublisher* base) {
+ PublishingRajceRajcePublisher * self;
+ gboolean _tmp0_ = FALSE;
+ PublishingRajceSession* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher);
+#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp0_) {
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 1403 "RajcePublishing.c"
+ }
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:111: RajcePublisher: start");
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->running = TRUE;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->session;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp2_) {
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:116: RajcePublisher: session is authenticated.");
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_fetch_albums (self);
+#line 1419 "RajcePublishing.c"
+ } else {
+ gchar* persistent_username = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* persistent_token = NULL;
+ gchar* _tmp4_ = NULL;
+ gboolean* persistent_remember = NULL;
+ gboolean _tmp5_ = FALSE;
+ gboolean* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ const gchar* _tmp8_ = NULL;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:121: RajcePublisher: session is not authenticated" \
+".");
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = publishing_rajce_rajce_publisher_get_username (self);
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ persistent_username = _tmp3_;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishing_rajce_rajce_publisher_get_token (self);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ persistent_token = _tmp4_;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rajce_rajce_publisher_get_remember (self);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = __bool_dup0 (&_tmp5_);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ persistent_remember = _tmp6_;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = persistent_username;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp8_ != NULL) {
+#line 1450 "RajcePublishing.c"
+ const gchar* _tmp9_ = NULL;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = persistent_token;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = _tmp9_ != NULL;
+#line 1456 "RajcePublishing.c"
+ } else {
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = FALSE;
+#line 1460 "RajcePublishing.c"
+ }
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp7_) {
+#line 1464 "RajcePublishing.c"
+ const gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gboolean* _tmp12_ = NULL;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = persistent_username;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = persistent_token;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = persistent_remember;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_network_login (self, _tmp10_, _tmp11_, *_tmp12_);
+#line 1476 "RajcePublishing.c"
+ } else {
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO);
+#line 1480 "RajcePublishing.c"
+ }
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (persistent_remember);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (persistent_token);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (persistent_username);
+#line 1488 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_rajce_publisher_real_stop (SpitPublishingPublisher* base) {
+ PublishingRajceRajcePublisher * self;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:134: RajcePublisher: stop");
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->running = FALSE;
+#line 1501 "RajcePublishing.c"
+}
+
+
+gchar* publishing_rajce_rajce_publisher_get_url (PublishingRajceRajcePublisher* self) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL);
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = publishing_rajce_rajce_publisher_get_rajce_url (self);
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp0_;
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1516 "RajcePublishing.c"
+}
+
+
+gchar* publishing_rajce_rajce_publisher_get_username (PublishingRajceRajcePublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL);
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", NULL);
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1534 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_set_username (PublishingRajceRajcePublisher* self, const gchar* username) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = username;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", _tmp1_);
+#line 1551 "RajcePublishing.c"
+}
+
+
+gchar* publishing_rajce_rajce_publisher_get_token (PublishingRajceRajcePublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL);
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "token", NULL);
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1569 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_set_token (PublishingRajceRajcePublisher* self, const gchar* token) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = token;
+#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "token", _tmp1_);
+#line 1584 "RajcePublishing.c"
+}
+
+
+gboolean publishing_rajce_rajce_publisher_get_remember (PublishingRajceRajcePublisher* self) {
+ gboolean result = FALSE;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), FALSE);
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember", FALSE);
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1602 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_set_remember (PublishingRajceRajcePublisher* self, gboolean remember) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = remember;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember", _tmp1_);
+#line 1617 "RajcePublishing.c"
+}
+
+
+gboolean publishing_rajce_rajce_publisher_get_hide_album (PublishingRajceRajcePublisher* self) {
+ gboolean result = FALSE;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), FALSE);
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "hide-album", FALSE);
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1635 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_rajce_publisher_set_hide_album (PublishingRajceRajcePublisher* self, gboolean hide_album) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = hide_album;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "hide-album", _tmp1_);
+#line 1650 "RajcePublishing.c"
+}
+
+
+gboolean publishing_rajce_rajce_publisher_get_show_album (PublishingRajceRajcePublisher* self) {
+ gboolean result = FALSE;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), FALSE);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "show-album", TRUE);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1668 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_rajce_publisher_set_show_album (PublishingRajceRajcePublisher* self, gboolean show_album) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = show_album;
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "show-album", _tmp1_);
+#line 1683 "RajcePublishing.c"
+}
+
+
+/**
+ * Action that shows the authentication pane.
+ */
+static void _publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked_publishing_rajce_authentication_pane_login (PublishingRajceAuthenticationPane* _sender, const gchar* user, const gchar* token, gboolean remember, gpointer self) {
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked ((PublishingRajceRajcePublisher*) self, user, token, remember);
+#line 1693 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_do_show_authentication_pane (PublishingRajceRajcePublisher* self, PublishingRajceAuthenticationPaneMode mode) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRajceAuthenticationPane* authentication_pane = NULL;
+ PublishingRajceAuthenticationPaneMode _tmp1_ = 0;
+ PublishingRajceAuthenticationPane* _tmp2_ = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ GtkWidget* _tmp5_ = NULL;
+ GtkWidget* _tmp6_ = NULL;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:163: ACTION: installing authentication pane");
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = mode;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_authentication_pane_new (self, _tmp1_);
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ authentication_pane = _tmp2_;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (authentication_pane, "login", (GCallback) _publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked_publishing_rajce_authentication_pane_login, self, 0);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = self->priv->host;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE);
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = self->priv->host;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rajce_authentication_pane_get_default_widget (authentication_pane);
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_dialog_default_widget (_tmp4_, _tmp6_);
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (_tmp6_);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (authentication_pane);
+#line 1738 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the login button in the authentication panel is clicked.
+ */
+static void publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked (PublishingRajceRajcePublisher* self, const gchar* username, const gchar* token, gboolean remember) {
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:177: EVENT: on_authentication_pane_login_clicked");
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!_tmp0_) {
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 1764 "RajcePublishing.c"
+ }
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = username;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = token;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = remember;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_network_login (self, _tmp1_, _tmp2_, _tmp3_);
+#line 1774 "RajcePublishing.c"
+}
+
+
+/**
+ * Action to perform a network login to a Rajce service.
+ */
+static void _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_login_network_error ((PublishingRajceRajcePublisher*) self, _sender, err);
+#line 1784 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_login_network_complete ((PublishingRajceRajcePublisher*) self, _sender);
+#line 1791 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_do_network_login (PublishingRajceRajcePublisher* self, const gchar* username, const gchar* token, gboolean remember) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ const gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ PublishingRajceSessionLoginTransaction* login_trans = NULL;
+ PublishingRajceSession* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ PublishingRajceSessionLoginTransaction* _tmp12_ = NULL;
+ PublishingRajceSessionLoginTransaction* _tmp13_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:188: ACTION: logging in");
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_install_login_wait_pane (_tmp1_);
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = remember;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_set_remember (self, _tmp2_);
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = username;
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_set_username (self, _tmp3_);
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = remember;
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp5_) {
+#line 1839 "RajcePublishing.c"
+ const gchar* _tmp6_ = NULL;
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = token;
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = _tmp6_;
+#line 1845 "RajcePublishing.c"
+ } else {
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = NULL;
+#line 1849 "RajcePublishing.c"
+ }
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_set_token (self, _tmp4_);
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = self->priv->session;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = publishing_rajce_rajce_publisher_get_url (self);
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = username;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = token;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = publishing_rajce_session_login_transaction_new (_tmp7_, _tmp9_, _tmp10_, _tmp11_);
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp9_);
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ login_trans = _tmp13_;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 1875 "RajcePublishing.c"
+ {
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 1883 "RajcePublishing.c"
+ goto __catch16_spit_publishing_publishing_error;
+ }
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (login_trans);
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 1894 "RajcePublishing.c"
+ }
+ }
+ goto __finally16;
+ __catch16_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp14_ = NULL;
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:203: ERROR: do_network_login");
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = err;
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp14_);
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 1914 "RajcePublishing.c"
+ }
+ __finally16:
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (login_trans);
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 1927 "RajcePublishing.c"
+ }
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (login_trans);
+#line 1931 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the network login action is complete and successful.
+ */
+static gchar* _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self) {
+ gchar* result;
+ result = publishing_rajce_transaction_validate_xml (doc);
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 1943 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_on_login_network_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ GError * _inner_error_ = NULL;
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:213: EVENT: on_login_network_complete");
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = txn;
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self);
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = txn;
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self);
+#line 1971 "RajcePublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp7_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp8_ = NULL;
+ xmlNode* response = NULL;
+ PublishingRESTSupportXmlDocument* _tmp9_ = NULL;
+ xmlNode* _tmp10_ = NULL;
+ xmlNode* sessionToken = NULL;
+ PublishingRESTSupportXmlDocument* _tmp11_ = NULL;
+ xmlNode* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+ xmlNode* maxWidth = NULL;
+ PublishingRESTSupportXmlDocument* _tmp14_ = NULL;
+ xmlNode* _tmp15_ = NULL;
+ xmlNode* _tmp16_ = NULL;
+ xmlNode* maxHeight = NULL;
+ PublishingRESTSupportXmlDocument* _tmp17_ = NULL;
+ xmlNode* _tmp18_ = NULL;
+ xmlNode* _tmp19_ = NULL;
+ xmlNode* quality = NULL;
+ PublishingRESTSupportXmlDocument* _tmp20_ = NULL;
+ xmlNode* _tmp21_ = NULL;
+ xmlNode* _tmp22_ = NULL;
+ xmlNode* nick = NULL;
+ PublishingRESTSupportXmlDocument* _tmp23_ = NULL;
+ xmlNode* _tmp24_ = NULL;
+ xmlNode* _tmp25_ = NULL;
+ gint maxW = 0;
+ xmlNode* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ gint _tmp29_ = 0;
+ gint _tmp30_ = 0;
+ gint maxH = 0;
+ xmlNode* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+ gchar* _tmp33_ = NULL;
+ gint _tmp34_ = 0;
+ gint _tmp35_ = 0;
+ gint _tmp36_ = 0;
+ gint _tmp37_ = 0;
+ PublishingRajceSession* _tmp39_ = NULL;
+ xmlNode* _tmp40_ = NULL;
+ gchar* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+ xmlNode* _tmp43_ = NULL;
+ gchar* _tmp44_ = NULL;
+ gchar* _tmp45_ = NULL;
+ gint _tmp46_ = 0;
+ xmlNode* _tmp47_ = NULL;
+ gchar* _tmp48_ = NULL;
+ gchar* _tmp49_ = NULL;
+ gint _tmp50_ = 0;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = txn;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = publishing_rest_support_xml_document_parse_string (_tmp6_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp6_);
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ doc = _tmp8_;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2046 "RajcePublishing.c"
+ goto __catch17_spit_publishing_publishing_error;
+ }
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2055 "RajcePublishing.c"
+ }
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = doc;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = publishing_rest_support_xml_document_get_root_node (_tmp9_);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ response = _tmp10_;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = doc;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = response;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "sessionToken", &_inner_error_);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ sessionToken = _tmp13_;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2077 "RajcePublishing.c"
+ goto __catch17_spit_publishing_publishing_error;
+ }
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2088 "RajcePublishing.c"
+ }
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = doc;
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = response;
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = publishing_rest_support_xml_document_get_named_child (_tmp14_, _tmp15_, "maxWidth", &_inner_error_);
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ maxWidth = _tmp16_;
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2104 "RajcePublishing.c"
+ goto __catch17_spit_publishing_publishing_error;
+ }
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2115 "RajcePublishing.c"
+ }
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = doc;
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = response;
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = publishing_rest_support_xml_document_get_named_child (_tmp17_, _tmp18_, "maxHeight", &_inner_error_);
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ maxHeight = _tmp19_;
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2131 "RajcePublishing.c"
+ goto __catch17_spit_publishing_publishing_error;
+ }
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2142 "RajcePublishing.c"
+ }
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = doc;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = response;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = publishing_rest_support_xml_document_get_named_child (_tmp20_, _tmp21_, "quality", &_inner_error_);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ quality = _tmp22_;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2158 "RajcePublishing.c"
+ goto __catch17_spit_publishing_publishing_error;
+ }
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2169 "RajcePublishing.c"
+ }
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = doc;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = response;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = publishing_rest_support_xml_document_get_named_child (_tmp23_, _tmp24_, "nick", &_inner_error_);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ nick = _tmp25_;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2185 "RajcePublishing.c"
+ goto __catch17_spit_publishing_publishing_error;
+ }
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2196 "RajcePublishing.c"
+ }
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = maxWidth;
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = (gchar*) xmlNodeGetContent (_tmp26_);
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp28_ = _tmp27_;
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp29_ = atoi (_tmp28_);
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp30_ = _tmp29_;
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp28_);
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ maxW = _tmp30_;
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp31_ = maxHeight;
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp32_ = (gchar*) xmlNodeGetContent (_tmp31_);
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp33_ = _tmp32_;
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp34_ = atoi (_tmp33_);
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp35_ = _tmp34_;
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp33_);
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ maxH = _tmp35_;
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp36_ = maxW;
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp37_ = maxH;
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp36_ > _tmp37_) {
+#line 2232 "RajcePublishing.c"
+ gint _tmp38_ = 0;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp38_ = maxW;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ maxH = _tmp38_;
+#line 2238 "RajcePublishing.c"
+ }
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp39_ = self->priv->session;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp40_ = sessionToken;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp41_ = (gchar*) xmlNodeGetContent (_tmp40_);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp42_ = _tmp41_;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp43_ = nick;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp44_ = (gchar*) xmlNodeGetContent (_tmp43_);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp45_ = _tmp44_;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp46_ = maxH;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp47_ = quality;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp48_ = (gchar*) xmlNodeGetContent (_tmp47_);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp49_ = _tmp48_;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp50_ = atoi (_tmp49_);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_authenticate (_tmp39_, _tmp42_, _tmp45_, 0, _tmp46_, _tmp50_);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp49_);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp45_);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp42_);
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 2274 "RajcePublishing.c"
+ }
+ goto __finally17;
+ __catch17_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ gint code_int = 0;
+ GError* _tmp51_ = NULL;
+ const gchar* _tmp52_ = NULL;
+ gint _tmp53_ = 0;
+ gint _tmp54_ = 0;
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp51_ = err;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp52_ = _tmp51_->message;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp53_ = atoi (_tmp52_);
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ code_int = _tmp53_;
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp54_ = code_int;
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp54_ == 999) {
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:239: ERROR: on_login_network_complete, code 999");
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER);
+#line 2305 "RajcePublishing.c"
+ } else {
+ GError* _tmp55_ = NULL;
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:244: ERROR: on_login_network_complete");
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp55_ = err;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp55_);
+#line 2314 "RajcePublishing.c"
+ }
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2320 "RajcePublishing.c"
+ }
+ __finally17:
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2331 "RajcePublishing.c"
+ }
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_fetch_albums (self);
+#line 2335 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when a network login action fails due to a network error.
+ */
+static void publishing_rajce_rajce_publisher_on_login_network_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:257: EVENT: on_login_network_error");
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = bad_txn;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self);
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = bad_txn;
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self);
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER);
+#line 2367 "RajcePublishing.c"
+}
+
+
+/**
+ * Action that fetches all user albums from the Rajce.
+ */
+static void _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_albums_fetch_error ((PublishingRajceRajcePublisher*) self, _sender, err);
+#line 2377 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_albums_fetch_complete ((PublishingRajceRajcePublisher*) self, _sender);
+#line 2384 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_do_fetch_albums (PublishingRajceRajcePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingRajceGetAlbumsTransaction* get_albums_trans = NULL;
+ PublishingRajceSession* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ PublishingRajceGetAlbumsTransaction* _tmp5_ = NULL;
+ PublishingRajceGetAlbumsTransaction* _tmp6_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:268: ACTION: fetching albums");
+#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_);
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = publishing_rajce_rajce_publisher_get_url (self);
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rajce_get_albums_transaction_new (_tmp2_, _tmp4_);
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp4_);
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ get_albums_trans = _tmp6_;
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_albums_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_albums_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 2428 "RajcePublishing.c"
+ {
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (get_albums_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2436 "RajcePublishing.c"
+ goto __catch18_spit_publishing_publishing_error;
+ }
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (get_albums_trans);
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2447 "RajcePublishing.c"
+ }
+ }
+ goto __finally18;
+ __catch18_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp7_ = NULL;
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:282: ERROR: do_fetch_albums");
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = err;
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp7_);
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 2467 "RajcePublishing.c"
+ }
+ __finally18:
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (get_albums_trans);
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2480 "RajcePublishing.c"
+ }
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (get_albums_trans);
+#line 2484 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the fetch albums action completes successfully.
+ */
+static gint _publishing_rajce_album_compare_albums_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
+ gint result;
+ result = publishing_rajce_album_compare_albums ((PublishingRajceAlbum*) a, (PublishingRajceAlbum*) b);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 2496 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_on_albums_fetch_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ PublishingRajceAlbum** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ GeeArrayList* list = NULL;
+ GeeArrayList* _tmp8_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:292: EVENT: on_albums_fetch_complete");
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = txn;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = txn;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = txn;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:295: RajcePlugin: list of albums: %s", _tmp6_);
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp6_);
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = self->priv->albums;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7__length1 = self->priv->albums_length1;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp7_ != NULL) {
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums = NULL;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums_length1 = 0;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->_albums_size_ = self->priv->albums_length1;
+#line 2555 "RajcePublishing.c"
+ }
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = gee_array_list_new (PUBLISHING_RAJCE_TYPE_ALBUM, (GBoxedCopyFunc) publishing_rajce_album_ref, publishing_rajce_album_unref, NULL, NULL, NULL);
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ list = _tmp8_;
+#line 2561 "RajcePublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ PublishingRESTSupportTransaction* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp13_ = NULL;
+ xmlNode* response = NULL;
+ PublishingRESTSupportXmlDocument* _tmp14_ = NULL;
+ xmlNode* _tmp15_ = NULL;
+ xmlNode* sessionToken = NULL;
+ PublishingRESTSupportXmlDocument* _tmp16_ = NULL;
+ xmlNode* _tmp17_ = NULL;
+ xmlNode* _tmp18_ = NULL;
+ xmlNode* nodealbums = NULL;
+ PublishingRESTSupportXmlDocument* _tmp19_ = NULL;
+ xmlNode* _tmp20_ = NULL;
+ xmlNode* _tmp21_ = NULL;
+ GeeArrayList* _tmp96_ = NULL;
+ GeeArrayList* _tmp97_ = NULL;
+ gint _tmp98_ = 0;
+ gpointer* _tmp99_ = NULL;
+ PublishingRajceSession* _tmp100_ = NULL;
+ xmlNode* _tmp101_ = NULL;
+ gchar* _tmp102_ = NULL;
+ gchar* _tmp103_ = NULL;
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = txn;
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = publishing_rest_support_transaction_get_response (_tmp9_);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = publishing_rest_support_xml_document_parse_string (_tmp11_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp11_);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ doc = _tmp13_;
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2606 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2617 "RajcePublishing.c"
+ }
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = doc;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = publishing_rest_support_xml_document_get_root_node (_tmp14_);
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ response = _tmp15_;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = doc;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = response;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = publishing_rest_support_xml_document_get_named_child (_tmp16_, _tmp17_, "sessionToken", &_inner_error_);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ sessionToken = _tmp18_;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2639 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2652 "RajcePublishing.c"
+ }
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = doc;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = response;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = publishing_rest_support_xml_document_get_named_child (_tmp19_, _tmp20_, "albums", &_inner_error_);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ nodealbums = _tmp21_;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2668 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2681 "RajcePublishing.c"
+ }
+ {
+ xmlNode* album = NULL;
+ xmlNode* _tmp22_ = NULL;
+ xmlNode* _tmp23_ = NULL;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = nodealbums;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = _tmp22_->children;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ album = _tmp23_;
+#line 2693 "RajcePublishing.c"
+ {
+ gboolean _tmp24_ = FALSE;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = TRUE;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ while (TRUE) {
+#line 2700 "RajcePublishing.c"
+ xmlNode* _tmp27_ = NULL;
+ gint id = 0;
+ xmlNode* _tmp28_ = NULL;
+ gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gint _tmp31_ = 0;
+ gint _tmp32_ = 0;
+ xmlNode* _tmp33_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp34_ = NULL;
+ xmlNode* _tmp35_ = NULL;
+ xmlNode* _tmp36_ = NULL;
+ gchar* albumName = NULL;
+ gchar* _tmp37_ = NULL;
+ xmlNode* _tmp38_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp39_ = NULL;
+ xmlNode* _tmp40_ = NULL;
+ xmlNode* _tmp41_ = NULL;
+ gchar* url = NULL;
+ gchar* _tmp42_ = NULL;
+ xmlNode* _tmp43_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp44_ = NULL;
+ xmlNode* _tmp45_ = NULL;
+ xmlNode* _tmp46_ = NULL;
+ gchar* thumbUrl = NULL;
+ gchar* _tmp47_ = NULL;
+ xmlNode* _tmp48_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp49_ = NULL;
+ xmlNode* _tmp50_ = NULL;
+ xmlNode* _tmp51_ = NULL;
+ gchar* createDate = NULL;
+ gchar* _tmp52_ = NULL;
+ xmlNode* _tmp53_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp54_ = NULL;
+ xmlNode* _tmp55_ = NULL;
+ xmlNode* _tmp56_ = NULL;
+ gchar* updateDate = NULL;
+ gchar* _tmp57_ = NULL;
+ gboolean _tmp58_ = FALSE;
+ xmlNode* _tmp59_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp60_ = NULL;
+ xmlNode* _tmp61_ = NULL;
+ xmlNode* _tmp62_ = NULL;
+ gchar* _tmp63_ = NULL;
+ gchar* _tmp64_ = NULL;
+ gint _tmp65_ = 0;
+ gboolean _tmp66_ = FALSE;
+ gboolean hidden = FALSE;
+ gboolean _tmp67_ = FALSE;
+ xmlNode* _tmp68_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp69_ = NULL;
+ xmlNode* _tmp70_ = NULL;
+ xmlNode* _tmp71_ = NULL;
+ gchar* _tmp72_ = NULL;
+ gchar* _tmp73_ = NULL;
+ gint _tmp74_ = 0;
+ gboolean _tmp75_ = FALSE;
+ gboolean secure = FALSE;
+ xmlNode* _tmp76_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp77_ = NULL;
+ xmlNode* _tmp78_ = NULL;
+ xmlNode* _tmp79_ = NULL;
+ gint photoCount = 0;
+ gchar* _tmp80_ = NULL;
+ gchar* _tmp81_ = NULL;
+ gint _tmp82_ = 0;
+ gint _tmp83_ = 0;
+ GeeArrayList* _tmp84_ = NULL;
+ gint _tmp85_ = 0;
+ const gchar* _tmp86_ = NULL;
+ const gchar* _tmp87_ = NULL;
+ const gchar* _tmp88_ = NULL;
+ const gchar* _tmp89_ = NULL;
+ const gchar* _tmp90_ = NULL;
+ gboolean _tmp91_ = FALSE;
+ gboolean _tmp92_ = FALSE;
+ gint _tmp93_ = 0;
+ PublishingRajceAlbum* _tmp94_ = NULL;
+ PublishingRajceAlbum* _tmp95_ = NULL;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!_tmp24_) {
+#line 2781 "RajcePublishing.c"
+ xmlNode* _tmp25_ = NULL;
+ xmlNode* _tmp26_ = NULL;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = album;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = _tmp25_->next;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ album = _tmp26_;
+#line 2790 "RajcePublishing.c"
+ }
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = FALSE;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = album;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!(_tmp27_ != NULL)) {
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ break;
+#line 2800 "RajcePublishing.c"
+ }
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp28_ = album;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp29_ = (gchar*) xmlGetProp (_tmp28_, (xmlChar*) "id");
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp30_ = _tmp29_;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp31_ = atoi (_tmp30_);
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp32_ = _tmp31_;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp30_);
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ id = _tmp32_;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp34_ = doc;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp35_ = album;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp36_ = publishing_rest_support_xml_document_get_named_child (_tmp34_, _tmp35_, "albumName", &_inner_error_);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp33_ = _tmp36_;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2830 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2843 "RajcePublishing.c"
+ }
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp37_ = (gchar*) xmlNodeGetContent (_tmp33_);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ albumName = _tmp37_;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp39_ = doc;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp40_ = album;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp41_ = publishing_rest_support_xml_document_get_named_child (_tmp39_, _tmp40_, "url", &_inner_error_);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp38_ = _tmp41_;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2865 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2880 "RajcePublishing.c"
+ }
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp42_ = (gchar*) xmlNodeGetContent (_tmp38_);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ url = _tmp42_;
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp44_ = doc;
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp45_ = album;
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp46_ = publishing_rest_support_xml_document_get_named_child (_tmp44_, _tmp45_, "thumbUrl", &_inner_error_);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp43_ = _tmp46_;
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2904 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2921 "RajcePublishing.c"
+ }
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp47_ = (gchar*) xmlNodeGetContent (_tmp43_);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ thumbUrl = _tmp47_;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp49_ = doc;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp50_ = album;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp51_ = publishing_rest_support_xml_document_get_named_child (_tmp49_, _tmp50_, "createDate", &_inner_error_);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp48_ = _tmp51_;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2947 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 2966 "RajcePublishing.c"
+ }
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp52_ = (gchar*) xmlNodeGetContent (_tmp48_);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ createDate = _tmp52_;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp54_ = doc;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp55_ = album;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp56_ = publishing_rest_support_xml_document_get_named_child (_tmp54_, _tmp55_, "updateDate", &_inner_error_);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp53_ = _tmp56_;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (createDate);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2994 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (createDate);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3015 "RajcePublishing.c"
+ }
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp57_ = (gchar*) xmlNodeGetContent (_tmp53_);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ updateDate = _tmp57_;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp60_ = doc;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp61_ = album;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp62_ = publishing_rest_support_xml_document_get_named_child (_tmp60_, _tmp61_, "hidden", &_inner_error_);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp59_ = _tmp62_;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (updateDate);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (createDate);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3045 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (updateDate);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (createDate);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3068 "RajcePublishing.c"
+ }
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp63_ = (gchar*) xmlNodeGetContent (_tmp59_);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp64_ = _tmp63_;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp65_ = atoi (_tmp64_);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp66_ = _tmp65_ > 0;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp64_);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp66_) {
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp58_ = TRUE;
+#line 3084 "RajcePublishing.c"
+ } else {
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp58_ = FALSE;
+#line 3088 "RajcePublishing.c"
+ }
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ hidden = _tmp58_;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp69_ = doc;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp70_ = album;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp71_ = publishing_rest_support_xml_document_get_named_child (_tmp69_, _tmp70_, "secure", &_inner_error_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp68_ = _tmp71_;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (updateDate);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (createDate);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3116 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (updateDate);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (createDate);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3139 "RajcePublishing.c"
+ }
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp72_ = (gchar*) xmlNodeGetContent (_tmp68_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp73_ = _tmp72_;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp74_ = atoi (_tmp73_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp75_ = _tmp74_ > 0;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp73_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp75_) {
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp67_ = TRUE;
+#line 3155 "RajcePublishing.c"
+ } else {
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp67_ = FALSE;
+#line 3159 "RajcePublishing.c"
+ }
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ secure = _tmp67_;
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp77_ = doc;
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp78_ = album;
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp79_ = publishing_rest_support_xml_document_get_named_child (_tmp77_, _tmp78_, "photoCount", &_inner_error_);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp76_ = _tmp79_;
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (updateDate);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (createDate);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3187 "RajcePublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (updateDate);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (createDate);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3210 "RajcePublishing.c"
+ }
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp80_ = (gchar*) xmlNodeGetContent (_tmp76_);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp81_ = _tmp80_;
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp82_ = atoi (_tmp81_);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp83_ = _tmp82_;
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp81_);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ photoCount = _tmp83_;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp84_ = list;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp85_ = id;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp86_ = albumName;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp87_ = url;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp88_ = thumbUrl;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp89_ = createDate;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp90_ = updateDate;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp91_ = hidden;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp92_ = secure;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp93_ = photoCount;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp94_ = publishing_rajce_album_new (_tmp85_, _tmp86_, _tmp87_, _tmp88_, _tmp89_, _tmp90_, _tmp91_, _tmp92_, _tmp93_);
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp95_ = _tmp94_;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, _tmp95_);
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_album_unref0 (_tmp95_);
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (updateDate);
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (createDate);
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (thumbUrl);
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumName);
+#line 3262 "RajcePublishing.c"
+ }
+ }
+ }
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp96_ = list;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, GEE_TYPE_LIST, GeeList), _publishing_rajce_album_compare_albums_gcompare_data_func, NULL, NULL);
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp97_ = list;
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp99_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp98_);
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL);
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums = _tmp99_;
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums_length1 = _tmp98_;
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->_albums_size_ = self->priv->albums_length1;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp100_ = self->priv->session;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp101_ = sessionToken;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp102_ = (gchar*) xmlNodeGetContent (_tmp101_);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp103_ = _tmp102_;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_set_usertoken (_tmp100_, _tmp103_);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp103_);
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 3296 "RajcePublishing.c"
+ }
+ goto __finally19;
+ __catch19_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp104_ = NULL;
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:326: ERROR: on_albums_fetch_complete");
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp104_ = err;
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp104_);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3319 "RajcePublishing.c"
+ }
+ __finally19:
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3332 "RajcePublishing.c"
+ }
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_publishing_options_pane (self);
+#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (list);
+#line 3338 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the fetch albums transaction fails due to a network error.
+ */
+static void publishing_rajce_rajce_publisher_on_albums_fetch_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:338: EVENT: on_albums_fetch_error");
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = bad_txn;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = bad_txn;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = bad_txn;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = err;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_network_error (self, _tmp4_, _tmp5_);
+#line 3376 "RajcePublishing.c"
+}
+
+
+/**
+ * Action that shows the publishing options pane.
+ */
+static void _publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, gpointer self) {
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked ((PublishingRajceRajcePublisher*) self);
+#line 3386 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, PublishingRajcePublishingParameters* parameters, gpointer self) {
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked ((PublishingRajceRajcePublisher*) self, parameters);
+#line 3393 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_do_show_publishing_options_pane (PublishingRajceRajcePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRajcePublishingOptionsPane* opts_pane = NULL;
+ PublishingRajceSession* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingRajceAlbum** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ PublishingRajcePublishingOptionsPane* _tmp5_ = NULL;
+ PublishingRajcePublishingOptionsPane* _tmp6_ = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ SpitPublishingPluginHost* _tmp8_ = NULL;
+ GtkWidget* _tmp9_ = NULL;
+ GtkWidget* _tmp10_ = NULL;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:349: ACTION: installing publishing options pane");
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->session;
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_session_get_username (_tmp1_);
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = self->priv->albums;
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4__length1 = self->priv->albums_length1;
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rajce_publishing_options_pane_new (self, _tmp3_, _tmp4_, _tmp4__length1);
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp3_);
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ opts_pane = _tmp6_;
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (opts_pane, "logout", (GCallback) _publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked_publishing_rajce_publishing_options_pane_logout, self, 0);
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (opts_pane, "publish", (GCallback) _publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked_publishing_rajce_publishing_options_pane_publish, self, 0);
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (opts_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE);
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = self->priv->host;
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = publishing_rajce_publishing_options_pane_get_default_widget (opts_pane);
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_dialog_default_widget (_tmp8_, _tmp10_);
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (_tmp10_);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (opts_pane);
+#line 3457 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the user clicks logout in the publishing options pane.
+ */
+static void publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked (PublishingRajceRajcePublisher* self) {
+ PublishingRajceSession* _tmp0_ = NULL;
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:363: EVENT: on_publishing_options_pane_logout_cli" \
+"cked");
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_deauthenticate (_tmp0_);
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO);
+#line 3476 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the user clicks publish in the publishing options pane.
+ *
+ * @param parameters the publishing parameters
+ */
+static gpointer _publishing_rajce_publishing_parameters_ref0 (gpointer self) {
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self ? publishing_rajce_publishing_parameters_ref (self) : NULL;
+#line 3488 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked (PublishingRajceRajcePublisher* self, PublishingRajcePublishingParameters* parameters) {
+ PublishingRajcePublishingParameters* _tmp0_ = NULL;
+ PublishingRajcePublishingParameters* _tmp1_ = NULL;
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters));
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:375: EVENT: on_publishing_options_pane_publish_cl" \
+"icked");
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = parameters;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _publishing_rajce_publishing_parameters_ref0 (_tmp0_);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->parameters = _tmp1_;
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_begin_upload (self);
+#line 3511 "RajcePublishing.c"
+}
+
+
+/**
+ * Begin upload action: open existing album or create a new one
+ */
+static gboolean _int_equal (const gint* s1, const gint* s2) {
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (s1 == s2) {
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return TRUE;
+#line 3523 "RajcePublishing.c"
+ }
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (s1 == NULL) {
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return FALSE;
+#line 3529 "RajcePublishing.c"
+ }
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (s2 == NULL) {
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return FALSE;
+#line 3535 "RajcePublishing.c"
+ }
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return (*s1) == (*s2);
+#line 3539 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_create_album_error ((PublishingRajceRajcePublisher*) self, _sender, err);
+#line 3546 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_create_album_complete ((PublishingRajceRajcePublisher*) self, _sender);
+#line 3553 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_open_album_error ((PublishingRajceRajcePublisher*) self, _sender, err);
+#line 3560 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_open_album_complete ((PublishingRajceRajcePublisher*) self, _sender);
+#line 3567 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_do_begin_upload (PublishingRajceRajcePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRajcePublishingParameters* _tmp1_ = NULL;
+ gint* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ GError * _inner_error_ = NULL;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->parameters;
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = _tmp1_->album_id;
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = 0;
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_int_equal (_tmp2_, &_tmp3_) == TRUE) {
+#line 3591 "RajcePublishing.c"
+ PublishingRajceCreateAlbumTransaction* create_album_trans = NULL;
+ PublishingRajceSession* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ PublishingRajcePublishingParameters* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ PublishingRajcePublishingParameters* _tmp9_ = NULL;
+ gboolean* _tmp10_ = NULL;
+ PublishingRajceCreateAlbumTransaction* _tmp11_ = NULL;
+ PublishingRajceCreateAlbumTransaction* _tmp12_ = NULL;
+ PublishingRajceCreateAlbumTransaction* _tmp13_ = NULL;
+ PublishingRajceCreateAlbumTransaction* _tmp14_ = NULL;
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:389: ACTION: closing album");
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = self->priv->session;
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rajce_rajce_publisher_get_url (self);
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = self->priv->parameters;
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = _tmp7_->album_name;
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = self->priv->parameters;
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = _tmp9_->album_hidden;
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = publishing_rajce_create_album_transaction_new (_tmp4_, _tmp6_, _tmp8_, *_tmp10_);
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = _tmp11_;
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp6_);
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ create_album_trans = _tmp12_;
+#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = create_album_trans;
+#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = create_album_trans;
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 3636 "RajcePublishing.c"
+ {
+ PublishingRajceCreateAlbumTransaction* _tmp15_ = NULL;
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = create_album_trans;
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3647 "RajcePublishing.c"
+ goto __catch20_spit_publishing_publishing_error;
+ }
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (create_album_trans);
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3658 "RajcePublishing.c"
+ }
+ }
+ goto __finally20;
+ __catch20_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp16_ = NULL;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:399: ERROR: create album");
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = err;
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp16_);
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 3678 "RajcePublishing.c"
+ }
+ __finally20:
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (create_album_trans);
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3691 "RajcePublishing.c"
+ }
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (create_album_trans);
+#line 3695 "RajcePublishing.c"
+ } else {
+ PublishingRajceOpenAlbumTransaction* open_album_trans = NULL;
+ PublishingRajceSession* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ PublishingRajcePublishingParameters* _tmp20_ = NULL;
+ gint* _tmp21_ = NULL;
+ PublishingRajceOpenAlbumTransaction* _tmp22_ = NULL;
+ PublishingRajceOpenAlbumTransaction* _tmp23_ = NULL;
+ PublishingRajceOpenAlbumTransaction* _tmp24_ = NULL;
+ PublishingRajceOpenAlbumTransaction* _tmp25_ = NULL;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:406: ACTION: opening album");
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = self->priv->session;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = publishing_rajce_rajce_publisher_get_url (self);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = _tmp18_;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = self->priv->parameters;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = _tmp20_->album_id;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = publishing_rajce_open_album_transaction_new (_tmp17_, _tmp19_, *_tmp21_);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = _tmp22_;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp19_);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ open_album_trans = _tmp23_;
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = open_album_trans;
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = open_album_trans;
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 3735 "RajcePublishing.c"
+ {
+ PublishingRajceOpenAlbumTransaction* _tmp26_ = NULL;
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = open_album_trans;
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3746 "RajcePublishing.c"
+ goto __catch21_spit_publishing_publishing_error;
+ }
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (open_album_trans);
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3757 "RajcePublishing.c"
+ }
+ }
+ goto __finally21;
+ __catch21_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp27_ = NULL;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:416: ERROR: open album");
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = err;
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp27_);
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 3777 "RajcePublishing.c"
+ }
+ __finally21:
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (open_album_trans);
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3790 "RajcePublishing.c"
+ }
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (open_album_trans);
+#line 3794 "RajcePublishing.c"
+ }
+}
+
+
+/**
+ * Event triggered when the create album completes successfully.
+ */
+static gint* _int_dup (gint* self) {
+ gint* dup;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ dup = g_new0 (gint, 1);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ memcpy (dup, self, sizeof (gint));
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return dup;
+#line 3810 "RajcePublishing.c"
+}
+
+
+static gpointer __int_dup0 (gpointer self) {
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self ? _int_dup (self) : NULL;
+#line 3817 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_on_create_album_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:427: EVENT: on_create_album_complete");
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = txn;
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed, self);
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = txn;
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error, self);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = txn;
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:430: RajcePlugin: create album: %s", _tmp6_);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp6_);
+#line 3858 "RajcePublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp10_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp11_ = NULL;
+ xmlNode* response = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+ xmlNode* _tmp14_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp15_ = NULL;
+ xmlNode* _tmp16_ = NULL;
+ xmlNode* _tmp17_ = NULL;
+ gchar* sessionToken = NULL;
+ gchar* _tmp18_ = NULL;
+ xmlNode* _tmp19_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp20_ = NULL;
+ xmlNode* _tmp21_ = NULL;
+ xmlNode* _tmp22_ = NULL;
+ gchar* albumToken = NULL;
+ gchar* _tmp23_ = NULL;
+ xmlNode* _tmp24_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp25_ = NULL;
+ xmlNode* _tmp26_ = NULL;
+ xmlNode* _tmp27_ = NULL;
+ PublishingRajcePublishingParameters* _tmp28_ = NULL;
+ gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gint _tmp31_ = 0;
+ gint* _tmp32_ = NULL;
+ PublishingRajceSession* _tmp33_ = NULL;
+ const gchar* _tmp34_ = NULL;
+ PublishingRajceSession* _tmp35_ = NULL;
+ const gchar* _tmp36_ = NULL;
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = txn;
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = publishing_rest_support_xml_document_parse_string (_tmp9_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp9_);
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ doc = _tmp11_;
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3912 "RajcePublishing.c"
+ goto __catch22_spit_publishing_publishing_error;
+ }
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3921 "RajcePublishing.c"
+ }
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = doc;
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = publishing_rest_support_xml_document_get_root_node (_tmp12_);
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ response = _tmp13_;
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = doc;
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = response;
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = publishing_rest_support_xml_document_get_named_child (_tmp15_, _tmp16_, "sessionToken", &_inner_error_);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = _tmp17_;
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3943 "RajcePublishing.c"
+ goto __catch22_spit_publishing_publishing_error;
+ }
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3954 "RajcePublishing.c"
+ }
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = (gchar*) xmlNodeGetContent (_tmp14_);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ sessionToken = _tmp18_;
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = doc;
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = response;
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = publishing_rest_support_xml_document_get_named_child (_tmp20_, _tmp21_, "albumToken", &_inner_error_);
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = _tmp22_;
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3976 "RajcePublishing.c"
+ goto __catch22_spit_publishing_publishing_error;
+ }
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 3989 "RajcePublishing.c"
+ }
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = (gchar*) xmlNodeGetContent (_tmp19_);
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ albumToken = _tmp23_;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = doc;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = response;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = publishing_rest_support_xml_document_get_named_child (_tmp25_, _tmp26_, "albumID", &_inner_error_);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = _tmp27_;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumToken);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4013 "RajcePublishing.c"
+ goto __catch22_spit_publishing_publishing_error;
+ }
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumToken);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4028 "RajcePublishing.c"
+ }
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp28_ = self->priv->parameters;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp29_ = (gchar*) xmlNodeGetContent (_tmp24_);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp30_ = _tmp29_;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp31_ = atoi (_tmp30_);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp32_ = __int_dup0 (&_tmp31_);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp28_->album_id);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp28_->album_id = _tmp32_;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp30_);
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp33_ = self->priv->session;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp34_ = sessionToken;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_set_usertoken (_tmp33_, _tmp34_);
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp35_ = self->priv->session;
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp36_ = albumToken;
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_set_albumtoken (_tmp35_, _tmp36_);
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumToken);
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 4064 "RajcePublishing.c"
+ }
+ goto __finally22;
+ __catch22_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp37_ = NULL;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:443: ERROR: on_create_album_complete");
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp37_ = err;
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp37_);
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4085 "RajcePublishing.c"
+ }
+ __finally22:
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4096 "RajcePublishing.c"
+ }
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_upload_photos (self);
+#line 4100 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the create album transaction fails due to a network error.
+ */
+static void publishing_rajce_rajce_publisher_on_create_album_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:455: EVENT: on_create_album_error");
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = bad_txn;
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed, self);
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = bad_txn;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error, self);
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = bad_txn;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = err;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_network_error (self, _tmp4_, _tmp5_);
+#line 4138 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the open album completes successfully.
+ */
+static void publishing_rajce_rajce_publisher_on_open_album_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:466: EVENT: on_open_album_complete");
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = txn;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed, self);
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = txn;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error, self);
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = txn;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:469: RajcePlugin: open album: %s", _tmp6_);
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp6_);
+#line 4182 "RajcePublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp10_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp11_ = NULL;
+ xmlNode* response = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+ xmlNode* _tmp14_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp15_ = NULL;
+ xmlNode* _tmp16_ = NULL;
+ xmlNode* _tmp17_ = NULL;
+ gchar* sessionToken = NULL;
+ gchar* _tmp18_ = NULL;
+ xmlNode* _tmp19_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp20_ = NULL;
+ xmlNode* _tmp21_ = NULL;
+ xmlNode* _tmp22_ = NULL;
+ gchar* albumToken = NULL;
+ gchar* _tmp23_ = NULL;
+ PublishingRajceSession* _tmp24_ = NULL;
+ const gchar* _tmp25_ = NULL;
+ PublishingRajceSession* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = txn;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = publishing_rest_support_xml_document_parse_string (_tmp9_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp9_);
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ doc = _tmp11_;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4227 "RajcePublishing.c"
+ goto __catch23_spit_publishing_publishing_error;
+ }
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4236 "RajcePublishing.c"
+ }
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = doc;
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = publishing_rest_support_xml_document_get_root_node (_tmp12_);
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ response = _tmp13_;
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = doc;
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = response;
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = publishing_rest_support_xml_document_get_named_child (_tmp15_, _tmp16_, "sessionToken", &_inner_error_);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = _tmp17_;
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4258 "RajcePublishing.c"
+ goto __catch23_spit_publishing_publishing_error;
+ }
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4269 "RajcePublishing.c"
+ }
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = (gchar*) xmlNodeGetContent (_tmp14_);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ sessionToken = _tmp18_;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = doc;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = response;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = publishing_rest_support_xml_document_get_named_child (_tmp20_, _tmp21_, "albumToken", &_inner_error_);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = _tmp22_;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4291 "RajcePublishing.c"
+ goto __catch23_spit_publishing_publishing_error;
+ }
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4304 "RajcePublishing.c"
+ }
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = (gchar*) xmlNodeGetContent (_tmp19_);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ albumToken = _tmp23_;
+#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = self->priv->session;
+#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = sessionToken;
+#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_set_usertoken (_tmp24_, _tmp25_);
+#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = self->priv->session;
+#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = albumToken;
+#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_set_albumtoken (_tmp26_, _tmp27_);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (albumToken);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 4328 "RajcePublishing.c"
+ }
+ goto __finally23;
+ __catch23_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp28_ = NULL;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:481: ERROR: on_open_album_complete");
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp28_ = err;
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp28_);
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4349 "RajcePublishing.c"
+ }
+ __finally23:
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4360 "RajcePublishing.c"
+ }
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_upload_photos (self);
+#line 4364 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the open album transaction fails due to a network error.
+ */
+static void publishing_rajce_rajce_publisher_on_open_album_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:493: EVENT: on_open_album_error");
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = bad_txn;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed, self);
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = bad_txn;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error, self);
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = bad_txn;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = err;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_network_error (self, _tmp4_, _tmp5_);
+#line 4402 "RajcePublishing.c"
+}
+
+
+/**
+ * Upload photos: the key part of the plugin
+ */
+static void _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self) {
+#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_upload_photos_complete ((PublishingRajceRajcePublisher*) self, _sender, num_photos_published);
+#line 4412 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self) {
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_upload_photos_error ((PublishingRajceRajcePublisher*) self, _sender, err);
+#line 4419 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_upload_photos_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self) {
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_upload_photos_status_updated ((PublishingRajceRajcePublisher*) self, file_number, fraction_complete);
+#line 4426 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_do_upload_photos (PublishingRajceRajcePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRajceSession* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ void* _tmp3_ = NULL;
+ GDestroyNotify _tmp4_ = NULL;
+ SpitPublishingProgressCallback _tmp5_ = NULL;
+ SpitPublishingPublishable** publishables = NULL;
+ SpitPublishingPluginHost* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ SpitPublishingPublishable** _tmp8_ = NULL;
+ gint publishables_length1 = 0;
+ gint _publishables_size_ = 0;
+ PublishingRajceUploader* uploader = NULL;
+ PublishingRajceSession* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ PublishingRajcePublishingParameters* _tmp12_ = NULL;
+ PublishingRajceUploader* _tmp13_ = NULL;
+ PublishingRajceUploader* _tmp14_ = NULL;
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:504: ACTION: uploading photos");
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->session;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_session_get_maxsize (_tmp1_);
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = spit_publishing_plugin_host_serialize_publishables (_tmp0_, _tmp2_, FALSE, &_tmp3_, &_tmp4_);
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->progress_reporter = _tmp5_;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->progress_reporter_target = _tmp3_;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = _tmp4_;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = self->priv->host;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = spit_publishing_plugin_host_get_publishables (_tmp6_, &_tmp7_);
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishables = _tmp8_;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishables_length1 = _tmp7_;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishables_size_ = publishables_length1;
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = self->priv->session;
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = publishing_rajce_rajce_publisher_get_url (self);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = self->priv->parameters;
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = publishing_rajce_uploader_new (_tmp9_, _tmp11_, publishables, publishables_length1, _tmp12_);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = _tmp13_;
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp11_);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ uploader = _tmp14_;
+#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0);
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error, self, 0);
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_rajce_rajce_publisher_on_upload_photos_status_updated_spit_publishing_progress_callback, self);
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_batch_uploader_unref0 (uploader);
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 4512 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the batch uploader reports that at least one of the
+ * network transactions encapsulating uploads has completed successfully
+ */
+static void publishing_rajce_rajce_publisher_on_upload_photos_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) {
+ PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:520: EVENT: on_upload_photos_complete");
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = uploader;
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = uploader;
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_end_upload (self);
+#line 4545 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the batch uploader reports that at least one of the
+ * network transactions encapsulating uploads has caused a network error
+ */
+static void publishing_rajce_rajce_publisher_on_upload_photos_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err) {
+ PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ GError* _tmp4_ = NULL;
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:534: EVENT: on_upload_photos_error");
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = uploader;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = uploader;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = err;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp4_);
+#line 4581 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when upload progresses and the status needs to be updated.
+ */
+static void publishing_rajce_rajce_publisher_on_upload_photos_status_updated (PublishingRajceRajcePublisher* self, gint file_number, gdouble completed_fraction) {
+ gboolean _tmp0_ = FALSE;
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp0_) {
+#line 4596 "RajcePublishing.c"
+ gdouble _tmp1_ = 0.0;
+ SpitPublishingProgressCallback _tmp2_ = NULL;
+ void* _tmp2__target = NULL;
+ SpitPublishingProgressCallback _tmp3_ = NULL;
+ void* _tmp3__target = NULL;
+ gint _tmp4_ = 0;
+ gdouble _tmp5_ = 0.0;
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = completed_fraction;
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:547: EVENT: uploader reports upload %.2f percent " \
+"complete.", 100.0 * _tmp1_);
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = self->priv->progress_reporter;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2__target = self->priv->progress_reporter_target;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _vala_assert (_tmp2_ != NULL, "progress_reporter != null");
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = self->priv->progress_reporter;
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3__target = self->priv->progress_reporter_target;
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = file_number;
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = completed_fraction;
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ (_tmp4_, _tmp5_, _tmp3__target);
+#line 4624 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_rajce_publisher_do_end_upload (PublishingRajceRajcePublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = publishing_rajce_rajce_publisher_get_show_album (self);
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp0_) {
+#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_get_album_url (self);
+#line 4639 "RajcePublishing.c"
+ } else {
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_close_album (self);
+#line 4643 "RajcePublishing.c"
+ }
+}
+
+
+/**
+ * End upload action: get album url
+ */
+static void _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_get_album_url_error ((PublishingRajceRajcePublisher*) self, _sender, err);
+#line 4654 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_get_album_url_complete ((PublishingRajceRajcePublisher*) self, _sender);
+#line 4661 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_do_get_album_url (PublishingRajceRajcePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRajceGetAlbumUrlTransaction* get_album_url_trans = NULL;
+ PublishingRajceSession* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingRajceGetAlbumUrlTransaction* _tmp4_ = NULL;
+ PublishingRajceGetAlbumUrlTransaction* _tmp5_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:570: ACTION: getting album URL");
+#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->session;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_rajce_publisher_get_url (self);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishing_rajce_get_album_url_transaction_new (_tmp1_, _tmp3_);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp3_);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ get_album_url_trans = _tmp5_;
+#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_album_url_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_album_url_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 4700 "RajcePublishing.c"
+ {
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (get_album_url_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4708 "RajcePublishing.c"
+ goto __catch24_spit_publishing_publishing_error;
+ }
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (get_album_url_trans);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4719 "RajcePublishing.c"
+ }
+ }
+ goto __finally24;
+ __catch24_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp6_ = NULL;
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:581: ERROR: close album");
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = err;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp6_);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 4739 "RajcePublishing.c"
+ }
+ __finally24:
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (get_album_url_trans);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4752 "RajcePublishing.c"
+ }
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (get_album_url_trans);
+#line 4756 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the get album url completes successfully.
+ */
+static void publishing_rajce_rajce_publisher_on_get_album_url_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:591: EVENT: on_get_album_url_complete");
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = txn;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed, self);
+#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = txn;
+#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error, self);
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = txn;
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:594: RajcePlugin: get album url: %s", _tmp6_);
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp6_);
+#line 4800 "RajcePublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp10_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp11_ = NULL;
+ xmlNode* response = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+ xmlNode* _tmp14_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp15_ = NULL;
+ xmlNode* _tmp16_ = NULL;
+ xmlNode* _tmp17_ = NULL;
+ gchar* sessionToken = NULL;
+ gchar* _tmp18_ = NULL;
+ xmlNode* _tmp19_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp20_ = NULL;
+ xmlNode* _tmp21_ = NULL;
+ xmlNode* _tmp22_ = NULL;
+ gchar* url = NULL;
+ gchar* _tmp23_ = NULL;
+ PublishingRajceSession* _tmp24_ = NULL;
+ const gchar* _tmp25_ = NULL;
+ PublishingRajceSession* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = txn;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = publishing_rest_support_xml_document_parse_string (_tmp9_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp9_);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ doc = _tmp11_;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4845 "RajcePublishing.c"
+ goto __catch25_spit_publishing_publishing_error;
+ }
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4854 "RajcePublishing.c"
+ }
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = doc;
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = publishing_rest_support_xml_document_get_root_node (_tmp12_);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ response = _tmp13_;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = doc;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = response;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = publishing_rest_support_xml_document_get_named_child (_tmp15_, _tmp16_, "sessionToken", &_inner_error_);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = _tmp17_;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4876 "RajcePublishing.c"
+ goto __catch25_spit_publishing_publishing_error;
+ }
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4887 "RajcePublishing.c"
+ }
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = (gchar*) xmlNodeGetContent (_tmp14_);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ sessionToken = _tmp18_;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = doc;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = response;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = publishing_rest_support_xml_document_get_named_child (_tmp20_, _tmp21_, "url", &_inner_error_);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = _tmp22_;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4909 "RajcePublishing.c"
+ goto __catch25_spit_publishing_publishing_error;
+ }
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4922 "RajcePublishing.c"
+ }
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = (gchar*) xmlNodeGetContent (_tmp19_);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ url = _tmp23_;
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = self->priv->session;
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = sessionToken;
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_set_usertoken (_tmp24_, _tmp25_);
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = self->priv->session;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = url;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_set_albumticket (_tmp26_, _tmp27_);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (url);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 4946 "RajcePublishing.c"
+ }
+ goto __finally25;
+ __catch25_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:606: ERROR: on_get_album_url_complete");
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 4960 "RajcePublishing.c"
+ }
+ __finally25:
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 4971 "RajcePublishing.c"
+ }
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_close_album (self);
+#line 4975 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the get album url transaction fails due to a network error.
+ */
+static void publishing_rajce_rajce_publisher_on_get_album_url_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:619: EVENT: on_get_album_url_error");
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = bad_txn;
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed, self);
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = bad_txn;
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error, self);
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_close_album (self);
+#line 5007 "RajcePublishing.c"
+}
+
+
+/**
+ * End upload action: close album
+ */
+static void _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_close_album_error ((PublishingRajceRajcePublisher*) self, _sender, err);
+#line 5017 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_on_close_album_complete ((PublishingRajceRajcePublisher*) self, _sender);
+#line 5024 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_do_close_album (PublishingRajceRajcePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRajceCloseAlbumTransaction* close_album_trans = NULL;
+ PublishingRajceSession* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingRajceCloseAlbumTransaction* _tmp4_ = NULL;
+ PublishingRajceCloseAlbumTransaction* _tmp5_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:633: ACTION: closing album");
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->session;
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_rajce_publisher_get_url (self);
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishing_rajce_close_album_transaction_new (_tmp1_, _tmp3_);
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp3_);
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ close_album_trans = _tmp5_;
+#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (close_album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (close_album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 5063 "RajcePublishing.c"
+ {
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (close_album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5071 "RajcePublishing.c"
+ goto __catch26_spit_publishing_publishing_error;
+ }
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (close_album_trans);
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 5082 "RajcePublishing.c"
+ }
+ }
+ goto __finally26;
+ __catch26_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp6_ = NULL;
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:644: ERROR: close album");
+#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = err;
+#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp6_);
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 5102 "RajcePublishing.c"
+ }
+ __finally26:
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (close_album_trans);
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 5115 "RajcePublishing.c"
+ }
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (close_album_trans);
+#line 5119 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the close album completes successfully.
+ */
+static void publishing_rajce_rajce_publisher_on_close_album_complete (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:654: EVENT: on_close_album_complete");
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = txn;
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed, self);
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = txn;
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error, self);
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = txn;
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:657: RajcePlugin: close album: %s", _tmp6_);
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp6_);
+#line 5163 "RajcePublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp10_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp11_ = NULL;
+ xmlNode* response = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+ xmlNode* _tmp14_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp15_ = NULL;
+ xmlNode* _tmp16_ = NULL;
+ xmlNode* _tmp17_ = NULL;
+ gchar* sessionToken = NULL;
+ gchar* _tmp18_ = NULL;
+ PublishingRajceSession* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+ PublishingRajceSession* _tmp21_ = NULL;
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = txn;
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = publishing_rest_support_xml_document_parse_string (_tmp9_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp9_);
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ doc = _tmp11_;
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5201 "RajcePublishing.c"
+ goto __catch27_spit_publishing_publishing_error;
+ }
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 5210 "RajcePublishing.c"
+ }
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = doc;
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = publishing_rest_support_xml_document_get_root_node (_tmp12_);
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ response = _tmp13_;
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = doc;
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = response;
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = publishing_rest_support_xml_document_get_named_child (_tmp15_, _tmp16_, "sessionToken", &_inner_error_);
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = _tmp17_;
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5232 "RajcePublishing.c"
+ goto __catch27_spit_publishing_publishing_error;
+ }
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 5243 "RajcePublishing.c"
+ }
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = (gchar*) xmlNodeGetContent (_tmp14_);
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ sessionToken = _tmp18_;
+#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = self->priv->session;
+#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = sessionToken;
+#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_set_usertoken (_tmp19_, _tmp20_);
+#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = self->priv->session;
+#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_set_albumtoken (_tmp21_, NULL);
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (sessionToken);
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 5263 "RajcePublishing.c"
+ }
+ goto __finally27;
+ __catch27_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp22_ = NULL;
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:668: ERROR: on_close_album_complete");
+#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = err;
+#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp22_);
+#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 5284 "RajcePublishing.c"
+ }
+ __finally27:
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 5295 "RajcePublishing.c"
+ }
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_success_pane (self);
+#line 5299 "RajcePublishing.c"
+}
+
+
+/**
+ * Event triggered when the close album transaction fails due to a network error.
+ */
+static void publishing_rajce_rajce_publisher_on_close_album_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:680: EVENT: on_close_album_error");
+#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = bad_txn;
+#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed, self);
+#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = bad_txn;
+#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error, self);
+#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_success_pane (self);
+#line 5331 "RajcePublishing.c"
+}
+
+
+/**
+ * Action to display the success pane in the publishing dialog.
+ */
+static void publishing_rajce_rajce_publisher_do_show_success_pane (PublishingRajceRajcePublisher* self) {
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ SpitPublishingPluginHost* _tmp11_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:694: ACTION: installing success pane");
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = publishing_rajce_rajce_publisher_get_show_album (self);
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp1_) {
+#line 5352 "RajcePublishing.c"
+ PublishingRajceSession* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = publishing_rajce_session_get_albumticket (_tmp2_);
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = _tmp4_ != NULL;
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp4_);
+#line 5366 "RajcePublishing.c"
+ } else {
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = FALSE;
+#line 5370 "RajcePublishing.c"
+ }
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp0_) {
+#line 5374 "RajcePublishing.c"
+ {
+ PublishingRajceSession* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = self->priv->session;
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = publishing_rajce_session_get_albumticket (_tmp5_);
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = g_strconcat ("xdg-open ", _tmp7_, NULL);
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_spawn_command_line_async (_tmp9_, &_inner_error_);
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp9_);
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp7_);
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == G_SPAWN_ERROR) {
+#line 5401 "RajcePublishing.c"
+ goto __catch28_g_spawn_error;
+ }
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 5410 "RajcePublishing.c"
+ }
+ }
+ goto __finally28;
+ __catch28_g_spawn_error:
+ {
+ GError* e = NULL;
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ e = _inner_error_;
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (e);
+#line 5423 "RajcePublishing.c"
+ }
+ __finally28:
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 5434 "RajcePublishing.c"
+ }
+ }
+#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = self->priv->host;
+#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp10_, FALSE);
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = self->priv->host;
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_install_success_pane (_tmp11_);
+#line 5445 "RajcePublishing.c"
+}
+
+
+/**
+ * Helper event to handle network errors.
+ */
+static void publishing_rajce_rajce_publisher_on_network_error (PublishingRajceRajcePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ GError* _tmp0_ = NULL;
+#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:714: EVENT: on_network_error");
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = err;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error (self, _tmp0_);
+#line 5464 "RajcePublishing.c"
+}
+
+
+/**
+ * Action to display an error to the user.
+ */
+static void publishing_rajce_rajce_publisher_do_show_error (PublishingRajceRajcePublisher* self, GError* e) {
+ gchar* error_type = NULL;
+ gchar* _tmp0_ = NULL;
+ GError* _tmp1_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ GError* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:723: ACTION: do_show_error");
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = g_strdup ("UNKNOWN");
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ error_type = _tmp0_;
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = e;
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_error_matches (_tmp1_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER)) {
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER);
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (error_type);
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return;
+#line 5499 "RajcePublishing.c"
+ } else {
+ GError* _tmp2_ = NULL;
+#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = e;
+#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_error_matches (_tmp2_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED)) {
+#line 5506 "RajcePublishing.c"
+ gchar* _tmp3_ = NULL;
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = g_strdup ("COMMUNICATION_FAILED");
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (error_type);
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ error_type = _tmp3_;
+#line 5514 "RajcePublishing.c"
+ } else {
+ GError* _tmp4_ = NULL;
+#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = e;
+#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_error_matches (_tmp4_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR)) {
+#line 5521 "RajcePublishing.c"
+ gchar* _tmp5_ = NULL;
+#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = g_strdup ("PROTOCOL_ERROR");
+#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (error_type);
+#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ error_type = _tmp5_;
+#line 5529 "RajcePublishing.c"
+ } else {
+ GError* _tmp6_ = NULL;
+#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = e;
+#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_error_matches (_tmp6_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR)) {
+#line 5536 "RajcePublishing.c"
+ gchar* _tmp7_ = NULL;
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = g_strdup ("SERVICE_ERROR");
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (error_type);
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ error_type = _tmp7_;
+#line 5544 "RajcePublishing.c"
+ } else {
+ GError* _tmp8_ = NULL;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = e;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_error_matches (_tmp8_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE)) {
+#line 5551 "RajcePublishing.c"
+ gchar* _tmp9_ = NULL;
+#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = g_strdup ("MALFORMED_RESPONSE");
+#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (error_type);
+#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ error_type = _tmp9_;
+#line 5559 "RajcePublishing.c"
+ } else {
+ GError* _tmp10_ = NULL;
+#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = e;
+#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_error_matches (_tmp10_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR)) {
+#line 5566 "RajcePublishing.c"
+ gchar* _tmp11_ = NULL;
+#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = g_strdup ("LOCAL_FILE_ERROR");
+#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (error_type);
+#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ error_type = _tmp11_;
+#line 5574 "RajcePublishing.c"
+ } else {
+ GError* _tmp12_ = NULL;
+#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = e;
+#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_error_matches (_tmp12_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) {
+#line 5581 "RajcePublishing.c"
+ gchar* _tmp13_ = NULL;
+#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = g_strdup ("EXPIRED_SESSION");
+#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (error_type);
+#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ error_type = _tmp13_;
+#line 5589 "RajcePublishing.c"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = error_type;
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = e;
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = _tmp15_->message;
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = g_strdup_printf ("Unhandled error: type=%s; message='%s'", _tmp14_, _tmp16_);
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = _tmp17_;
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:743: %s", _tmp18_);
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp18_);
+#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = _ ("An error message occurred when publishing to Rajce. Please try again.");
+#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_do_show_error_message (self, _tmp19_);
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (error_type);
+#line 5617 "RajcePublishing.c"
+}
+
+
+/**
+ * Action to display an error message to the user.
+ */
+static void publishing_rajce_rajce_publisher_do_show_error_message (PublishingRajceRajcePublisher* self, const gchar* message) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self));
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (message != NULL);
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:752: ACTION: do_show_error_message");
+#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = message;
+#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_install_static_message_pane (_tmp0_, _tmp1_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE);
+#line 5639 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_class_init (PublishingRajceRajcePublisherClass * klass) {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_parent_class = g_type_class_peek_parent (klass);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRajceRajcePublisherPrivate));
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_rajce_rajce_publisher_finalize;
+#line 5650 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->get_service = (SpitPublishingService* (*)(SpitPublishingPublisher*)) publishing_rajce_rajce_publisher_real_get_service;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->is_running = (gboolean (*)(SpitPublishingPublisher*)) publishing_rajce_rajce_publisher_real_is_running;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->start = (void (*)(SpitPublishingPublisher*)) publishing_rajce_rajce_publisher_real_start;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->stop = (void (*)(SpitPublishingPublisher*)) publishing_rajce_rajce_publisher_real_stop;
+#line 5665 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_instance_init (PublishingRajceRajcePublisher * self) {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv = PUBLISHING_RAJCE_RAJCE_PUBLISHER_GET_PRIVATE (self);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->host = NULL;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->service = NULL;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->running = FALSE;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums = NULL;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums_length1 = 0;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->_albums_size_ = self->priv->albums_length1;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->parameters = NULL;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE;
+#line 5690 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_rajce_publisher_finalize (GObject* obj) {
+ PublishingRajceRajcePublisher * self;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->host);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->service);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL);
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_OBJECT_CLASS (publishing_rajce_rajce_publisher_parent_class)->finalize (obj);
+#line 5718 "RajcePublishing.c"
+}
+
+
+GType publishing_rajce_rajce_publisher_get_type (void) {
+ static volatile gsize publishing_rajce_rajce_publisher_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_rajce_publisher_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceRajcePublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_rajce_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceRajcePublisher), 0, (GInstanceInitFunc) publishing_rajce_rajce_publisher_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_rajce_rajce_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_rajce_rajce_publisher_type_id;
+ publishing_rajce_rajce_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRajceRajcePublisher", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_rajce_rajce_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info);
+ g_once_init_leave (&publishing_rajce_rajce_publisher_type_id__volatile, publishing_rajce_rajce_publisher_type_id);
+ }
+ return publishing_rajce_rajce_publisher_type_id__volatile;
+}
+
+
+PublishingRajceAlbum* publishing_rajce_album_construct (GType object_type, gint id, const gchar* albumName, const gchar* url, const gchar* thumbUrl, const gchar* createDate, const gchar* updateDate, gboolean hidden, gboolean secure, gint photoCount) {
+ PublishingRajceAlbum* self = NULL;
+ gint _tmp0_ = 0;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gboolean _tmp11_ = FALSE;
+ gboolean _tmp12_ = FALSE;
+ gint _tmp13_ = 0;
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (albumName != NULL, NULL);
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (thumbUrl != NULL, NULL);
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (createDate != NULL, NULL);
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (updateDate != NULL, NULL);
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceAlbum*) g_type_create_instance (object_type);
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = id;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->id = _tmp0_;
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = albumName;
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->albumName);
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->albumName = _tmp2_;
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = url;
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = g_strdup (_tmp3_);
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->url);
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->url = _tmp4_;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = thumbUrl;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = g_strdup (_tmp5_);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->thumbUrl);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->thumbUrl = _tmp6_;
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = createDate;
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = g_strdup (_tmp7_);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->createDate);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->createDate = _tmp8_;
+#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = updateDate;
+#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = g_strdup (_tmp9_);
+#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->updateDate);
+#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->updateDate = _tmp10_;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = hidden;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->hidden = _tmp11_;
+#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = secure;
+#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->secure = _tmp12_;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = photoCount;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->photoCount = _tmp13_;
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 5822 "RajcePublishing.c"
+}
+
+
+PublishingRajceAlbum* publishing_rajce_album_new (gint id, const gchar* albumName, const gchar* url, const gchar* thumbUrl, const gchar* createDate, const gchar* updateDate, gboolean hidden, gboolean secure, gint photoCount) {
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_album_construct (PUBLISHING_RAJCE_TYPE_ALBUM, id, albumName, url, thumbUrl, createDate, updateDate, hidden, secure, photoCount);
+#line 5829 "RajcePublishing.c"
+}
+
+
+gint publishing_rajce_album_compare_albums (PublishingRajceAlbum* a, PublishingRajceAlbum* b) {
+ gint result = 0;
+ gboolean _tmp0_ = FALSE;
+ PublishingRajceAlbum* _tmp1_ = NULL;
+ PublishingRajceAlbum* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ PublishingRajceAlbum* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail ((a == NULL) || PUBLISHING_RAJCE_IS_ALBUM (a), 0);
+#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail ((b == NULL) || PUBLISHING_RAJCE_IS_ALBUM (b), 0);
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = a;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp1_ == NULL) {
+#line 5850 "RajcePublishing.c"
+ PublishingRajceAlbum* _tmp2_ = NULL;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = b;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = _tmp2_ == NULL;
+#line 5856 "RajcePublishing.c"
+ } else {
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = FALSE;
+#line 5860 "RajcePublishing.c"
+ }
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp0_) {
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = 0;
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 5868 "RajcePublishing.c"
+ } else {
+ gboolean _tmp3_ = FALSE;
+ PublishingRajceAlbum* _tmp4_ = NULL;
+#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = a;
+#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp4_ == NULL) {
+#line 5876 "RajcePublishing.c"
+ PublishingRajceAlbum* _tmp5_ = NULL;
+#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = b;
+#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = _tmp5_ != NULL;
+#line 5882 "RajcePublishing.c"
+ } else {
+#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = FALSE;
+#line 5886 "RajcePublishing.c"
+ }
+#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp3_) {
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = 1;
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 5894 "RajcePublishing.c"
+ } else {
+ gboolean _tmp6_ = FALSE;
+ PublishingRajceAlbum* _tmp7_ = NULL;
+#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = a;
+#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp7_ != NULL) {
+#line 5902 "RajcePublishing.c"
+ PublishingRajceAlbum* _tmp8_ = NULL;
+#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = b;
+#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp8_ == NULL;
+#line 5908 "RajcePublishing.c"
+ } else {
+#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = FALSE;
+#line 5912 "RajcePublishing.c"
+ }
+#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp6_) {
+#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = -1;
+#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 5920 "RajcePublishing.c"
+ }
+ }
+ }
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = b;
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = _tmp9_->updateDate;
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = a;
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = _tmp11_->updateDate;
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = g_ascii_strcasecmp (_tmp10_, _tmp12_);
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp13_;
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 5938 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_value_album_init (GValue* value) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 5945 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_value_album_free_value (GValue* value) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_album_unref (value->data[0].v_pointer);
+#line 5954 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_value_album_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ dest_value->data[0].v_pointer = publishing_rajce_album_ref (src_value->data[0].v_pointer);
+#line 5964 "RajcePublishing.c"
+ } else {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 5968 "RajcePublishing.c"
+ }
+}
+
+
+static gpointer publishing_rajce_value_album_peek_pointer (const GValue* value) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return value->data[0].v_pointer;
+#line 5976 "RajcePublishing.c"
+}
+
+
+static gchar* publishing_rajce_value_album_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 5983 "RajcePublishing.c"
+ PublishingRajceAlbum* object;
+ object = collect_values[0].v_pointer;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 5990 "RajcePublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 5994 "RajcePublishing.c"
+ }
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = publishing_rajce_album_ref (object);
+#line 5998 "RajcePublishing.c"
+ } else {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6002 "RajcePublishing.c"
+ }
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 6006 "RajcePublishing.c"
+}
+
+
+static gchar* publishing_rajce_value_album_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingRajceAlbum** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!object_p) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 6017 "RajcePublishing.c"
+ }
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = NULL;
+#line 6023 "RajcePublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 6027 "RajcePublishing.c"
+ } else {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = publishing_rajce_album_ref (value->data[0].v_pointer);
+#line 6031 "RajcePublishing.c"
+ }
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 6035 "RajcePublishing.c"
+}
+
+
+GParamSpec* publishing_rajce_param_spec_album (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingRajceParamSpecAlbum* spec;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_ALBUM), NULL);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 6049 "RajcePublishing.c"
+}
+
+
+gpointer publishing_rajce_value_get_album (const GValue* value) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ALBUM), NULL);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return value->data[0].v_pointer;
+#line 6058 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_value_set_album (GValue* value, gpointer v_object) {
+ PublishingRajceAlbum* old;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ALBUM));
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (v_object) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ALBUM));
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_album_ref (value->data[0].v_pointer);
+#line 6078 "RajcePublishing.c"
+ } else {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6082 "RajcePublishing.c"
+ }
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (old) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_album_unref (old);
+#line 6088 "RajcePublishing.c"
+ }
+}
+
+
+void publishing_rajce_value_take_album (GValue* value, gpointer v_object) {
+ PublishingRajceAlbum* old;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ALBUM));
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (v_object) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ALBUM));
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 6107 "RajcePublishing.c"
+ } else {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6111 "RajcePublishing.c"
+ }
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (old) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_album_unref (old);
+#line 6117 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_album_class_init (PublishingRajceAlbumClass * klass) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_album_parent_class = g_type_class_peek_parent (klass);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ ((PublishingRajceAlbumClass *) klass)->finalize = publishing_rajce_album_finalize;
+#line 6127 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_album_instance_init (PublishingRajceAlbum * self) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->ref_count = 1;
+#line 6134 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_album_finalize (PublishingRajceAlbum* obj) {
+ PublishingRajceAlbum * self;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbum);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->albumName);
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->url);
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->thumbUrl);
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->createDate);
+#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->updateDate);
+#line 6154 "RajcePublishing.c"
+}
+
+
+GType publishing_rajce_album_get_type (void) {
+ static volatile gsize publishing_rajce_album_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_album_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_album_init, publishing_rajce_value_album_free_value, publishing_rajce_value_album_copy_value, publishing_rajce_value_album_peek_pointer, "p", publishing_rajce_value_album_collect_value, "p", publishing_rajce_value_album_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceAlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceAlbum), 0, (GInstanceInitFunc) publishing_rajce_album_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 publishing_rajce_album_type_id;
+ publishing_rajce_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajceAlbum", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_rajce_album_type_id__volatile, publishing_rajce_album_type_id);
+ }
+ return publishing_rajce_album_type_id__volatile;
+}
+
+
+gpointer publishing_rajce_album_ref (gpointer instance) {
+ PublishingRajceAlbum* self;
+ self = instance;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return instance;
+#line 6179 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_album_unref (gpointer instance) {
+ PublishingRajceAlbum* self;
+ self = instance;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ PUBLISHING_RAJCE_ALBUM_GET_CLASS (self)->finalize (self);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 6192 "RajcePublishing.c"
+ }
+}
+
+
+PublishingRajceUploader* publishing_rajce_uploader_construct (GType object_type, PublishingRajceSession* session, const gchar* url, SpitPublishingPublishable** publishables, int publishables_length1, PublishingRajcePublishingParameters* parameters) {
+ PublishingRajceUploader* self = NULL;
+ PublishingRajceSession* _tmp0_ = NULL;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingRajcePublishingParameters* _tmp2_ = NULL;
+ PublishingRajcePublishingParameters* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = session;
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = publishables;
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1__length1 = publishables_length1;
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp1__length1);
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = parameters;
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = _publishing_rajce_publishing_parameters_ref0 (_tmp2_);
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters);
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->parameters = _tmp3_;
+#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = url;
+#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->url);
+#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->url = _tmp5_;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 6238 "RajcePublishing.c"
+}
+
+
+PublishingRajceUploader* publishing_rajce_uploader_new (PublishingRajceSession* session, const gchar* url, SpitPublishingPublishable** publishables, int publishables_length1, PublishingRajcePublishingParameters* parameters) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_uploader_construct (PUBLISHING_RAJCE_TYPE_UPLOADER, session, url, publishables, publishables_length1, parameters);
+#line 6245 "RajcePublishing.c"
+}
+
+
+static PublishingRESTSupportTransaction* publishing_rajce_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) {
+ PublishingRajceUploader * self;
+ PublishingRESTSupportTransaction* result = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingRajceSession* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRajcePublishingParameters* _tmp3_ = NULL;
+ SpitPublishingPublishable* _tmp4_ = NULL;
+ PublishingRajceAddPhotoTransaction* _tmp5_ = NULL;
+ PublishingRESTSupportTransaction* _tmp6_ = NULL;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploader);
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = self->priv->url;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = self->priv->parameters;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishable;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = publishing_rajce_add_photo_transaction_new (_tmp1_, _tmp2_, _tmp3_, _tmp4_);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp6_;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 6283 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_uploader_class_init (PublishingRajceUploaderClass * klass) {
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_uploader_parent_class = g_type_class_peek_parent (klass);
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_rajce_uploader_finalize;
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRajceUploaderPrivate));
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = publishing_rajce_uploader_real_create_transaction;
+#line 6296 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_uploader_instance_init (PublishingRajceUploader * self) {
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv = PUBLISHING_RAJCE_UPLOADER_GET_PRIVATE (self);
+#line 6303 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_uploader_finalize (PublishingRESTSupportBatchUploader* obj) {
+ PublishingRajceUploader * self;
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploader);
+#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters);
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->url);
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_rajce_uploader_parent_class)->finalize (obj);
+#line 6317 "RajcePublishing.c"
+}
+
+
+GType publishing_rajce_uploader_get_type (void) {
+ static volatile gsize publishing_rajce_uploader_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_uploader_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceUploader), 0, (GInstanceInitFunc) publishing_rajce_uploader_instance_init, NULL };
+ GType publishing_rajce_uploader_type_id;
+ publishing_rajce_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingRajceUploader", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_uploader_type_id__volatile, publishing_rajce_uploader_type_id);
+ }
+ return publishing_rajce_uploader_type_id__volatile;
+}
+
+
+GType publishing_rajce_authentication_pane_mode_get_type (void) {
+ static volatile gsize publishing_rajce_authentication_pane_mode_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_authentication_pane_mode_type_id__volatile)) {
+ static const GEnumValue values[] = {{PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO, "PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO", "intro"}, {PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER, "PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER", "failed-retry-user"}, {0, NULL, NULL}};
+ GType publishing_rajce_authentication_pane_mode_type_id;
+ publishing_rajce_authentication_pane_mode_type_id = g_enum_register_static ("PublishingRajceAuthenticationPaneMode", values);
+ g_once_init_leave (&publishing_rajce_authentication_pane_mode_type_id__volatile, publishing_rajce_authentication_pane_mode_type_id);
+ }
+ return publishing_rajce_authentication_pane_mode_type_id__volatile;
+}
+
+
+static void _publishing_rajce_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_authentication_pane_on_user_changed ((PublishingRajceAuthenticationPane*) self);
+#line 6348 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_authentication_pane_on_password_changed ((PublishingRajceAuthenticationPane*) self);
+#line 6355 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_authentication_pane_on_login_button_clicked ((PublishingRajceAuthenticationPane*) self);
+#line 6362 "RajcePublishing.c"
+}
+
+
+PublishingRajceAuthenticationPane* publishing_rajce_authentication_pane_construct (GType object_type, PublishingRajceRajcePublisher* publisher, PublishingRajceAuthenticationPaneMode mode) {
+ PublishingRajceAuthenticationPane * self = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (publisher), NULL);
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceAuthenticationPane*) g_object_new (object_type, NULL);
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_object_ref_sink (_tmp0_);
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->pane_widget = _tmp0_;
+#line 6382 "RajcePublishing.c"
+ {
+ GtkBuilder* _tmp1_ = NULL;
+ GtkBuilder* _tmp2_ = NULL;
+ GtkBuilder* _tmp3_ = NULL;
+ GtkAlignment* align = NULL;
+ GtkBuilder* _tmp4_ = NULL;
+ GObject* _tmp5_ = NULL;
+ GtkAlignment* _tmp6_ = NULL;
+ GtkLabel* message_label = NULL;
+ GtkBuilder* _tmp7_ = NULL;
+ GObject* _tmp8_ = NULL;
+ GtkLabel* _tmp9_ = NULL;
+ PublishingRajceAuthenticationPaneMode _tmp10_ = 0;
+ GtkBuilder* _tmp18_ = NULL;
+ GObject* _tmp19_ = NULL;
+ GtkEntry* _tmp20_ = NULL;
+ gchar* persistent_username = NULL;
+ PublishingRajceRajcePublisher* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ const gchar* _tmp23_ = NULL;
+ GtkBuilder* _tmp26_ = NULL;
+ GObject* _tmp27_ = NULL;
+ GtkEntry* _tmp28_ = NULL;
+ gchar* persistent_token = NULL;
+ PublishingRajceRajcePublisher* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ const gchar* _tmp31_ = NULL;
+ GtkBuilder* _tmp34_ = NULL;
+ GObject* _tmp35_ = NULL;
+ GtkCheckButton* _tmp36_ = NULL;
+ GtkCheckButton* _tmp37_ = NULL;
+ PublishingRajceRajcePublisher* _tmp38_ = NULL;
+ gboolean _tmp39_ = FALSE;
+ GtkBuilder* _tmp40_ = NULL;
+ GObject* _tmp41_ = NULL;
+ GtkButton* _tmp42_ = NULL;
+ GtkLabel* label2 = NULL;
+ GtkBuilder* _tmp43_ = NULL;
+ GObject* _tmp44_ = NULL;
+ GtkLabel* _tmp45_ = NULL;
+ GtkLabel* label3 = NULL;
+ GtkBuilder* _tmp46_ = NULL;
+ GObject* _tmp47_ = NULL;
+ GtkLabel* _tmp48_ = NULL;
+ GtkLabel* _tmp49_ = NULL;
+ const gchar* _tmp50_ = NULL;
+ GtkLabel* _tmp51_ = NULL;
+ const gchar* _tmp52_ = NULL;
+ GtkCheckButton* _tmp53_ = NULL;
+ const gchar* _tmp54_ = NULL;
+ GtkButton* _tmp55_ = NULL;
+ const gchar* _tmp56_ = NULL;
+ GtkEntry* _tmp57_ = NULL;
+ GtkEntry* _tmp58_ = NULL;
+ GtkButton* _tmp59_ = NULL;
+ GtkAlignment* _tmp60_ = NULL;
+ GtkBox* _tmp61_ = NULL;
+ PublishingRajceRajcePublisher* _tmp62_ = NULL;
+ SpitPublishingPluginHost* _tmp63_ = NULL;
+ SpitPublishingPluginHost* _tmp64_ = NULL;
+ GtkButton* _tmp65_ = NULL;
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = gtk_builder_new ();
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->builder = _tmp1_;
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = self->priv->builder;
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/rajce_authentication_pane.ui", &_inner_error_);
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 6456 "RajcePublishing.c"
+ goto __catch29_g_error;
+ }
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = self->priv->builder;
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_builder_connect_signals (_tmp3_, NULL);
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = self->priv->builder;
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = gtk_builder_get_object (_tmp4_, "alignment");
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_alignment_get_type ()) ? ((GtkAlignment*) _tmp5_) : NULL);
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ align = _tmp6_;
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = self->priv->builder;
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = gtk_builder_get_object (_tmp7_, "message_label");
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp8_) : NULL);
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ message_label = _tmp9_;
+#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = mode;
+#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ switch (_tmp10_) {
+#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ case PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO:
+#line 6485 "RajcePublishing.c"
+ {
+ GtkLabel* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = message_label;
+#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = publishing_rajce_authentication_pane_INTRO_MESSAGE;
+#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_label_set_text (_tmp11_, _tmp12_);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ break;
+#line 6497 "RajcePublishing.c"
+ }
+#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ case PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER:
+#line 6501 "RajcePublishing.c"
+ {
+ GtkLabel* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = message_label;
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = _ ("Invalid User Email or Password");
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE;
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = g_strdup_printf ("<b>%s</b>\n\n%s", _tmp14_, _tmp15_);
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = _tmp16_;
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_label_set_markup (_tmp13_, _tmp17_);
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp17_);
+#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ break;
+#line 6524 "RajcePublishing.c"
+ }
+ default:
+#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ break;
+#line 6529 "RajcePublishing.c"
+ }
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = self->priv->builder;
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = gtk_builder_get_object (_tmp18_, "username_entry");
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp19_) : NULL);
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->username_entry);
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->username_entry = _tmp20_;
+#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = publisher;
+#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = publishing_rajce_rajce_publisher_get_username (_tmp21_);
+#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ persistent_username = _tmp22_;
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = persistent_username;
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp23_ != NULL) {
+#line 6551 "RajcePublishing.c"
+ GtkEntry* _tmp24_ = NULL;
+ const gchar* _tmp25_ = NULL;
+#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = self->priv->username_entry;
+#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = persistent_username;
+#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_entry_set_text (_tmp24_, _tmp25_);
+#line 6560 "RajcePublishing.c"
+ }
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = self->priv->builder;
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = gtk_builder_get_object (_tmp26_, "password_entry");
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp27_) : NULL);
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->password_entry);
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->password_entry = _tmp28_;
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp29_ = publisher;
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp30_ = publishing_rajce_rajce_publisher_get_token (_tmp29_);
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ persistent_token = _tmp30_;
+#line 876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp31_ = persistent_token;
+#line 876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp31_ != NULL) {
+#line 6582 "RajcePublishing.c"
+ GtkEntry* _tmp32_ = NULL;
+ const gchar* _tmp33_ = NULL;
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp32_ = self->priv->password_entry;
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp33_ = persistent_token;
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_entry_set_text (_tmp32_, _tmp33_);
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->crypt = FALSE;
+#line 6593 "RajcePublishing.c"
+ } else {
+#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->crypt = TRUE;
+#line 6597 "RajcePublishing.c"
+ }
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp34_ = self->priv->builder;
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp35_ = gtk_builder_get_object (_tmp34_, "remember_checkbutton");
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp35_) : NULL);
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->remember_checkbutton);
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->remember_checkbutton = _tmp36_;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp37_ = self->priv->remember_checkbutton;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp38_ = publisher;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp39_ = publishing_rajce_rajce_publisher_get_remember (_tmp38_);
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp39_);
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp40_ = self->priv->builder;
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp41_ = gtk_builder_get_object (_tmp40_, "login_button");
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp42_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp41_, gtk_button_get_type ()) ? ((GtkButton*) _tmp41_) : NULL);
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->login_button);
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->login_button = _tmp42_;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp43_ = self->priv->builder;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp44_ = gtk_builder_get_object (_tmp43_, "label2");
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp45_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp44_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp44_) : NULL);
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ label2 = _tmp45_;
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp46_ = self->priv->builder;
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp47_ = gtk_builder_get_object (_tmp46_, "label3");
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp48_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp47_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp47_) : NULL);
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ label3 = _tmp48_;
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp49_ = label2;
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp50_ = _ ("_Email address");
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_label_set_label (_tmp49_, _tmp50_);
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp51_ = label3;
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp52_ = _ ("_Password");
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_label_set_label (_tmp51_, _tmp52_);
+#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp53_ = self->priv->remember_checkbutton;
+#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp54_ = _ ("_Remember");
+#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_button_get_type (), GtkButton), _tmp54_);
+#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp55_ = self->priv->login_button;
+#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp56_ = _ ("Login");
+#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_button_set_label (_tmp55_, _tmp56_);
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp57_ = self->priv->username_entry;
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_rajce_authentication_pane_on_user_changed_gtk_editable_changed, self, 0);
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp58_ = self->priv->password_entry;
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_rajce_authentication_pane_on_password_changed_gtk_editable_changed, self, 0);
+#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp59_ = self->priv->login_button;
+#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (_tmp59_, "clicked", (GCallback) _publishing_rajce_authentication_pane_on_login_button_clicked_gtk_button_clicked, self, 0);
+#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp60_ = align;
+#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp61_ = self->priv->pane_widget;
+#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_reparent (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_widget_get_type (), GtkWidget), G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_widget_get_type (), GtkWidget));
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp62_ = publisher;
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp63_ = publishing_rajce_rajce_publisher_get_host (_tmp62_);
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp64_ = _tmp63_;
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp65_ = self->priv->login_button;
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spit_publishing_plugin_host_set_dialog_default_widget (_tmp64_, G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget));
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (_tmp64_);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (label3);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (label2);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (persistent_token);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (persistent_username);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (message_label);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (align);
+#line 6709 "RajcePublishing.c"
+ }
+ goto __finally29;
+ __catch29_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp66_ = NULL;
+ const gchar* _tmp67_ = NULL;
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ e = _inner_error_;
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp66_ = e;
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp67_ = _tmp66_->message;
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_warning ("RajcePublishing.vala:905: Could not load UI: %s", _tmp67_);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (e);
+#line 6729 "RajcePublishing.c"
+ }
+ __finally29:
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 6740 "RajcePublishing.c"
+ }
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 6744 "RajcePublishing.c"
+}
+
+
+PublishingRajceAuthenticationPane* publishing_rajce_authentication_pane_new (PublishingRajceRajcePublisher* publisher, PublishingRajceAuthenticationPaneMode mode) {
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_authentication_pane_construct (PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, publisher, mode);
+#line 6751 "RajcePublishing.c"
+}
+
+
+GtkWidget* publishing_rajce_authentication_pane_get_default_widget (PublishingRajceAuthenticationPane* self) {
+ GtkWidget* result = NULL;
+ GtkButton* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self), NULL);
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->login_button;
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 6769 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_authentication_pane_on_login_button_clicked (PublishingRajceAuthenticationPane* self) {
+ gchar* token = NULL;
+ GtkEntry* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ GtkEntry* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ GtkCheckButton* _tmp9_ = NULL;
+ gboolean _tmp10_ = FALSE;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self));
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->password_entry;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = gtk_entry_get_text (_tmp0_);
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ token = _tmp2_;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = self->priv->crypt;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp3_) {
+#line 6798 "RajcePublishing.c"
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = token;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp4_, (gsize) -1);
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (token);
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ token = _tmp5_;
+#line 6809 "RajcePublishing.c"
+ }
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = self->priv->username_entry;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = gtk_entry_get_text (_tmp6_);
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = token;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = self->priv->remember_checkbutton;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_emit_by_name (self, "login", _tmp7_, _tmp8_, _tmp10_);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (token);
+#line 6825 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_authentication_pane_on_user_changed (PublishingRajceAuthenticationPane* self) {
+#line 924 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self));
+#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_authentication_pane_update_login_button_sensitivity (self);
+#line 6834 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_authentication_pane_on_password_changed (PublishingRajceAuthenticationPane* self) {
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self));
+#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->crypt = TRUE;
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_authentication_pane_update_login_button_sensitivity (self);
+#line 6845 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_authentication_pane_update_login_button_sensitivity (PublishingRajceAuthenticationPane* self) {
+ gboolean _tmp0_ = FALSE;
+ GtkEntry* _tmp1_ = NULL;
+ guint _tmp2_ = 0U;
+ guint _tmp3_ = 0U;
+ GtkButton* _tmp7_ = NULL;
+#line 935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self));
+#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->username_entry;
+#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = gtk_entry_get_text_length (_tmp1_);
+#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp3_ > ((guint) 0)) {
+#line 6865 "RajcePublishing.c"
+ GtkEntry* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+ guint _tmp6_ = 0U;
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = self->priv->password_entry;
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = gtk_entry_get_text_length (_tmp4_);
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = _tmp6_ > ((guint) 0);
+#line 6877 "RajcePublishing.c"
+ } else {
+#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = FALSE;
+#line 6881 "RajcePublishing.c"
+ }
+#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = self->priv->login_button;
+#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), _tmp0_);
+#line 6887 "RajcePublishing.c"
+}
+
+
+static GtkWidget* publishing_rajce_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingRajceAuthenticationPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane);
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 6906 "RajcePublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_rajce_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingRajceAuthenticationPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane);
+#line 948 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 948 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 6919 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingRajceAuthenticationPane * self;
+ GtkEntry* _tmp0_ = NULL;
+ GtkEntry* _tmp1_ = NULL;
+ GtkButton* _tmp2_ = NULL;
+#line 951 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane);
+#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->username_entry;
+#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->password_entry;
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_entry_set_activates_default (_tmp1_, TRUE);
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = self->priv->login_button;
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_authentication_pane_update_login_button_sensitivity (self);
+#line 6944 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingRajceAuthenticationPane * self;
+#line 958 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane);
+#line 6952 "RajcePublishing.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__STRING_STRING_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__STRING_STRING_BOOLEAN) (gpointer data1, const char* arg_1, const char* arg_2, gboolean arg_3, gpointer data2);
+ register GMarshalFunc_VOID__STRING_STRING_BOOLEAN callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (n_param_values == 4);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ data1 = closure->data;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 6971 "RajcePublishing.c"
+ } else {
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ data2 = closure->data;
+#line 6977 "RajcePublishing.c"
+ }
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ callback = (GMarshalFunc_VOID__STRING_STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_boolean (param_values + 3), data2);
+#line 6983 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_authentication_pane_class_init (PublishingRajceAuthenticationPaneClass * klass) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_authentication_pane_parent_class = g_type_class_peek_parent (klass);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRajceAuthenticationPanePrivate));
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_rajce_authentication_pane_finalize;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_new ("login", PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_BOOLEAN, G_TYPE_NONE, 3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN);
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = _ ("Enter email and password associated with your Rajce account.");
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_authentication_pane_INTRO_MESSAGE = _tmp1_;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = _ ("Invalid email and/or password. Please try again");
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE = _tmp3_;
+#line 7012 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_rajce_authentication_pane_real_get_widget;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_rajce_authentication_pane_real_get_preferred_geometry;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_rajce_authentication_pane_real_on_pane_installed;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_rajce_authentication_pane_real_on_pane_uninstalled;
+#line 7027 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_authentication_pane_instance_init (PublishingRajceAuthenticationPane * self) {
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv = PUBLISHING_RAJCE_AUTHENTICATION_PANE_GET_PRIVATE (self);
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->crypt = TRUE;
+#line 7038 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_authentication_pane_finalize (GObject* obj) {
+ PublishingRajceAuthenticationPane * self;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane);
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 838 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->username_entry);
+#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->password_entry);
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->remember_checkbutton);
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->login_button);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_OBJECT_CLASS (publishing_rajce_authentication_pane_parent_class)->finalize (obj);
+#line 7060 "RajcePublishing.c"
+}
+
+
+/**
+ * The authentication pane used when asking service URL, user name and password
+ * from the user.
+ */
+GType publishing_rajce_authentication_pane_get_type (void) {
+ static volatile gsize publishing_rajce_authentication_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_authentication_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceAuthenticationPane), 0, (GInstanceInitFunc) publishing_rajce_authentication_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_rajce_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_rajce_authentication_pane_type_id;
+ publishing_rajce_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRajceAuthenticationPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_rajce_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_rajce_authentication_pane_type_id__volatile, publishing_rajce_authentication_pane_type_id);
+ }
+ return publishing_rajce_authentication_pane_type_id__volatile;
+}
+
+
+static gpointer _publishing_rajce_album_ref0 (gpointer self) {
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self ? publishing_rajce_album_ref (self) : NULL;
+#line 7085 "RajcePublishing.c"
+}
+
+
+static PublishingRajceAlbum** _vala_array_dup5 (PublishingRajceAlbum** self, int length) {
+ PublishingRajceAlbum** result;
+ int i;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = g_new0 (PublishingRajceAlbum*, length + 1);
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 7096 "RajcePublishing.c"
+ PublishingRajceAlbum* _tmp0_ = NULL;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = _publishing_rajce_album_ref0 (self[i]);
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result[i] = _tmp0_;
+#line 7102 "RajcePublishing.c"
+ }
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 7106 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked ((PublishingRajcePublishingOptionsPane*) self);
+#line 7113 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_on_create_new_radio_clicked ((PublishingRajcePublishingOptionsPane*) self);
+#line 7120 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_on_new_album_entry_changed ((PublishingRajcePublishingOptionsPane*) self);
+#line 7127 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_on_logout_clicked ((PublishingRajcePublishingOptionsPane*) self);
+#line 7134 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_on_publish_clicked ((PublishingRajcePublishingOptionsPane*) self);
+#line 7141 "RajcePublishing.c"
+}
+
+
+PublishingRajcePublishingOptionsPane* publishing_rajce_publishing_options_pane_construct (GType object_type, PublishingRajceRajcePublisher* publisher, const gchar* username, PublishingRajceAlbum** albums, int albums_length1) {
+ PublishingRajcePublishingOptionsPane * self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ PublishingRajceAlbum** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ PublishingRajceAlbum** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ PublishingRajceRajcePublisher* _tmp4_ = NULL;
+ PublishingRajceRajcePublisher* _tmp5_ = NULL;
+ GtkBox* _tmp6_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (publisher), NULL);
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (username != NULL, NULL);
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajcePublishingOptionsPane*) g_object_new (object_type, NULL);
+#line 986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = username;
+#line 986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->username);
+#line 986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->username = _tmp1_;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = albums;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2__length1 = albums_length1;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = (_tmp2_ != NULL) ? _vala_array_dup5 (_tmp2_, _tmp2__length1) : ((gpointer) _tmp2_);
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3__length1 = _tmp2__length1;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL);
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums = _tmp3_;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums_length1 = _tmp3__length1;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->_albums_size_ = self->priv->albums_length1;
+#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publisher;
+#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = _g_object_ref0 (_tmp4_);
+#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->publisher);
+#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->publisher = _tmp5_;
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_object_ref_sink (_tmp6_);
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->pane_widget = _tmp6_;
+#line 7203 "RajcePublishing.c"
+ {
+ GtkBuilder* _tmp7_ = NULL;
+ GtkBuilder* _tmp8_ = NULL;
+ GtkBuilder* _tmp9_ = NULL;
+ GtkBuilder* _tmp10_ = NULL;
+ GObject* _tmp11_ = NULL;
+ GtkBox* _tmp12_ = NULL;
+ GtkBuilder* _tmp13_ = NULL;
+ GObject* _tmp14_ = NULL;
+ GtkLabel* _tmp15_ = NULL;
+ GtkBuilder* _tmp16_ = NULL;
+ GObject* _tmp17_ = NULL;
+ GtkLabel* _tmp18_ = NULL;
+ GtkBuilder* _tmp19_ = NULL;
+ GObject* _tmp20_ = NULL;
+ GtkRadioButton* _tmp21_ = NULL;
+ GtkBuilder* _tmp22_ = NULL;
+ GObject* _tmp23_ = NULL;
+ GtkComboBoxText* _tmp24_ = NULL;
+ GtkBuilder* _tmp25_ = NULL;
+ GObject* _tmp26_ = NULL;
+ GtkRadioButton* _tmp27_ = NULL;
+ GtkBuilder* _tmp28_ = NULL;
+ GObject* _tmp29_ = NULL;
+ GtkEntry* _tmp30_ = NULL;
+ GtkBuilder* _tmp31_ = NULL;
+ GObject* _tmp32_ = NULL;
+ GtkCheckButton* _tmp33_ = NULL;
+ GtkCheckButton* _tmp34_ = NULL;
+ const gchar* _tmp35_ = NULL;
+ GtkBuilder* _tmp36_ = NULL;
+ GObject* _tmp37_ = NULL;
+ GtkCheckButton* _tmp38_ = NULL;
+ GtkBuilder* _tmp39_ = NULL;
+ GObject* _tmp40_ = NULL;
+ GtkButton* _tmp41_ = NULL;
+ GtkBuilder* _tmp42_ = NULL;
+ GObject* _tmp43_ = NULL;
+ GtkButton* _tmp44_ = NULL;
+ GtkCheckButton* _tmp45_ = NULL;
+ PublishingRajceRajcePublisher* _tmp46_ = NULL;
+ gboolean _tmp47_ = FALSE;
+ GtkCheckButton* _tmp48_ = NULL;
+ PublishingRajceRajcePublisher* _tmp49_ = NULL;
+ gboolean _tmp50_ = FALSE;
+ GtkLabel* _tmp51_ = NULL;
+ const gchar* _tmp52_ = NULL;
+ const gchar* _tmp53_ = NULL;
+ gchar* _tmp54_ = NULL;
+ gchar* _tmp55_ = NULL;
+ GtkLabel* _tmp56_ = NULL;
+ const gchar* _tmp57_ = NULL;
+ GtkRadioButton* _tmp58_ = NULL;
+ const gchar* _tmp59_ = NULL;
+ GtkRadioButton* _tmp60_ = NULL;
+ const gchar* _tmp61_ = NULL;
+ GtkCheckButton* _tmp62_ = NULL;
+ const gchar* _tmp63_ = NULL;
+ GtkButton* _tmp64_ = NULL;
+ const gchar* _tmp65_ = NULL;
+ GtkButton* _tmp66_ = NULL;
+ const gchar* _tmp67_ = NULL;
+ GtkRadioButton* _tmp68_ = NULL;
+ GtkRadioButton* _tmp69_ = NULL;
+ GtkEntry* _tmp70_ = NULL;
+ GtkButton* _tmp71_ = NULL;
+ GtkButton* _tmp72_ = NULL;
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = gtk_builder_new ();
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->builder = _tmp7_;
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = self->priv->builder;
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_builder_add_from_resource (_tmp8_, PLUGIN_RESOURCE_PATH "/rajce_publishing_options_pane.ui", &_inner_error_);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 7283 "RajcePublishing.c"
+ goto __catch30_g_error;
+ }
+#line 995 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = self->priv->builder;
+#line 995 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_builder_connect_signals (_tmp9_, NULL);
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = self->priv->builder;
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = gtk_builder_get_object (_tmp10_, "rajce_pane_widget");
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_box_get_type (), GtkBox));
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->pane_widget = _tmp12_;
+#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = self->priv->builder;
+#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = gtk_builder_get_object (_tmp13_, "login_identity_label");
+#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_label_get_type (), GtkLabel));
+#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->login_identity_label);
+#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->login_identity_label = _tmp15_;
+#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = self->priv->builder;
+#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = gtk_builder_get_object (_tmp16_, "publish_to_label");
+#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_label_get_type (), GtkLabel));
+#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->publish_to_label);
+#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->publish_to_label = _tmp18_;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = self->priv->builder;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = gtk_builder_get_object (_tmp19_, "use_existing_radio");
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_radio_button_get_type (), GtkRadioButton));
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->use_existing_radio);
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->use_existing_radio = _tmp21_;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = self->priv->builder;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = gtk_builder_get_object (_tmp22_, "existing_albums_combo");
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_combo_box_text_get_type (), GtkComboBoxText));
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->existing_albums_combo);
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->existing_albums_combo = _tmp24_;
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = self->priv->builder;
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = gtk_builder_get_object (_tmp25_, "create_new_radio");
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_radio_button_get_type (), GtkRadioButton));
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->create_new_radio);
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->create_new_radio = _tmp27_;
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp28_ = self->priv->builder;
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp29_ = gtk_builder_get_object (_tmp28_, "new_album_entry");
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_entry_get_type (), GtkEntry));
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->new_album_entry);
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->new_album_entry = _tmp30_;
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp31_ = self->priv->builder;
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp32_ = gtk_builder_get_object (_tmp31_, "hide_check");
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_check_button_get_type (), GtkCheckButton));
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->hide_check);
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->hide_check = _tmp33_;
+#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp34_ = self->priv->hide_check;
+#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp35_ = _ ("_Hide album");
+#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_button_get_type (), GtkButton), _tmp35_);
+#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp36_ = self->priv->builder;
+#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp37_ = gtk_builder_get_object (_tmp36_, "show_check");
+#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp38_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_check_button_get_type (), GtkCheckButton));
+#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->show_check);
+#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->show_check = _tmp38_;
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp39_ = self->priv->builder;
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp40_ = gtk_builder_get_object (_tmp39_, "publish_button");
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp41_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_button_get_type (), GtkButton));
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->publish_button = _tmp41_;
+#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp42_ = self->priv->builder;
+#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp43_ = gtk_builder_get_object (_tmp42_, "logout_button");
+#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp44_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_button_get_type (), GtkButton));
+#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->logout_button = _tmp44_;
+#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp45_ = self->priv->hide_check;
+#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp46_ = publisher;
+#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp47_ = publishing_rajce_rajce_publisher_get_hide_album (_tmp46_);
+#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp47_);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp48_ = self->priv->show_check;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp49_ = publisher;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp50_ = publishing_rajce_rajce_publisher_get_show_album (_tmp49_);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp50_);
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp51_ = self->priv->login_identity_label;
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp52_ = _ ("You are logged into Rajce as %s.");
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp53_ = username;
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp54_ = g_strdup_printf (_tmp52_, _tmp53_);
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp55_ = _tmp54_;
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_label_set_label (_tmp51_, _tmp55_);
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp55_);
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp56_ = self->priv->publish_to_label;
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp57_ = _ ("Photos will appear in:");
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_label_set_label (_tmp56_, _tmp57_);
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp58_ = self->priv->use_existing_radio;
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp59_ = _ ("An _existing album:");
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_button_get_type (), GtkButton), _tmp59_);
+#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp60_ = self->priv->create_new_radio;
+#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp61_ = _ ("A _new album named:");
+#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_button_get_type (), GtkButton), _tmp61_);
+#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp62_ = self->priv->show_check;
+#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp63_ = _ ("Open target _album in browser");
+#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_button_get_type (), GtkButton), _tmp63_);
+#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp64_ = self->priv->publish_button;
+#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp65_ = _ ("_Publish");
+#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_button_set_label (_tmp64_, _tmp65_);
+#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp66_ = self->priv->logout_button;
+#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp67_ = _ ("_Logout");
+#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_button_set_label (_tmp66_, _tmp67_);
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp68_ = self->priv->use_existing_radio;
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked, self, 0);
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp69_ = self->priv->create_new_radio;
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked, self, 0);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp70_ = self->priv->new_album_entry;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_rajce_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed, self, 0);
+#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp71_ = self->priv->logout_button;
+#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (_tmp71_, "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0);
+#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp72_ = self->priv->publish_button;
+#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (_tmp72_, "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0);
+#line 7492 "RajcePublishing.c"
+ }
+ goto __finally30;
+ __catch30_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp73_ = NULL;
+ const gchar* _tmp74_ = NULL;
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ e = _inner_error_;
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp73_ = e;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp74_ = _tmp73_->message;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_warning ("RajcePublishing.vala:1028: Could not load UI: %s", _tmp74_);
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (e);
+#line 7512 "RajcePublishing.c"
+ }
+ __finally30:
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 7523 "RajcePublishing.c"
+ }
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 7527 "RajcePublishing.c"
+}
+
+
+PublishingRajcePublishingOptionsPane* publishing_rajce_publishing_options_pane_new (PublishingRajceRajcePublisher* publisher, const gchar* username, PublishingRajceAlbum** albums, int albums_length1) {
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_publishing_options_pane_construct (PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, publisher, username, albums, albums_length1);
+#line 7534 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_on_publish_clicked (PublishingRajcePublishingOptionsPane* self) {
+ gboolean show_album = FALSE;
+ GtkCheckButton* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ PublishingRajceRajcePublisher* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ GtkRadioButton* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->show_check;
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ show_album = _tmp1_;
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = self->priv->publisher;
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = show_album;
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_set_show_album (_tmp2_, _tmp3_);
+#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = self->priv->create_new_radio;
+#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp5_) {
+#line 7566 "RajcePublishing.c"
+ gchar* album_name = NULL;
+ GtkEntry* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gboolean hide_album = FALSE;
+ GtkCheckButton* _tmp9_ = NULL;
+ gboolean _tmp10_ = FALSE;
+ PublishingRajceRajcePublisher* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+ const gchar* _tmp13_ = NULL;
+ gboolean _tmp14_ = FALSE;
+ PublishingRajcePublishingParameters* _tmp15_ = NULL;
+ PublishingRajcePublishingParameters* _tmp16_ = NULL;
+#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = self->priv->new_album_entry;
+#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = gtk_entry_get_text (_tmp6_);
+#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = g_strdup (_tmp7_);
+#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ album_name = _tmp8_;
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = self->priv->hide_check;
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ hide_album = _tmp10_;
+#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = self->priv->publisher;
+#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = hide_album;
+#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_rajce_publisher_set_hide_album (_tmp11_, _tmp12_);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = album_name;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = hide_album;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = publishing_rajce_publishing_parameters_new_to_new_album (_tmp13_, _tmp14_);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = _tmp15_;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_emit_by_name (self, "publish", _tmp16_);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_publishing_parameters_unref0 (_tmp16_);
+#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (album_name);
+#line 7614 "RajcePublishing.c"
+ } else {
+ gint id = 0;
+ PublishingRajceAlbum** _tmp17_ = NULL;
+ gint _tmp17__length1 = 0;
+ GtkComboBoxText* _tmp18_ = NULL;
+ gint _tmp19_ = 0;
+ PublishingRajceAlbum* _tmp20_ = NULL;
+ gint _tmp21_ = 0;
+ gchar* album_name = NULL;
+ PublishingRajceAlbum** _tmp22_ = NULL;
+ gint _tmp22__length1 = 0;
+ GtkComboBoxText* _tmp23_ = NULL;
+ gint _tmp24_ = 0;
+ PublishingRajceAlbum* _tmp25_ = NULL;
+ const gchar* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+ gint _tmp29_ = 0;
+ PublishingRajcePublishingParameters* _tmp30_ = NULL;
+ PublishingRajcePublishingParameters* _tmp31_ = NULL;
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = self->priv->albums;
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17__length1 = self->priv->albums_length1;
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = self->priv->existing_albums_combo;
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = _tmp17_[_tmp19_];
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = _tmp20_->id;
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ id = _tmp21_;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = self->priv->albums;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22__length1 = self->priv->albums_length1;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = self->priv->existing_albums_combo;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = _tmp22_[_tmp24_];
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = _tmp25_->albumName;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = g_strdup (_tmp26_);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ album_name = _tmp27_;
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp28_ = album_name;
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp29_ = id;
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp30_ = publishing_rajce_publishing_parameters_new_to_existing_album (_tmp28_, _tmp29_);
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp31_ = _tmp30_;
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_emit_by_name (self, "publish", _tmp31_);
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_publishing_parameters_unref0 (_tmp31_);
+#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (album_name);
+#line 7679 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked (PublishingRajcePublishingOptionsPane* self) {
+ GtkComboBoxText* _tmp0_ = NULL;
+ GtkEntry* _tmp1_ = NULL;
+ GtkComboBoxText* _tmp2_ = NULL;
+ GtkCheckButton* _tmp3_ = NULL;
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->existing_albums_combo;
+#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1055 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->new_album_entry;
+#line 1055 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = self->priv->existing_albums_combo;
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
+#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = self->priv->hide_check;
+#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 7709 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_on_create_new_radio_clicked (PublishingRajcePublishingOptionsPane* self) {
+ GtkEntry* _tmp0_ = NULL;
+ GtkComboBoxText* _tmp1_ = NULL;
+ GtkEntry* _tmp2_ = NULL;
+ GtkCheckButton* _tmp3_ = NULL;
+#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->new_album_entry;
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = self->priv->existing_albums_combo;
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = self->priv->new_album_entry;
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
+#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = self->priv->hide_check;
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 7738 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_on_logout_clicked (PublishingRajcePublishingOptionsPane* self) {
+#line 1070 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 7747 "RajcePublishing.c"
+}
+
+
+static gchar* string_strip (const gchar* self) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strdup (self);
+#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp0_;
+#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _result_;
+#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_strstrip (_tmp1_);
+#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _result_;
+#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 7770 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (PublishingRajcePublishingOptionsPane* self) {
+ gchar* album_name = NULL;
+ GtkEntry* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ GtkButton* _tmp10_ = NULL;
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->new_album_entry;
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = gtk_entry_get_text (_tmp0_);
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ album_name = _tmp2_;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = album_name;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = string_strip (_tmp4_);
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = g_strcmp0 (_tmp6_, "") != 0;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp6_);
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp7_) {
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = TRUE;
+#line 7809 "RajcePublishing.c"
+ } else {
+ GtkRadioButton* _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = self->priv->create_new_radio;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = !_tmp9_;
+#line 7819 "RajcePublishing.c"
+ }
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = self->priv->publish_button;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), _tmp3_);
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (album_name);
+#line 7827 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_on_new_album_entry_changed (PublishingRajcePublishingOptionsPane* self) {
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 7836 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_publishing_options_pane_installed (PublishingRajcePublishingOptionsPane* self) {
+ PublishingRajceAlbum** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ GtkRadioButton* _tmp15_ = NULL;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 7846 "RajcePublishing.c"
+ {
+ gint i = 0;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ i = 0;
+#line 7851 "RajcePublishing.c"
+ {
+ gboolean _tmp0_ = FALSE;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = TRUE;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ while (TRUE) {
+#line 7858 "RajcePublishing.c"
+ gint _tmp2_ = 0;
+ PublishingRajceAlbum** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ GtkComboBoxText* _tmp4_ = NULL;
+ PublishingRajceAlbum** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ gint _tmp6_ = 0;
+ PublishingRajceAlbum* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!_tmp0_) {
+#line 7870 "RajcePublishing.c"
+ gint _tmp1_ = 0;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = i;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ i = _tmp1_ + 1;
+#line 7876 "RajcePublishing.c"
+ }
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = FALSE;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = i;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = self->priv->albums;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3__length1 = self->priv->albums_length1;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!(_tmp2_ < _tmp3__length1)) {
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ break;
+#line 7890 "RajcePublishing.c"
+ }
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = self->priv->existing_albums_combo;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = self->priv->albums;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5__length1 = self->priv->albums_length1;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = i;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = _tmp5_[_tmp6_];
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = _tmp7_->albumName;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_combo_box_text_append_text (_tmp4_, _tmp8_);
+#line 7906 "RajcePublishing.c"
+ }
+ }
+ }
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = self->priv->albums;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9__length1 = self->priv->albums_length1;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp9__length1 == 0) {
+#line 7916 "RajcePublishing.c"
+ GtkComboBoxText* _tmp10_ = NULL;
+ GtkRadioButton* _tmp11_ = NULL;
+#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = self->priv->existing_albums_combo;
+#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = self->priv->use_existing_radio;
+#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 7927 "RajcePublishing.c"
+ } else {
+ GtkComboBoxText* _tmp12_ = NULL;
+ GtkComboBoxText* _tmp13_ = NULL;
+ GtkRadioButton* _tmp14_ = NULL;
+#line 1097 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = self->priv->existing_albums_combo;
+#line 1097 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = self->priv->existing_albums_combo;
+#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = self->priv->use_existing_radio;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 7944 "RajcePublishing.c"
+ }
+#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = self->priv->create_new_radio;
+#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 1102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_on_create_new_radio_clicked (self);
+#line 7952 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_publishing_options_pane_notify_publish (PublishingRajcePublishingOptionsPane* self, PublishingRajcePublishingParameters* parameters) {
+ PublishingRajcePublishingParameters* _tmp0_ = NULL;
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters));
+#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = parameters;
+#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_emit_by_name (self, "publish", _tmp0_);
+#line 7966 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_publishing_options_pane_notify_logout (PublishingRajcePublishingOptionsPane* self) {
+#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 7975 "RajcePublishing.c"
+}
+
+
+GtkWidget* publishing_rajce_publishing_options_pane_get_default_widget (PublishingRajcePublishingOptionsPane* self) {
+ GtkWidget* result = NULL;
+ GtkButton* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->logout_button;
+#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 7993 "RajcePublishing.c"
+}
+
+
+static GtkWidget* publishing_rajce_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingRajcePublishingOptionsPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane);
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 8012 "RajcePublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_rajce_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingRajcePublishingOptionsPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 1124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane);
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 8025 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, PublishingRajcePublishingParameters* parameters, gpointer self) {
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_notify_publish ((PublishingRajcePublishingOptionsPane*) self, parameters);
+#line 8032 "RajcePublishing.c"
+}
+
+
+static void _publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, gpointer self) {
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_notify_logout ((PublishingRajcePublishingOptionsPane*) self);
+#line 8039 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingRajcePublishingOptionsPane * self;
+#line 1129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane);
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_installed (self);
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (self, "publish", (GCallback) _publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish, self, 0);
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_connect_object (self, "logout", (GCallback) _publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout, self, 0);
+#line 8053 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingRajcePublishingOptionsPane * self;
+ guint _tmp0_ = 0U;
+ guint _tmp1_ = 0U;
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane);
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("publish", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE);
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish, self);
+#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_parse_name ("logout", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE);
+#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout, self);
+#line 8071 "RajcePublishing.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS) (gpointer data1, gpointer arg_1, gpointer data2);
+ register GMarshalFunc_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (n_param_values == 2);
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ data1 = closure->data;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 8090 "RajcePublishing.c"
+ } else {
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ data2 = closure->data;
+#line 8096 "RajcePublishing.c"
+ }
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ callback = (GMarshalFunc_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS) (marshal_data ? marshal_data : cc->callback);
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ callback (data1, publishing_rajce_value_get_publishing_parameters (param_values + 1), data2);
+#line 8102 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_class_init (PublishingRajcePublishingOptionsPaneClass * klass) {
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_parent_class = g_type_class_peek_parent (klass);
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRajcePublishingOptionsPanePrivate));
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_rajce_publishing_options_pane_finalize;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_new ("publish", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS, G_TYPE_NONE, 1, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS);
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_new ("logout", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 8117 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_rajce_publishing_options_pane_real_get_widget;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_rajce_publishing_options_pane_real_get_preferred_geometry;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_rajce_publishing_options_pane_real_on_pane_installed;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_rajce_publishing_options_pane_real_on_pane_uninstalled;
+#line 8132 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_instance_init (PublishingRajcePublishingOptionsPane * self) {
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv = PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self);
+#line 968 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->builder = NULL;
+#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 970 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->login_identity_label = NULL;
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->publish_to_label = NULL;
+#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->use_existing_radio = NULL;
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->existing_albums_combo = NULL;
+#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->create_new_radio = NULL;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->new_album_entry = NULL;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->hide_check = NULL;
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->show_check = NULL;
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->publish_button = NULL;
+#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->logout_button = NULL;
+#line 8163 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_options_pane_finalize (GObject* obj) {
+ PublishingRajcePublishingOptionsPane * self;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane);
+#line 964 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->publisher);
+#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL);
+#line 966 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->username);
+#line 968 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 970 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->login_identity_label);
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->publish_to_label);
+#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->use_existing_radio);
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->existing_albums_combo);
+#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->create_new_radio);
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->new_album_entry);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->hide_check);
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->show_check);
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_OBJECT_CLASS (publishing_rajce_publishing_options_pane_parent_class)->finalize (obj);
+#line 8203 "RajcePublishing.c"
+}
+
+
+GType publishing_rajce_publishing_options_pane_get_type (void) {
+ static volatile gsize publishing_rajce_publishing_options_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_publishing_options_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajcePublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajcePublishingOptionsPane), 0, (GInstanceInitFunc) publishing_rajce_publishing_options_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_rajce_publishing_options_pane_type_id;
+ publishing_rajce_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRajcePublishingOptionsPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_rajce_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_rajce_publishing_options_pane_type_id__volatile, publishing_rajce_publishing_options_pane_type_id);
+ }
+ return publishing_rajce_publishing_options_pane_type_id__volatile;
+}
+
+
+static PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct (GType object_type) {
+ PublishingRajcePublishingParameters* self = NULL;
+#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajcePublishingParameters*) g_type_create_instance (object_type);
+#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 8227 "RajcePublishing.c"
+}
+
+
+static PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new (void) {
+#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_publishing_parameters_construct (PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS);
+#line 8234 "RajcePublishing.c"
+}
+
+
+PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct_to_new_album (GType object_type, const gchar* album_name, gboolean album_hidden) {
+ PublishingRajcePublishingParameters* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ gboolean* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gint* _tmp5_ = NULL;
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (album_name != NULL, NULL);
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajcePublishingParameters*) g_type_create_instance (object_type);
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = album_name;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->album_name);
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->album_name = _tmp1_;
+#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = album_hidden;
+#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = __bool_dup0 (&_tmp2_);
+#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->album_hidden);
+#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->album_hidden = _tmp3_;
+#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = 0;
+#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = __int_dup0 (&_tmp4_);
+#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->album_id);
+#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->album_id = _tmp5_;
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 8276 "RajcePublishing.c"
+}
+
+
+PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new_to_new_album (const gchar* album_name, gboolean album_hidden) {
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_publishing_parameters_construct_to_new_album (PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, album_name, album_hidden);
+#line 8283 "RajcePublishing.c"
+}
+
+
+PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct_to_existing_album (GType object_type, const gchar* album_name, gint album_id) {
+ PublishingRajcePublishingParameters* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gint* _tmp3_ = NULL;
+#line 1158 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (album_name != NULL, NULL);
+#line 1158 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajcePublishingParameters*) g_type_create_instance (object_type);
+#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = album_name;
+#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->album_name);
+#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->album_name = _tmp1_;
+#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->album_hidden);
+#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->album_hidden = NULL;
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = album_id;
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = __int_dup0 (&_tmp2_);
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->album_id);
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->album_id = _tmp3_;
+#line 1158 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 8319 "RajcePublishing.c"
+}
+
+
+PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new_to_existing_album (const gchar* album_name, gint album_id) {
+#line 1158 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_publishing_parameters_construct_to_existing_album (PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, album_name, album_id);
+#line 8326 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_value_publishing_parameters_init (GValue* value) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8333 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_value_publishing_parameters_free_value (GValue* value) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_parameters_unref (value->data[0].v_pointer);
+#line 8342 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_value_publishing_parameters_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ dest_value->data[0].v_pointer = publishing_rajce_publishing_parameters_ref (src_value->data[0].v_pointer);
+#line 8352 "RajcePublishing.c"
+ } else {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 8356 "RajcePublishing.c"
+ }
+}
+
+
+static gpointer publishing_rajce_value_publishing_parameters_peek_pointer (const GValue* value) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return value->data[0].v_pointer;
+#line 8364 "RajcePublishing.c"
+}
+
+
+static gchar* publishing_rajce_value_publishing_parameters_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 8371 "RajcePublishing.c"
+ PublishingRajcePublishingParameters* object;
+ object = collect_values[0].v_pointer;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 8378 "RajcePublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 8382 "RajcePublishing.c"
+ }
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = publishing_rajce_publishing_parameters_ref (object);
+#line 8386 "RajcePublishing.c"
+ } else {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8390 "RajcePublishing.c"
+ }
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 8394 "RajcePublishing.c"
+}
+
+
+static gchar* publishing_rajce_value_publishing_parameters_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingRajcePublishingParameters** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!object_p) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 8405 "RajcePublishing.c"
+ }
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = NULL;
+#line 8411 "RajcePublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 8415 "RajcePublishing.c"
+ } else {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = publishing_rajce_publishing_parameters_ref (value->data[0].v_pointer);
+#line 8419 "RajcePublishing.c"
+ }
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 8423 "RajcePublishing.c"
+}
+
+
+GParamSpec* publishing_rajce_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingRajceParamSpecPublishingParameters* spec;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 8437 "RajcePublishing.c"
+}
+
+
+gpointer publishing_rajce_value_get_publishing_parameters (const GValue* value) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return value->data[0].v_pointer;
+#line 8446 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_value_set_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingRajcePublishingParameters* old;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS));
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (v_object) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS));
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_parameters_ref (value->data[0].v_pointer);
+#line 8466 "RajcePublishing.c"
+ } else {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8470 "RajcePublishing.c"
+ }
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (old) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_parameters_unref (old);
+#line 8476 "RajcePublishing.c"
+ }
+}
+
+
+void publishing_rajce_value_take_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingRajcePublishingParameters* old;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS));
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (v_object) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS));
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 8495 "RajcePublishing.c"
+ } else {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8499 "RajcePublishing.c"
+ }
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (old) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_parameters_unref (old);
+#line 8505 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_publishing_parameters_class_init (PublishingRajcePublishingParametersClass * klass) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_publishing_parameters_parent_class = g_type_class_peek_parent (klass);
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ ((PublishingRajcePublishingParametersClass *) klass)->finalize = publishing_rajce_publishing_parameters_finalize;
+#line 8515 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_parameters_instance_init (PublishingRajcePublishingParameters * self) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->ref_count = 1;
+#line 8522 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_publishing_parameters_finalize (PublishingRajcePublishingParameters* obj) {
+ PublishingRajcePublishingParameters * self;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParameters);
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->album_name);
+#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->album_hidden);
+#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->album_id);
+#line 8538 "RajcePublishing.c"
+}
+
+
+GType publishing_rajce_publishing_parameters_get_type (void) {
+ static volatile gsize publishing_rajce_publishing_parameters_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_publishing_parameters_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_publishing_parameters_init, publishing_rajce_value_publishing_parameters_free_value, publishing_rajce_value_publishing_parameters_copy_value, publishing_rajce_value_publishing_parameters_peek_pointer, "p", publishing_rajce_value_publishing_parameters_collect_value, "p", publishing_rajce_value_publishing_parameters_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajcePublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajcePublishingParameters), 0, (GInstanceInitFunc) publishing_rajce_publishing_parameters_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 publishing_rajce_publishing_parameters_type_id;
+ publishing_rajce_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajcePublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_rajce_publishing_parameters_type_id__volatile, publishing_rajce_publishing_parameters_type_id);
+ }
+ return publishing_rajce_publishing_parameters_type_id__volatile;
+}
+
+
+gpointer publishing_rajce_publishing_parameters_ref (gpointer instance) {
+ PublishingRajcePublishingParameters* self;
+ self = instance;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return instance;
+#line 8563 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_publishing_parameters_unref (gpointer instance) {
+ PublishingRajcePublishingParameters* self;
+ self = instance;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ PUBLISHING_RAJCE_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self);
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 8576 "RajcePublishing.c"
+ }
+}
+
+
+PublishingRajceSession* publishing_rajce_session_construct (GType object_type) {
+ PublishingRajceSession* self = NULL;
+#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceSession*) publishing_rest_support_session_construct (object_type, "");
+#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 8587 "RajcePublishing.c"
+}
+
+
+PublishingRajceSession* publishing_rajce_session_new (void) {
+#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_session_construct (PUBLISHING_RAJCE_TYPE_SESSION);
+#line 8594 "RajcePublishing.c"
+}
+
+
+static gboolean publishing_rajce_session_real_is_authenticated (PublishingRESTSupportSession* base) {
+ PublishingRajceSession * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
+ gint* _tmp2_ = NULL;
+#line 1184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession);
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = self->priv->userid;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp2_ != NULL) {
+#line 8610 "RajcePublishing.c"
+ const gchar* _tmp3_ = NULL;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = self->priv->usertoken;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _tmp3_ != NULL;
+#line 8616 "RajcePublishing.c"
+ } else {
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = FALSE;
+#line 8620 "RajcePublishing.c"
+ }
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp1_) {
+#line 8624 "RajcePublishing.c"
+ const gchar* _tmp4_ = NULL;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = self->priv->username;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = _tmp4_ != NULL;
+#line 8630 "RajcePublishing.c"
+ } else {
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = FALSE;
+#line 8634 "RajcePublishing.c"
+ }
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp0_;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 8640 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_session_authenticate (PublishingRajceSession* self, const gchar* token, const gchar* name, gint id, gint maxsize, gint quality) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gint* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ gint* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+ gint* _tmp9_ = NULL;
+#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self));
+#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (name != NULL);
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = token;
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->usertoken);
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->usertoken = _tmp1_;
+#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = name;
+#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->username);
+#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->username = _tmp3_;
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = id;
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = __int_dup0 (&_tmp4_);
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->userid);
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->userid = _tmp5_;
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = maxsize;
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = __int_dup0 (&_tmp6_);
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->maxsize);
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->maxsize = _tmp7_;
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = quality;
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = __int_dup0 (&_tmp8_);
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->quality);
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->quality = _tmp9_;
+#line 8701 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_session_deauthenticate (PublishingRajceSession* self) {
+#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self));
+#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->usertoken);
+#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->usertoken = NULL;
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->albumtoken);
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albumtoken = NULL;
+#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->albumticket);
+#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albumticket = NULL;
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->username);
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->username = NULL;
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->userid);
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->userid = NULL;
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->maxsize);
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->maxsize = NULL;
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->quality);
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->quality = NULL;
+#line 8736 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_session_set_usertoken (PublishingRajceSession* self, const gchar* usertoken) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self));
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = usertoken;
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->usertoken);
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->usertoken = _tmp1_;
+#line 8753 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_session_set_albumtoken (PublishingRajceSession* self, const gchar* albumtoken) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self));
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = albumtoken;
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->albumtoken);
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albumtoken = _tmp1_;
+#line 8770 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_session_set_albumticket (PublishingRajceSession* self, const gchar* albumticket) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self));
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = albumticket;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->albumticket);
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albumticket = _tmp1_;
+#line 8787 "RajcePublishing.c"
+}
+
+
+gchar* publishing_rajce_session_get_usertoken (PublishingRajceSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL);
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->usertoken;
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 8805 "RajcePublishing.c"
+}
+
+
+gchar* publishing_rajce_session_get_albumtoken (PublishingRajceSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL);
+#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->albumtoken;
+#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 8823 "RajcePublishing.c"
+}
+
+
+gchar* publishing_rajce_session_get_albumticket (PublishingRajceSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL);
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->albumticket;
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 8841 "RajcePublishing.c"
+}
+
+
+gchar* publishing_rajce_session_get_username (PublishingRajceSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL);
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->username;
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp1_;
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 8859 "RajcePublishing.c"
+}
+
+
+gint publishing_rajce_session_get_maxsize (PublishingRajceSession* self) {
+ gint result = 0;
+ gint* _tmp0_ = NULL;
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), 0);
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->maxsize;
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = *_tmp0_;
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 8874 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_session_class_init (PublishingRajceSessionClass * klass) {
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_parent_class = g_type_class_peek_parent (klass);
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rajce_session_finalize;
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRajceSessionPrivate));
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = publishing_rajce_session_real_is_authenticated;
+#line 8887 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_session_instance_init (PublishingRajceSession * self) {
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv = PUBLISHING_RAJCE_SESSION_GET_PRIVATE (self);
+#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->usertoken = NULL;
+#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albumtoken = NULL;
+#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->albumticket = NULL;
+#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->username = NULL;
+#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->userid = NULL;
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->maxsize = NULL;
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->quality = NULL;
+#line 8908 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_session_finalize (PublishingRESTSupportSession* obj) {
+ PublishingRajceSession * self;
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession);
+#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->usertoken);
+#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->albumtoken);
+#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->albumticket);
+#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->username);
+#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->userid);
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->maxsize);
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->quality);
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_rajce_session_parent_class)->finalize (obj);
+#line 8932 "RajcePublishing.c"
+}
+
+
+/**
+ * Session class that keeps track of the credentials
+ */
+GType publishing_rajce_session_get_type (void) {
+ static volatile gsize publishing_rajce_session_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_session_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceSession), 0, (GInstanceInitFunc) publishing_rajce_session_instance_init, NULL };
+ GType publishing_rajce_session_type_id;
+ publishing_rajce_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingRajceSession", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_session_type_id__volatile, publishing_rajce_session_type_id);
+ }
+ return publishing_rajce_session_type_id__volatile;
+}
+
+
+static gpointer _publishing_rajce_arg_item_ref0 (gpointer self) {
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self ? publishing_rajce_arg_item_ref (self) : NULL;
+#line 8954 "RajcePublishing.c"
+}
+
+
+PublishingRajceArgItem* publishing_rajce_arg_item_construct (GType object_type, const gchar* k, const gchar* v) {
+ PublishingRajceArgItem* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingRajceArgItem** _tmp4_ = NULL;
+#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceArgItem*) g_type_create_instance (object_type);
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = k;
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->key);
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->key = _tmp1_;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = v;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->val);
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->val = _tmp3_;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = g_new0 (PublishingRajceArgItem*, 0 + 1);
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->children = (_vala_array_free (self->children, self->children_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL);
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->children = _tmp4_;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->children_length1 = 0;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->_children_size_ = self->children_length1;
+#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 8995 "RajcePublishing.c"
+}
+
+
+PublishingRajceArgItem* publishing_rajce_arg_item_new (const gchar* k, const gchar* v) {
+#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_arg_item_construct (PUBLISHING_RAJCE_TYPE_ARG_ITEM, k, v);
+#line 9002 "RajcePublishing.c"
+}
+
+
+static void _vala_array_add6 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value) {
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if ((*length) == (*size)) {
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1);
+#line 9013 "RajcePublishing.c"
+ }
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[*length] = NULL;
+#line 9019 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_arg_item_AddChild (PublishingRajceArgItem* self, PublishingRajceArgItem* child) {
+ PublishingRajceArgItem** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingRajceArgItem* _tmp1_ = NULL;
+ PublishingRajceArgItem* _tmp2_ = NULL;
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (self));
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (child));
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->children;
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0__length1 = self->children_length1;
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = child;
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = _publishing_rajce_arg_item_ref0 (_tmp1_);
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _vala_array_add6 (&self->children, &self->children_length1, &self->_children_size_, _tmp2_);
+#line 9042 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_arg_item_AddChildren (PublishingRajceArgItem* self, PublishingRajceArgItem** newchildren, int newchildren_length1) {
+ PublishingRajceArgItem** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (self));
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = newchildren;
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0__length1 = newchildren_length1;
+#line 9055 "RajcePublishing.c"
+ {
+ PublishingRajceArgItem** child_collection = NULL;
+ gint child_collection_length1 = 0;
+ gint _child_collection_size_ = 0;
+ gint child_it = 0;
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ child_collection = _tmp0_;
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ child_collection_length1 = _tmp0__length1;
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ for (child_it = 0; child_it < _tmp0__length1; child_it = child_it + 1) {
+#line 9067 "RajcePublishing.c"
+ PublishingRajceArgItem* _tmp1_ = NULL;
+ PublishingRajceArgItem* child = NULL;
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _publishing_rajce_arg_item_ref0 (child_collection[child_it]);
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ child = _tmp1_;
+#line 9074 "RajcePublishing.c"
+ {
+ PublishingRajceArgItem* _tmp2_ = NULL;
+#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = child;
+#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_arg_item_AddChild (self, _tmp2_);
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_arg_item_unref0 (child);
+#line 9083 "RajcePublishing.c"
+ }
+ }
+ }
+}
+
+
+static void publishing_rajce_value_arg_item_init (GValue* value) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9093 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_value_arg_item_free_value (GValue* value) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_arg_item_unref (value->data[0].v_pointer);
+#line 9102 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_value_arg_item_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ dest_value->data[0].v_pointer = publishing_rajce_arg_item_ref (src_value->data[0].v_pointer);
+#line 9112 "RajcePublishing.c"
+ } else {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 9116 "RajcePublishing.c"
+ }
+}
+
+
+static gpointer publishing_rajce_value_arg_item_peek_pointer (const GValue* value) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return value->data[0].v_pointer;
+#line 9124 "RajcePublishing.c"
+}
+
+
+static gchar* publishing_rajce_value_arg_item_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 9131 "RajcePublishing.c"
+ PublishingRajceArgItem* object;
+ object = collect_values[0].v_pointer;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 9138 "RajcePublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 9142 "RajcePublishing.c"
+ }
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = publishing_rajce_arg_item_ref (object);
+#line 9146 "RajcePublishing.c"
+ } else {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9150 "RajcePublishing.c"
+ }
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 9154 "RajcePublishing.c"
+}
+
+
+static gchar* publishing_rajce_value_arg_item_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingRajceArgItem** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!object_p) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 9165 "RajcePublishing.c"
+ }
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = NULL;
+#line 9171 "RajcePublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 9175 "RajcePublishing.c"
+ } else {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = publishing_rajce_arg_item_ref (value->data[0].v_pointer);
+#line 9179 "RajcePublishing.c"
+ }
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 9183 "RajcePublishing.c"
+}
+
+
+GParamSpec* publishing_rajce_param_spec_arg_item (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingRajceParamSpecArgItem* spec;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_ARG_ITEM), NULL);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 9197 "RajcePublishing.c"
+}
+
+
+gpointer publishing_rajce_value_get_arg_item (const GValue* value) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ARG_ITEM), NULL);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return value->data[0].v_pointer;
+#line 9206 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_value_set_arg_item (GValue* value, gpointer v_object) {
+ PublishingRajceArgItem* old;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ARG_ITEM));
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (v_object) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ARG_ITEM));
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_arg_item_ref (value->data[0].v_pointer);
+#line 9226 "RajcePublishing.c"
+ } else {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9230 "RajcePublishing.c"
+ }
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (old) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_arg_item_unref (old);
+#line 9236 "RajcePublishing.c"
+ }
+}
+
+
+void publishing_rajce_value_take_arg_item (GValue* value, gpointer v_object) {
+ PublishingRajceArgItem* old;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ARG_ITEM));
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (v_object) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ARG_ITEM));
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 9255 "RajcePublishing.c"
+ } else {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9259 "RajcePublishing.c"
+ }
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (old) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_arg_item_unref (old);
+#line 9265 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_arg_item_class_init (PublishingRajceArgItemClass * klass) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_arg_item_parent_class = g_type_class_peek_parent (klass);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ ((PublishingRajceArgItemClass *) klass)->finalize = publishing_rajce_arg_item_finalize;
+#line 9275 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_arg_item_instance_init (PublishingRajceArgItem * self) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->ref_count = 1;
+#line 9282 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_arg_item_finalize (PublishingRajceArgItem* obj) {
+ PublishingRajceArgItem * self;
+ PublishingRajceArgItem** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItem);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->children;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0__length1 = self->children_length1;
+#line 9298 "RajcePublishing.c"
+ {
+ PublishingRajceArgItem** child_collection = NULL;
+ gint child_collection_length1 = 0;
+ gint _child_collection_size_ = 0;
+ gint child_it = 0;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ child_collection = _tmp0_;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ child_collection_length1 = _tmp0__length1;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ for (child_it = 0; child_it < _tmp0__length1; child_it = child_it + 1) {
+#line 9310 "RajcePublishing.c"
+ PublishingRajceArgItem* _tmp1_ = NULL;
+ PublishingRajceArgItem* child = NULL;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _publishing_rajce_arg_item_ref0 (child_collection[child_it]);
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ child = _tmp1_;
+#line 9317 "RajcePublishing.c"
+ {
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_arg_item_unref0 (child);
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ child = NULL;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_arg_item_unref0 (child);
+#line 9325 "RajcePublishing.c"
+ }
+ }
+ }
+#line 1224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->key);
+#line 1225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->val);
+#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->children = (_vala_array_free (self->children, self->children_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL);
+#line 9335 "RajcePublishing.c"
+}
+
+
+GType publishing_rajce_arg_item_get_type (void) {
+ static volatile gsize publishing_rajce_arg_item_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_arg_item_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_arg_item_init, publishing_rajce_value_arg_item_free_value, publishing_rajce_value_arg_item_copy_value, publishing_rajce_value_arg_item_peek_pointer, "p", publishing_rajce_value_arg_item_collect_value, "p", publishing_rajce_value_arg_item_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceArgItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_arg_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceArgItem), 0, (GInstanceInitFunc) publishing_rajce_arg_item_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 publishing_rajce_arg_item_type_id;
+ publishing_rajce_arg_item_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajceArgItem", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_rajce_arg_item_type_id__volatile, publishing_rajce_arg_item_type_id);
+ }
+ return publishing_rajce_arg_item_type_id__volatile;
+}
+
+
+gpointer publishing_rajce_arg_item_ref (gpointer instance) {
+ PublishingRajceArgItem* self;
+ self = instance;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return instance;
+#line 9360 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_arg_item_unref (gpointer instance) {
+ PublishingRajceArgItem* self;
+ self = instance;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ PUBLISHING_RAJCE_ARG_ITEM_GET_CLASS (self)->finalize (self);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 9373 "RajcePublishing.c"
+ }
+}
+
+
+PublishingRajceLiveApiRequest* publishing_rajce_live_api_request_construct (GType object_type, const gchar* cmd) {
+ PublishingRajceLiveApiRequest* self = NULL;
+ PublishingRajceArgItem** _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 1261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (cmd != NULL, NULL);
+#line 1261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceLiveApiRequest*) g_type_create_instance (object_type);
+#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = g_new0 (PublishingRajceArgItem*, 0 + 1);
+#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->_params = (_vala_array_free (self->priv->_params, self->priv->_params_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL);
+#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->_params = _tmp0_;
+#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->_params_length1 = 0;
+#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->__params_size_ = self->priv->_params_length1;
+#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = cmd;
+#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->_cmd);
+#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->_cmd = _tmp2_;
+#line 1261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 9407 "RajcePublishing.c"
+}
+
+
+PublishingRajceLiveApiRequest* publishing_rajce_live_api_request_new (const gchar* cmd) {
+#line 1261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_live_api_request_construct (PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, cmd);
+#line 9414 "RajcePublishing.c"
+}
+
+
+static void _vala_array_add7 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value) {
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if ((*length) == (*size)) {
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1);
+#line 9425 "RajcePublishing.c"
+ }
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[*length] = NULL;
+#line 9431 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_live_api_request_AddParam (PublishingRajceLiveApiRequest* self, const gchar* name, const gchar* val) {
+ PublishingRajceArgItem** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRajceArgItem* _tmp3_ = NULL;
+#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self));
+#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (name != NULL);
+#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (val != NULL);
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = self->priv->_params;
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0__length1 = self->priv->_params_length1;
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = name;
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = val;
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = publishing_rajce_arg_item_new (_tmp1_, _tmp2_);
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _vala_array_add7 (&self->priv->_params, &self->priv->_params_length1, &self->priv->__params_size_, _tmp3_);
+#line 9459 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_live_api_request_AddParamBool (PublishingRajceLiveApiRequest* self, const gchar* name, gboolean val) {
+ const gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ const gchar* _tmp2_ = NULL;
+#line 1276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self));
+#line 1276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (name != NULL);
+#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = val;
+#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp1_) {
+#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = "1";
+#line 9477 "RajcePublishing.c"
+ } else {
+#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = "0";
+#line 9481 "RajcePublishing.c"
+ }
+#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = name;
+#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (self, _tmp2_, _tmp0_);
+#line 9487 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_live_api_request_AddParamInt (PublishingRajceLiveApiRequest* self, const gchar* name, gint val) {
+ const gchar* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self));
+#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (name != NULL);
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = name;
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = val;
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = g_strdup_printf ("%i", _tmp1_);
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (self, _tmp0_, _tmp3_);
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp3_);
+#line 9512 "RajcePublishing.c"
+}
+
+
+static void _vala_array_add8 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value) {
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if ((*length) == (*size)) {
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1);
+#line 9523 "RajcePublishing.c"
+ }
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[*length] = NULL;
+#line 9529 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_live_api_request_AddParamNode (PublishingRajceLiveApiRequest* self, const gchar* name, PublishingRajceArgItem** val, int val_length1) {
+ PublishingRajceArgItem* newItem = NULL;
+ const gchar* _tmp0_ = NULL;
+ PublishingRajceArgItem* _tmp1_ = NULL;
+ PublishingRajceArgItem** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ PublishingRajceArgItem** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ PublishingRajceArgItem* _tmp4_ = NULL;
+#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self));
+#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (name != NULL);
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = name;
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = publishing_rajce_arg_item_new (_tmp0_, NULL);
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ newItem = _tmp1_;
+#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = val;
+#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2__length1 = val_length1;
+#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_arg_item_AddChildren (newItem, _tmp2_, _tmp2__length1);
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = self->priv->_params;
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3__length1 = self->priv->_params_length1;
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = _publishing_rajce_arg_item_ref0 (newItem);
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _vala_array_add8 (&self->priv->_params, &self->priv->_params_length1, &self->priv->__params_size_, _tmp4_);
+#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_arg_item_unref0 (newItem);
+#line 9568 "RajcePublishing.c"
+}
+
+
+gchar* publishing_rajce_live_api_request_Params2XmlString (PublishingRajceLiveApiRequest* self, gboolean urlencode) {
+ gchar* result = NULL;
+ xmlDoc* doc = NULL;
+ xmlDoc* _tmp0_ = NULL;
+ xmlNode* root = NULL;
+ xmlNode* _tmp1_ = NULL;
+ xmlDoc* _tmp2_ = NULL;
+ xmlNode* _tmp3_ = NULL;
+ xmlNode* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ xmlNode* par = NULL;
+ xmlNode* _tmp6_ = NULL;
+ xmlNode* _tmp7_ = NULL;
+ PublishingRajceArgItem** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ gchar* xmlstr = NULL;
+ xmlDoc* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ xmlDoc* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self), NULL);
+#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = xmlNewDoc ((xmlChar*) "1.0");
+#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ doc = _tmp0_;
+#line 1309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = xmlNewNode (NULL, (xmlChar*) "request");
+#line 1309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ root = _tmp1_;
+#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = doc;
+#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = root;
+#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xmlDocSetRootElement (_tmp2_, _tmp3_);
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = root;
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = self->priv->_cmd;
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xmlNewTextChild (_tmp4_, NULL, (xmlChar*) "command", (xmlChar*) _tmp5_);
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = root;
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = xmlNewTextChild (_tmp6_, NULL, (xmlChar*) "parameters", (xmlChar*) "");
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ par = _tmp7_;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = self->priv->_params;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8__length1 = self->priv->_params_length1;
+#line 9624 "RajcePublishing.c"
+ {
+ PublishingRajceArgItem** arg_collection = NULL;
+ gint arg_collection_length1 = 0;
+ gint _arg_collection_size_ = 0;
+ gint arg_it = 0;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ arg_collection = _tmp8_;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ arg_collection_length1 = _tmp8__length1;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ for (arg_it = 0; arg_it < _tmp8__length1; arg_it = arg_it + 1) {
+#line 9636 "RajcePublishing.c"
+ PublishingRajceArgItem* _tmp9_ = NULL;
+ PublishingRajceArgItem* arg = NULL;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = _publishing_rajce_arg_item_ref0 (arg_collection[arg_it]);
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ arg = _tmp9_;
+#line 9643 "RajcePublishing.c"
+ {
+ xmlNode* _tmp10_ = NULL;
+ PublishingRajceArgItem* _tmp11_ = NULL;
+#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = par;
+#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = arg;
+#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_WriteParam (_tmp10_, _tmp11_);
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_arg_item_unref0 (arg);
+#line 9655 "RajcePublishing.c"
+ }
+ }
+ }
+#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = doc;
+#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xmlDocDumpMemoryEnc (_tmp12_, (xmlChar**) (&_tmp13_), NULL, "UTF-8");
+#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (xmlstr);
+#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xmlstr = _tmp13_;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = doc;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xmlFreeDoc (_tmp14_);
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = urlencode;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp15_) {
+#line 9675 "RajcePublishing.c"
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = xmlstr;
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = soup_uri_encode (_tmp16_, "&;");
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp17_;
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (xmlstr);
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 9688 "RajcePublishing.c"
+ }
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = xmlstr;
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 9694 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_live_api_request_WriteParam (xmlNode* node, PublishingRajceArgItem* arg) {
+ PublishingRajceArgItem* _tmp0_ = NULL;
+ PublishingRajceArgItem** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 1329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (arg));
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = arg;
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = _tmp0_->children;
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1__length1 = _tmp0_->children_length1;
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp1__length1 == 0) {
+#line 9712 "RajcePublishing.c"
+ xmlNode* _tmp2_ = NULL;
+ PublishingRajceArgItem* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ PublishingRajceArgItem* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = node;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = arg;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = _tmp3_->key;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = arg;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = _tmp5_->val;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xmlNewTextChild (_tmp2_, NULL, (xmlChar*) _tmp4_, (xmlChar*) _tmp6_);
+#line 9730 "RajcePublishing.c"
+ } else {
+ xmlNode* subnode = NULL;
+ xmlNode* _tmp7_ = NULL;
+ PublishingRajceArgItem* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ xmlNode* _tmp10_ = NULL;
+ PublishingRajceArgItem* _tmp11_ = NULL;
+ PublishingRajceArgItem** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = node;
+#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = arg;
+#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = _tmp8_->key;
+#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = xmlNewTextChild (_tmp7_, NULL, (xmlChar*) _tmp9_, (xmlChar*) "");
+#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ subnode = _tmp10_;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = arg;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = _tmp11_->children;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12__length1 = _tmp11_->children_length1;
+#line 9756 "RajcePublishing.c"
+ {
+ PublishingRajceArgItem** child_collection = NULL;
+ gint child_collection_length1 = 0;
+ gint _child_collection_size_ = 0;
+ gint child_it = 0;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ child_collection = _tmp12_;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ child_collection_length1 = _tmp12__length1;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ for (child_it = 0; child_it < _tmp12__length1; child_it = child_it + 1) {
+#line 9768 "RajcePublishing.c"
+ PublishingRajceArgItem* _tmp13_ = NULL;
+ PublishingRajceArgItem* child = NULL;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = _publishing_rajce_arg_item_ref0 (child_collection[child_it]);
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ child = _tmp13_;
+#line 9775 "RajcePublishing.c"
+ {
+ xmlNode* _tmp14_ = NULL;
+ PublishingRajceArgItem* _tmp15_ = NULL;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = subnode;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = child;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_WriteParam (_tmp14_, _tmp15_);
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_arg_item_unref0 (child);
+#line 9787 "RajcePublishing.c"
+ }
+ }
+ }
+ }
+}
+
+
+static void publishing_rajce_value_live_api_request_init (GValue* value) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9798 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_value_live_api_request_free_value (GValue* value) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_unref (value->data[0].v_pointer);
+#line 9807 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_value_live_api_request_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ dest_value->data[0].v_pointer = publishing_rajce_live_api_request_ref (src_value->data[0].v_pointer);
+#line 9817 "RajcePublishing.c"
+ } else {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 9821 "RajcePublishing.c"
+ }
+}
+
+
+static gpointer publishing_rajce_value_live_api_request_peek_pointer (const GValue* value) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return value->data[0].v_pointer;
+#line 9829 "RajcePublishing.c"
+}
+
+
+static gchar* publishing_rajce_value_live_api_request_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 9836 "RajcePublishing.c"
+ PublishingRajceLiveApiRequest* object;
+ object = collect_values[0].v_pointer;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 9843 "RajcePublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 9847 "RajcePublishing.c"
+ }
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = publishing_rajce_live_api_request_ref (object);
+#line 9851 "RajcePublishing.c"
+ } else {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9855 "RajcePublishing.c"
+ }
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 9859 "RajcePublishing.c"
+}
+
+
+static gchar* publishing_rajce_value_live_api_request_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingRajceLiveApiRequest** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!object_p) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 9870 "RajcePublishing.c"
+ }
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = NULL;
+#line 9876 "RajcePublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 9880 "RajcePublishing.c"
+ } else {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *object_p = publishing_rajce_live_api_request_ref (value->data[0].v_pointer);
+#line 9884 "RajcePublishing.c"
+ }
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 9888 "RajcePublishing.c"
+}
+
+
+GParamSpec* publishing_rajce_param_spec_live_api_request (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingRajceParamSpecLiveApiRequest* spec;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST), NULL);
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 9902 "RajcePublishing.c"
+}
+
+
+gpointer publishing_rajce_value_get_live_api_request (const GValue* value) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST), NULL);
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return value->data[0].v_pointer;
+#line 9911 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_value_set_live_api_request (GValue* value, gpointer v_object) {
+ PublishingRajceLiveApiRequest* old;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST));
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (v_object) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST));
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_ref (value->data[0].v_pointer);
+#line 9931 "RajcePublishing.c"
+ } else {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9935 "RajcePublishing.c"
+ }
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (old) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_unref (old);
+#line 9941 "RajcePublishing.c"
+ }
+}
+
+
+void publishing_rajce_value_take_live_api_request (GValue* value, gpointer v_object) {
+ PublishingRajceLiveApiRequest* old;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST));
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (v_object) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST));
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 9960 "RajcePublishing.c"
+ } else {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9964 "RajcePublishing.c"
+ }
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (old) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_unref (old);
+#line 9970 "RajcePublishing.c"
+ }
+}
+
+
+static void publishing_rajce_live_api_request_class_init (PublishingRajceLiveApiRequestClass * klass) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_parent_class = g_type_class_peek_parent (klass);
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ ((PublishingRajceLiveApiRequestClass *) klass)->finalize = publishing_rajce_live_api_request_finalize;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRajceLiveApiRequestPrivate));
+#line 9982 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_live_api_request_instance_init (PublishingRajceLiveApiRequest * self) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv = PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_PRIVATE (self);
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->ref_count = 1;
+#line 9991 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_live_api_request_finalize (PublishingRajceLiveApiRequest* obj) {
+ PublishingRajceLiveApiRequest * self;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequest);
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->_params = (_vala_array_free (self->priv->_params, self->priv->_params_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL);
+#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (self->priv->_cmd);
+#line 10005 "RajcePublishing.c"
+}
+
+
+GType publishing_rajce_live_api_request_get_type (void) {
+ static volatile gsize publishing_rajce_live_api_request_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_live_api_request_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_live_api_request_init, publishing_rajce_value_live_api_request_free_value, publishing_rajce_value_live_api_request_copy_value, publishing_rajce_value_live_api_request_peek_pointer, "p", publishing_rajce_value_live_api_request_collect_value, "p", publishing_rajce_value_live_api_request_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceLiveApiRequestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_live_api_request_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceLiveApiRequest), 0, (GInstanceInitFunc) publishing_rajce_live_api_request_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 publishing_rajce_live_api_request_type_id;
+ publishing_rajce_live_api_request_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajceLiveApiRequest", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_rajce_live_api_request_type_id__volatile, publishing_rajce_live_api_request_type_id);
+ }
+ return publishing_rajce_live_api_request_type_id__volatile;
+}
+
+
+gpointer publishing_rajce_live_api_request_ref (gpointer instance) {
+ PublishingRajceLiveApiRequest* self;
+ self = instance;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return instance;
+#line 10030 "RajcePublishing.c"
+}
+
+
+void publishing_rajce_live_api_request_unref (gpointer instance) {
+ PublishingRajceLiveApiRequest* self;
+ self = instance;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_CLASS (self)->finalize (self);
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 10043 "RajcePublishing.c"
+ }
+}
+
+
+PublishingRajceTransaction* publishing_rajce_transaction_construct (GType object_type, PublishingRajceSession* session) {
+ PublishingRajceTransaction* self = NULL;
+ PublishingRajceSession* _tmp0_ = NULL;
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL);
+#line 1357 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = session;
+#line 1357 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 10059 "RajcePublishing.c"
+}
+
+
+PublishingRajceTransaction* publishing_rajce_transaction_new (PublishingRajceSession* session) {
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_transaction_construct (PUBLISHING_RAJCE_TYPE_TRANSACTION, session);
+#line 10066 "RajcePublishing.c"
+}
+
+
+gchar* publishing_rajce_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) {
+ gchar* result = NULL;
+ xmlNode* root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp0_ = NULL;
+ xmlNode* _tmp1_ = NULL;
+ xmlNode* _tmp2_ = NULL;
+ gchar* name = NULL;
+ xmlNode* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ const gchar* _tmp8_ = NULL;
+ xmlNode* errcode = NULL;
+ xmlNode* _result_ = NULL;
+ xmlNode* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gint _tmp22_ = 0;
+ xmlNode* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1360 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL);
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = doc;
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = publishing_rest_support_xml_document_get_root_node (_tmp0_);
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ root = _tmp1_;
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = root;
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp2_ == NULL) {
+#line 10106 "RajcePublishing.c"
+ gchar* _tmp3_ = NULL;
+#line 1365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = g_strdup ("No XML returned from server");
+#line 1365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp3_;
+#line 1365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 10114 "RajcePublishing.c"
+ }
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = root;
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = _tmp4_->name;
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = g_strdup (_tmp5_);
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ name = _tmp6_;
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = name;
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp8_ == NULL) {
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = TRUE;
+#line 10130 "RajcePublishing.c"
+ } else {
+ const gchar* _tmp9_ = NULL;
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = name;
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = g_strcmp0 (_tmp9_, "response") != 0;
+#line 10137 "RajcePublishing.c"
+ }
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp7_) {
+#line 10141 "RajcePublishing.c"
+ gchar* _tmp10_ = NULL;
+#line 1372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = g_strdup ("No response from Rajce in XML");
+#line 1372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp10_;
+#line 1372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (name);
+#line 1372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 10151 "RajcePublishing.c"
+ }
+ {
+ xmlNode* _tmp11_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+ xmlNode* _tmp14_ = NULL;
+ xmlNode* _tmp15_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp16_ = NULL;
+ xmlNode* _tmp17_ = NULL;
+ xmlNode* _tmp18_ = NULL;
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = doc;
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = root;
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = publishing_rest_support_xml_document_get_named_child (_tmp12_, _tmp13_, "errorCode", &_inner_error_);
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = _tmp14_;
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 10174 "RajcePublishing.c"
+ goto __catch31_spit_publishing_publishing_error;
+ }
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (name);
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 10185 "RajcePublishing.c"
+ }
+#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ errcode = _tmp11_;
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = doc;
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = root;
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = publishing_rest_support_xml_document_get_named_child (_tmp16_, _tmp17_, "result", &_inner_error_);
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = _tmp18_;
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 10201 "RajcePublishing.c"
+ goto __catch31_spit_publishing_publishing_error;
+ }
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (name);
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 10212 "RajcePublishing.c"
+ }
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _result_ = _tmp15_;
+#line 10216 "RajcePublishing.c"
+ }
+ goto __finally31;
+ __catch31_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ err = _inner_error_;
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _inner_error_ = NULL;
+#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = NULL;
+#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_error_free0 (err);
+#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (name);
+#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 10234 "RajcePublishing.c"
+ }
+ __finally31:
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (name);
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.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 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return NULL;
+#line 10247 "RajcePublishing.c"
+ }
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = errcode;
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = (gchar*) xmlNodeGetContent (_tmp19_);
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = _tmp20_;
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = atoi (_tmp21_);
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = _result_;
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = (gchar*) xmlNodeGetContent (_tmp23_);
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = _tmp24_;
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = g_strdup_printf ("999 Rajce Error [%d]: %s", _tmp22_, _tmp25_);
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = _tmp26_;
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp25_);
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp21_);
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ result = _tmp27_;
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (name);
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return result;
+#line 10277 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_transaction_class_init (PublishingRajceTransactionClass * klass) {
+#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10284 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_transaction_instance_init (PublishingRajceTransaction * self) {
+}
+
+
+/**
+ * Generic REST transaction class.
+ *
+ * This class implements the generic logic for all REST transactions used
+ * by the Rajce publishing plugin.
+ */
+GType publishing_rajce_transaction_get_type (void) {
+ static volatile gsize publishing_rajce_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceTransaction), 0, (GInstanceInitFunc) publishing_rajce_transaction_instance_init, NULL };
+ GType publishing_rajce_transaction_type_id;
+ publishing_rajce_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRajceTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_transaction_type_id__volatile, publishing_rajce_transaction_type_id);
+ }
+ return publishing_rajce_transaction_type_id__volatile;
+}
+
+
+PublishingRajceSessionLoginTransaction* publishing_rajce_session_login_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url, const gchar* username, const gchar* token) {
+ PublishingRajceSessionLoginTransaction* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ PublishingRajceSession* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRajceLiveApiRequest* req = NULL;
+ PublishingRajceLiveApiRequest* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* xml = NULL;
+ gchar* _tmp6_ = NULL;
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (username != NULL, NULL);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (token != NULL, NULL);
+#line 1396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = url;
+#line 1396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:1396: SessionLoginTransaction: URL: %s", _tmp0_);
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = session;
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = url;
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceSessionLoginTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp2_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1398 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = publishing_rajce_live_api_request_new ("login");
+#line 1398 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ req = _tmp3_;
+#line 1399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "clientID", "RajceShotwellPlugin");
+#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "currentVersion", "1.1.1.1");
+#line 1401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = username;
+#line 1401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "login", _tmp4_);
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = token;
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "password", _tmp5_);
+#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE);
+#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xml = _tmp6_;
+#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (xml);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_live_api_request_unref0 (req);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 10367 "RajcePublishing.c"
+}
+
+
+PublishingRajceSessionLoginTransaction* publishing_rajce_session_login_transaction_new (PublishingRajceSession* session, const gchar* url, const gchar* username, const gchar* token) {
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_session_login_transaction_construct (PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, session, url, username, token);
+#line 10374 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_session_login_transaction_class_init (PublishingRajceSessionLoginTransactionClass * klass) {
+#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_session_login_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10381 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_session_login_transaction_instance_init (PublishingRajceSessionLoginTransaction * self) {
+}
+
+
+/**
+ * Transaction used to implement the network login interaction.
+ */
+GType publishing_rajce_session_login_transaction_get_type (void) {
+ static volatile gsize publishing_rajce_session_login_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_session_login_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceSessionLoginTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_session_login_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceSessionLoginTransaction), 0, (GInstanceInitFunc) publishing_rajce_session_login_transaction_instance_init, NULL };
+ GType publishing_rajce_session_login_transaction_type_id;
+ publishing_rajce_session_login_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceSessionLoginTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_session_login_transaction_type_id__volatile, publishing_rajce_session_login_transaction_type_id);
+ }
+ return publishing_rajce_session_login_transaction_type_id__volatile;
+}
+
+
+static void _vala_array_add9 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value) {
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if ((*length) == (*size)) {
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1);
+#line 10411 "RajcePublishing.c"
+ }
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[*length] = NULL;
+#line 10417 "RajcePublishing.c"
+}
+
+
+static void _vala_array_add10 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value) {
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if ((*length) == (*size)) {
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1);
+#line 10428 "RajcePublishing.c"
+ }
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[*length] = NULL;
+#line 10434 "RajcePublishing.c"
+}
+
+
+static void _vala_array_add11 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value) {
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if ((*length) == (*size)) {
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1);
+#line 10445 "RajcePublishing.c"
+ }
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[*length] = NULL;
+#line 10451 "RajcePublishing.c"
+}
+
+
+static void _vala_array_add12 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value) {
+#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if ((*length) == (*size)) {
+#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1);
+#line 10462 "RajcePublishing.c"
+ }
+#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[*length] = NULL;
+#line 10468 "RajcePublishing.c"
+}
+
+
+static void _vala_array_add13 (PublishingRajceArgItem*** array, int* length, int* size, PublishingRajceArgItem* value) {
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if ((*length) == (*size)) {
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1);
+#line 10479 "RajcePublishing.c"
+ }
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ (*array)[*length] = NULL;
+#line 10485 "RajcePublishing.c"
+}
+
+
+PublishingRajceGetAlbumsTransaction* publishing_rajce_get_albums_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url) {
+ PublishingRajceGetAlbumsTransaction* self = NULL;
+ PublishingRajceSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRajceLiveApiRequest* req = NULL;
+ PublishingRajceLiveApiRequest* _tmp2_ = NULL;
+ PublishingRajceSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ PublishingRajceArgItem** columns = NULL;
+ PublishingRajceArgItem** _tmp6_ = NULL;
+ gint columns_length1 = 0;
+ gint _columns_size_ = 0;
+ PublishingRajceArgItem** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ PublishingRajceArgItem* _tmp8_ = NULL;
+ PublishingRajceArgItem** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ PublishingRajceArgItem* _tmp10_ = NULL;
+ PublishingRajceArgItem** _tmp11_ = NULL;
+ gint _tmp11__length1 = 0;
+ PublishingRajceArgItem* _tmp12_ = NULL;
+ PublishingRajceArgItem** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ PublishingRajceArgItem* _tmp14_ = NULL;
+ PublishingRajceArgItem** _tmp15_ = NULL;
+ gint _tmp15__length1 = 0;
+ PublishingRajceArgItem* _tmp16_ = NULL;
+ PublishingRajceArgItem** _tmp17_ = NULL;
+ gint _tmp17__length1 = 0;
+ gchar* xml = NULL;
+ gchar* _tmp18_ = NULL;
+#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL);
+#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = session;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = url;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceGetAlbumsTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_live_api_request_new ("getAlbumList");
+#line 1416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ req = _tmp2_;
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = session;
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishing_rajce_session_get_usertoken (_tmp3_);
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "token", _tmp5_);
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp5_);
+#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = g_new0 (PublishingRajceArgItem*, 0 + 1);
+#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ columns = _tmp6_;
+#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ columns_length1 = 0;
+#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _columns_size_ = columns_length1;
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = columns;
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7__length1 = columns_length1;
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = publishing_rajce_arg_item_new ("column", "viewCount");
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _vala_array_add9 (&columns, &columns_length1, &_columns_size_, _tmp8_);
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = columns;
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9__length1 = columns_length1;
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = publishing_rajce_arg_item_new ("column", "isFavourite");
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _vala_array_add10 (&columns, &columns_length1, &_columns_size_, _tmp10_);
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = columns;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11__length1 = columns_length1;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = publishing_rajce_arg_item_new ("column", "descriptionHtml");
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _vala_array_add11 (&columns, &columns_length1, &_columns_size_, _tmp12_);
+#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = columns;
+#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13__length1 = columns_length1;
+#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = publishing_rajce_arg_item_new ("column", "coverPhotoID");
+#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _vala_array_add12 (&columns, &columns_length1, &_columns_size_, _tmp14_);
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = columns;
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15__length1 = columns_length1;
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = publishing_rajce_arg_item_new ("column", "localPath");
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _vala_array_add13 (&columns, &columns_length1, &_columns_size_, _tmp16_);
+#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = columns;
+#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17__length1 = columns_length1;
+#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParamNode (req, "columns", _tmp17_, _tmp17__length1);
+#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE);
+#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xml = _tmp18_;
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml);
+#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (xml);
+#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL);
+#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_live_api_request_unref0 (req);
+#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 10613 "RajcePublishing.c"
+}
+
+
+PublishingRajceGetAlbumsTransaction* publishing_rajce_get_albums_transaction_new (PublishingRajceSession* session, const gchar* url) {
+#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_get_albums_transaction_construct (PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, session, url);
+#line 10620 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_get_albums_transaction_class_init (PublishingRajceGetAlbumsTransactionClass * klass) {
+#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_get_albums_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10627 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_get_albums_transaction_instance_init (PublishingRajceGetAlbumsTransaction * self) {
+}
+
+
+/**
+ * Transaction used to implement the get albums interaction.
+ */
+GType publishing_rajce_get_albums_transaction_get_type (void) {
+ static volatile gsize publishing_rajce_get_albums_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_get_albums_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceGetAlbumsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_get_albums_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceGetAlbumsTransaction), 0, (GInstanceInitFunc) publishing_rajce_get_albums_transaction_instance_init, NULL };
+ GType publishing_rajce_get_albums_transaction_type_id;
+ publishing_rajce_get_albums_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceGetAlbumsTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_get_albums_transaction_type_id__volatile, publishing_rajce_get_albums_transaction_type_id);
+ }
+ return publishing_rajce_get_albums_transaction_type_id__volatile;
+}
+
+
+PublishingRajceCreateAlbumTransaction* publishing_rajce_create_album_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url, const gchar* albumName, gboolean hidden) {
+ PublishingRajceCreateAlbumTransaction* self = NULL;
+ PublishingRajceSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRajceLiveApiRequest* req = NULL;
+ PublishingRajceLiveApiRequest* _tmp2_ = NULL;
+ PublishingRajceSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ gchar* xml = NULL;
+ gchar* _tmp8_ = NULL;
+#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL);
+#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (albumName != NULL, NULL);
+#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = session;
+#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = url;
+#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceCreateAlbumTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_live_api_request_new ("createAlbum");
+#line 1438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ req = _tmp2_;
+#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = session;
+#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishing_rajce_session_get_usertoken (_tmp3_);
+#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "token", _tmp5_);
+#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp5_);
+#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = albumName;
+#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "albumName", _tmp6_);
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "albumDescription", "");
+#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = hidden;
+#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParamBool (req, "albumVisible", !_tmp7_);
+#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE);
+#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xml = _tmp8_;
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml);
+#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (xml);
+#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_live_api_request_unref0 (req);
+#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 10711 "RajcePublishing.c"
+}
+
+
+PublishingRajceCreateAlbumTransaction* publishing_rajce_create_album_transaction_new (PublishingRajceSession* session, const gchar* url, const gchar* albumName, gboolean hidden) {
+#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_create_album_transaction_construct (PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, session, url, albumName, hidden);
+#line 10718 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_create_album_transaction_class_init (PublishingRajceCreateAlbumTransactionClass * klass) {
+#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_create_album_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10725 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_create_album_transaction_instance_init (PublishingRajceCreateAlbumTransaction * self) {
+}
+
+
+/**
+ * Transaction used to implement the create album interaction.
+ */
+GType publishing_rajce_create_album_transaction_get_type (void) {
+ static volatile gsize publishing_rajce_create_album_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_create_album_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceCreateAlbumTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_create_album_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceCreateAlbumTransaction), 0, (GInstanceInitFunc) publishing_rajce_create_album_transaction_instance_init, NULL };
+ GType publishing_rajce_create_album_transaction_type_id;
+ publishing_rajce_create_album_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceCreateAlbumTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_create_album_transaction_type_id__volatile, publishing_rajce_create_album_transaction_type_id);
+ }
+ return publishing_rajce_create_album_transaction_type_id__volatile;
+}
+
+
+PublishingRajceOpenAlbumTransaction* publishing_rajce_open_album_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url, gint albumID) {
+ PublishingRajceOpenAlbumTransaction* self = NULL;
+ PublishingRajceSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRajceLiveApiRequest* req = NULL;
+ PublishingRajceLiveApiRequest* _tmp2_ = NULL;
+ PublishingRajceSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ gchar* xml = NULL;
+ gchar* _tmp7_ = NULL;
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL);
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = session;
+#line 1455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = url;
+#line 1455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceOpenAlbumTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_live_api_request_new ("openAlbum");
+#line 1456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ req = _tmp2_;
+#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = session;
+#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishing_rajce_session_get_usertoken (_tmp3_);
+#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "token", _tmp5_);
+#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp5_);
+#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = albumID;
+#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParamInt (req, "albumID", _tmp6_);
+#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE);
+#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xml = _tmp7_;
+#line 1460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml);
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (xml);
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_live_api_request_unref0 (req);
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 10800 "RajcePublishing.c"
+}
+
+
+PublishingRajceOpenAlbumTransaction* publishing_rajce_open_album_transaction_new (PublishingRajceSession* session, const gchar* url, gint albumID) {
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_open_album_transaction_construct (PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, session, url, albumID);
+#line 10807 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_open_album_transaction_class_init (PublishingRajceOpenAlbumTransactionClass * klass) {
+#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_open_album_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10814 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_open_album_transaction_instance_init (PublishingRajceOpenAlbumTransaction * self) {
+}
+
+
+/**
+ * Transaction used to implement the open album interaction.
+ */
+GType publishing_rajce_open_album_transaction_get_type (void) {
+ static volatile gsize publishing_rajce_open_album_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_open_album_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceOpenAlbumTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_open_album_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceOpenAlbumTransaction), 0, (GInstanceInitFunc) publishing_rajce_open_album_transaction_instance_init, NULL };
+ GType publishing_rajce_open_album_transaction_type_id;
+ publishing_rajce_open_album_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceOpenAlbumTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_open_album_transaction_type_id__volatile, publishing_rajce_open_album_transaction_type_id);
+ }
+ return publishing_rajce_open_album_transaction_type_id__volatile;
+}
+
+
+PublishingRajceGetAlbumUrlTransaction* publishing_rajce_get_album_url_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url) {
+ PublishingRajceGetAlbumUrlTransaction* self = NULL;
+ PublishingRajceSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRajceLiveApiRequest* req = NULL;
+ PublishingRajceLiveApiRequest* _tmp2_ = NULL;
+ PublishingRajceSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ PublishingRajceSession* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* xml = NULL;
+ gchar* _tmp9_ = NULL;
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL);
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = session;
+#line 1471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = url;
+#line 1471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceGetAlbumUrlTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_live_api_request_new ("getAlbumUrl");
+#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ req = _tmp2_;
+#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = session;
+#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishing_rajce_session_get_usertoken (_tmp3_);
+#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "token", _tmp5_);
+#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp5_);
+#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = session;
+#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = publishing_rajce_session_get_albumtoken (_tmp6_);
+#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "albumToken", _tmp8_);
+#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp8_);
+#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE);
+#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xml = _tmp9_;
+#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml);
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (xml);
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_live_api_request_unref0 (req);
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 10897 "RajcePublishing.c"
+}
+
+
+PublishingRajceGetAlbumUrlTransaction* publishing_rajce_get_album_url_transaction_new (PublishingRajceSession* session, const gchar* url) {
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_get_album_url_transaction_construct (PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, session, url);
+#line 10904 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_get_album_url_transaction_class_init (PublishingRajceGetAlbumUrlTransactionClass * klass) {
+#line 1467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_get_album_url_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10911 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_get_album_url_transaction_instance_init (PublishingRajceGetAlbumUrlTransaction * self) {
+}
+
+
+/**
+ * Transaction used to implement the close album interaction.
+ */
+GType publishing_rajce_get_album_url_transaction_get_type (void) {
+ static volatile gsize publishing_rajce_get_album_url_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_get_album_url_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceGetAlbumUrlTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_get_album_url_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceGetAlbumUrlTransaction), 0, (GInstanceInitFunc) publishing_rajce_get_album_url_transaction_instance_init, NULL };
+ GType publishing_rajce_get_album_url_transaction_type_id;
+ publishing_rajce_get_album_url_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceGetAlbumUrlTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_get_album_url_transaction_type_id__volatile, publishing_rajce_get_album_url_transaction_type_id);
+ }
+ return publishing_rajce_get_album_url_transaction_type_id__volatile;
+}
+
+
+PublishingRajceCloseAlbumTransaction* publishing_rajce_close_album_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url) {
+ PublishingRajceCloseAlbumTransaction* self = NULL;
+ PublishingRajceSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRajceLiveApiRequest* req = NULL;
+ PublishingRajceLiveApiRequest* _tmp2_ = NULL;
+ PublishingRajceSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ PublishingRajceSession* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* xml = NULL;
+ gchar* _tmp9_ = NULL;
+#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL);
+#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = session;
+#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = url;
+#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceCloseAlbumTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_live_api_request_new ("closeAlbum");
+#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ req = _tmp2_;
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = session;
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishing_rajce_session_get_usertoken (_tmp3_);
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "token", _tmp5_);
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp5_);
+#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = session;
+#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = publishing_rajce_session_get_albumtoken (_tmp6_);
+#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "albumToken", _tmp8_);
+#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp8_);
+#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE);
+#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xml = _tmp9_;
+#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml);
+#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (xml);
+#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_live_api_request_unref0 (req);
+#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 10994 "RajcePublishing.c"
+}
+
+
+PublishingRajceCloseAlbumTransaction* publishing_rajce_close_album_transaction_new (PublishingRajceSession* session, const gchar* url) {
+#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_close_album_transaction_construct (PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, session, url);
+#line 11001 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_close_album_transaction_class_init (PublishingRajceCloseAlbumTransactionClass * klass) {
+#line 1483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_close_album_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 11008 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_close_album_transaction_instance_init (PublishingRajceCloseAlbumTransaction * self) {
+}
+
+
+/**
+ * Transaction used to implement the close album interaction.
+ */
+GType publishing_rajce_close_album_transaction_get_type (void) {
+ static volatile gsize publishing_rajce_close_album_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_close_album_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceCloseAlbumTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_close_album_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceCloseAlbumTransaction), 0, (GInstanceInitFunc) publishing_rajce_close_album_transaction_instance_init, NULL };
+ GType publishing_rajce_close_album_transaction_type_id;
+ publishing_rajce_close_album_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceCloseAlbumTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_close_album_transaction_type_id__volatile, publishing_rajce_close_album_transaction_type_id);
+ }
+ return publishing_rajce_close_album_transaction_type_id__volatile;
+}
+
+
+PublishingRajceGetCategoriesTransaction* publishing_rajce_get_categories_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url) {
+ PublishingRajceGetCategoriesTransaction* self = NULL;
+ PublishingRajceSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRajceLiveApiRequest* req = NULL;
+ PublishingRajceLiveApiRequest* _tmp2_ = NULL;
+ PublishingRajceSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* xml = NULL;
+ gchar* _tmp6_ = NULL;
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL);
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = session;
+#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = url;
+#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceGetCategoriesTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = publishing_rajce_live_api_request_new ("getCategories");
+#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ req = _tmp2_;
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = session;
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = publishing_rajce_session_get_usertoken (_tmp3_);
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (req, "token", _tmp5_);
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp5_);
+#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE);
+#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xml = _tmp6_;
+#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml);
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (xml);
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_live_api_request_unref0 (req);
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 11078 "RajcePublishing.c"
+}
+
+
+PublishingRajceGetCategoriesTransaction* publishing_rajce_get_categories_transaction_new (PublishingRajceSession* session, const gchar* url) {
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_get_categories_transaction_construct (PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, session, url);
+#line 11085 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_get_categories_transaction_class_init (PublishingRajceGetCategoriesTransactionClass * klass) {
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_get_categories_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 11092 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_get_categories_transaction_instance_init (PublishingRajceGetCategoriesTransaction * self) {
+}
+
+
+/**
+ * Transaction used to implement the get categories interaction.
+ */
+GType publishing_rajce_get_categories_transaction_get_type (void) {
+ static volatile gsize publishing_rajce_get_categories_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_get_categories_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceGetCategoriesTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_get_categories_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceGetCategoriesTransaction), 0, (GInstanceInitFunc) publishing_rajce_get_categories_transaction_instance_init, NULL };
+ GType publishing_rajce_get_categories_transaction_type_id;
+ publishing_rajce_get_categories_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceGetCategoriesTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_get_categories_transaction_type_id__volatile, publishing_rajce_get_categories_transaction_type_id);
+ }
+ return publishing_rajce_get_categories_transaction_type_id__volatile;
+}
+
+
+static void _g_free0_ (gpointer var) {
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ var = (g_free (var), NULL);
+#line 11118 "RajcePublishing.c"
+}
+
+
+PublishingRajceAddPhotoTransaction* publishing_rajce_add_photo_transaction_construct (GType object_type, PublishingRajceSession* session, const gchar* url, PublishingRajcePublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+ PublishingRajceAddPhotoTransaction* self = NULL;
+ PublishingRajceSession* _tmp0_ = NULL;
+ SpitPublishingPublishable* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRajcePublishingParameters* _tmp3_ = NULL;
+ PublishingRajcePublishingParameters* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ PublishingRajcePublishingParameters* _tmp6_ = NULL;
+ gint* _tmp7_ = NULL;
+ SpitPublishingPublishable* _tmp8_ = NULL;
+ GFile* _tmp9_ = NULL;
+ GFile* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ PublishingRajcePublishingParameters* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ gchar* basename = NULL;
+ SpitPublishingPublishable* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* comment = NULL;
+ SpitPublishingPublishable* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ gchar* pubname = NULL;
+ SpitPublishingPublishable* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ gint width = 0;
+ PublishingRajceSession* _tmp21_ = NULL;
+ gint _tmp22_ = 0;
+ gint height = 0;
+ PublishingRajceSession* _tmp23_ = NULL;
+ gint _tmp24_ = 0;
+ PublishingRajceLiveApiRequest* req = NULL;
+ PublishingRajceLiveApiRequest* _tmp25_ = NULL;
+ PublishingRajceLiveApiRequest* _tmp26_ = NULL;
+ PublishingRajceSession* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ gchar* _tmp29_ = NULL;
+ PublishingRajceLiveApiRequest* _tmp30_ = NULL;
+ gint _tmp31_ = 0;
+ PublishingRajceLiveApiRequest* _tmp32_ = NULL;
+ gint _tmp33_ = 0;
+ PublishingRajceLiveApiRequest* _tmp34_ = NULL;
+ PublishingRajceSession* _tmp35_ = NULL;
+ gchar* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+ PublishingRajceLiveApiRequest* _tmp38_ = NULL;
+ const gchar* _tmp39_ = NULL;
+ PublishingRajceLiveApiRequest* _tmp40_ = NULL;
+ const gchar* _tmp41_ = NULL;
+ const gchar* _tmp42_ = NULL;
+ const gchar* _tmp43_ = NULL;
+ PublishingRajceLiveApiRequest* _tmp45_ = NULL;
+ gchar* xml = NULL;
+ PublishingRajceLiveApiRequest* _tmp46_ = NULL;
+ gchar* _tmp47_ = NULL;
+ GHashTable* disposition_table = NULL;
+ GHashFunc _tmp48_ = NULL;
+ GEqualFunc _tmp49_ = NULL;
+ GHashTable* _tmp50_ = NULL;
+ gchar* _tmp51_ = NULL;
+ gchar* _tmp52_ = NULL;
+ gchar* _tmp53_ = NULL;
+ const gchar* _tmp54_ = NULL;
+ gchar* _tmp55_ = NULL;
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL);
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 1520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp0_ = session;
+#line 1520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp1_ = publishable;
+#line 1520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp2_ = url;
+#line 1520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = (PublishingRajceAddPhotoTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp2_);
+#line 1521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp3_ = parameters;
+#line 1521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp4_ = _publishing_rajce_publishing_parameters_ref0 (_tmp3_);
+#line 1521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters);
+#line 1521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->parameters = _tmp4_;
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp6_ = parameters;
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp7_ = _tmp6_->album_id;
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if ((*_tmp7_) > 0) {
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = "";
+#line 11219 "RajcePublishing.c"
+ } else {
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp5_ = " new";
+#line 11223 "RajcePublishing.c"
+ }
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp8_ = publishable;
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp9_ = spit_publishing_publishable_get_serialized_file (_tmp8_);
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp11_ = g_file_get_basename (_tmp10_);
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp12_ = _tmp11_;
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp13_ = parameters;
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp14_ = _tmp13_->album_name;
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_debug ("RajcePublishing.vala:1523: RajcePlugin: Uploading photo %s to%s album " \
+"%s", _tmp12_, _tmp5_, _tmp14_);
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp12_);
+#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_object_unref0 (_tmp10_);
+#line 1525 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp15_ = publishable;
+#line 1525 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp16_ = spit_publishing_publishable_get_param_string (_tmp15_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME);
+#line 1525 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ basename = _tmp16_;
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp17_ = publishable;
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp18_ = spit_publishing_publishable_get_param_string (_tmp17_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT);
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ comment = _tmp18_;
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp19_ = publishable;
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp20_ = spit_publishing_publishable_get_publishing_name (_tmp19_);
+#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ pubname = _tmp20_;
+#line 1529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp21_ = session;
+#line 1529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp22_ = publishing_rajce_session_get_maxsize (_tmp21_);
+#line 1529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ width = _tmp22_;
+#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp23_ = session;
+#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp24_ = publishing_rajce_session_get_maxsize (_tmp23_);
+#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ height = _tmp24_;
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp25_ = publishing_rajce_live_api_request_new ("addPhoto");
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ req = _tmp25_;
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp26_ = req;
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp27_ = session;
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp28_ = publishing_rajce_session_get_usertoken (_tmp27_);
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp29_ = _tmp28_;
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (_tmp26_, "token", _tmp29_);
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp29_);
+#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp30_ = req;
+#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp31_ = width;
+#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParamInt (_tmp30_, "width", _tmp31_);
+#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp32_ = req;
+#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp33_ = height;
+#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParamInt (_tmp32_, "height", _tmp33_);
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp34_ = req;
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp35_ = session;
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp36_ = publishing_rajce_session_get_albumtoken (_tmp35_);
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp37_ = _tmp36_;
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (_tmp34_, "albumToken", _tmp37_);
+#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (_tmp37_);
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp38_ = req;
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp39_ = pubname;
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (_tmp38_, "photoName", _tmp39_);
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp40_ = req;
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp41_ = basename;
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (_tmp40_, "fullFileName", _tmp41_);
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp43_ = comment;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ if (_tmp43_ != NULL) {
+#line 11331 "RajcePublishing.c"
+ const gchar* _tmp44_ = NULL;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp44_ = comment;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp42_ = _tmp44_;
+#line 11337 "RajcePublishing.c"
+ } else {
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp42_ = "";
+#line 11341 "RajcePublishing.c"
+ }
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp45_ = req;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_live_api_request_AddParam (_tmp45_, "description", _tmp42_);
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp46_ = req;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp47_ = publishing_rajce_live_api_request_Params2XmlString (_tmp46_, FALSE);
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ xml = _tmp47_;
+#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml);
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp48_ = g_str_hash;
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp49_ = g_str_equal;
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp50_ = g_hash_table_new_full (_tmp48_, _tmp49_, _g_free0_, _g_free0_);
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ disposition_table = _tmp50_;
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp51_ = g_strdup ("name");
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp52_ = g_strdup ("photo");
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_hash_table_insert (disposition_table, _tmp51_, _tmp52_);
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp53_ = g_strdup ("filename");
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp54_ = basename;
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _tmp55_ = soup_uri_encode (_tmp54_, NULL);
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_hash_table_insert (disposition_table, _tmp53_, _tmp55_);
+#line 1546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), disposition_table);
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_hash_table_unref0 (disposition_table);
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (xml);
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_live_api_request_unref0 (req);
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (pubname);
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (comment);
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _g_free0 (basename);
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return self;
+#line 11393 "RajcePublishing.c"
+}
+
+
+PublishingRajceAddPhotoTransaction* publishing_rajce_add_photo_transaction_new (PublishingRajceSession* session, const gchar* url, PublishingRajcePublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ return publishing_rajce_add_photo_transaction_construct (PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, session, url, parameters, publishable);
+#line 11400 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_add_photo_transaction_class_init (PublishingRajceAddPhotoTransactionClass * klass) {
+#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ publishing_rajce_add_photo_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rajce_add_photo_transaction_finalize;
+#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingRajceAddPhotoTransactionPrivate));
+#line 11411 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_add_photo_transaction_instance_init (PublishingRajceAddPhotoTransaction * self) {
+#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv = PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_GET_PRIVATE (self);
+#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self->priv->parameters = NULL;
+#line 11420 "RajcePublishing.c"
+}
+
+
+static void publishing_rajce_add_photo_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingRajceAddPhotoTransaction * self;
+#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransaction);
+#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters);
+#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_rajce_add_photo_transaction_parent_class)->finalize (obj);
+#line 11432 "RajcePublishing.c"
+}
+
+
+/**
+ * Transaction used to implement the upload photo.
+ */
+GType publishing_rajce_add_photo_transaction_get_type (void) {
+ static volatile gsize publishing_rajce_add_photo_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_rajce_add_photo_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceAddPhotoTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_add_photo_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceAddPhotoTransaction), 0, (GInstanceInitFunc) publishing_rajce_add_photo_transaction_instance_init, NULL };
+ GType publishing_rajce_add_photo_transaction_type_id;
+ publishing_rajce_add_photo_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingRajceAddPhotoTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_rajce_add_photo_transaction_type_id__volatile, publishing_rajce_add_photo_transaction_type_id);
+ }
+ return publishing_rajce_add_photo_transaction_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/plugins/shotwell-publishing-extras/RajcePublishing.vala b/plugins/shotwell-publishing-extras/RajcePublishing.vala
index d282ed5..4cf232c 100644
--- a/plugins/shotwell-publishing-extras/RajcePublishing.vala
+++ b/plugins/shotwell-publishing-extras/RajcePublishing.vala
@@ -13,7 +13,9 @@ public class RajceService : Object, Spit.Pluggable, Spit.Publishing.Service
public RajceService(GLib.File resource_directory)
{
if (icon_pixbuf_set == null)
- icon_pixbuf_set = Resources.load_icon_set(resource_directory.get_child(ICON_FILENAME));
+ icon_pixbuf_set =
+ Resources.load_from_resource(Resources.RESOURCE_PATH + "/" +
+ ICON_FILENAME);
}
public int get_pluggable_interface(int min_host_interface, int max_host_interface)
@@ -844,11 +846,11 @@ internal class AuthenticationPane : Spit.Publishing.DialogPane, Object
public AuthenticationPane( RajcePublisher publisher, Mode mode = Mode.INTRO )
{
this.pane_widget = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
- File ui_file = publisher.get_host().get_module_file().get_parent().get_child("rajce_authentication_pane.glade");
try
{
builder = new Gtk.Builder();
- builder.add_from_file(ui_file.get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH +
+ "/rajce_authentication_pane.ui");
builder.connect_signals(null);
Gtk.Alignment align = builder.get_object("alignment") as Gtk.Alignment;
Gtk.Label message_label = builder.get_object("message_label") as Gtk.Label;
@@ -986,11 +988,10 @@ internal class PublishingOptionsPane : Spit.Publishing.DialogPane, GLib.Object
this.publisher = publisher;
this.pane_widget = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
- File ui_file = publisher.get_host().get_module_file().get_parent().get_child("rajce_publishing_options_pane.glade");
try
{
this.builder = new Gtk.Builder();
- builder.add_from_file(ui_file.get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH + "/rajce_publishing_options_pane.ui");
builder.connect_signals(null);
pane_widget = (Gtk.Box) builder.get_object("rajce_pane_widget");
diff --git a/plugins/shotwell-publishing-extras/TumblrPublishing.c b/plugins/shotwell-publishing-extras/TumblrPublishing.c
new file mode 100644
index 0000000..5a6498a
--- /dev/null
+++ b/plugins/shotwell-publishing-extras/TumblrPublishing.c
@@ -0,0 +1,8413 @@
+/* TumblrPublishing.c generated by valac 0.32.1, the Vala compiler
+ * generated from TumblrPublishing.vala, do not modify */
+
+/* Copyright 2012 BJA Electronics
+ * Author: Jeroen Arnoldus (b.j.arnoldus@bja-electronics.nl)
+ *
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include "shotwell-plugin-common.h"
+#include <glib/gi18n-lib.h>
+#include <gtk/gtk.h>
+#include <json-glib/json-glib.h>
+#include <gee.h>
+#include <float.h>
+#include <math.h>
+#include <libsoup/soup.h>
+#include <glib/gstdio.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_TUMBLR_SERVICE (tumblr_service_get_type ())
+#define TUMBLR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TUMBLR_SERVICE, TumblrService))
+#define TUMBLR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TUMBLR_SERVICE, TumblrServiceClass))
+#define IS_TUMBLR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TUMBLR_SERVICE))
+#define IS_TUMBLR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TUMBLR_SERVICE))
+#define TUMBLR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TUMBLR_SERVICE, TumblrServiceClass))
+
+typedef struct _TumblrService TumblrService;
+typedef struct _TumblrServiceClass TumblrServiceClass;
+typedef struct _TumblrServicePrivate TumblrServicePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER (publishing_tumblr_tumblr_publisher_get_type ())
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisherClass))
+#define PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER))
+#define PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisherClass))
+
+typedef struct _PublishingTumblrTumblrPublisher PublishingTumblrTumblrPublisher;
+typedef struct _PublishingTumblrTumblrPublisherClass PublishingTumblrTumblrPublisherClass;
+
+#define PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY (publishing_tumblr_blog_entry_get_type ())
+#define PUBLISHING_TUMBLR_BLOG_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, PublishingTumblrBlogEntry))
+#define PUBLISHING_TUMBLR_BLOG_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, PublishingTumblrBlogEntryClass))
+#define PUBLISHING_TUMBLR_IS_BLOG_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY))
+#define PUBLISHING_TUMBLR_IS_BLOG_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY))
+#define PUBLISHING_TUMBLR_BLOG_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, PublishingTumblrBlogEntryClass))
+
+typedef struct _PublishingTumblrBlogEntry PublishingTumblrBlogEntry;
+typedef struct _PublishingTumblrBlogEntryClass PublishingTumblrBlogEntryClass;
+typedef struct _PublishingTumblrBlogEntryPrivate PublishingTumblrBlogEntryPrivate;
+typedef struct _PublishingTumblrParamSpecBlogEntry PublishingTumblrParamSpecBlogEntry;
+
+#define PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY (publishing_tumblr_size_entry_get_type ())
+#define PUBLISHING_TUMBLR_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, PublishingTumblrSizeEntry))
+#define PUBLISHING_TUMBLR_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, PublishingTumblrSizeEntryClass))
+#define PUBLISHING_TUMBLR_IS_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY))
+#define PUBLISHING_TUMBLR_IS_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY))
+#define PUBLISHING_TUMBLR_SIZE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, PublishingTumblrSizeEntryClass))
+
+typedef struct _PublishingTumblrSizeEntry PublishingTumblrSizeEntry;
+typedef struct _PublishingTumblrSizeEntryClass PublishingTumblrSizeEntryClass;
+typedef struct _PublishingTumblrSizeEntryPrivate PublishingTumblrSizeEntryPrivate;
+typedef struct _PublishingTumblrParamSpecSizeEntry PublishingTumblrParamSpecSizeEntry;
+typedef struct _PublishingTumblrTumblrPublisherPrivate PublishingTumblrTumblrPublisherPrivate;
+
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION (publishing_tumblr_tumblr_publisher_session_get_type ())
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION, PublishingTumblrTumblrPublisherSession))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION, PublishingTumblrTumblrPublisherSessionClass))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION, PublishingTumblrTumblrPublisherSessionClass))
+
+typedef struct _PublishingTumblrTumblrPublisherSession PublishingTumblrTumblrPublisherSession;
+typedef struct _PublishingTumblrTumblrPublisherSessionClass PublishingTumblrTumblrPublisherSessionClass;
+
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE (publishing_tumblr_tumblr_publisher_publishing_options_pane_get_type ())
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPaneClass))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPaneClass))
+
+typedef struct _PublishingTumblrTumblrPublisherPublishingOptionsPane PublishingTumblrTumblrPublisherPublishingOptionsPane;
+typedef struct _PublishingTumblrTumblrPublisherPublishingOptionsPaneClass PublishingTumblrTumblrPublisherPublishingOptionsPaneClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL)))
+
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_TYPE_MODE (publishing_tumblr_tumblr_publisher_authentication_pane_mode_get_type ())
+
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE (publishing_tumblr_tumblr_publisher_authentication_pane_get_type ())
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, PublishingTumblrTumblrPublisherAuthenticationPane))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, PublishingTumblrTumblrPublisherAuthenticationPaneClass))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, PublishingTumblrTumblrPublisherAuthenticationPaneClass))
+
+typedef struct _PublishingTumblrTumblrPublisherAuthenticationPane PublishingTumblrTumblrPublisherAuthenticationPane;
+typedef struct _PublishingTumblrTumblrPublisherAuthenticationPaneClass PublishingTumblrTumblrPublisherAuthenticationPaneClass;
+
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION (publishing_tumblr_tumblr_publisher_transaction_get_type ())
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION, PublishingTumblrTumblrPublisherTransaction))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION, PublishingTumblrTumblrPublisherTransactionClass))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION, PublishingTumblrTumblrPublisherTransactionClass))
+
+typedef struct _PublishingTumblrTumblrPublisherTransaction PublishingTumblrTumblrPublisherTransaction;
+typedef struct _PublishingTumblrTumblrPublisherTransactionClass PublishingTumblrTumblrPublisherTransactionClass;
+
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION (publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_get_type ())
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingTumblrTumblrPublisherAccessTokenFetchTransaction))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingTumblrTumblrPublisherAccessTokenFetchTransactionClass))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_ACCESS_TOKEN_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingTumblrTumblrPublisherAccessTokenFetchTransactionClass))
+
+typedef struct _PublishingTumblrTumblrPublisherAccessTokenFetchTransaction PublishingTumblrTumblrPublisherAccessTokenFetchTransaction;
+typedef struct _PublishingTumblrTumblrPublisherAccessTokenFetchTransactionClass PublishingTumblrTumblrPublisherAccessTokenFetchTransactionClass;
+#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION (publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_get_type ())
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_USER_INFO_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION, PublishingTumblrTumblrPublisherUserInfoFetchTransaction))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_USER_INFO_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION, PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_USER_INFO_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_USER_INFO_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_USER_INFO_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION, PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass))
+
+typedef struct _PublishingTumblrTumblrPublisherUserInfoFetchTransaction PublishingTumblrTumblrPublisherUserInfoFetchTransaction;
+typedef struct _PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass;
+#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
+#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL)))
+#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
+#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
+
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER (publishing_tumblr_tumblr_publisher_uploader_get_type ())
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploader))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploaderClass))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploaderClass))
+
+typedef struct _PublishingTumblrTumblrPublisherUploader PublishingTumblrTumblrPublisherUploader;
+typedef struct _PublishingTumblrTumblrPublisherUploaderClass PublishingTumblrTumblrPublisherUploaderClass;
+#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL)))
+typedef struct _PublishingTumblrTumblrPublisherAuthenticationPanePrivate PublishingTumblrTumblrPublisherAuthenticationPanePrivate;
+typedef struct _PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate;
+#define _publishing_tumblr_blog_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_tumblr_blog_entry_unref (var), NULL)))
+#define _publishing_tumblr_size_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_tumblr_size_entry_unref (var), NULL)))
+typedef struct _PublishingTumblrTumblrPublisherTransactionPrivate PublishingTumblrTumblrPublisherTransactionPrivate;
+typedef struct _PublishingTumblrTumblrPublisherAccessTokenFetchTransactionPrivate PublishingTumblrTumblrPublisherAccessTokenFetchTransactionPrivate;
+typedef struct _PublishingTumblrTumblrPublisherUserInfoFetchTransactionPrivate PublishingTumblrTumblrPublisherUserInfoFetchTransactionPrivate;
+
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION (publishing_tumblr_tumblr_publisher_upload_transaction_get_type ())
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransaction))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransactionClass))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransactionClass))
+
+typedef struct _PublishingTumblrTumblrPublisherUploadTransaction PublishingTumblrTumblrPublisherUploadTransaction;
+typedef struct _PublishingTumblrTumblrPublisherUploadTransactionClass PublishingTumblrTumblrPublisherUploadTransactionClass;
+typedef struct _PublishingTumblrTumblrPublisherUploadTransactionPrivate PublishingTumblrTumblrPublisherUploadTransactionPrivate;
+#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
+typedef struct _PublishingTumblrTumblrPublisherUploaderPrivate PublishingTumblrTumblrPublisherUploaderPrivate;
+typedef struct _PublishingTumblrTumblrPublisherSessionPrivate PublishingTumblrTumblrPublisherSessionPrivate;
+#define _publishing_rest_support_argument_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_argument_unref (var), NULL)))
+#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 _TumblrService {
+ GObject parent_instance;
+ TumblrServicePrivate * priv;
+};
+
+struct _TumblrServiceClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingTumblrBlogEntry {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingTumblrBlogEntryPrivate * priv;
+ gchar* blog;
+ gchar* url;
+};
+
+struct _PublishingTumblrBlogEntryClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingTumblrBlogEntry *self);
+};
+
+struct _PublishingTumblrParamSpecBlogEntry {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingTumblrSizeEntry {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingTumblrSizeEntryPrivate * priv;
+ gchar* title;
+ gint size;
+};
+
+struct _PublishingTumblrSizeEntryClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingTumblrSizeEntry *self);
+};
+
+struct _PublishingTumblrParamSpecSizeEntry {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingTumblrTumblrPublisher {
+ GObject parent_instance;
+ PublishingTumblrTumblrPublisherPrivate * priv;
+};
+
+struct _PublishingTumblrTumblrPublisherClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingTumblrTumblrPublisherPrivate {
+ SpitPublishingService* service;
+ SpitPublishingPluginHost* host;
+ SpitPublishingProgressCallback progress_reporter;
+ gpointer progress_reporter_target;
+ GDestroyNotify progress_reporter_target_destroy_notify;
+ gboolean running;
+ gboolean was_started;
+ PublishingTumblrTumblrPublisherSession* session;
+ PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_options_pane;
+ PublishingTumblrSizeEntry** sizes;
+ gint sizes_length1;
+ gint _sizes_size_;
+ PublishingTumblrBlogEntry** blogs;
+ gint blogs_length1;
+ gint _blogs_size_;
+ gchar* username;
+};
+
+typedef enum {
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_MODE_INTRO,
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER
+} PublishingTumblrTumblrPublisherAuthenticationPaneMode;
+
+struct _PublishingTumblrTumblrPublisherAuthenticationPane {
+ GObject parent_instance;
+ PublishingTumblrTumblrPublisherAuthenticationPanePrivate * priv;
+};
+
+struct _PublishingTumblrTumblrPublisherAuthenticationPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingTumblrTumblrPublisherAuthenticationPanePrivate {
+ GtkBox* pane_widget;
+ GtkBuilder* builder;
+ GtkEntry* username_entry;
+ GtkEntry* password_entry;
+ GtkButton* login_button;
+};
+
+struct _PublishingTumblrTumblrPublisherPublishingOptionsPane {
+ GObject parent_instance;
+ PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate * priv;
+};
+
+struct _PublishingTumblrTumblrPublisherPublishingOptionsPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate {
+ GtkBuilder* builder;
+ GtkBox* pane_widget;
+ GtkLabel* upload_info_label;
+ GtkLabel* size_label;
+ GtkLabel* blog_label;
+ GtkButton* logout_button;
+ GtkButton* publish_button;
+ GtkComboBoxText* size_combo;
+ GtkComboBoxText* blog_combo;
+ PublishingTumblrSizeEntry** sizes;
+ gint sizes_length1;
+ gint _sizes_size_;
+ PublishingTumblrBlogEntry** blogs;
+ gint blogs_length1;
+ gint _blogs_size_;
+ gchar* username;
+ PublishingTumblrTumblrPublisher* publisher;
+ SpitPublishingPublisherMediaType media_type;
+};
+
+struct _PublishingTumblrTumblrPublisherTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingTumblrTumblrPublisherTransactionPrivate * priv;
+};
+
+struct _PublishingTumblrTumblrPublisherTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingTumblrTumblrPublisherAccessTokenFetchTransaction {
+ PublishingTumblrTumblrPublisherTransaction parent_instance;
+ PublishingTumblrTumblrPublisherAccessTokenFetchTransactionPrivate * priv;
+};
+
+struct _PublishingTumblrTumblrPublisherAccessTokenFetchTransactionClass {
+ PublishingTumblrTumblrPublisherTransactionClass parent_class;
+};
+
+struct _PublishingTumblrTumblrPublisherUserInfoFetchTransaction {
+ PublishingTumblrTumblrPublisherTransaction parent_instance;
+ PublishingTumblrTumblrPublisherUserInfoFetchTransactionPrivate * priv;
+};
+
+struct _PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass {
+ PublishingTumblrTumblrPublisherTransactionClass parent_class;
+};
+
+struct _PublishingTumblrTumblrPublisherUploadTransaction {
+ PublishingRESTSupportUploadTransaction parent_instance;
+ PublishingTumblrTumblrPublisherUploadTransactionPrivate * priv;
+};
+
+struct _PublishingTumblrTumblrPublisherUploadTransactionClass {
+ PublishingRESTSupportUploadTransactionClass parent_class;
+};
+
+struct _PublishingTumblrTumblrPublisherUploadTransactionPrivate {
+ PublishingTumblrTumblrPublisherSession* session;
+ PublishingRESTSupportArgument** auth_header_fields;
+ gint auth_header_fields_length1;
+ gint _auth_header_fields_size_;
+};
+
+struct _PublishingTumblrTumblrPublisherUploader {
+ PublishingRESTSupportBatchUploader parent_instance;
+ PublishingTumblrTumblrPublisherUploaderPrivate * priv;
+};
+
+struct _PublishingTumblrTumblrPublisherUploaderClass {
+ PublishingRESTSupportBatchUploaderClass parent_class;
+};
+
+struct _PublishingTumblrTumblrPublisherUploaderPrivate {
+ gchar* blog_url;
+};
+
+struct _PublishingTumblrTumblrPublisherSession {
+ PublishingRESTSupportSession parent_instance;
+ PublishingTumblrTumblrPublisherSessionPrivate * priv;
+};
+
+struct _PublishingTumblrTumblrPublisherSessionClass {
+ PublishingRESTSupportSessionClass parent_class;
+};
+
+struct _PublishingTumblrTumblrPublisherSessionPrivate {
+ gchar* access_phase_token;
+ gchar* access_phase_token_secret;
+};
+
+
+static gpointer tumblr_service_parent_class = NULL;
+static GdkPixbuf** tumblr_service_icon_pixbuf_set;
+static gint tumblr_service_icon_pixbuf_set_length1;
+static GdkPixbuf** tumblr_service_icon_pixbuf_set = NULL;
+static gint tumblr_service_icon_pixbuf_set_length1 = 0;
+static gint _tumblr_service_icon_pixbuf_set_size_ = 0;
+static SpitPluggableIface* tumblr_service_spit_pluggable_parent_iface = NULL;
+static SpitPublishingServiceIface* tumblr_service_spit_publishing_service_parent_iface = NULL;
+static gpointer publishing_tumblr_blog_entry_parent_class = NULL;
+static gpointer publishing_tumblr_size_entry_parent_class = NULL;
+static gpointer publishing_tumblr_tumblr_publisher_parent_class = NULL;
+static gpointer publishing_tumblr_tumblr_publisher_authentication_pane_parent_class = NULL;
+static gchar* publishing_tumblr_tumblr_publisher_authentication_pane_INTRO_MESSAGE;
+static gchar* publishing_tumblr_tumblr_publisher_authentication_pane_INTRO_MESSAGE = NULL;
+static gchar* publishing_tumblr_tumblr_publisher_authentication_pane_FAILED_RETRY_USER_MESSAGE;
+static gchar* publishing_tumblr_tumblr_publisher_authentication_pane_FAILED_RETRY_USER_MESSAGE = NULL;
+static SpitPublishingDialogPaneIface* publishing_tumblr_tumblr_publisher_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_tumblr_tumblr_publisher_publishing_options_pane_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_tumblr_tumblr_publisher_transaction_parent_class = NULL;
+static gpointer publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_parent_class = NULL;
+static gpointer publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_parent_class = NULL;
+static gpointer publishing_tumblr_tumblr_publisher_upload_transaction_parent_class = NULL;
+static gpointer publishing_tumblr_tumblr_publisher_uploader_parent_class = NULL;
+static gpointer publishing_tumblr_tumblr_publisher_session_parent_class = NULL;
+static SpitPublishingPublisherIface* publishing_tumblr_tumblr_publisher_spit_publishing_publisher_parent_iface = NULL;
+
+GType tumblr_service_get_type (void) G_GNUC_CONST;
+enum {
+ TUMBLR_SERVICE_DUMMY_PROPERTY
+};
+#define TUMBLR_SERVICE_ICON_FILENAME "tumblr.png"
+TumblrService* tumblr_service_new (GFile* resource_directory);
+TumblrService* tumblr_service_construct (GType object_type, GFile* resource_directory);
+static gint tumblr_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+static const gchar* tumblr_service_real_get_id (SpitPluggable* base);
+static const gchar* tumblr_service_real_get_pluggable_name (SpitPluggable* base);
+static void tumblr_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static GdkPixbuf** _vala_array_dup6 (GdkPixbuf** self, int length);
+static void tumblr_service_real_activation (SpitPluggable* base, gboolean enabled);
+static SpitPublishingPublisher* tumblr_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host);
+PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host);
+PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host);
+GType publishing_tumblr_tumblr_publisher_get_type (void) G_GNUC_CONST;
+static SpitPublishingPublisherMediaType tumblr_service_real_get_supported_media (SpitPublishingService* base);
+static void tumblr_service_finalize (GObject* obj);
+#define PUBLISHING_TUMBLR_SERVICE_NAME "Tumblr"
+#define PUBLISHING_TUMBLR_ENDPOINT_URL "http://www.tumblr.com/"
+#define PUBLISHING_TUMBLR_API_KEY "NdXvXQuKVccOsCOj0H4k9HUJcbcjDBYSo2AkaHzXFECHGNuP9k"
+#define PUBLISHING_TUMBLR_API_SECRET "BN0Uoig0MwbeD27OgA0IwYlp3Uvonyfsrl9pf1cnnMj1QoEUvi"
+#define PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA "!*'();:@&=+$,/?%#[] \\"
+#define PUBLISHING_TUMBLR_ORIGINAL_SIZE -1
+gpointer publishing_tumblr_blog_entry_ref (gpointer instance);
+void publishing_tumblr_blog_entry_unref (gpointer instance);
+GParamSpec* publishing_tumblr_param_spec_blog_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_tumblr_value_set_blog_entry (GValue* value, gpointer v_object);
+void publishing_tumblr_value_take_blog_entry (GValue* value, gpointer v_object);
+gpointer publishing_tumblr_value_get_blog_entry (const GValue* value);
+GType publishing_tumblr_blog_entry_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_TUMBLR_BLOG_ENTRY_DUMMY_PROPERTY
+};
+PublishingTumblrBlogEntry* publishing_tumblr_blog_entry_new (const gchar* creator_blog, const gchar* creator_url);
+PublishingTumblrBlogEntry* publishing_tumblr_blog_entry_construct (GType object_type, const gchar* creator_blog, const gchar* creator_url);
+static void publishing_tumblr_blog_entry_finalize (PublishingTumblrBlogEntry* obj);
+gpointer publishing_tumblr_size_entry_ref (gpointer instance);
+void publishing_tumblr_size_entry_unref (gpointer instance);
+GParamSpec* publishing_tumblr_param_spec_size_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_tumblr_value_set_size_entry (GValue* value, gpointer v_object);
+void publishing_tumblr_value_take_size_entry (GValue* value, gpointer v_object);
+gpointer publishing_tumblr_value_get_size_entry (const GValue* value);
+GType publishing_tumblr_size_entry_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_TUMBLR_SIZE_ENTRY_DUMMY_PROPERTY
+};
+PublishingTumblrSizeEntry* publishing_tumblr_size_entry_new (const gchar* creator_title, gint creator_size);
+PublishingTumblrSizeEntry* publishing_tumblr_size_entry_construct (GType object_type, const gchar* creator_title, gint creator_size);
+static void publishing_tumblr_size_entry_finalize (PublishingTumblrSizeEntry* obj);
+GType publishing_tumblr_tumblr_publisher_session_get_type (void) G_GNUC_CONST;
+GType publishing_tumblr_tumblr_publisher_publishing_options_pane_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisherPrivate))
+enum {
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_DUMMY_PROPERTY
+};
+static void publishing_tumblr_tumblr_publisher_on_session_authenticated (PublishingTumblrTumblrPublisher* self);
+static void _publishing_tumblr_tumblr_publisher_on_session_authenticated_publishing_rest_support_session_authenticated (PublishingRESTSupportSession* _sender, gpointer self);
+static PublishingTumblrSizeEntry** publishing_tumblr_tumblr_publisher_create_sizes (PublishingTumblrTumblrPublisher* self, int* result_length1);
+static void _vala_array_add18 (PublishingTumblrSizeEntry*** array, int* length, int* size, PublishingTumblrSizeEntry* value);
+static void _vala_array_add19 (PublishingTumblrSizeEntry*** array, int* length, int* size, PublishingTumblrSizeEntry* value);
+static void _vala_array_add20 (PublishingTumblrSizeEntry*** array, int* length, int* size, PublishingTumblrSizeEntry* value);
+static PublishingTumblrBlogEntry** publishing_tumblr_tumblr_publisher_create_blogs (PublishingTumblrTumblrPublisher* self, int* result_length1);
+PublishingTumblrTumblrPublisherSession* publishing_tumblr_tumblr_publisher_session_new (void);
+PublishingTumblrTumblrPublisherSession* publishing_tumblr_tumblr_publisher_session_construct (GType object_type);
+static void publishing_tumblr_tumblr_publisher_invalidate_persistent_session (PublishingTumblrTumblrPublisher* self);
+static void publishing_tumblr_tumblr_publisher_set_persistent_access_phase_token (PublishingTumblrTumblrPublisher* self, const gchar* token);
+static void publishing_tumblr_tumblr_publisher_set_persistent_access_phase_token_secret (PublishingTumblrTumblrPublisher* self, const gchar* token_secret);
+static SpitPublishingService* publishing_tumblr_tumblr_publisher_real_get_service (SpitPublishingPublisher* base);
+SpitPublishingPluginHost* publishing_tumblr_tumblr_publisher_get_host (PublishingTumblrTumblrPublisher* self);
+static gboolean publishing_tumblr_tumblr_publisher_real_is_running (SpitPublishingPublisher* base);
+static gboolean publishing_tumblr_tumblr_publisher_is_persistent_session_valid (PublishingTumblrTumblrPublisher* self);
+gchar* publishing_tumblr_tumblr_publisher_get_persistent_access_phase_token (PublishingTumblrTumblrPublisher* self);
+gchar* publishing_tumblr_tumblr_publisher_get_persistent_access_phase_token_secret (PublishingTumblrTumblrPublisher* self);
+gint publishing_tumblr_tumblr_publisher_get_persistent_default_size (PublishingTumblrTumblrPublisher* self);
+void publishing_tumblr_tumblr_publisher_set_persistent_default_size (PublishingTumblrTumblrPublisher* self, gint size);
+gint publishing_tumblr_tumblr_publisher_get_persistent_default_blog (PublishingTumblrTumblrPublisher* self);
+void publishing_tumblr_tumblr_publisher_set_persistent_default_blog (PublishingTumblrTumblrPublisher* self, gint blog);
+GType publishing_tumblr_tumblr_publisher_authentication_pane_mode_get_type (void) G_GNUC_CONST;
+static void publishing_tumblr_tumblr_publisher_do_show_authentication_pane (PublishingTumblrTumblrPublisher* self, PublishingTumblrTumblrPublisherAuthenticationPaneMode mode);
+GType publishing_tumblr_tumblr_publisher_authentication_pane_get_type (void) G_GNUC_CONST;
+PublishingTumblrTumblrPublisherAuthenticationPane* publishing_tumblr_tumblr_publisher_authentication_pane_new (PublishingTumblrTumblrPublisher* publisher, PublishingTumblrTumblrPublisherAuthenticationPaneMode mode);
+PublishingTumblrTumblrPublisherAuthenticationPane* publishing_tumblr_tumblr_publisher_authentication_pane_construct (GType object_type, PublishingTumblrTumblrPublisher* publisher, PublishingTumblrTumblrPublisherAuthenticationPaneMode mode);
+static void publishing_tumblr_tumblr_publisher_on_authentication_pane_login_clicked (PublishingTumblrTumblrPublisher* self, const gchar* username, const gchar* password);
+static void _publishing_tumblr_tumblr_publisher_on_authentication_pane_login_clicked_publishing_tumblr_tumblr_publisher_authentication_pane_login (PublishingTumblrTumblrPublisherAuthenticationPane* _sender, const gchar* user, const gchar* password, gpointer self);
+GtkWidget* publishing_tumblr_tumblr_publisher_authentication_pane_get_default_widget (PublishingTumblrTumblrPublisherAuthenticationPane* self);
+static void publishing_tumblr_tumblr_publisher_do_network_login (PublishingTumblrTumblrPublisher* self, const gchar* username, const gchar* password);
+GType publishing_tumblr_tumblr_publisher_transaction_get_type (void) G_GNUC_CONST;
+GType publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_get_type (void) G_GNUC_CONST;
+PublishingTumblrTumblrPublisherAccessTokenFetchTransaction* publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_new (PublishingTumblrTumblrPublisherSession* session, const gchar* username, const gchar* password);
+PublishingTumblrTumblrPublisherAccessTokenFetchTransaction* publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_construct (GType object_type, PublishingTumblrTumblrPublisherSession* session, const gchar* username, const gchar* password);
+static void publishing_tumblr_tumblr_publisher_on_auth_request_txn_completed (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_tumblr_tumblr_publisher_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_on_auth_request_txn_error (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err);
+static void _publishing_tumblr_tumblr_publisher_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_tumblr_tumblr_publisher_do_parse_token_info_from_auth_request (PublishingTumblrTumblrPublisher* self, const gchar* response);
+void publishing_tumblr_tumblr_publisher_session_set_access_phase_credentials (PublishingTumblrTumblrPublisherSession* self, const gchar* token, const gchar* secret);
+gchar* publishing_tumblr_tumblr_publisher_session_get_access_phase_token (PublishingTumblrTumblrPublisherSession* self);
+gchar* publishing_tumblr_tumblr_publisher_session_get_access_phase_token_secret (PublishingTumblrTumblrPublisherSession* self);
+static void publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTumblrPublisher* self);
+GType publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_get_type (void) G_GNUC_CONST;
+PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_new (PublishingTumblrTumblrPublisherSession* session);
+PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (GType object_type, PublishingTumblrTumblrPublisherSession* session);
+static void publishing_tumblr_tumblr_publisher_on_info_request_txn_completed (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_on_info_request_txn_error (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err);
+static void _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (PublishingTumblrTumblrPublisher* self, const gchar* response);
+static void publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (PublishingTumblrTumblrPublisher* self);
+static void _vala_array_add21 (PublishingTumblrBlogEntry*** array, int* length, int* size, PublishingTumblrBlogEntry* value);
+void publishing_tumblr_tumblr_publisher_session_deauthenticate (PublishingTumblrTumblrPublisherSession* self);
+PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_tumblr_tumblr_publisher_publishing_options_pane_new (PublishingTumblrTumblrPublisher* publisher, SpitPublishingPublisherMediaType media_type, PublishingTumblrSizeEntry** sizes, int sizes_length1, PublishingTumblrBlogEntry** blogs, int blogs_length1, const gchar* username);
+PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_tumblr_tumblr_publisher_publishing_options_pane_construct (GType object_type, PublishingTumblrTumblrPublisher* publisher, SpitPublishingPublisherMediaType media_type, PublishingTumblrSizeEntry** sizes, int sizes_length1, PublishingTumblrBlogEntry** blogs, int blogs_length1, const gchar* username);
+static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish (PublishingTumblrTumblrPublisher* self);
+static void _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout (PublishingTumblrTumblrPublisher* self);
+static void _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumblrPublisher* self);
+static void publishing_tumblr_tumblr_publisher_do_logout (PublishingTumblrTumblrPublisher* self);
+gint publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func (SpitPublishingPublishable* a, SpitPublishingPublishable* b);
+static gint _publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
+GType publishing_tumblr_tumblr_publisher_uploader_get_type (void) G_GNUC_CONST;
+PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_new (PublishingTumblrTumblrPublisherSession* session, SpitPublishingPublishable** publishables, int publishables_length1, const gchar* blog_url);
+PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_construct (GType object_type, PublishingTumblrTumblrPublisherSession* session, SpitPublishingPublishable** publishables, int publishables_length1, const gchar* blog_url);
+static void publishing_tumblr_tumblr_publisher_on_upload_complete (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published);
+static void _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self);
+static void publishing_tumblr_tumblr_publisher_on_upload_error (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err);
+static void _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self);
+static void publishing_tumblr_tumblr_publisher_on_upload_status_updated (PublishingTumblrTumblrPublisher* self, gint file_number, gdouble completed_fraction);
+static void _publishing_tumblr_tumblr_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self);
+static void publishing_tumblr_tumblr_publisher_do_show_success_pane (PublishingTumblrTumblrPublisher* self);
+void publishing_tumblr_tumblr_publisher_attempt_start (PublishingTumblrTumblrPublisher* self);
+void publishing_tumblr_tumblr_publisher_session_authenticate_from_persistent_credentials (PublishingTumblrTumblrPublisherSession* self, const gchar* token, const gchar* secret);
+static void publishing_tumblr_tumblr_publisher_real_start (SpitPublishingPublisher* base);
+static void publishing_tumblr_tumblr_publisher_real_stop (SpitPublishingPublisher* base);
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, PublishingTumblrTumblrPublisherAuthenticationPanePrivate))
+enum {
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_DUMMY_PROPERTY
+};
+static void publishing_tumblr_tumblr_publisher_authentication_pane_on_user_changed (PublishingTumblrTumblrPublisherAuthenticationPane* self);
+static void _publishing_tumblr_tumblr_publisher_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_authentication_pane_on_password_changed (PublishingTumblrTumblrPublisherAuthenticationPane* self);
+static void _publishing_tumblr_tumblr_publisher_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_authentication_pane_on_login_button_clicked (PublishingTumblrTumblrPublisherAuthenticationPane* self);
+static void _publishing_tumblr_tumblr_publisher_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_authentication_pane_update_login_button_sensitivity (PublishingTumblrTumblrPublisherAuthenticationPane* self);
+static GtkWidget* publishing_tumblr_tumblr_publisher_authentication_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_tumblr_tumblr_publisher_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_tumblr_tumblr_publisher_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_tumblr_tumblr_publisher_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void g_cclosure_user_marshal_VOID__STRING_STRING (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void publishing_tumblr_tumblr_publisher_authentication_pane_finalize (GObject* obj);
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate))
+enum {
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_DUMMY_PROPERTY
+};
+static PublishingTumblrSizeEntry** _vala_array_dup7 (PublishingTumblrSizeEntry** self, int length);
+static PublishingTumblrBlogEntry** _vala_array_dup8 (PublishingTumblrBlogEntry** self, int length);
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self);
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed (PublishingTumblrTumblrPublisherPublishingOptionsPane* self);
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self);
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed (PublishingTumblrTumblrPublisherPublishingOptionsPane* self);
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked (PublishingTumblrTumblrPublisherPublishingOptionsPane* self);
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked (PublishingTumblrTumblrPublisherPublishingOptionsPane* self);
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+void publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* self);
+void publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* self);
+static GtkWidget* publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, gpointer self);
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, gpointer self);
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize (GObject* obj);
+enum {
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingTumblrTumblrPublisherTransaction* publishing_tumblr_tumblr_publisher_transaction_new (PublishingTumblrTumblrPublisherSession* session, PublishingRESTSupportHttpMethod method);
+PublishingTumblrTumblrPublisherTransaction* publishing_tumblr_tumblr_publisher_transaction_construct (GType object_type, PublishingTumblrTumblrPublisherSession* session, PublishingRESTSupportHttpMethod method);
+PublishingTumblrTumblrPublisherTransaction* publishing_tumblr_tumblr_publisher_transaction_new_with_uri (PublishingTumblrTumblrPublisherSession* session, const gchar* uri, PublishingRESTSupportHttpMethod method);
+PublishingTumblrTumblrPublisherTransaction* publishing_tumblr_tumblr_publisher_transaction_construct_with_uri (GType object_type, PublishingTumblrTumblrPublisherSession* session, const gchar* uri, PublishingRESTSupportHttpMethod method);
+gchar* publishing_tumblr_tumblr_publisher_session_get_oauth_nonce (PublishingTumblrTumblrPublisherSession* self);
+gchar* publishing_tumblr_tumblr_publisher_session_get_oauth_timestamp (PublishingTumblrTumblrPublisherSession* self);
+static void publishing_tumblr_tumblr_publisher_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error);
+void publishing_tumblr_tumblr_publisher_session_sign_transaction (PublishingTumblrTumblrPublisherSession* self, PublishingRESTSupportTransaction* txn);
+enum {
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_ACCESS_TOKEN_FETCH_TRANSACTION_DUMMY_PROPERTY
+};
+enum {
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_USER_INFO_FETCH_TRANSACTION_DUMMY_PROPERTY
+};
+GType publishing_tumblr_tumblr_publisher_upload_transaction_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransactionPrivate))
+enum {
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOAD_TRANSACTION_DUMMY_PROPERTY
+};
+static gchar* publishing_tumblr_tumblr_publisher_upload_transaction_encode (PublishingTumblrTumblrPublisherUploadTransaction* self, guint8* data, int data_length1);
+PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_new (PublishingTumblrTumblrPublisherSession* session, SpitPublishingPublishable* publishable, const gchar* blog_url);
+PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, PublishingTumblrTumblrPublisherSession* session, SpitPublishingPublishable* publishable, const gchar* blog_url);
+void publishing_tumblr_tumblr_publisher_upload_transaction_add_authorization_header_field (PublishingTumblrTumblrPublisherUploadTransaction* self, const gchar* key, const gchar* value);
+static void _vala_array_add22 (PublishingRESTSupportArgument*** array, int* length, int* size, PublishingRESTSupportArgument* value);
+PublishingRESTSupportArgument** publishing_tumblr_tumblr_publisher_upload_transaction_get_authorization_header_fields (PublishingTumblrTumblrPublisherUploadTransaction* self, int* result_length1);
+static PublishingRESTSupportArgument** _vala_array_dup9 (PublishingRESTSupportArgument** self, int length);
+gchar* publishing_tumblr_tumblr_publisher_upload_transaction_get_authorization_header_string (PublishingTumblrTumblrPublisherUploadTransaction* self);
+static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error);
+static void publishing_tumblr_tumblr_publisher_upload_transaction_finalize (PublishingRESTSupportTransaction* obj);
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploaderPrivate))
+enum {
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_DUMMY_PROPERTY
+};
+static PublishingRESTSupportTransaction* publishing_tumblr_tumblr_publisher_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable);
+static void publishing_tumblr_tumblr_publisher_uploader_finalize (PublishingRESTSupportBatchUploader* obj);
+#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION, PublishingTumblrTumblrPublisherSessionPrivate))
+enum {
+ PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_SESSION_DUMMY_PROPERTY
+};
+static gboolean publishing_tumblr_tumblr_publisher_session_real_is_authenticated (PublishingRESTSupportSession* base);
+static void _vala_array_add23 (PublishingRESTSupportArgument*** array, int* length, int* size, PublishingRESTSupportArgument* value);
+static void publishing_tumblr_tumblr_publisher_session_finalize (PublishingRESTSupportSession* obj);
+static void publishing_tumblr_tumblr_publisher_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 gint _vala_array_length (gpointer array);
+
+
+TumblrService* tumblr_service_construct (GType object_type, GFile* resource_directory) {
+ TumblrService * self = NULL;
+ GdkPixbuf** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (TumblrService*) g_object_new (object_type, NULL);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = tumblr_service_icon_pixbuf_set;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0__length1 = tumblr_service_icon_pixbuf_set_length1;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 649 "TumblrPublishing.c"
+ gint _tmp1_ = 0;
+ GdkPixbuf** _tmp2_ = NULL;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" TUMBLR_SERVICE_ICON_FILENAME, &_tmp1_);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ tumblr_service_icon_pixbuf_set = (_vala_array_free (tumblr_service_icon_pixbuf_set, tumblr_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ tumblr_service_icon_pixbuf_set = _tmp2_;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ tumblr_service_icon_pixbuf_set_length1 = _tmp1_;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tumblr_service_icon_pixbuf_set_size_ = tumblr_service_icon_pixbuf_set_length1;
+#line 662 "TumblrPublishing.c"
+ }
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 666 "TumblrPublishing.c"
+}
+
+
+TumblrService* tumblr_service_new (GFile* resource_directory) {
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return tumblr_service_construct (TYPE_TUMBLR_SERVICE, resource_directory);
+#line 673 "TumblrPublishing.c"
+}
+
+
+static gint tumblr_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ TumblrService * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = min_host_interface;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = max_host_interface;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp2_;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 695 "TumblrPublishing.c"
+}
+
+
+static const gchar* tumblr_service_real_get_id (SpitPluggable* base) {
+ TumblrService * self;
+ const gchar* result = NULL;
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService);
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = "org.yorba.shotwell.publishing.tumblr";
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 708 "TumblrPublishing.c"
+}
+
+
+static const gchar* tumblr_service_real_get_pluggable_name (SpitPluggable* base) {
+ TumblrService * self;
+ const gchar* result = NULL;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = "Tumblr";
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 721 "TumblrPublishing.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 728 "TumblrPublishing.c"
+}
+
+
+static GdkPixbuf** _vala_array_dup6 (GdkPixbuf** self, int length) {
+ GdkPixbuf** result;
+ int i;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = g_new0 (GdkPixbuf*, length + 1);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 739 "TumblrPublishing.c"
+ GdkPixbuf* _tmp0_ = NULL;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result[i] = _tmp0_;
+#line 745 "TumblrPublishing.c"
+ }
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 749 "TumblrPublishing.c"
+}
+
+
+static void tumblr_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ TumblrService * self;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GdkPixbuf** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GdkPixbuf** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (info != NULL);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = g_strdup ("Jeroen Arnoldus");
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 ((*info).authors);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).authors = _tmp0_;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = _ ("Copyright 2012 BJA Electronics");
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 ((*info).copyright);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).copyright = _tmp2_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 ((*info).translators);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).translators = _tmp3_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = g_strdup (_VERSION);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 ((*info).version);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).version = _tmp4_;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 ((*info).website_name);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).website_name = _tmp5_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 ((*info).website_url);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).website_url = _tmp6_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = g_strdup (RESOURCES_LICENSE);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 ((*info).license);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).license = _tmp7_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = tumblr_service_icon_pixbuf_set;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8__length1 = tumblr_service_icon_pixbuf_set_length1;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup6 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9__length1 = _tmp8__length1;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).icons = _tmp9_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*info).icons_length1 = _tmp9__length1;
+#line 831 "TumblrPublishing.c"
+}
+
+
+static void tumblr_service_real_activation (SpitPluggable* base, gboolean enabled) {
+ TumblrService * self;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService);
+#line 839 "TumblrPublishing.c"
+}
+
+
+static SpitPublishingPublisher* tumblr_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) {
+ TumblrService * self;
+ SpitPublishingPublisher* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingTumblrTumblrPublisher* _tmp1_ = NULL;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = host;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = publishing_tumblr_tumblr_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 860 "TumblrPublishing.c"
+}
+
+
+static SpitPublishingPublisherMediaType tumblr_service_real_get_supported_media (SpitPublishingService* base) {
+ TumblrService * self;
+ SpitPublishingPublisherMediaType result = 0;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 873 "TumblrPublishing.c"
+}
+
+
+static void tumblr_service_class_init (TumblrServiceClass * klass) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ tumblr_service_parent_class = g_type_class_peek_parent (klass);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = tumblr_service_finalize;
+#line 882 "TumblrPublishing.c"
+}
+
+
+static void tumblr_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ tumblr_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) tumblr_service_real_get_pluggable_interface;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) tumblr_service_real_get_id;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) tumblr_service_real_get_pluggable_name;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) tumblr_service_real_get_info;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) tumblr_service_real_activation;
+#line 899 "TumblrPublishing.c"
+}
+
+
+static void tumblr_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ tumblr_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->create_publisher = (SpitPublishingPublisher* (*)(SpitPublishingService*, SpitPublishingPluginHost*)) tumblr_service_real_create_publisher;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->get_supported_media = (SpitPublishingPublisherMediaType (*)(SpitPublishingService*)) tumblr_service_real_get_supported_media;
+#line 910 "TumblrPublishing.c"
+}
+
+
+static void tumblr_service_instance_init (TumblrService * self) {
+}
+
+
+static void tumblr_service_finalize (GObject* obj) {
+ TumblrService * self;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TUMBLR_SERVICE, TumblrService);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ G_OBJECT_CLASS (tumblr_service_parent_class)->finalize (obj);
+#line 924 "TumblrPublishing.c"
+}
+
+
+GType tumblr_service_get_type (void) {
+ static volatile gsize tumblr_service_type_id__volatile = 0;
+ if (g_once_init_enter (&tumblr_service_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (TumblrServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tumblr_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TumblrService), 0, (GInstanceInitFunc) tumblr_service_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) tumblr_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) tumblr_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType tumblr_service_type_id;
+ tumblr_service_type_id = g_type_register_static (G_TYPE_OBJECT, "TumblrService", &g_define_type_info, 0);
+ g_type_add_interface_static (tumblr_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (tumblr_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info);
+ g_once_init_leave (&tumblr_service_type_id__volatile, tumblr_service_type_id);
+ }
+ return tumblr_service_type_id__volatile;
+}
+
+
+PublishingTumblrBlogEntry* publishing_tumblr_blog_entry_construct (GType object_type, const gchar* creator_blog, const gchar* creator_url) {
+ PublishingTumblrBlogEntry* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (creator_blog != NULL, NULL);
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (creator_url != NULL, NULL);
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrBlogEntry*) g_type_create_instance (object_type);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = creator_blog;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->blog);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->blog = _tmp1_;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = creator_url;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->url);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->url = _tmp3_;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 974 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrBlogEntry* publishing_tumblr_blog_entry_new (const gchar* creator_blog, const gchar* creator_url) {
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_blog_entry_construct (PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, creator_blog, creator_url);
+#line 981 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_value_blog_entry_init (GValue* value) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 988 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_value_blog_entry_free_value (GValue* value) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_blog_entry_unref (value->data[0].v_pointer);
+#line 997 "TumblrPublishing.c"
+ }
+}
+
+
+static void publishing_tumblr_value_blog_entry_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_tumblr_blog_entry_ref (src_value->data[0].v_pointer);
+#line 1007 "TumblrPublishing.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1011 "TumblrPublishing.c"
+ }
+}
+
+
+static gpointer publishing_tumblr_value_blog_entry_peek_pointer (const GValue* value) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1019 "TumblrPublishing.c"
+}
+
+
+static gchar* publishing_tumblr_value_blog_entry_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 1026 "TumblrPublishing.c"
+ PublishingTumblrBlogEntry* object;
+ object = collect_values[0].v_pointer;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1033 "TumblrPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.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 1037 "TumblrPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = publishing_tumblr_blog_entry_ref (object);
+#line 1041 "TumblrPublishing.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1045 "TumblrPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return NULL;
+#line 1049 "TumblrPublishing.c"
+}
+
+
+static gchar* publishing_tumblr_value_blog_entry_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingTumblrBlogEntry** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!object_p) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1060 "TumblrPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *object_p = NULL;
+#line 1066 "TumblrPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1070 "TumblrPublishing.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *object_p = publishing_tumblr_blog_entry_ref (value->data[0].v_pointer);
+#line 1074 "TumblrPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return NULL;
+#line 1078 "TumblrPublishing.c"
+}
+
+
+GParamSpec* publishing_tumblr_param_spec_blog_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingTumblrParamSpecBlogEntry* spec;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY), NULL);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 1092 "TumblrPublishing.c"
+}
+
+
+gpointer publishing_tumblr_value_get_blog_entry (const GValue* value) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY), NULL);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1101 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_value_set_blog_entry (GValue* value, gpointer v_object) {
+ PublishingTumblrBlogEntry* old;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (v_object) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_blog_entry_ref (value->data[0].v_pointer);
+#line 1121 "TumblrPublishing.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1125 "TumblrPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (old) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_blog_entry_unref (old);
+#line 1131 "TumblrPublishing.c"
+ }
+}
+
+
+void publishing_tumblr_value_take_blog_entry (GValue* value, gpointer v_object) {
+ PublishingTumblrBlogEntry* old;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (v_object) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1150 "TumblrPublishing.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1154 "TumblrPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (old) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_blog_entry_unref (old);
+#line 1160 "TumblrPublishing.c"
+ }
+}
+
+
+static void publishing_tumblr_blog_entry_class_init (PublishingTumblrBlogEntryClass * klass) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_blog_entry_parent_class = g_type_class_peek_parent (klass);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ ((PublishingTumblrBlogEntryClass *) klass)->finalize = publishing_tumblr_blog_entry_finalize;
+#line 1170 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_blog_entry_instance_init (PublishingTumblrBlogEntry * self) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->ref_count = 1;
+#line 1177 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_blog_entry_finalize (PublishingTumblrBlogEntry* obj) {
+ PublishingTumblrBlogEntry * self;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, PublishingTumblrBlogEntry);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->blog);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->url);
+#line 1191 "TumblrPublishing.c"
+}
+
+
+GType publishing_tumblr_blog_entry_get_type (void) {
+ static volatile gsize publishing_tumblr_blog_entry_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_blog_entry_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_tumblr_value_blog_entry_init, publishing_tumblr_value_blog_entry_free_value, publishing_tumblr_value_blog_entry_copy_value, publishing_tumblr_value_blog_entry_peek_pointer, "p", publishing_tumblr_value_blog_entry_collect_value, "p", publishing_tumblr_value_blog_entry_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrBlogEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_blog_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrBlogEntry), 0, (GInstanceInitFunc) publishing_tumblr_blog_entry_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 publishing_tumblr_blog_entry_type_id;
+ publishing_tumblr_blog_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingTumblrBlogEntry", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_tumblr_blog_entry_type_id__volatile, publishing_tumblr_blog_entry_type_id);
+ }
+ return publishing_tumblr_blog_entry_type_id__volatile;
+}
+
+
+gpointer publishing_tumblr_blog_entry_ref (gpointer instance) {
+ PublishingTumblrBlogEntry* self;
+ self = instance;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return instance;
+#line 1216 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_blog_entry_unref (gpointer instance) {
+ PublishingTumblrBlogEntry* self;
+ self = instance;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ PUBLISHING_TUMBLR_BLOG_ENTRY_GET_CLASS (self)->finalize (self);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1229 "TumblrPublishing.c"
+ }
+}
+
+
+PublishingTumblrSizeEntry* publishing_tumblr_size_entry_construct (GType object_type, const gchar* creator_title, gint creator_size) {
+ PublishingTumblrSizeEntry* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (creator_title != NULL, NULL);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrSizeEntry*) g_type_create_instance (object_type);
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = creator_title;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->title);
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->title = _tmp1_;
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = creator_size;
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->size = _tmp2_;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 1257 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrSizeEntry* publishing_tumblr_size_entry_new (const gchar* creator_title, gint creator_size) {
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_size_entry_construct (PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, creator_title, creator_size);
+#line 1264 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_value_size_entry_init (GValue* value) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1271 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_value_size_entry_free_value (GValue* value) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_size_entry_unref (value->data[0].v_pointer);
+#line 1280 "TumblrPublishing.c"
+ }
+}
+
+
+static void publishing_tumblr_value_size_entry_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_tumblr_size_entry_ref (src_value->data[0].v_pointer);
+#line 1290 "TumblrPublishing.c"
+ } else {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1294 "TumblrPublishing.c"
+ }
+}
+
+
+static gpointer publishing_tumblr_value_size_entry_peek_pointer (const GValue* value) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1302 "TumblrPublishing.c"
+}
+
+
+static gchar* publishing_tumblr_value_size_entry_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 1309 "TumblrPublishing.c"
+ PublishingTumblrSizeEntry* object;
+ object = collect_values[0].v_pointer;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1316 "TumblrPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.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 1320 "TumblrPublishing.c"
+ }
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = publishing_tumblr_size_entry_ref (object);
+#line 1324 "TumblrPublishing.c"
+ } else {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1328 "TumblrPublishing.c"
+ }
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return NULL;
+#line 1332 "TumblrPublishing.c"
+}
+
+
+static gchar* publishing_tumblr_value_size_entry_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingTumblrSizeEntry** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!object_p) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1343 "TumblrPublishing.c"
+ }
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *object_p = NULL;
+#line 1349 "TumblrPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1353 "TumblrPublishing.c"
+ } else {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *object_p = publishing_tumblr_size_entry_ref (value->data[0].v_pointer);
+#line 1357 "TumblrPublishing.c"
+ }
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return NULL;
+#line 1361 "TumblrPublishing.c"
+}
+
+
+GParamSpec* publishing_tumblr_param_spec_size_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingTumblrParamSpecSizeEntry* spec;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY), NULL);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 1375 "TumblrPublishing.c"
+}
+
+
+gpointer publishing_tumblr_value_get_size_entry (const GValue* value) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY), NULL);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1384 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_value_set_size_entry (GValue* value, gpointer v_object) {
+ PublishingTumblrSizeEntry* old;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY));
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (v_object) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY));
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_size_entry_ref (value->data[0].v_pointer);
+#line 1404 "TumblrPublishing.c"
+ } else {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1408 "TumblrPublishing.c"
+ }
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (old) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_size_entry_unref (old);
+#line 1414 "TumblrPublishing.c"
+ }
+}
+
+
+void publishing_tumblr_value_take_size_entry (GValue* value, gpointer v_object) {
+ PublishingTumblrSizeEntry* old;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY));
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (v_object) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY));
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1433 "TumblrPublishing.c"
+ } else {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1437 "TumblrPublishing.c"
+ }
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (old) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_size_entry_unref (old);
+#line 1443 "TumblrPublishing.c"
+ }
+}
+
+
+static void publishing_tumblr_size_entry_class_init (PublishingTumblrSizeEntryClass * klass) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_size_entry_parent_class = g_type_class_peek_parent (klass);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ ((PublishingTumblrSizeEntryClass *) klass)->finalize = publishing_tumblr_size_entry_finalize;
+#line 1453 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_size_entry_instance_init (PublishingTumblrSizeEntry * self) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->ref_count = 1;
+#line 1460 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_size_entry_finalize (PublishingTumblrSizeEntry* obj) {
+ PublishingTumblrSizeEntry * self;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, PublishingTumblrSizeEntry);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->title);
+#line 1472 "TumblrPublishing.c"
+}
+
+
+GType publishing_tumblr_size_entry_get_type (void) {
+ static volatile gsize publishing_tumblr_size_entry_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_size_entry_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_tumblr_value_size_entry_init, publishing_tumblr_value_size_entry_free_value, publishing_tumblr_value_size_entry_copy_value, publishing_tumblr_value_size_entry_peek_pointer, "p", publishing_tumblr_value_size_entry_collect_value, "p", publishing_tumblr_value_size_entry_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrSizeEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_size_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrSizeEntry), 0, (GInstanceInitFunc) publishing_tumblr_size_entry_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 publishing_tumblr_size_entry_type_id;
+ publishing_tumblr_size_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingTumblrSizeEntry", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_tumblr_size_entry_type_id__volatile, publishing_tumblr_size_entry_type_id);
+ }
+ return publishing_tumblr_size_entry_type_id__volatile;
+}
+
+
+gpointer publishing_tumblr_size_entry_ref (gpointer instance) {
+ PublishingTumblrSizeEntry* self;
+ self = instance;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return instance;
+#line 1497 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_size_entry_unref (gpointer instance) {
+ PublishingTumblrSizeEntry* self;
+ self = instance;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ PUBLISHING_TUMBLR_SIZE_ENTRY_GET_CLASS (self)->finalize (self);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1510 "TumblrPublishing.c"
+ }
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_on_session_authenticated_publishing_rest_support_session_authenticated (PublishingRESTSupportSession* _sender, gpointer self) {
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_session_authenticated ((PublishingTumblrTumblrPublisher*) self);
+#line 1518 "TumblrPublishing.c"
+}
+
+
+static void _vala_array_add18 (PublishingTumblrSizeEntry*** array, int* length, int* size, PublishingTumblrSizeEntry* value) {
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1);
+#line 1529 "TumblrPublishing.c"
+ }
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 1535 "TumblrPublishing.c"
+}
+
+
+static void _vala_array_add19 (PublishingTumblrSizeEntry*** array, int* length, int* size, PublishingTumblrSizeEntry* value) {
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1);
+#line 1546 "TumblrPublishing.c"
+ }
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 1552 "TumblrPublishing.c"
+}
+
+
+static void _vala_array_add20 (PublishingTumblrSizeEntry*** array, int* length, int* size, PublishingTumblrSizeEntry* value) {
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1);
+#line 1563 "TumblrPublishing.c"
+ }
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 1569 "TumblrPublishing.c"
+}
+
+
+static PublishingTumblrSizeEntry** publishing_tumblr_tumblr_publisher_create_sizes (PublishingTumblrTumblrPublisher* self, int* result_length1) {
+ PublishingTumblrSizeEntry** result = NULL;
+ PublishingTumblrSizeEntry** _result_ = NULL;
+ PublishingTumblrSizeEntry** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ PublishingTumblrSizeEntry** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ const gchar* _tmp2_ = NULL;
+ PublishingTumblrSizeEntry* _tmp3_ = NULL;
+ PublishingTumblrSizeEntry** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp5_ = NULL;
+ PublishingTumblrSizeEntry* _tmp6_ = NULL;
+ PublishingTumblrSizeEntry** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ const gchar* _tmp8_ = NULL;
+ PublishingTumblrSizeEntry* _tmp9_ = NULL;
+ PublishingTumblrSizeEntry** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL);
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = g_new0 (PublishingTumblrSizeEntry*, 0 + 1);
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _result_ = _tmp0_;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _result__length1 = 0;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ __result__size_ = _result__length1;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = _result_;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1__length1 = _result__length1;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _ ("500 x 375 pixels");
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = publishing_tumblr_size_entry_new (_tmp2_, 500);
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _vala_array_add18 (&_result_, &_result__length1, &__result__size_, _tmp3_);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = _result_;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4__length1 = _result__length1;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _ ("1024 x 768 pixels");
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = publishing_tumblr_size_entry_new (_tmp5_, 1024);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _vala_array_add19 (&_result_, &_result__length1, &__result__size_, _tmp6_);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = _result_;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7__length1 = _result__length1;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = _ ("1280 x 853 pixels");
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = publishing_tumblr_size_entry_new (_tmp8_, 1280);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _vala_array_add20 (&_result_, &_result__length1, &__result__size_, _tmp9_);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = _result_;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10__length1 = _result__length1;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (result_length1) {
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *result_length1 = _tmp10__length1;
+#line 1641 "TumblrPublishing.c"
+ }
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp10_;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 1647 "TumblrPublishing.c"
+}
+
+
+static PublishingTumblrBlogEntry** publishing_tumblr_tumblr_publisher_create_blogs (PublishingTumblrTumblrPublisher* self, int* result_length1) {
+ PublishingTumblrBlogEntry** result = NULL;
+ PublishingTumblrBlogEntry** _result_ = NULL;
+ PublishingTumblrBlogEntry** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ PublishingTumblrBlogEntry** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = g_new0 (PublishingTumblrBlogEntry*, 0 + 1);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _result_ = _tmp0_;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _result__length1 = 0;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ __result__size_ = _result__length1;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = _result_;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1__length1 = _result__length1;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (result_length1) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *result_length1 = _tmp1__length1;
+#line 1677 "TumblrPublishing.c"
+ }
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 1683 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) {
+ PublishingTumblrTumblrPublisher * self = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ PublishingTumblrSizeEntry** _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ PublishingTumblrBlogEntry** _tmp8_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp9_ = NULL;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrTumblrPublisher*) g_object_new (object_type, NULL);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:125: TumblrPublisher instantiated.");
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = service;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->service);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->service = _tmp1_;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = host;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->host);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->host = _tmp3_;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = publishing_tumblr_tumblr_publisher_session_new ();
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->session = _tmp4_;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = publishing_tumblr_tumblr_publisher_create_sizes (self, &_tmp5_);
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL);
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes = _tmp6_;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes_length1 = _tmp5_;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->_sizes_size_ = self->priv->sizes_length1;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = publishing_tumblr_tumblr_publisher_create_blogs (self, &_tmp7_);
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL);
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs = _tmp8_;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs_length1 = _tmp7_;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->_blogs_size_ = self->priv->blogs_length1;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = self->priv->session;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated", (GCallback) _publishing_tumblr_tumblr_publisher_on_session_authenticated_publishing_rest_support_session_authenticated, self, 0);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 1755 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) {
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_tumblr_publisher_construct (PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, service, host);
+#line 1762 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_invalidate_persistent_session (PublishingTumblrTumblrPublisher* self) {
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_set_persistent_access_phase_token (self, "");
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_set_persistent_access_phase_token_secret (self, "");
+#line 1773 "TumblrPublishing.c"
+}
+
+
+static SpitPublishingService* publishing_tumblr_tumblr_publisher_real_get_service (SpitPublishingPublisher* base) {
+ PublishingTumblrTumblrPublisher * self;
+ SpitPublishingService* result = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher);
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->service;
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 1792 "TumblrPublishing.c"
+}
+
+
+SpitPublishingPluginHost* publishing_tumblr_tumblr_publisher_get_host (PublishingTumblrTumblrPublisher* self) {
+ SpitPublishingPluginHost* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL);
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 1810 "TumblrPublishing.c"
+}
+
+
+static gboolean publishing_tumblr_tumblr_publisher_real_is_running (SpitPublishingPublisher* base) {
+ PublishingTumblrTumblrPublisher * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher);
+#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp0_;
+#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 1826 "TumblrPublishing.c"
+}
+
+
+static gboolean publishing_tumblr_tumblr_publisher_is_persistent_session_valid (PublishingTumblrTumblrPublisher* self) {
+ gboolean result = FALSE;
+ gchar* access_phase_token = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* access_phase_token_secret = NULL;
+ gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ const gchar* _tmp3_ = NULL;
+ gboolean valid = FALSE;
+ gboolean _tmp5_ = FALSE;
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), FALSE);
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = publishing_tumblr_tumblr_publisher_get_persistent_access_phase_token (self);
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ access_phase_token = _tmp0_;
+#line 158 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = publishing_tumblr_tumblr_publisher_get_persistent_access_phase_token_secret (self);
+#line 158 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ access_phase_token_secret = _tmp1_;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = access_phase_token;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp3_ != NULL) {
+#line 1854 "TumblrPublishing.c"
+ const gchar* _tmp4_ = NULL;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = access_phase_token_secret;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _tmp4_ != NULL;
+#line 1860 "TumblrPublishing.c"
+ } else {
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = FALSE;
+#line 1864 "TumblrPublishing.c"
+ }
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ valid = _tmp2_;
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = valid;
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp5_) {
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:163: existing Tumblr session found in configurat" \
+"ion database; using it.");
+#line 1874 "TumblrPublishing.c"
+ } else {
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:165: no persisted Tumblr session exists.");
+#line 1878 "TumblrPublishing.c"
+ }
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = valid;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (access_phase_token_secret);
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (access_phase_token);
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 1888 "TumblrPublishing.c"
+}
+
+
+gchar* publishing_tumblr_tumblr_publisher_get_persistent_access_phase_token (PublishingTumblrTumblrPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL);
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "token", NULL);
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 1906 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_set_persistent_access_phase_token (PublishingTumblrTumblrPublisher* self, const gchar* token) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = token;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "token", _tmp1_);
+#line 1921 "TumblrPublishing.c"
+}
+
+
+gchar* publishing_tumblr_tumblr_publisher_get_persistent_access_phase_token_secret (PublishingTumblrTumblrPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL);
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "token_secret", NULL);
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 1939 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_set_persistent_access_phase_token_secret (PublishingTumblrTumblrPublisher* self, const gchar* token_secret) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = token_secret;
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "token_secret", _tmp1_);
+#line 1954 "TumblrPublishing.c"
+}
+
+
+gint publishing_tumblr_tumblr_publisher_get_persistent_default_size (PublishingTumblrTumblrPublisher* self) {
+ gint result = 0;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), 0);
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 1);
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 1972 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_tumblr_publisher_set_persistent_default_size (PublishingTumblrTumblrPublisher* self, gint size) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = size;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", _tmp1_);
+#line 1987 "TumblrPublishing.c"
+}
+
+
+gint publishing_tumblr_tumblr_publisher_get_persistent_default_blog (PublishingTumblrTumblrPublisher* self) {
+ gint result = 0;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), 0);
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_blog", 0);
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 2005 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_tumblr_publisher_set_persistent_default_blog (PublishingTumblrTumblrPublisher* self, gint blog) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = blog;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_blog", _tmp1_);
+#line 2020 "TumblrPublishing.c"
+}
+
+
+/**
+ * Action that shows the authentication pane.
+ *
+ * This action method shows the authentication pane. It is shown at the
+ * very beginning of the interaction when no persistent parameters are found
+ * or after a failed login attempt using persisted parameters. It can be
+ * given a mode flag to specify whether it should be displayed in initial
+ * mode or in any of the error modes that it supports.
+ *
+ * @param mode the mode for the authentication pane
+ */
+static void _publishing_tumblr_tumblr_publisher_on_authentication_pane_login_clicked_publishing_tumblr_tumblr_publisher_authentication_pane_login (PublishingTumblrTumblrPublisherAuthenticationPane* _sender, const gchar* user, const gchar* password, gpointer self) {
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_authentication_pane_login_clicked ((PublishingTumblrTumblrPublisher*) self, user, password);
+#line 2038 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_do_show_authentication_pane (PublishingTumblrTumblrPublisher* self, PublishingTumblrTumblrPublisherAuthenticationPaneMode mode) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingTumblrTumblrPublisherAuthenticationPane* authentication_pane = NULL;
+ PublishingTumblrTumblrPublisherAuthenticationPaneMode _tmp1_ = 0;
+ PublishingTumblrTumblrPublisherAuthenticationPane* _tmp2_ = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ GtkWidget* _tmp5_ = NULL;
+ GtkWidget* _tmp6_ = NULL;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:219: ACTION: installing authentication pane");
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = mode;
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = publishing_tumblr_tumblr_publisher_authentication_pane_new (self, _tmp1_);
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ authentication_pane = _tmp2_;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (authentication_pane, "login", (GCallback) _publishing_tumblr_tumblr_publisher_on_authentication_pane_login_clicked_publishing_tumblr_tumblr_publisher_authentication_pane_login, self, 0);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = self->priv->host;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE);
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = self->priv->host;
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = publishing_tumblr_tumblr_publisher_authentication_pane_get_default_widget (authentication_pane);
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_set_dialog_default_widget (_tmp4_, _tmp6_);
+#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (_tmp6_);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (authentication_pane);
+#line 2083 "TumblrPublishing.c"
+}
+
+
+/**
+ * Event triggered when the login button in the authentication panel is
+ * clicked.
+ *
+ * This event is triggered when the login button in the authentication
+ * panel is clicked. It then triggers a network login interaction.
+ *
+ * @param username the name of the Tumblr user as entered in the dialog
+ * @param password the password of the Tumblr as entered in the dialog
+ */
+static void publishing_tumblr_tumblr_publisher_on_authentication_pane_login_clicked (PublishingTumblrTumblrPublisher* self, const gchar* username, const gchar* password) {
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (password != NULL);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:240: EVENT: on_authentication_pane_login_clicked");
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp0_) {
+#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 2115 "TumblrPublishing.c"
+ }
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = username;
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = password;
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_do_network_login (self, _tmp1_, _tmp2_);
+#line 2123 "TumblrPublishing.c"
+}
+
+
+/**
+ * Action to perform a network login to a Tumblr blog.
+ *
+ * This action performs a network login a Tumblr blog specified the given user name and password as credentials.
+ *
+ * @param username the name of the Tumblr user used to login
+ * @param password the password of the Tumblr user used to login
+ */
+static void _publishing_tumblr_tumblr_publisher_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_auth_request_txn_completed ((PublishingTumblrTumblrPublisher*) self, _sender);
+#line 2138 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_auth_request_txn_error ((PublishingTumblrTumblrPublisher*) self, _sender, err);
+#line 2145 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_do_network_login (PublishingTumblrTumblrPublisher* self, const gchar* username, const gchar* password) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingTumblrTumblrPublisherAccessTokenFetchTransaction* txn = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ PublishingTumblrTumblrPublisherAccessTokenFetchTransaction* _tmp5_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (password != NULL);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:256: ACTION: logging in");
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_install_login_wait_pane (_tmp1_);
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = username;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = password;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_new (_tmp2_, _tmp3_, _tmp4_);
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ txn = _tmp5_;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_tumblr_tumblr_publisher_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self, 0);
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_tumblr_tumblr_publisher_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 2188 "TumblrPublishing.c"
+ {
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2196 "TumblrPublishing.c"
+ goto __catch32_spit_publishing_publishing_error;
+ }
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 2207 "TumblrPublishing.c"
+ }
+ }
+ goto __finally32;
+ __catch32_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ err = _inner_error_;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _inner_error_ = NULL;
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = self->priv->host;
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = err;
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp6_, _tmp7_);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_error_free0 (err);
+#line 2228 "TumblrPublishing.c"
+ }
+ __finally32:
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.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 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 2241 "TumblrPublishing.c"
+ }
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 2245 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_on_auth_request_txn_completed (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ PublishingRESTSupportTransaction* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = txn;
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self);
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = txn;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self);
+#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp4_) {
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 2283 "TumblrPublishing.c"
+ }
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = txn;
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:280: EVENT: OAuth authentication request transac" \
+"tion completed; response = '%s'", _tmp7_);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = txn;
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = publishing_rest_support_transaction_get_response (_tmp8_);
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_do_parse_token_info_from_auth_request (self, _tmp10_);
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp10_);
+#line 2305 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_on_auth_request_txn_error (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = txn;
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self);
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = txn;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self);
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp4_) {
+#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 2339 "TumblrPublishing.c"
+ }
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:294: EVENT: OAuth authentication request transac" \
+"tion caused a network error");
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = self->priv->host;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = err;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp5_, _tmp6_);
+#line 2349 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_do_parse_token_info_from_auth_request (PublishingTumblrTumblrPublisher* self, const gchar* response) {
+ const gchar* _tmp0_ = NULL;
+ gchar* oauth_token = NULL;
+ gchar* oauth_token_secret = NULL;
+ gchar** key_value_pairs = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar** _tmp2_ = NULL;
+ gchar** _tmp3_ = NULL;
+ gint key_value_pairs_length1 = 0;
+ gint _key_value_pairs_size_ = 0;
+ gchar** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ gboolean _tmp24_ = FALSE;
+ const gchar* _tmp25_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ const gchar* _tmp33_ = NULL;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (response != NULL);
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = response;
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:300: ACTION: parsing authorization request respo" \
+"nse '%s' into token and secret", _tmp0_);
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ oauth_token = NULL;
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ oauth_token_secret = NULL;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = response;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = _tmp2_ = g_strsplit (_tmp1_, "&", 0);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ key_value_pairs = _tmp3_;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ key_value_pairs_length1 = _vala_array_length (_tmp2_);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _key_value_pairs_size_ = key_value_pairs_length1;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = key_value_pairs;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4__length1 = key_value_pairs_length1;
+#line 2396 "TumblrPublishing.c"
+ {
+ gchar** pair_collection = NULL;
+ gint pair_collection_length1 = 0;
+ gint _pair_collection_size_ = 0;
+ gint pair_it = 0;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ pair_collection = _tmp4_;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ pair_collection_length1 = _tmp4__length1;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (pair_it = 0; pair_it < _tmp4__length1; pair_it = pair_it + 1) {
+#line 2408 "TumblrPublishing.c"
+ gchar* _tmp5_ = NULL;
+ gchar* pair = NULL;
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = g_strdup (pair_collection[pair_it]);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ pair = _tmp5_;
+#line 2415 "TumblrPublishing.c"
+ {
+ gchar** split_pair = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gchar** _tmp8_ = NULL;
+ gint split_pair_length1 = 0;
+ gint _split_pair_size_ = 0;
+ gchar** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ gchar** _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ const gchar* _tmp15_ = NULL;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = pair;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = _tmp7_ = g_strsplit (_tmp6_, "=", 0);
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ split_pair = _tmp8_;
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ split_pair_length1 = _vala_array_length (_tmp7_);
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _split_pair_size_ = split_pair_length1;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = split_pair;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9__length1 = split_pair_length1;
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp9__length1 != 2) {
+#line 2444 "TumblrPublishing.c"
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ GError* _tmp12_ = NULL;
+ GError* _tmp13_ = NULL;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = self->priv->host;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11_ = _ ("'%s' isn't a valid response to an OAuth authentication request");
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp12_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp11_);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp10_, _tmp13_);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_error_free0 (_tmp13_);
+#line 2461 "TumblrPublishing.c"
+ }
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14_ = split_pair;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14__length1 = split_pair_length1;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp15_ = _tmp14_[0];
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (g_strcmp0 (_tmp15_, "oauth_token") == 0) {
+#line 2471 "TumblrPublishing.c"
+ gchar** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+ const gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp16_ = split_pair;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp16__length1 = split_pair_length1;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp17_ = _tmp16_[1];
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp18_ = g_strdup (_tmp17_);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (oauth_token);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ oauth_token = _tmp18_;
+#line 2488 "TumblrPublishing.c"
+ } else {
+ gchar** _tmp19_ = NULL;
+ gint _tmp19__length1 = 0;
+ const gchar* _tmp20_ = NULL;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp19_ = split_pair;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp19__length1 = split_pair_length1;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp20_ = _tmp19_[0];
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (g_strcmp0 (_tmp20_, "oauth_token_secret") == 0) {
+#line 2501 "TumblrPublishing.c"
+ gchar** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+ const gchar* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp21_ = split_pair;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp21__length1 = split_pair_length1;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp22_ = _tmp21_[1];
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp23_ = g_strdup (_tmp22_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (oauth_token_secret);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ oauth_token_secret = _tmp23_;
+#line 2518 "TumblrPublishing.c"
+ }
+ }
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ split_pair = (_vala_array_free (split_pair, split_pair_length1, (GDestroyNotify) g_free), NULL);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (pair);
+#line 2525 "TumblrPublishing.c"
+ }
+ }
+ }
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp25_ = oauth_token;
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp25_ == NULL) {
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp24_ = TRUE;
+#line 2535 "TumblrPublishing.c"
+ } else {
+ const gchar* _tmp26_ = NULL;
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp26_ = oauth_token_secret;
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp24_ = _tmp26_ == NULL;
+#line 2542 "TumblrPublishing.c"
+ }
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp24_) {
+#line 2546 "TumblrPublishing.c"
+ SpitPublishingPluginHost* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+ GError* _tmp29_ = NULL;
+ GError* _tmp30_ = NULL;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp27_ = self->priv->host;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp28_ = _ ("'%s' isn't a valid response to an OAuth authentication request");
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp29_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp28_);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp30_ = _tmp29_;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp27_, _tmp30_);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_error_free0 (_tmp30_);
+#line 2563 "TumblrPublishing.c"
+ }
+#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp31_ = self->priv->session;
+#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp32_ = oauth_token;
+#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp33_ = oauth_token_secret;
+#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_session_set_access_phase_credentials (_tmp31_, _tmp32_, _tmp33_);
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ key_value_pairs = (_vala_array_free (key_value_pairs, key_value_pairs_length1, (GDestroyNotify) g_free), NULL);
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (oauth_token_secret);
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (oauth_token);
+#line 2579 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_on_session_authenticated (PublishingTumblrTumblrPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+ PublishingTumblrTumblrPublisherSession* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp0_) {
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 2599 "TumblrPublishing.c"
+ }
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:332: EVENT: a fully authenticated session has be" \
+"come available");
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->session;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = publishing_tumblr_tumblr_publisher_session_get_access_phase_token (_tmp1_);
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_set_persistent_access_phase_token (self, _tmp3_);
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = self->priv->session;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = publishing_tumblr_tumblr_publisher_session_get_access_phase_token_secret (_tmp4_);
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_set_persistent_access_phase_token_secret (self, _tmp6_);
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_do_get_blogs (self);
+#line 2625 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_info_request_txn_completed ((PublishingTumblrTumblrPublisher*) self, _sender);
+#line 2632 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_info_request_txn_error ((PublishingTumblrTumblrPublisher*) self, _sender, err);
+#line 2639 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTumblrPublisher* self) {
+ PublishingTumblrTumblrPublisherUserInfoFetchTransaction* txn = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp0_ = NULL;
+ PublishingTumblrTumblrPublisherUserInfoFetchTransaction* _tmp1_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:340: ACTION: obtain all blogs of the tumblr user");
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_new (_tmp0_);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ txn = _tmp1_;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed, self, 0);
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 2662 "TumblrPublishing.c"
+ {
+#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2670 "TumblrPublishing.c"
+ goto __catch33_spit_publishing_publishing_error;
+ }
+#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 2681 "TumblrPublishing.c"
+ }
+ }
+ goto __finally33;
+ __catch33_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ GError* _tmp3_ = NULL;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ err = _inner_error_;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _inner_error_ = NULL;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = self->priv->host;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = err;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp2_, _tmp3_);
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_error_free0 (err);
+#line 2702 "TumblrPublishing.c"
+ }
+ __finally33:
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.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 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 2715 "TumblrPublishing.c"
+ }
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 2719 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_on_info_request_txn_completed (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ PublishingRESTSupportTransaction* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = txn;
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed, self);
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = txn;
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error, self);
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp4_) {
+#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 2757 "TumblrPublishing.c"
+ }
+#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = txn;
+#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_);
+#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:362: EVENT: user info request transaction comple" \
+"ted; response = '%s'", _tmp7_);
+#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = txn;
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = publishing_rest_support_transaction_get_response (_tmp8_);
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (self, _tmp10_);
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp10_);
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (self);
+#line 2781 "TumblrPublishing.c"
+}
+
+
+static gpointer _json_object_ref0 (gpointer self) {
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self ? json_object_ref (self) : NULL;
+#line 2788 "TumblrPublishing.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 2801 "TumblrPublishing.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 2832 "TumblrPublishing.c"
+ goto __catch35_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 2841 "TumblrPublishing.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 2857 "TumblrPublishing.c"
+ goto __catch35_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 2868 "TumblrPublishing.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 2882 "TumblrPublishing.c"
+ }
+ goto __finally35;
+ __catch35_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 2896 "TumblrPublishing.c"
+ }
+ __finally35:
+#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 2907 "TumblrPublishing.c"
+ }
+}
+
+
+static void _vala_array_add21 (PublishingTumblrBlogEntry*** array, int* length, int* size, PublishingTumblrBlogEntry* value) {
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *array = g_renew (PublishingTumblrBlogEntry*, *array, (*size) + 1);
+#line 2919 "TumblrPublishing.c"
+ }
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 2925 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (PublishingTumblrTumblrPublisher* self, const gchar* response) {
+ const gchar* _tmp0_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (response != NULL);
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = response;
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:370: ACTION: parsing info request response '%s' " \
+"into list of available blogs", _tmp0_);
+#line 2940 "TumblrPublishing.c"
+ {
+ JsonParser* parser = NULL;
+ JsonParser* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ JsonObject* root_object = NULL;
+ JsonNode* _tmp3_ = NULL;
+ JsonObject* _tmp4_ = NULL;
+ JsonObject* _tmp5_ = NULL;
+ JsonObject* _tmp6_ = NULL;
+ JsonObject* _tmp7_ = NULL;
+ JsonObject* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ JsonObject* _tmp12_ = NULL;
+ JsonObject* _tmp13_ = NULL;
+ JsonObject* _tmp14_ = NULL;
+ JsonArray* _tmp15_ = NULL;
+ GList* _tmp16_ = NULL;
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = json_parser_new ();
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ parser = _tmp1_;
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = response;
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ json_parser_load_from_data (parser, _tmp2_, (gssize) -1, &_inner_error_);
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (parser);
+#line 2972 "TumblrPublishing.c"
+ goto __catch34_g_error;
+ }
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = json_parser_get_root (parser);
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = json_node_get_object (_tmp3_);
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _json_object_ref0 (_tmp4_);
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ root_object = _tmp5_;
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = root_object;
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = json_object_get_object_member (_tmp6_, "response");
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = json_object_get_object_member (_tmp7_, "user");
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = json_object_get_string_member (_tmp8_, "name");
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = g_strdup (_tmp9_);
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->username = _tmp10_;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11_ = self->priv->username;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:376: Got user name: %s", _tmp11_);
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp12_ = root_object;
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp13_ = json_object_get_object_member (_tmp12_, "response");
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14_ = json_object_get_object_member (_tmp13_, "user");
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp15_ = json_object_get_array_member (_tmp14_, "blogs");
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp16_ = json_array_get_elements (_tmp15_);
+#line 3011 "TumblrPublishing.c"
+ {
+ GList* blognode_collection = NULL;
+ GList* blognode_it = NULL;
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ blognode_collection = _tmp16_;
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (blognode_it = blognode_collection; blognode_it != NULL; blognode_it = blognode_it->next) {
+#line 3019 "TumblrPublishing.c"
+ JsonNode* blognode = NULL;
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ blognode = (JsonNode*) blognode_it->data;
+#line 3023 "TumblrPublishing.c"
+ {
+ JsonObject* blog = NULL;
+ JsonNode* _tmp17_ = NULL;
+ JsonObject* _tmp18_ = NULL;
+ JsonObject* _tmp19_ = NULL;
+ gchar* name = NULL;
+ JsonObject* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ gchar* url = NULL;
+ JsonObject* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+ const gchar* _tmp30_ = NULL;
+ PublishingTumblrBlogEntry** _tmp31_ = NULL;
+ gint _tmp31__length1 = 0;
+ const gchar* _tmp32_ = NULL;
+ const gchar* _tmp33_ = NULL;
+ PublishingTumblrBlogEntry* _tmp34_ = NULL;
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp17_ = blognode;
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp18_ = json_node_get_object (_tmp17_);
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp19_ = _json_object_ref0 (_tmp18_);
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ blog = _tmp19_;
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp20_ = blog;
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp21_ = json_object_get_string_member (_tmp20_, "name");
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp22_ = g_strdup (_tmp21_);
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ name = _tmp22_;
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp23_ = blog;
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp24_ = json_object_get_string_member (_tmp23_, "url");
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp25_ = string_replace (_tmp24_, "http://", "");
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp26_ = _tmp25_;
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp27_ = string_replace (_tmp26_, "/", "");
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp28_ = _tmp27_;
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp26_);
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ url = _tmp28_;
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp29_ = name;
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp30_ = url;
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:381: Got blog name: %s and url: %s", _tmp29_, _tmp30_);
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp31_ = self->priv->blogs;
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp31__length1 = self->priv->blogs_length1;
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp32_ = name;
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp33_ = url;
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp34_ = publishing_tumblr_blog_entry_new (_tmp32_, _tmp33_);
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _vala_array_add21 (&self->priv->blogs, &self->priv->blogs_length1, &self->priv->_blogs_size_, _tmp34_);
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (url);
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (name);
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _json_object_unref0 (blog);
+#line 3103 "TumblrPublishing.c"
+ }
+ }
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_list_free0 (blognode_collection);
+#line 3108 "TumblrPublishing.c"
+ }
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _json_object_unref0 (root_object);
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (parser);
+#line 3114 "TumblrPublishing.c"
+ }
+ goto __finally34;
+ __catch34_g_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp35_ = NULL;
+ GError* _tmp36_ = NULL;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ err = _inner_error_;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _inner_error_ = NULL;
+#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp35_ = self->priv->host;
+#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp36_ = err;
+#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp35_, _tmp36_);
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_error_free0 (err);
+#line 3134 "TumblrPublishing.c"
+ }
+ __finally34:
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.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 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 3145 "TumblrPublishing.c"
+ }
+}
+
+
+static void publishing_tumblr_tumblr_publisher_on_info_request_txn_error (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingTumblrTumblrPublisherSession* _tmp5_ = NULL;
+ SpitPublishingPluginHost* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = txn;
+#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed, self);
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = txn;
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error, self);
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp4_) {
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 3181 "TumblrPublishing.c"
+ }
+#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = self->priv->session;
+#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_session_deauthenticate (_tmp5_);
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_invalidate_persistent_session (self);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:399: EVENT: user info request transaction caused" \
+" a network error");
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = self->priv->host;
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = err;
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp6_, _tmp7_);
+#line 3197 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, gpointer self) {
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish ((PublishingTumblrTumblrPublisher*) self);
+#line 3204 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, gpointer self) {
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout ((PublishingTumblrTumblrPublisher*) self);
+#line 3211 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (PublishingTumblrTumblrPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_options_pane = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ SpitPublishingPublisherMediaType _tmp2_ = 0;
+ PublishingTumblrSizeEntry** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ PublishingTumblrBlogEntry** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp5_ = NULL;
+ PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp6_ = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:404: ACTION: displaying publishing options pane");
+#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = spit_publishing_plugin_host_get_publishable_media_type (_tmp1_);
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = self->priv->sizes;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3__length1 = self->priv->sizes_length1;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = self->priv->blogs;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4__length1 = self->priv->blogs_length1;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = self->priv->username;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = publishing_tumblr_tumblr_publisher_publishing_options_pane_new (self, _tmp2_, _tmp3_, _tmp3__length1, _tmp4_, _tmp4__length1, _tmp5_);
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_options_pane = _tmp6_;
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (publishing_options_pane, "publish", (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish, self, 0);
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (publishing_options_pane, "logout", (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout, self, 0);
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (publishing_options_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (publishing_options_pane);
+#line 3263 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish (PublishingTumblrTumblrPublisher* self) {
+ PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp0_ = NULL;
+ gboolean _tmp5_ = FALSE;
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->publishing_options_pane;
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp0_ != NULL) {
+#line 3276 "TumblrPublishing.c"
+ PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp1_ = NULL;
+ guint _tmp2_ = 0U;
+ PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp3_ = NULL;
+ guint _tmp4_ = 0U;
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->publishing_options_pane;
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp2_, NULL, FALSE);
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish, self);
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = self->priv->publishing_options_pane;
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp4_, NULL, FALSE);
+#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout, self);
+#line 3293 "TumblrPublishing.c"
+ }
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp5_) {
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 3301 "TumblrPublishing.c"
+ }
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:424: EVENT: user clicked the 'Publish' button in" \
+" the publishing options pane");
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_do_publish (self);
+#line 3307 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout (PublishingTumblrTumblrPublisher* self) {
+ PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp0_ = NULL;
+ gboolean _tmp5_ = FALSE;
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->publishing_options_pane;
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp0_ != NULL) {
+#line 3320 "TumblrPublishing.c"
+ PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp1_ = NULL;
+ guint _tmp2_ = 0U;
+ PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp3_ = NULL;
+ guint _tmp4_ = 0U;
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->publishing_options_pane;
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp2_, NULL, FALSE);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish, self);
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = self->priv->publishing_options_pane;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp4_, NULL, FALSE);
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout, self);
+#line 3337 "TumblrPublishing.c"
+ }
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp5_) {
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 3345 "TumblrPublishing.c"
+ }
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:437: EVENT: user clicked the 'Logout' button in " \
+"the publishing options pane");
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_do_logout (self);
+#line 3351 "TumblrPublishing.c"
+}
+
+
+gint publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func (SpitPublishingPublishable* a, SpitPublishingPublishable* b) {
+ gint result = 0;
+ SpitPublishingPublishable* _tmp0_ = NULL;
+ GDateTime* _tmp1_ = NULL;
+ GDateTime* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ GDateTime* _tmp4_ = NULL;
+ GDateTime* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ gint _tmp7_ = 0;
+#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (a), 0);
+#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (b), 0);
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = a;
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = spit_publishing_publishable_get_exposure_date_time (_tmp0_);
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = b;
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = spit_publishing_publishable_get_exposure_date_time (_tmp3_);
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = g_date_time_compare (_tmp2_, _tmp5_);
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_date_time_unref0 (_tmp5_);
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_date_time_unref0 (_tmp2_);
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp7_;
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 3393 "TumblrPublishing.c"
+}
+
+
+static gint _publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
+ gint result;
+ result = publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func ((SpitPublishingPublishable*) a, (SpitPublishingPublishable*) b);
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 3402 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self) {
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_upload_complete ((PublishingTumblrTumblrPublisher*) self, _sender, num_photos_published);
+#line 3409 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self) {
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_upload_error ((PublishingTumblrTumblrPublisher*) self, _sender, err);
+#line 3416 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self) {
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_on_upload_status_updated ((PublishingTumblrTumblrPublisher*) self, file_number, fraction_complete);
+#line 3423 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumblrPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingTumblrSizeEntry** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ gint _tmp3_ = 0;
+ PublishingTumblrSizeEntry* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ void* _tmp6_ = NULL;
+ GDestroyNotify _tmp7_ = NULL;
+ SpitPublishingProgressCallback _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+ SpitPublishingPublishable** publishables = NULL;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ SpitPublishingPublishable** _tmp12_ = NULL;
+ gint publishables_length1 = 0;
+ gint _publishables_size_ = 0;
+ GeeArrayList* sorted_list = NULL;
+ GeeArrayList* _tmp13_ = NULL;
+ SpitPublishingPublishable** _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ GeeArrayList* _tmp18_ = NULL;
+ gchar* blog_url = NULL;
+ PublishingTumblrBlogEntry** _tmp19_ = NULL;
+ gint _tmp19__length1 = 0;
+ gint _tmp20_ = 0;
+ PublishingTumblrBlogEntry* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+ PublishingTumblrTumblrPublisherUploader* uploader = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp24_ = NULL;
+ GeeArrayList* _tmp25_ = NULL;
+ gint _tmp26_ = 0;
+ gpointer* _tmp27_ = NULL;
+ SpitPublishingPublishable** _tmp28_ = NULL;
+ gint _tmp28__length1 = 0;
+ const gchar* _tmp29_ = NULL;
+ PublishingTumblrTumblrPublisherUploader* _tmp30_ = NULL;
+ PublishingTumblrTumblrPublisherUploader* _tmp31_ = NULL;
+ PublishingTumblrTumblrPublisherUploader* _tmp32_ = NULL;
+ PublishingTumblrTumblrPublisherUploader* _tmp33_ = NULL;
+ PublishingTumblrTumblrPublisherUploader* _tmp34_ = NULL;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:448: ACTION: uploading media items to remote ser" \
+"ver.");
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = self->priv->sizes;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2__length1 = self->priv->sizes_length1;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = publishing_tumblr_tumblr_publisher_get_persistent_default_size (self);
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = _tmp2_[_tmp3_];
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _tmp4_->size;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, _tmp5_, FALSE, &_tmp6_, &_tmp7_);
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->progress_reporter = _tmp8_;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->progress_reporter_target = _tmp6_;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = _tmp7_;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp9_) {
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 3512 "TumblrPublishing.c"
+ }
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = self->priv->host;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp12_ = spit_publishing_plugin_host_get_publishables (_tmp10_, &_tmp11_);
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishables = _tmp12_;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishables_length1 = _tmp11_;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishables_size_ = publishables_length1;
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp13_ = gee_array_list_new (SPIT_PUBLISHING_TYPE_PUBLISHABLE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ sorted_list = _tmp13_;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14_ = publishables;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14__length1 = publishables_length1;
+#line 3532 "TumblrPublishing.c"
+ {
+ SpitPublishingPublishable** p_collection = NULL;
+ gint p_collection_length1 = 0;
+ gint _p_collection_size_ = 0;
+ gint p_it = 0;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ p_collection = _tmp14_;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ p_collection_length1 = _tmp14__length1;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (p_it = 0; p_it < _tmp14__length1; p_it = p_it + 1) {
+#line 3544 "TumblrPublishing.c"
+ SpitPublishingPublishable* _tmp15_ = NULL;
+ SpitPublishingPublishable* p = NULL;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp15_ = _g_object_ref0 (p_collection[p_it]);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ p = _tmp15_;
+#line 3551 "TumblrPublishing.c"
+ {
+ GeeArrayList* _tmp16_ = NULL;
+ SpitPublishingPublishable* _tmp17_ = NULL;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:466: ACTION: add publishable");
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp16_ = sorted_list;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp17_ = p;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (p);
+#line 3565 "TumblrPublishing.c"
+ }
+ }
+ }
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp18_ = sorted_list;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_LIST, GeeList), _publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func_gcompare_data_func, NULL, NULL);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp19_ = self->priv->blogs;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp19__length1 = self->priv->blogs_length1;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp20_ = publishing_tumblr_tumblr_publisher_get_persistent_default_blog (self);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp21_ = _tmp19_[_tmp20_];
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp22_ = _tmp21_->url;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp23_ = g_strdup (_tmp22_);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ blog_url = _tmp23_;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp24_ = self->priv->session;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp25_ = sorted_list;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp27_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp26_);
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp28_ = _tmp27_;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp28__length1 = _tmp26_;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp29_ = blog_url;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp30_ = publishing_tumblr_tumblr_publisher_uploader_new (_tmp24_, _tmp28_, _tmp26_, _tmp29_);
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp31_ = _tmp30_;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp28_ = (_vala_array_free (_tmp28_, _tmp28__length1, (GDestroyNotify) g_object_unref), NULL);
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ uploader = _tmp31_;
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp32_ = uploader;
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp33_ = uploader;
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp34_ = uploader;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_tumblr_tumblr_publisher_on_upload_status_updated_spit_publishing_progress_callback, self);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_batch_uploader_unref0 (uploader);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (blog_url);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (sorted_list);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 3627 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_do_show_success_pane (PublishingTumblrTumblrPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:479: ACTION: showing success pane.");
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_install_success_pane (_tmp1_);
+#line 3646 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_on_upload_status_updated (PublishingTumblrTumblrPublisher* self, gint file_number, gdouble completed_fraction) {
+ gboolean _tmp0_ = FALSE;
+ gdouble _tmp1_ = 0.0;
+ SpitPublishingProgressCallback _tmp2_ = NULL;
+ void* _tmp2__target = NULL;
+ SpitPublishingProgressCallback _tmp3_ = NULL;
+ void* _tmp3__target = NULL;
+ gint _tmp4_ = 0;
+ gdouble _tmp5_ = 0.0;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp0_) {
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 3667 "TumblrPublishing.c"
+ }
+#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = completed_fraction;
+#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:490: EVENT: uploader reports upload %.2f percent" \
+" complete.", 100.0 * _tmp1_);
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = self->priv->progress_reporter;
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2__target = self->priv->progress_reporter_target;
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _vala_assert (_tmp2_ != NULL, "progress_reporter != null");
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = self->priv->progress_reporter;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3__target = self->priv->progress_reporter_target;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = file_number;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = completed_fraction;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ (_tmp4_, _tmp5_, _tmp3__target);
+#line 3689 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_on_upload_complete (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) {
+ gboolean _tmp0_ = FALSE;
+ gint _tmp1_ = 0;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp0_) {
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 3710 "TumblrPublishing.c"
+ }
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = num_published;
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:502: EVENT: uploader reports upload complete; %d" \
+" items published.", _tmp1_);
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = uploader;
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = uploader;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp5_, NULL, FALSE);
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_do_show_success_pane (self);
+#line 3730 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_on_upload_error (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err) {
+ gboolean _tmp0_ = FALSE;
+ GError* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRESTSupportBatchUploader* _tmp3_ = NULL;
+ guint _tmp4_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp5_ = NULL;
+ guint _tmp6_ = 0U;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp0_) {
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 3754 "TumblrPublishing.c"
+ }
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = err;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _tmp1_->message;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:515: EVENT: uploader reports upload error = '%s'" \
+".", _tmp2_);
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = uploader;
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp4_, NULL, FALSE);
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = uploader;
+#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp6_, NULL, FALSE);
+#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = err;
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
+#line 3780 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_do_logout (PublishingTumblrTumblrPublisher* self) {
+ PublishingTumblrTumblrPublisherSession* _tmp0_ = NULL;
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:525: ACTION: logging user out, deauthenticating " \
+"session, and erasing stored credentials");
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_session_deauthenticate (_tmp0_);
+#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_invalidate_persistent_session (self);
+#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->running = FALSE;
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_attempt_start (self);
+#line 3800 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_tumblr_publisher_attempt_start (PublishingTumblrTumblrPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self));
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp0_) {
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 3815 "TumblrPublishing.c"
+ }
+#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:539: TumblrPublisher: starting interaction.");
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->running = TRUE;
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = publishing_tumblr_tumblr_publisher_is_persistent_session_valid (self);
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp1_) {
+#line 3825 "TumblrPublishing.c"
+ PublishingTumblrTumblrPublisherSession* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:543: attempt start: a persistent session is avai" \
+"lable; using it");
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = publishing_tumblr_tumblr_publisher_get_persistent_access_phase_token (self);
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = publishing_tumblr_tumblr_publisher_get_persistent_access_phase_token_secret (self);
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_session_authenticate_from_persistent_credentials (_tmp2_, _tmp4_, _tmp6_);
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp4_);
+#line 3849 "TumblrPublishing.c"
+ } else {
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:548: attempt start: no persistent session availa" \
+"ble; showing login welcome pane");
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_do_show_authentication_pane (self, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_MODE_INTRO);
+#line 3855 "TumblrPublishing.c"
+ }
+}
+
+
+static void publishing_tumblr_tumblr_publisher_real_start (SpitPublishingPublisher* base) {
+ PublishingTumblrTumblrPublisher * self;
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher);
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp0_) {
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 3872 "TumblrPublishing.c"
+ }
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->was_started;
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp1_) {
+#line 3878 "TumblrPublishing.c"
+ const gchar* _tmp2_ = NULL;
+#line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _ ("TumblrPublisher: start( ): can't start; this publisher is not restarta" \
+"ble.");
+#line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_error ("TumblrPublishing.vala:559: %s", _tmp2_);
+#line 3884 "TumblrPublishing.c"
+ }
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:561: TumblrPublisher: starting interaction.");
+#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_attempt_start (self);
+#line 3890 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_real_stop (SpitPublishingPublisher* base) {
+ PublishingTumblrTumblrPublisher * self;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher);
+#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:567: TumblrPublisher: stop( ) invoked.");
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->running = FALSE;
+#line 3902 "TumblrPublishing.c"
+}
+
+
+GType publishing_tumblr_tumblr_publisher_authentication_pane_mode_get_type (void) {
+ static volatile gsize publishing_tumblr_tumblr_publisher_authentication_pane_mode_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_authentication_pane_mode_type_id__volatile)) {
+ static const GEnumValue values[] = {{PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_MODE_INTRO, "PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_MODE_INTRO", "intro"}, {PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER, "PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER", "failed-retry-user"}, {0, NULL, NULL}};
+ GType publishing_tumblr_tumblr_publisher_authentication_pane_mode_type_id;
+ publishing_tumblr_tumblr_publisher_authentication_pane_mode_type_id = g_enum_register_static ("PublishingTumblrTumblrPublisherAuthenticationPaneMode", values);
+ g_once_init_leave (&publishing_tumblr_tumblr_publisher_authentication_pane_mode_type_id__volatile, publishing_tumblr_tumblr_publisher_authentication_pane_mode_type_id);
+ }
+ return publishing_tumblr_tumblr_publisher_authentication_pane_mode_type_id__volatile;
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_authentication_pane_on_user_changed ((PublishingTumblrTumblrPublisherAuthenticationPane*) self);
+#line 3921 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_authentication_pane_on_password_changed ((PublishingTumblrTumblrPublisherAuthenticationPane*) self);
+#line 3928 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_authentication_pane_on_login_button_clicked ((PublishingTumblrTumblrPublisherAuthenticationPane*) self);
+#line 3935 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherAuthenticationPane* publishing_tumblr_tumblr_publisher_authentication_pane_construct (GType object_type, PublishingTumblrTumblrPublisher* publisher, PublishingTumblrTumblrPublisherAuthenticationPaneMode mode) {
+ PublishingTumblrTumblrPublisherAuthenticationPane * self = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (publisher), NULL);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrTumblrPublisherAuthenticationPane*) g_object_new (object_type, NULL);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_object_ref_sink (_tmp0_);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->pane_widget = _tmp0_;
+#line 3955 "TumblrPublishing.c"
+ {
+ GtkBuilder* _tmp1_ = NULL;
+ GtkBuilder* _tmp2_ = NULL;
+ GtkBuilder* _tmp3_ = NULL;
+ GtkAlignment* align = NULL;
+ GtkBuilder* _tmp4_ = NULL;
+ GObject* _tmp5_ = NULL;
+ GtkAlignment* _tmp6_ = NULL;
+ GtkLabel* message_label = NULL;
+ GtkBuilder* _tmp7_ = NULL;
+ GObject* _tmp8_ = NULL;
+ GtkLabel* _tmp9_ = NULL;
+ PublishingTumblrTumblrPublisherAuthenticationPaneMode _tmp10_ = 0;
+ GtkBuilder* _tmp18_ = NULL;
+ GObject* _tmp19_ = NULL;
+ GtkEntry* _tmp20_ = NULL;
+ GtkBuilder* _tmp21_ = NULL;
+ GObject* _tmp22_ = NULL;
+ GtkEntry* _tmp23_ = NULL;
+ GtkBuilder* _tmp24_ = NULL;
+ GObject* _tmp25_ = NULL;
+ GtkButton* _tmp26_ = NULL;
+ GtkEntry* _tmp27_ = NULL;
+ GtkEntry* _tmp28_ = NULL;
+ GtkButton* _tmp29_ = NULL;
+ GtkAlignment* _tmp30_ = NULL;
+ GtkBox* _tmp31_ = NULL;
+ PublishingTumblrTumblrPublisher* _tmp32_ = NULL;
+ SpitPublishingPluginHost* _tmp33_ = NULL;
+ SpitPublishingPluginHost* _tmp34_ = NULL;
+ GtkButton* _tmp35_ = NULL;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = gtk_builder_new ();
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->builder = _tmp1_;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = self->priv->builder;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/tumblr_authentication_pane.ui", &_inner_error_);
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 3999 "TumblrPublishing.c"
+ goto __catch36_g_error;
+ }
+#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = self->priv->builder;
+#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_builder_connect_signals (_tmp3_, NULL);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = self->priv->builder;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = gtk_builder_get_object (_tmp4_, "alignment");
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_alignment_get_type ()) ? ((GtkAlignment*) _tmp5_) : NULL);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ align = _tmp6_;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = self->priv->builder;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = gtk_builder_get_object (_tmp7_, "message_label");
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp8_) : NULL);
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ message_label = _tmp9_;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = mode;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ switch (_tmp10_) {
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ case PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_MODE_INTRO:
+#line 4028 "TumblrPublishing.c"
+ {
+ GtkLabel* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11_ = message_label;
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp12_ = publishing_tumblr_tumblr_publisher_authentication_pane_INTRO_MESSAGE;
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_label_set_text (_tmp11_, _tmp12_);
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ break;
+#line 4040 "TumblrPublishing.c"
+ }
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ case PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER:
+#line 4044 "TumblrPublishing.c"
+ {
+ GtkLabel* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp13_ = message_label;
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14_ = _ ("Invalid User Name or Password");
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp15_ = publishing_tumblr_tumblr_publisher_authentication_pane_FAILED_RETRY_USER_MESSAGE;
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp16_ = g_strdup_printf ("<b>%s</b>\n\n%s", _tmp14_, _tmp15_);
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp17_ = _tmp16_;
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_label_set_markup (_tmp13_, _tmp17_);
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp17_);
+#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ break;
+#line 4067 "TumblrPublishing.c"
+ }
+ default:
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ break;
+#line 4072 "TumblrPublishing.c"
+ }
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp18_ = self->priv->builder;
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp19_ = gtk_builder_get_object (_tmp18_, "username_entry");
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp19_) : NULL);
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->username_entry);
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->username_entry = _tmp20_;
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp21_ = self->priv->builder;
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp22_ = gtk_builder_get_object (_tmp21_, "password_entry");
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp22_) : NULL);
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->password_entry);
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->password_entry = _tmp23_;
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp24_ = self->priv->builder;
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp25_ = gtk_builder_get_object (_tmp24_, "login_button");
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, gtk_button_get_type ()) ? ((GtkButton*) _tmp25_) : NULL);
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->login_button);
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->login_button = _tmp26_;
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp27_ = self->priv->username_entry;
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_tumblr_tumblr_publisher_authentication_pane_on_user_changed_gtk_editable_changed, self, 0);
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp28_ = self->priv->password_entry;
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_tumblr_tumblr_publisher_authentication_pane_on_password_changed_gtk_editable_changed, self, 0);
+#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp29_ = self->priv->login_button;
+#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (_tmp29_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_authentication_pane_on_login_button_clicked_gtk_button_clicked, self, 0);
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp30_ = align;
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp31_ = self->priv->pane_widget;
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_widget_reparent (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget), G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget));
+#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp32_ = publisher;
+#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp33_ = publishing_tumblr_tumblr_publisher_get_host (_tmp32_);
+#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp34_ = _tmp33_;
+#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp35_ = self->priv->login_button;
+#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ spit_publishing_plugin_host_set_dialog_default_widget (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget));
+#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (_tmp34_);
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (message_label);
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (align);
+#line 4138 "TumblrPublishing.c"
+ }
+ goto __finally36;
+ __catch36_g_error:
+ {
+ GError* e = NULL;
+ const gchar* _tmp36_ = NULL;
+ GError* _tmp37_ = NULL;
+ const gchar* _tmp38_ = NULL;
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ e = _inner_error_;
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _inner_error_ = NULL;
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp36_ = _ ("Could not load UI: %s");
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp37_ = e;
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp38_ = _tmp37_->message;
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_warning (_tmp36_, _tmp38_);
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_error_free0 (e);
+#line 4161 "TumblrPublishing.c"
+ }
+ __finally36:
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.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 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return NULL;
+#line 4172 "TumblrPublishing.c"
+ }
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 4176 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherAuthenticationPane* publishing_tumblr_tumblr_publisher_authentication_pane_new (PublishingTumblrTumblrPublisher* publisher, PublishingTumblrTumblrPublisherAuthenticationPaneMode mode) {
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_tumblr_publisher_authentication_pane_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, publisher, mode);
+#line 4183 "TumblrPublishing.c"
+}
+
+
+GtkWidget* publishing_tumblr_tumblr_publisher_authentication_pane_get_default_widget (PublishingTumblrTumblrPublisherAuthenticationPane* self) {
+ GtkWidget* result = NULL;
+ GtkButton* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_AUTHENTICATION_PANE (self), NULL);
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->login_button;
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 4201 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_authentication_pane_on_login_button_clicked (PublishingTumblrTumblrPublisherAuthenticationPane* self) {
+ GtkEntry* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ GtkEntry* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_AUTHENTICATION_PANE (self));
+#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->username_entry;
+#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = gtk_entry_get_text (_tmp0_);
+#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = self->priv->password_entry;
+#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = gtk_entry_get_text (_tmp2_);
+#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_emit_by_name (self, "login", _tmp1_, _tmp3_);
+#line 4222 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_authentication_pane_on_user_changed (PublishingTumblrTumblrPublisherAuthenticationPane* self) {
+#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_AUTHENTICATION_PANE (self));
+#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_authentication_pane_update_login_button_sensitivity (self);
+#line 4231 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_authentication_pane_on_password_changed (PublishingTumblrTumblrPublisherAuthenticationPane* self) {
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_AUTHENTICATION_PANE (self));
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_authentication_pane_update_login_button_sensitivity (self);
+#line 4240 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_authentication_pane_update_login_button_sensitivity (PublishingTumblrTumblrPublisherAuthenticationPane* self) {
+ gboolean _tmp0_ = FALSE;
+ GtkEntry* _tmp1_ = NULL;
+ guint _tmp2_ = 0U;
+ guint _tmp3_ = 0U;
+ GtkButton* _tmp7_ = NULL;
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_AUTHENTICATION_PANE (self));
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->username_entry;
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = gtk_entry_get_text_length (_tmp1_);
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp3_ > ((guint) 0)) {
+#line 4260 "TumblrPublishing.c"
+ GtkEntry* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+ guint _tmp6_ = 0U;
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = self->priv->password_entry;
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = gtk_entry_get_text_length (_tmp4_);
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = _tmp6_ > ((guint) 0);
+#line 4272 "TumblrPublishing.c"
+ } else {
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = FALSE;
+#line 4276 "TumblrPublishing.c"
+ }
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = self->priv->login_button;
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), _tmp0_);
+#line 4282 "TumblrPublishing.c"
+}
+
+
+static GtkWidget* publishing_tumblr_tumblr_publisher_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingTumblrTumblrPublisherAuthenticationPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, PublishingTumblrTumblrPublisherAuthenticationPane);
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 4301 "TumblrPublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_tumblr_tumblr_publisher_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingTumblrTumblrPublisherAuthenticationPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, PublishingTumblrTumblrPublisherAuthenticationPane);
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 4314 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingTumblrTumblrPublisherAuthenticationPane * self;
+ GtkEntry* _tmp0_ = NULL;
+ GtkEntry* _tmp1_ = NULL;
+ GtkButton* _tmp2_ = NULL;
+#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, PublishingTumblrTumblrPublisherAuthenticationPane);
+#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->username_entry;
+#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->password_entry;
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_entry_set_activates_default (_tmp1_, TRUE);
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = self->priv->login_button;
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_authentication_pane_update_login_button_sensitivity (self);
+#line 4339 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingTumblrTumblrPublisherAuthenticationPane * self;
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, PublishingTumblrTumblrPublisherAuthenticationPane);
+#line 4347 "TumblrPublishing.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__STRING_STRING (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__STRING_STRING) (gpointer data1, const char* arg_1, const char* arg_2, gpointer data2);
+ register GMarshalFunc_VOID__STRING_STRING callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (n_param_values == 3);
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ data1 = closure->data;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 4366 "TumblrPublishing.c"
+ } else {
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ data2 = closure->data;
+#line 4372 "TumblrPublishing.c"
+ }
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ callback = (GMarshalFunc_VOID__STRING_STRING) (marshal_data ? marshal_data : cc->callback);
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), data2);
+#line 4378 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_authentication_pane_class_init (PublishingTumblrTumblrPublisherAuthenticationPaneClass * klass) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_authentication_pane_parent_class = g_type_class_peek_parent (klass);
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherAuthenticationPanePrivate));
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_tumblr_tumblr_publisher_authentication_pane_finalize;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_new ("login", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING);
+#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = _ ("Enter the username and password associated with your Tumblr account.");
+#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_authentication_pane_INTRO_MESSAGE = _tmp1_;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _ ("Username and/or password invalid. Please try again");
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_authentication_pane_FAILED_RETRY_USER_MESSAGE = _tmp3_;
+#line 4407 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_tumblr_tumblr_publisher_authentication_pane_real_get_widget;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_tumblr_tumblr_publisher_authentication_pane_real_get_preferred_geometry;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_tumblr_tumblr_publisher_authentication_pane_real_on_pane_installed;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_tumblr_tumblr_publisher_authentication_pane_real_on_pane_uninstalled;
+#line 4422 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_authentication_pane_instance_init (PublishingTumblrTumblrPublisherAuthenticationPane * self) {
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_AUTHENTICATION_PANE_GET_PRIVATE (self);
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 4431 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_authentication_pane_finalize (GObject* obj) {
+ PublishingTumblrTumblrPublisherAuthenticationPane * self;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_AUTHENTICATION_PANE, PublishingTumblrTumblrPublisherAuthenticationPane);
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->username_entry);
+#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->password_entry);
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->login_button);
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ G_OBJECT_CLASS (publishing_tumblr_tumblr_publisher_authentication_pane_parent_class)->finalize (obj);
+#line 4451 "TumblrPublishing.c"
+}
+
+
+/**
+ * The authentication pane used when asking service URL, user name and password
+ * from the user.
+ */
+GType publishing_tumblr_tumblr_publisher_authentication_pane_get_type (void) {
+ static volatile gsize publishing_tumblr_tumblr_publisher_authentication_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_authentication_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherAuthenticationPane), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_authentication_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_tumblr_tumblr_publisher_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_tumblr_tumblr_publisher_authentication_pane_type_id;
+ publishing_tumblr_tumblr_publisher_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingTumblrTumblrPublisherAuthenticationPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_tumblr_tumblr_publisher_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_tumblr_tumblr_publisher_authentication_pane_type_id__volatile, publishing_tumblr_tumblr_publisher_authentication_pane_type_id);
+ }
+ return publishing_tumblr_tumblr_publisher_authentication_pane_type_id__volatile;
+}
+
+
+static gpointer _publishing_tumblr_size_entry_ref0 (gpointer self) {
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self ? publishing_tumblr_size_entry_ref (self) : NULL;
+#line 4476 "TumblrPublishing.c"
+}
+
+
+static PublishingTumblrSizeEntry** _vala_array_dup7 (PublishingTumblrSizeEntry** self, int length) {
+ PublishingTumblrSizeEntry** result;
+ int i;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = g_new0 (PublishingTumblrSizeEntry*, length + 1);
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 4487 "TumblrPublishing.c"
+ PublishingTumblrSizeEntry* _tmp0_ = NULL;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = _publishing_tumblr_size_entry_ref0 (self[i]);
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result[i] = _tmp0_;
+#line 4493 "TumblrPublishing.c"
+ }
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 4497 "TumblrPublishing.c"
+}
+
+
+static gpointer _publishing_tumblr_blog_entry_ref0 (gpointer self) {
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self ? publishing_tumblr_blog_entry_ref (self) : NULL;
+#line 4504 "TumblrPublishing.c"
+}
+
+
+static PublishingTumblrBlogEntry** _vala_array_dup8 (PublishingTumblrBlogEntry** self, int length) {
+ PublishingTumblrBlogEntry** result;
+ int i;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = g_new0 (PublishingTumblrBlogEntry*, length + 1);
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 4515 "TumblrPublishing.c"
+ PublishingTumblrBlogEntry* _tmp0_ = NULL;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = _publishing_tumblr_blog_entry_ref0 (self[i]);
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result[i] = _tmp0_;
+#line 4521 "TumblrPublishing.c"
+ }
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 4525 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
+#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self);
+#line 4532 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self);
+#line 4539 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self);
+#line 4546 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self);
+#line 4553 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_tumblr_tumblr_publisher_publishing_options_pane_construct (GType object_type, PublishingTumblrTumblrPublisher* publisher, SpitPublishingPublisherMediaType media_type, PublishingTumblrSizeEntry** sizes, int sizes_length1, PublishingTumblrBlogEntry** blogs, int blogs_length1, const gchar* username) {
+ PublishingTumblrTumblrPublisherPublishingOptionsPane * self = NULL;
+ GtkBox* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ PublishingTumblrTumblrPublisher* _tmp3_ = NULL;
+ PublishingTumblrTumblrPublisher* _tmp4_ = NULL;
+ SpitPublishingPublisherMediaType _tmp5_ = 0;
+ PublishingTumblrSizeEntry** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ PublishingTumblrSizeEntry** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ PublishingTumblrBlogEntry** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ PublishingTumblrBlogEntry** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ GError * _inner_error_ = NULL;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (publisher), NULL);
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (username != NULL, NULL);
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrTumblrPublisherPublishingOptionsPane*) g_object_new (object_type, NULL);
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_object_ref_sink (_tmp0_);
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->pane_widget = _tmp0_;
+#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = username;
+#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->username = _tmp2_;
+#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = publisher;
+#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = _g_object_ref0 (_tmp3_);
+#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->publisher);
+#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->publisher = _tmp4_;
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = media_type;
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->media_type = _tmp5_;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = sizes;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6__length1 = sizes_length1;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = (_tmp6_ != NULL) ? _vala_array_dup7 (_tmp6_, _tmp6__length1) : ((gpointer) _tmp6_);
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7__length1 = _tmp6__length1;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL);
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes = _tmp7_;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes_length1 = _tmp7__length1;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->_sizes_size_ = self->priv->sizes_length1;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = blogs;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8__length1 = blogs_length1;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup8 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9__length1 = _tmp8__length1;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL);
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs = _tmp9_;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs_length1 = _tmp9__length1;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->_blogs_size_ = self->priv->blogs_length1;
+#line 4640 "TumblrPublishing.c"
+ {
+ GtkBuilder* _tmp10_ = NULL;
+ GtkBuilder* _tmp11_ = NULL;
+ GtkBuilder* _tmp12_ = NULL;
+ GtkBuilder* _tmp13_ = NULL;
+ GObject* _tmp14_ = NULL;
+ GtkBox* _tmp15_ = NULL;
+ GtkBuilder* _tmp16_ = NULL;
+ GObject* _tmp17_ = NULL;
+ GtkLabel* _tmp18_ = NULL;
+ GtkBuilder* _tmp19_ = NULL;
+ GObject* _tmp20_ = NULL;
+ GtkButton* _tmp21_ = NULL;
+ GtkBuilder* _tmp22_ = NULL;
+ GObject* _tmp23_ = NULL;
+ GtkButton* _tmp24_ = NULL;
+ GtkBuilder* _tmp25_ = NULL;
+ GObject* _tmp26_ = NULL;
+ GtkComboBoxText* _tmp27_ = NULL;
+ GtkBuilder* _tmp28_ = NULL;
+ GObject* _tmp29_ = NULL;
+ GtkLabel* _tmp30_ = NULL;
+ GtkBuilder* _tmp31_ = NULL;
+ GObject* _tmp32_ = NULL;
+ GtkComboBoxText* _tmp33_ = NULL;
+ GtkBuilder* _tmp34_ = NULL;
+ GObject* _tmp35_ = NULL;
+ GtkLabel* _tmp36_ = NULL;
+ gchar* upload_label_text = NULL;
+ const gchar* _tmp37_ = NULL;
+ const gchar* _tmp38_ = NULL;
+ gchar* _tmp39_ = NULL;
+ GtkLabel* _tmp40_ = NULL;
+ const gchar* _tmp41_ = NULL;
+ GtkComboBoxText* _tmp42_ = NULL;
+ SpitPublishingPublisherMediaType _tmp43_ = 0;
+ GtkButton* _tmp47_ = NULL;
+ GtkButton* _tmp48_ = NULL;
+#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = gtk_builder_new ();
+#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->builder = _tmp10_;
+#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11_ = self->priv->builder;
+#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_builder_add_from_resource (_tmp11_, PLUGIN_RESOURCE_PATH "/tumblr_publishing_options_pane.ui", &_inner_error_);
+#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 4691 "TumblrPublishing.c"
+ goto __catch37_g_error;
+ }
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp12_ = self->priv->builder;
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_builder_connect_signals (_tmp12_, NULL);
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp13_ = self->priv->builder;
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14_ = gtk_builder_get_object (_tmp13_, "tumblr_pane");
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_box_get_type (), GtkBox));
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->pane_widget = _tmp15_;
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp16_ = self->priv->builder;
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp17_ = gtk_builder_get_object (_tmp16_, "upload_info_label");
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_label_get_type (), GtkLabel));
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->upload_info_label);
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->upload_info_label = _tmp18_;
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp19_ = self->priv->builder;
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp20_ = gtk_builder_get_object (_tmp19_, "logout_button");
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_button_get_type (), GtkButton));
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->logout_button = _tmp21_;
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp22_ = self->priv->builder;
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp23_ = gtk_builder_get_object (_tmp22_, "publish_button");
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_button_get_type (), GtkButton));
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->publish_button = _tmp24_;
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp25_ = self->priv->builder;
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp26_ = gtk_builder_get_object (_tmp25_, "size_combo");
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_combo_box_text_get_type (), GtkComboBoxText));
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->size_combo);
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->size_combo = _tmp27_;
+#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp28_ = self->priv->builder;
+#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp29_ = gtk_builder_get_object (_tmp28_, "size_label");
+#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_label_get_type (), GtkLabel));
+#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->size_label);
+#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->size_label = _tmp30_;
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp31_ = self->priv->builder;
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp32_ = gtk_builder_get_object (_tmp31_, "blog_combo");
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_combo_box_text_get_type (), GtkComboBoxText));
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->blog_combo);
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blog_combo = _tmp33_;
+#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp34_ = self->priv->builder;
+#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp35_ = gtk_builder_get_object (_tmp34_, "blog_label");
+#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_label_get_type (), GtkLabel));
+#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->blog_label);
+#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blog_label = _tmp36_;
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp37_ = _ ("You are logged into Tumblr as %s.\n\n");
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp38_ = self->priv->username;
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp39_ = g_strdup_printf (_tmp37_, _tmp38_);
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ upload_label_text = _tmp39_;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp40_ = self->priv->upload_info_label;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp41_ = upload_label_text;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_label_set_label (_tmp40_, _tmp41_);
+#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (self);
+#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp42_ = self->priv->blog_combo;
+#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed_gtk_combo_box_changed, self, 0);
+#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp43_ = media_type;
+#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp43_ != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 4802 "TumblrPublishing.c"
+ GtkComboBoxText* _tmp44_ = NULL;
+#line 741 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (self);
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp44_ = self->priv->size_combo;
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed_gtk_combo_box_changed, self, 0);
+#line 4810 "TumblrPublishing.c"
+ } else {
+ GtkComboBoxText* _tmp45_ = NULL;
+ GtkLabel* _tmp46_ = NULL;
+#line 745 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp45_ = self->priv->size_combo;
+#line 745 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp46_ = self->priv->size_label;
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 4822 "TumblrPublishing.c"
+ }
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp47_ = self->priv->logout_button;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (_tmp47_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0);
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp48_ = self->priv->publish_button;
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (_tmp48_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0);
+#line 717 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (upload_label_text);
+#line 4834 "TumblrPublishing.c"
+ }
+ goto __finally37;
+ __catch37_g_error:
+ {
+ GError* e = NULL;
+ const gchar* _tmp49_ = NULL;
+ GError* _tmp50_ = NULL;
+ const gchar* _tmp51_ = NULL;
+#line 717 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ e = _inner_error_;
+#line 717 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _inner_error_ = NULL;
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp49_ = _ ("Could not load UI: %s");
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp50_ = e;
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp51_ = _tmp50_->message;
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_warning (_tmp49_, _tmp51_);
+#line 717 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_error_free0 (e);
+#line 4857 "TumblrPublishing.c"
+ }
+ __finally37:
+#line 717 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 717 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.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 717 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 717 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return NULL;
+#line 4868 "TumblrPublishing.c"
+ }
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 4872 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_tumblr_tumblr_publisher_publishing_options_pane_new (PublishingTumblrTumblrPublisher* publisher, SpitPublishingPublisherMediaType media_type, PublishingTumblrSizeEntry** sizes, int sizes_length1, PublishingTumblrBlogEntry** blogs, int blogs_length1, const gchar* username) {
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_tumblr_publisher_publishing_options_pane_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, publisher, media_type, sizes, sizes_length1, blogs, blogs_length1, username);
+#line 4879 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) {
+#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 4888 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) {
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_emit_by_name (self, "publish");
+#line 4897 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) {
+ PublishingTumblrBlogEntry** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->blogs;
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0__length1 = self->priv->blogs_length1;
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp0_ != NULL) {
+#line 4912 "TumblrPublishing.c"
+ PublishingTumblrBlogEntry** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ GtkComboBoxText* _tmp6_ = NULL;
+ PublishingTumblrTumblrPublisher* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->blogs;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1__length1 = self->priv->blogs_length1;
+#line 4922 "TumblrPublishing.c"
+ {
+ PublishingTumblrBlogEntry** b_collection = NULL;
+ gint b_collection_length1 = 0;
+ gint _b_collection_size_ = 0;
+ gint b_it = 0;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ b_collection = _tmp1_;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ b_collection_length1 = _tmp1__length1;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (b_it = 0; b_it < _tmp1__length1; b_it = b_it + 1) {
+#line 4934 "TumblrPublishing.c"
+ PublishingTumblrBlogEntry* _tmp2_ = NULL;
+ PublishingTumblrBlogEntry* b = NULL;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _publishing_tumblr_blog_entry_ref0 (b_collection[b_it]);
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ b = _tmp2_;
+#line 4941 "TumblrPublishing.c"
+ {
+ GtkComboBoxText* _tmp3_ = NULL;
+ PublishingTumblrBlogEntry* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = self->priv->blog_combo;
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = b;
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _tmp4_->blog;
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp3_, _tmp5_);
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_tumblr_blog_entry_unref0 (b);
+#line 4956 "TumblrPublishing.c"
+ }
+ }
+ }
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = self->priv->blog_combo;
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = self->priv->publisher;
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = publishing_tumblr_tumblr_publisher_get_persistent_default_blog (_tmp7_);
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), _tmp8_);
+#line 4968 "TumblrPublishing.c"
+ }
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) {
+ PublishingTumblrTumblrPublisher* _tmp0_ = NULL;
+ GtkComboBoxText* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->publisher;
+#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->blog_combo;
+#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
+#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_set_persistent_default_blog (_tmp0_, _tmp2_);
+#line 4987 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) {
+ PublishingTumblrSizeEntry** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->sizes;
+#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0__length1 = self->priv->sizes_length1;
+#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp0_ != NULL) {
+#line 5002 "TumblrPublishing.c"
+ PublishingTumblrSizeEntry** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ GtkComboBoxText* _tmp6_ = NULL;
+ PublishingTumblrTumblrPublisher* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->sizes;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1__length1 = self->priv->sizes_length1;
+#line 5012 "TumblrPublishing.c"
+ {
+ PublishingTumblrSizeEntry** e_collection = NULL;
+ gint e_collection_length1 = 0;
+ gint _e_collection_size_ = 0;
+ gint e_it = 0;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ e_collection = _tmp1_;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ e_collection_length1 = _tmp1__length1;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (e_it = 0; e_it < _tmp1__length1; e_it = e_it + 1) {
+#line 5024 "TumblrPublishing.c"
+ PublishingTumblrSizeEntry* _tmp2_ = NULL;
+ PublishingTumblrSizeEntry* e = NULL;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _publishing_tumblr_size_entry_ref0 (e_collection[e_it]);
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ e = _tmp2_;
+#line 5031 "TumblrPublishing.c"
+ {
+ GtkComboBoxText* _tmp3_ = NULL;
+ PublishingTumblrSizeEntry* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = self->priv->size_combo;
+#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = e;
+#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _tmp4_->title;
+#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp3_, _tmp5_);
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_tumblr_size_entry_unref0 (e);
+#line 5046 "TumblrPublishing.c"
+ }
+ }
+ }
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = self->priv->size_combo;
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = self->priv->publisher;
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = publishing_tumblr_tumblr_publisher_get_persistent_default_size (_tmp7_);
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), _tmp8_);
+#line 5058 "TumblrPublishing.c"
+ }
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) {
+ PublishingTumblrTumblrPublisher* _tmp0_ = NULL;
+ GtkComboBoxText* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->publisher;
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->size_combo;
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_set_persistent_default_size (_tmp0_, _tmp2_);
+#line 5077 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) {
+#line 796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_emit_by_name (self, "publish");
+#line 5086 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) {
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 5095 "TumblrPublishing.c"
+}
+
+
+static GtkWidget* publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingTumblrTumblrPublisherPublishingOptionsPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane);
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 5114 "TumblrPublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingTumblrTumblrPublisherPublishingOptionsPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane);
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 5127 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, gpointer self) {
+#line 813 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self);
+#line 5134 "TumblrPublishing.c"
+}
+
+
+static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, gpointer self) {
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self);
+#line 5141 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingTumblrTumblrPublisherPublishingOptionsPane * self;
+#line 812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane);
+#line 813 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (self, "publish", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish, self, 0);
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_connect_object (self, "logout", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout, self, 0);
+#line 5153 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingTumblrTumblrPublisherPublishingOptionsPane * self;
+ guint _tmp0_ = 0U;
+ guint _tmp1_ = 0U;
+#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane);
+#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE);
+#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish, self);
+#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE);
+#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout, self);
+#line 5171 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_class_init (PublishingTumblrTumblrPublisherPublishingOptionsPaneClass * klass) {
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_parent_class = g_type_class_peek_parent (klass);
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate));
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize;
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_new ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_new ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 5186 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_widget;
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_preferred_geometry;
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed;
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled;
+#line 5201 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_instance_init (PublishingTumblrTumblrPublisherPublishingOptionsPane * self) {
+ gchar* _tmp0_ = NULL;
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self);
+#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->upload_info_label = NULL;
+#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->size_label = NULL;
+#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blog_label = NULL;
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->logout_button = NULL;
+#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->publish_button = NULL;
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->size_combo = NULL;
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blog_combo = NULL;
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes = NULL;
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes_length1 = 0;
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->_sizes_size_ = self->priv->sizes_length1;
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs = NULL;
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs_length1 = 0;
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->_blogs_size_ = self->priv->blogs_length1;
+#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = g_strdup ("");
+#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->username = _tmp0_;
+#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->publisher = NULL;
+#line 5243 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize (GObject* obj) {
+ PublishingTumblrTumblrPublisherPublishingOptionsPane * self;
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane);
+#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->upload_info_label);
+#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->size_label);
+#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->blog_label);
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->size_combo);
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->blog_combo);
+#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL);
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL);
+#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->publisher);
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ G_OBJECT_CLASS (publishing_tumblr_tumblr_publisher_publishing_options_pane_parent_class)->finalize (obj);
+#line 5279 "TumblrPublishing.c"
+}
+
+
+/**
+ * The publishing options pane.
+ */
+GType publishing_tumblr_tumblr_publisher_publishing_options_pane_get_type (void) {
+ static volatile gsize publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_publishing_options_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id;
+ publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingTumblrTumblrPublisherPublishingOptionsPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id__volatile, publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id);
+ }
+ return publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id__volatile;
+}
+
+
+PublishingTumblrTumblrPublisherTransaction* publishing_tumblr_tumblr_publisher_transaction_construct (GType object_type, PublishingTumblrTumblrPublisherSession* session, PublishingRESTSupportHttpMethod method) {
+ PublishingTumblrTumblrPublisherTransaction* self = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp0_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp1_ = 0;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (session), NULL);
+#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = session;
+#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = method;
+#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrTumblrPublisherTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 5314 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherTransaction* publishing_tumblr_tumblr_publisher_transaction_new (PublishingTumblrTumblrPublisherSession* session, PublishingRESTSupportHttpMethod method) {
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_tumblr_publisher_transaction_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION, session, method);
+#line 5321 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherTransaction* publishing_tumblr_tumblr_publisher_transaction_construct_with_uri (GType object_type, PublishingTumblrTumblrPublisherSession* session, const gchar* uri, PublishingRESTSupportHttpMethod method) {
+ PublishingTumblrTumblrPublisherTransaction* self = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp2_ = 0;
+ PublishingTumblrTumblrPublisherSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+#line 832 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (session), NULL);
+#line 832 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (uri != NULL, NULL);
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = session;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = uri;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = method;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrTumblrPublisherTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp2_);
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = session;
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = publishing_tumblr_tumblr_publisher_session_get_oauth_nonce (_tmp3_);
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_nonce", _tmp5_);
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_signature_method", "HMAC-SHA1");
+#line 838 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_version", "1.0");
+#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = session;
+#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = publishing_tumblr_tumblr_publisher_session_get_oauth_timestamp (_tmp6_);
+#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_timestamp", _tmp8_);
+#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_consumer_key", PUBLISHING_TUMBLR_API_KEY);
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = session;
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = publishing_tumblr_tumblr_publisher_session_get_access_phase_token (_tmp9_);
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp12_ = _tmp11_ != NULL;
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp11_);
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp12_) {
+#line 5390 "TumblrPublishing.c"
+ PublishingTumblrTumblrPublisherSession* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp13_ = session;
+#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14_ = publishing_tumblr_tumblr_publisher_session_get_access_phase_token (_tmp13_);
+#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp15_ = _tmp14_;
+#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_token", _tmp15_);
+#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp15_);
+#line 5404 "TumblrPublishing.c"
+ }
+#line 832 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 5408 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherTransaction* publishing_tumblr_tumblr_publisher_transaction_new_with_uri (PublishingTumblrTumblrPublisherSession* session, const gchar* uri, PublishingRESTSupportHttpMethod method) {
+#line 832 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_tumblr_publisher_transaction_construct_with_uri (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION, session, uri, method);
+#line 5415 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) {
+ PublishingTumblrTumblrPublisherTransaction * self;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp1_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION, PublishingTumblrTumblrPublisherTransaction);
+#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION, PublishingTumblrTumblrPublisherSession);
+#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_session_sign_transaction (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_tumblr_tumblr_publisher_transaction_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 5444 "TumblrPublishing.c"
+ } else {
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.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 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 5452 "TumblrPublishing.c"
+ }
+ }
+}
+
+
+static void publishing_tumblr_tumblr_publisher_transaction_class_init (PublishingTumblrTumblrPublisherTransactionClass * klass) {
+#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->execute = publishing_tumblr_tumblr_publisher_transaction_real_execute;
+#line 5463 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_transaction_instance_init (PublishingTumblrTumblrPublisherTransaction * self) {
+}
+
+
+GType publishing_tumblr_tumblr_publisher_transaction_get_type (void) {
+ static volatile gsize publishing_tumblr_tumblr_publisher_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherTransaction), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_transaction_instance_init, NULL };
+ GType publishing_tumblr_tumblr_publisher_transaction_type_id;
+ publishing_tumblr_tumblr_publisher_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingTumblrTumblrPublisherTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_tumblr_tumblr_publisher_transaction_type_id__volatile, publishing_tumblr_tumblr_publisher_transaction_type_id);
+ }
+ return publishing_tumblr_tumblr_publisher_transaction_type_id__volatile;
+}
+
+
+PublishingTumblrTumblrPublisherAccessTokenFetchTransaction* publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_construct (GType object_type, PublishingTumblrTumblrPublisherSession* session, const gchar* username, const gchar* password) {
+ PublishingTumblrTumblrPublisherAccessTokenFetchTransaction* self = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (session), NULL);
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (username != NULL, NULL);
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (password != NULL, NULL);
+#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = session;
+#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrTumblrPublisherAccessTokenFetchTransaction*) publishing_tumblr_tumblr_publisher_transaction_construct_with_uri (object_type, _tmp0_, "https://www.tumblr.com/oauth/access_token", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = username;
+#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = soup_uri_encode (_tmp1_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA);
+#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "x_auth_username", _tmp3_);
+#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = password;
+#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "x_auth_password", _tmp4_);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "x_auth_mode", "client_auth");
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 5518 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherAccessTokenFetchTransaction* publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_new (PublishingTumblrTumblrPublisherSession* session, const gchar* username, const gchar* password) {
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, session, username, password);
+#line 5525 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_class_init (PublishingTumblrTumblrPublisherAccessTokenFetchTransactionClass * klass) {
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 5532 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_instance_init (PublishingTumblrTumblrPublisherAccessTokenFetchTransaction * self) {
+}
+
+
+GType publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_get_type (void) {
+ static volatile gsize publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherAccessTokenFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherAccessTokenFetchTransaction), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_instance_init, NULL };
+ GType publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_type_id;
+ publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_type_id = g_type_register_static (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION, "PublishingTumblrTumblrPublisherAccessTokenFetchTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_type_id__volatile, publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_type_id);
+ }
+ return publishing_tumblr_tumblr_publisher_access_token_fetch_transaction_type_id__volatile;
+}
+
+
+PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (GType object_type, PublishingTumblrTumblrPublisherSession* session) {
+ PublishingTumblrTumblrPublisherUserInfoFetchTransaction* self = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp0_ = NULL;
+#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (session), NULL);
+#line 867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = session;
+#line 867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrTumblrPublisherUserInfoFetchTransaction*) publishing_tumblr_tumblr_publisher_transaction_construct_with_uri (object_type, _tmp0_, "http://api.tumblr.com/v2/user/info", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 5563 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_new (PublishingTumblrTumblrPublisherSession* session) {
+#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION, session);
+#line 5570 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_class_init (PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass * klass) {
+#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 5577 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_instance_init (PublishingTumblrTumblrPublisherUserInfoFetchTransaction * self) {
+}
+
+
+GType publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_get_type (void) {
+ static volatile gsize publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherUserInfoFetchTransaction), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_instance_init, NULL };
+ GType publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id;
+ publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id = g_type_register_static (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_TRANSACTION, "PublishingTumblrTumblrPublisherUserInfoFetchTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id__volatile, publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id);
+ }
+ return publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id__volatile;
+}
+
+
+static gchar* publishing_tumblr_tumblr_publisher_upload_transaction_encode (PublishingTumblrTumblrPublisherUploadTransaction* self, guint8* data, int data_length1) {
+ gchar* result = NULL;
+ GString* s = NULL;
+ GString* _tmp0_ = NULL;
+ gchar* bytes = NULL;
+ gchar* _tmp1_ = NULL;
+ gint bytes_length1 = 0;
+ gint _bytes_size_ = 0;
+ gchar* _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ gchar _tmp3_ = '\0';
+ guint8* _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ GString* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION (self), NULL);
+#line 880 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = g_string_new ("");
+#line 880 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ s = _tmp0_;
+#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = g_new0 (gchar, 2);
+#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ bytes = _tmp1_;
+#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ bytes_length1 = 2;
+#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _bytes_size_ = bytes_length1;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = bytes;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2__length1 = bytes_length1;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_[1] = (gchar) 0;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = _tmp2_[1];
+#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = data;
+#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4__length1 = data_length1;
+#line 5639 "TumblrPublishing.c"
+ {
+ guint8* byte_collection = NULL;
+ gint byte_collection_length1 = 0;
+ gint _byte_collection_size_ = 0;
+ gint byte_it = 0;
+#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ byte_collection = _tmp4_;
+#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ byte_collection_length1 = _tmp4__length1;
+#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (byte_it = 0; byte_it < _tmp4__length1; byte_it = byte_it + 1) {
+#line 5651 "TumblrPublishing.c"
+ guint8 byte = 0U;
+#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ byte = byte_collection[byte_it];
+#line 5655 "TumblrPublishing.c"
+ {
+ guint8 _tmp5_ = 0U;
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = byte;
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (((gint) _tmp5_) == 0) {
+#line 5662 "TumblrPublishing.c"
+ GString* _tmp6_ = NULL;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = s;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_string_append (_tmp6_, "%00");
+#line 5668 "TumblrPublishing.c"
+ } else {
+ gchar* _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ guint8 _tmp8_ = 0U;
+ gchar _tmp9_ = '\0';
+ GString* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gint _tmp11__length1 = 0;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = bytes;
+#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7__length1 = bytes_length1;
+#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = byte;
+#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_[0] = (gchar) _tmp8_;
+#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = _tmp7_[0];
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = s;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11_ = bytes;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11__length1 = bytes_length1;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp12_ = soup_uri_encode ((const gchar*) _tmp11_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA);
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_string_append (_tmp10_, _tmp13_);
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp13_);
+#line 5703 "TumblrPublishing.c"
+ }
+ }
+ }
+ }
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14_ = s;
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp15_ = _tmp14_->str;
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp16_ = g_strdup (_tmp15_);
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp16_;
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ bytes = (g_free (bytes), NULL);
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_string_free0 (s);
+#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 5722 "TumblrPublishing.c"
+}
+
+
+static gpointer _publishing_rest_support_session_ref0 (gpointer self) {
+#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self ? publishing_rest_support_session_ref (self) : NULL;
+#line 5729 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, PublishingTumblrTumblrPublisherSession* session, SpitPublishingPublishable* publishable, const gchar* blog_url) {
+ PublishingTumblrTumblrPublisherUploadTransaction* self = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp0_ = NULL;
+ SpitPublishingPublishable* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp5_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp6_ = NULL;
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (session), NULL);
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (blog_url != NULL, NULL);
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:897: Init upload transaction");
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = session;
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = publishable;
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = blog_url;
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = g_strdup_printf ("http://api.tumblr.com/v2/blog/%s/post", _tmp2_);
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrTumblrPublisherUploadTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp4_);
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp4_);
+#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = session;
+#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = _publishing_rest_support_session_ref0 (_tmp5_);
+#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->session = _tmp6_;
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 5774 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_new (PublishingTumblrTumblrPublisherSession* session, SpitPublishingPublishable* publishable, const gchar* blog_url) {
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_tumblr_publisher_upload_transaction_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, session, publishable, blog_url);
+#line 5781 "TumblrPublishing.c"
+}
+
+
+static void _vala_array_add22 (PublishingRESTSupportArgument*** array, int* length, int* size, PublishingRESTSupportArgument* value) {
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1);
+#line 5792 "TumblrPublishing.c"
+ }
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 5798 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_tumblr_publisher_upload_transaction_add_authorization_header_field (PublishingTumblrTumblrPublisherUploadTransaction* self, const gchar* key, const gchar* value) {
+ PublishingRESTSupportArgument** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRESTSupportArgument* _tmp3_ = NULL;
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION (self));
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (key != NULL);
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (value != NULL);
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->auth_header_fields;
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0__length1 = self->priv->auth_header_fields_length1;
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = key;
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = value;
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = publishing_rest_support_argument_new (_tmp1_, _tmp2_);
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _vala_array_add22 (&self->priv->auth_header_fields, &self->priv->auth_header_fields_length1, &self->priv->_auth_header_fields_size_, _tmp3_);
+#line 5826 "TumblrPublishing.c"
+}
+
+
+static gpointer _publishing_rest_support_argument_ref0 (gpointer self) {
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self ? publishing_rest_support_argument_ref (self) : NULL;
+#line 5833 "TumblrPublishing.c"
+}
+
+
+static PublishingRESTSupportArgument** _vala_array_dup9 (PublishingRESTSupportArgument** self, int length) {
+ PublishingRESTSupportArgument** result;
+ int i;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = g_new0 (PublishingRESTSupportArgument*, length + 1);
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 5844 "TumblrPublishing.c"
+ PublishingRESTSupportArgument* _tmp0_ = NULL;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = _publishing_rest_support_argument_ref0 (self[i]);
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result[i] = _tmp0_;
+#line 5850 "TumblrPublishing.c"
+ }
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 5854 "TumblrPublishing.c"
+}
+
+
+PublishingRESTSupportArgument** publishing_tumblr_tumblr_publisher_upload_transaction_get_authorization_header_fields (PublishingTumblrTumblrPublisherUploadTransaction* self, int* result_length1) {
+ PublishingRESTSupportArgument** result = NULL;
+ PublishingRESTSupportArgument** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingRESTSupportArgument** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingRESTSupportArgument** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION (self), NULL);
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->auth_header_fields;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0__length1 = self->priv->auth_header_fields_length1;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup9 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2__length1 = _tmp1__length1;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (result_length1) {
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *result_length1 = _tmp2__length1;
+#line 5884 "TumblrPublishing.c"
+ }
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp2_;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 5890 "TumblrPublishing.c"
+}
+
+
+gchar* publishing_tumblr_tumblr_publisher_upload_transaction_get_authorization_header_string (PublishingTumblrTumblrPublisherUploadTransaction* self) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ gchar* _tmp0_ = NULL;
+#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION (self), NULL);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = g_strdup ("OAuth ");
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _result_ = _tmp0_;
+#line 5904 "TumblrPublishing.c"
+ {
+ gint i = 0;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ i = 0;
+#line 5909 "TumblrPublishing.c"
+ {
+ gboolean _tmp1_ = FALSE;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = TRUE;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ while (TRUE) {
+#line 5916 "TumblrPublishing.c"
+ gint _tmp3_ = 0;
+ PublishingRESTSupportArgument** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp5_ = NULL;
+ PublishingRESTSupportArgument** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ gint _tmp7_ = 0;
+ PublishingRESTSupportArgument* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ PublishingRESTSupportArgument** _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ gint _tmp15_ = 0;
+ PublishingRESTSupportArgument* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ PublishingRESTSupportArgument** _tmp24_ = NULL;
+ gint _tmp24__length1 = 0;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp1_) {
+#line 5945 "TumblrPublishing.c"
+ gint _tmp2_ = 0;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = i;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ i = _tmp2_ + 1;
+#line 5951 "TumblrPublishing.c"
+ }
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = FALSE;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = i;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = self->priv->auth_header_fields;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4__length1 = self->priv->auth_header_fields_length1;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!(_tmp3_ < _tmp4__length1)) {
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ break;
+#line 5965 "TumblrPublishing.c"
+ }
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _result_;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = self->priv->auth_header_fields;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6__length1 = self->priv->auth_header_fields_length1;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = i;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = _tmp6_[_tmp7_];
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = _tmp8_->key;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = g_strconcat (_tmp5_, _tmp9_, NULL);
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_result_);
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _result_ = _tmp10_;
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11_ = _result_;
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp12_ = g_strconcat (_tmp11_, "=", NULL);
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_result_);
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _result_ = _tmp12_;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp13_ = _result_;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14_ = self->priv->auth_header_fields;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14__length1 = self->priv->auth_header_fields_length1;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp15_ = i;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp16_ = _tmp14_[_tmp15_];
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp17_ = _tmp16_->value;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp18_ = g_strconcat ("\"", _tmp17_, NULL);
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp19_ = _tmp18_;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp20_ = g_strconcat (_tmp19_, "\"", NULL);
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp21_ = _tmp20_;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp22_ = g_strconcat (_tmp13_, _tmp21_, NULL);
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_result_);
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _result_ = _tmp22_;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp21_);
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp19_);
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp23_ = i;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp24_ = self->priv->auth_header_fields;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp24__length1 = self->priv->auth_header_fields_length1;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp23_ < (_tmp24__length1 - 1)) {
+#line 6031 "TumblrPublishing.c"
+ const gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp25_ = _result_;
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp26_ = g_strconcat (_tmp25_, ", ", NULL);
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_result_);
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _result_ = _tmp26_;
+#line 6042 "TumblrPublishing.c"
+ }
+ }
+ }
+ }
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _result_;
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 6051 "TumblrPublishing.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 6095 "TumblrPublishing.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 6101 "TumblrPublishing.c"
+}
+
+
+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 6118 "TumblrPublishing.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 6128 "TumblrPublishing.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 6138 "TumblrPublishing.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 6144 "TumblrPublishing.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 6155 "TumblrPublishing.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 6167 "TumblrPublishing.c"
+ } else {
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = FALSE;
+#line 6171 "TumblrPublishing.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp5_;
+#line 6175 "TumblrPublishing.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp1_) {
+#line 6179 "TumblrPublishing.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 6202 "TumblrPublishing.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 6211 "TumblrPublishing.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 6224 "TumblrPublishing.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 6230 "TumblrPublishing.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 6240 "TumblrPublishing.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 6252 "TumblrPublishing.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 6256 "TumblrPublishing.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 6262 "TumblrPublishing.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 6273 "TumblrPublishing.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 6288 "TumblrPublishing.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = FALSE;
+#line 6292 "TumblrPublishing.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = _tmp16_;
+#line 6296 "TumblrPublishing.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 6302 "TumblrPublishing.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 6314 "TumblrPublishing.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 6335 "TumblrPublishing.c"
+ } else {
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = 0;
+#line 6339 "TumblrPublishing.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 6345 "TumblrPublishing.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 6352 "TumblrPublishing.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 6360 "TumblrPublishing.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 6398 "TumblrPublishing.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 6407 "TumblrPublishing.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 6423 "TumblrPublishing.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 6429 "TumblrPublishing.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 6443 "TumblrPublishing.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 6463 "TumblrPublishing.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 6478 "TumblrPublishing.c"
+ } else {
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp53_ = "";
+#line 6482 "TumblrPublishing.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 6490 "TumblrPublishing.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 6501 "TumblrPublishing.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 6510 "TumblrPublishing.c"
+ }
+}
+
+
+static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) {
+ PublishingTumblrTumblrPublisherUploadTransaction * self;
+ PublishingTumblrTumblrPublisherSession* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* payload = NULL;
+ gsize payload_length = 0UL;
+ PublishingTumblrTumblrPublisherSession* _tmp34_ = NULL;
+ gchar* authorization_header = NULL;
+ gchar* _tmp35_ = NULL;
+ const gchar* _tmp36_ = NULL;
+ const gchar* _tmp37_ = NULL;
+ PublishingRESTSupportArgument** request_arguments = NULL;
+ gint _tmp38_ = 0;
+ PublishingRESTSupportArgument** _tmp39_ = NULL;
+ gint request_arguments_length1 = 0;
+ gint _request_arguments_size_ = 0;
+ PublishingRESTSupportArgument** _tmp40_ = NULL;
+ gint _tmp40__length1 = 0;
+ gchar* request_data = NULL;
+ gchar* _tmp41_ = NULL;
+ SoupMessage* outbound_message = NULL;
+ gchar* _tmp64_ = NULL;
+ gchar* _tmp65_ = NULL;
+ SoupMessage* _tmp66_ = NULL;
+ SoupMessage* _tmp67_ = NULL;
+ SoupMessage* _tmp68_ = NULL;
+ const gchar* _tmp69_ = NULL;
+ guint8* _tmp70_ = NULL;
+ gint _tmp70__length1 = 0;
+ guint8* _tmp71_ = NULL;
+ gint _tmp71__length1 = 0;
+ GeeMapIterator* i = NULL;
+ GeeHashMap* _tmp72_ = NULL;
+ GeeMapIterator* _tmp73_ = NULL;
+ gboolean cont = FALSE;
+ GeeMapIterator* _tmp74_ = NULL;
+ gboolean _tmp75_ = FALSE;
+ SoupMessage* _tmp87_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransaction);
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = publishing_tumblr_tumblr_publisher_session_get_oauth_nonce (_tmp0_);
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_upload_transaction_add_authorization_header_field (self, "oauth_nonce", _tmp2_);
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp2_);
+#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_upload_transaction_add_authorization_header_field (self, "oauth_signature_method", "HMAC-SHA1");
+#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_upload_transaction_add_authorization_header_field (self, "oauth_version", "1.0");
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = self->priv->session;
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = publishing_tumblr_tumblr_publisher_session_get_oauth_timestamp (_tmp3_);
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_upload_transaction_add_authorization_header_field (self, "oauth_timestamp", _tmp5_);
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_upload_transaction_add_authorization_header_field (self, "oauth_consumer_key", PUBLISHING_TUMBLR_API_KEY);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = self->priv->session;
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = publishing_tumblr_tumblr_publisher_session_get_access_phase_token (_tmp6_);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_upload_transaction_add_authorization_header_field (self, "oauth_token", _tmp8_);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 6599 "TumblrPublishing.c"
+ {
+ SpitPublishingPublishable* _tmp9_ = NULL;
+ GFile* _tmp10_ = NULL;
+ GFile* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gsize _tmp15_ = 0UL;
+ gchar* reqdata = NULL;
+ const gchar* _tmp16_ = NULL;
+ guint8* _tmp17_ = NULL;
+ gint _tmp17__length1 = 0;
+ guint8* _tmp18_ = NULL;
+ gint _tmp18__length1 = 0;
+ gsize _tmp19_ = 0UL;
+ gchar* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ gchar** keywords = NULL;
+ SpitPublishingPublishable* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ gchar** _tmp24_ = NULL;
+ gint keywords_length1 = 0;
+ gint _keywords_size_ = 0;
+ gchar* tags = NULL;
+ gchar* _tmp25_ = NULL;
+ gchar** _tmp26_ = NULL;
+ gint _tmp26__length1 = 0;
+ const gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->publishable;
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = spit_publishing_publishable_get_serialized_file (_tmp9_);
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp12_ = g_file_get_path (_tmp11_);
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_file_get_contents (_tmp13_, &_tmp14_, &_tmp15_, &_inner_error_);
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (payload);
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ payload = _tmp14_;
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ payload_length = _tmp15_;
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp13_);
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (_tmp11_);
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_inner_error_->domain == G_FILE_ERROR) {
+#line 6656 "TumblrPublishing.c"
+ goto __catch38_g_file_error;
+ }
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (payload);
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 6667 "TumblrPublishing.c"
+ }
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp16_ = payload;
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp17_ = string_get_data (_tmp16_, &_tmp17__length1);
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp18_ = _tmp17_;
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp18__length1 = _tmp17__length1;
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp19_ = payload_length;
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp20_ = publishing_tumblr_tumblr_publisher_upload_transaction_encode (self, _tmp18_ + 0, ((gint) _tmp19_) - 0);
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ reqdata = _tmp20_;
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp21_ = reqdata;
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data[0]", _tmp21_);
+#line 948 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "type", "photo");
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->publishable;
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp24_ = spit_publishing_publishable_get_publishing_keywords (_tmp22_, &_tmp23_);
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ keywords = _tmp24_;
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ keywords_length1 = _tmp23_;
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _keywords_size_ = keywords_length1;
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp25_ = g_strdup ("");
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ tags = _tmp25_;
+#line 951 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp26_ = keywords;
+#line 951 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp26__length1 = keywords_length1;
+#line 951 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp26_ != NULL) {
+#line 6709 "TumblrPublishing.c"
+ gchar** _tmp27_ = NULL;
+ gint _tmp27__length1 = 0;
+ gchar* _tmp28_ = NULL;
+#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp27_ = keywords;
+#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp27__length1 = keywords_length1;
+#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp28_ = _vala_g_strjoinv (",", _tmp27_, _tmp27__length1);
+#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (tags);
+#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ tags = _tmp28_;
+#line 6723 "TumblrPublishing.c"
+ }
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp29_ = tags;
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp30_ = soup_uri_encode (_tmp29_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA);
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp31_ = _tmp30_;
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "tags", _tmp31_);
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp31_);
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (tags);
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (reqdata);
+#line 6741 "TumblrPublishing.c"
+ }
+ goto __finally38;
+ __catch38_g_file_error:
+ {
+ GError* e = NULL;
+ const gchar* _tmp32_ = NULL;
+ GError* _tmp33_ = NULL;
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ e = _inner_error_;
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _inner_error_ = NULL;
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp32_ = _ ("A temporary file needed for publishing is unavailable");
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp33_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp32_);
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _inner_error_ = _tmp33_;
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_error_free0 (e);
+#line 6761 "TumblrPublishing.c"
+ goto __finally38;
+ }
+ __finally38:
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (payload);
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 6775 "TumblrPublishing.c"
+ } else {
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (payload);
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.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 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 6785 "TumblrPublishing.c"
+ }
+ }
+#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp34_ = self->priv->session;
+#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_session_sign_transaction (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp35_ = publishing_tumblr_tumblr_publisher_upload_transaction_get_authorization_header_string (self);
+#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ authorization_header = _tmp35_;
+#line 967 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp36_ = authorization_header;
+#line 967 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:967: executing upload transaction: authorization" \
+" header string = '%s'", _tmp36_);
+#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp37_ = authorization_header;
+#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", _tmp37_);
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp39_ = publishing_rest_support_transaction_get_arguments (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_tmp38_);
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ request_arguments = _tmp39_;
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ request_arguments_length1 = _tmp38_;
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _request_arguments_size_ = request_arguments_length1;
+#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp40_ = request_arguments;
+#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp40__length1 = request_arguments_length1;
+#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _vala_assert (_tmp40__length1 > 0, "request_arguments.length > 0");
+#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp41_ = g_strdup ("");
+#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ request_data = _tmp41_;
+#line 6822 "TumblrPublishing.c"
+ {
+ gint i = 0;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ i = 0;
+#line 6827 "TumblrPublishing.c"
+ {
+ gboolean _tmp42_ = FALSE;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp42_ = TRUE;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ while (TRUE) {
+#line 6834 "TumblrPublishing.c"
+ gint _tmp44_ = 0;
+ PublishingRESTSupportArgument** _tmp45_ = NULL;
+ gint _tmp45__length1 = 0;
+ const gchar* _tmp46_ = NULL;
+ PublishingRESTSupportArgument** _tmp47_ = NULL;
+ gint _tmp47__length1 = 0;
+ gint _tmp48_ = 0;
+ PublishingRESTSupportArgument* _tmp49_ = NULL;
+ const gchar* _tmp50_ = NULL;
+ gchar* _tmp51_ = NULL;
+ gchar* _tmp52_ = NULL;
+ PublishingRESTSupportArgument** _tmp53_ = NULL;
+ gint _tmp53__length1 = 0;
+ gint _tmp54_ = 0;
+ PublishingRESTSupportArgument* _tmp55_ = NULL;
+ const gchar* _tmp56_ = NULL;
+ gchar* _tmp57_ = NULL;
+ gchar* _tmp58_ = NULL;
+ gchar* _tmp59_ = NULL;
+ gint _tmp60_ = 0;
+ PublishingRESTSupportArgument** _tmp61_ = NULL;
+ gint _tmp61__length1 = 0;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp42_) {
+#line 6859 "TumblrPublishing.c"
+ gint _tmp43_ = 0;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp43_ = i;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ i = _tmp43_ + 1;
+#line 6865 "TumblrPublishing.c"
+ }
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp42_ = FALSE;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp44_ = i;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp45_ = request_arguments;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp45__length1 = request_arguments_length1;
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!(_tmp44_ < _tmp45__length1)) {
+#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ break;
+#line 6879 "TumblrPublishing.c"
+ }
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp46_ = request_data;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp47_ = request_arguments;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp47__length1 = request_arguments_length1;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp48_ = i;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp49_ = _tmp47_[_tmp48_];
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp50_ = _tmp49_->key;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp51_ = g_strconcat (_tmp50_, "=", NULL);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp52_ = _tmp51_;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp53_ = request_arguments;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp53__length1 = request_arguments_length1;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp54_ = i;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp55_ = _tmp53_[_tmp54_];
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp56_ = _tmp55_->value;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp57_ = g_strconcat (_tmp52_, _tmp56_, NULL);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp58_ = _tmp57_;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp59_ = g_strconcat (_tmp46_, _tmp58_, NULL);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (request_data);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ request_data = _tmp59_;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp58_);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp52_);
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp60_ = i;
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp61_ = request_arguments;
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp61__length1 = request_arguments_length1;
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp60_ < (_tmp61__length1 - 1)) {
+#line 6929 "TumblrPublishing.c"
+ const gchar* _tmp62_ = NULL;
+ gchar* _tmp63_ = NULL;
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp62_ = request_data;
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp63_ = g_strconcat (_tmp62_, "&", NULL);
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (request_data);
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ request_data = _tmp63_;
+#line 6940 "TumblrPublishing.c"
+ }
+ }
+ }
+ }
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp64_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp65_ = _tmp64_;
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp66_ = soup_message_new ("POST", _tmp65_);
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp67_ = _tmp66_;
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp65_);
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ outbound_message = _tmp67_;
+#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp68_ = outbound_message;
+#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp69_ = request_data;
+#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp70_ = string_get_data (_tmp69_, &_tmp70__length1);
+#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp71_ = _tmp70_;
+#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp71__length1 = _tmp70__length1;
+#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ soup_message_set_request (_tmp68_, "application/x-www-form-urlencoded", SOUP_MEMORY_COPY, _tmp71_, (gsize) _tmp71__length1);
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp72_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->message_headers;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp73_ = gee_abstract_map_map_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ i = _tmp73_;
+#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp74_ = i;
+#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp75_ = gee_map_iterator_next (_tmp74_);
+#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ cont = _tmp75_;
+#line 986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ while (TRUE) {
+#line 6983 "TumblrPublishing.c"
+ gboolean _tmp76_ = FALSE;
+ SoupMessage* _tmp77_ = NULL;
+ SoupMessageHeaders* _tmp78_ = NULL;
+ GeeMapIterator* _tmp79_ = NULL;
+ gpointer _tmp80_ = NULL;
+ gchar* _tmp81_ = NULL;
+ GeeMapIterator* _tmp82_ = NULL;
+ gpointer _tmp83_ = NULL;
+ gchar* _tmp84_ = NULL;
+ GeeMapIterator* _tmp85_ = NULL;
+ gboolean _tmp86_ = FALSE;
+#line 986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp76_ = cont;
+#line 986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp76_) {
+#line 986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ break;
+#line 7001 "TumblrPublishing.c"
+ }
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp77_ = outbound_message;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp78_ = _tmp77_->request_headers;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp79_ = i;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp80_ = gee_map_iterator_get_key (_tmp79_);
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp81_ = (gchar*) _tmp80_;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp82_ = i;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp83_ = gee_map_iterator_get_value (_tmp82_);
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp84_ = (gchar*) _tmp83_;
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ soup_message_headers_append (_tmp78_, _tmp81_, _tmp84_);
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp84_);
+#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp81_);
+#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp85_ = i;
+#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp86_ = gee_map_iterator_next (_tmp85_);
+#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ cont = _tmp86_;
+#line 7031 "TumblrPublishing.c"
+ }
+#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp87_ = outbound_message;
+#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp87_);
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_send (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (i);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (outbound_message);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (request_data);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (authorization_header);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (payload);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 7061 "TumblrPublishing.c"
+ } else {
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (i);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (outbound_message);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (request_data);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (authorization_header);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (payload);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.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 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return;
+#line 7081 "TumblrPublishing.c"
+ }
+ }
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (i);
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (outbound_message);
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (request_data);
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (authorization_header);
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (payload);
+#line 7096 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_upload_transaction_class_init (PublishingTumblrTumblrPublisherUploadTransactionClass * klass) {
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_upload_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_tumblr_tumblr_publisher_upload_transaction_finalize;
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherUploadTransactionPrivate));
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->execute = publishing_tumblr_tumblr_publisher_upload_transaction_real_execute;
+#line 7109 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_upload_transaction_instance_init (PublishingTumblrTumblrPublisherUploadTransaction * self) {
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOAD_TRANSACTION_GET_PRIVATE (self);
+#line 7116 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_upload_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingTumblrTumblrPublisherUploadTransaction * self;
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransaction);
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->auth_header_fields = (_vala_array_free (self->priv->auth_header_fields, self->priv->auth_header_fields_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_tumblr_tumblr_publisher_upload_transaction_parent_class)->finalize (obj);
+#line 7130 "TumblrPublishing.c"
+}
+
+
+GType publishing_tumblr_tumblr_publisher_upload_transaction_get_type (void) {
+ static volatile gsize publishing_tumblr_tumblr_publisher_upload_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_upload_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherUploadTransaction), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_upload_transaction_instance_init, NULL };
+ GType publishing_tumblr_tumblr_publisher_upload_transaction_type_id;
+ publishing_tumblr_tumblr_publisher_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingTumblrTumblrPublisherUploadTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_tumblr_tumblr_publisher_upload_transaction_type_id__volatile, publishing_tumblr_tumblr_publisher_upload_transaction_type_id);
+ }
+ return publishing_tumblr_tumblr_publisher_upload_transaction_type_id__volatile;
+}
+
+
+PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_construct (GType object_type, PublishingTumblrTumblrPublisherSession* session, SpitPublishingPublishable** publishables, int publishables_length1, const gchar* blog_url) {
+ PublishingTumblrTumblrPublisherUploader* self = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp0_ = NULL;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (session), NULL);
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (blog_url != NULL, NULL);
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = session;
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = publishables;
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1__length1 = publishables_length1;
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrTumblrPublisherUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp1__length1);
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = blog_url;
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->blog_url);
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blog_url = _tmp3_;
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 7175 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_new (PublishingTumblrTumblrPublisherSession* session, SpitPublishingPublishable** publishables, int publishables_length1, const gchar* blog_url) {
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_tumblr_publisher_uploader_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, session, publishables, publishables_length1, blog_url);
+#line 7182 "TumblrPublishing.c"
+}
+
+
+static PublishingRESTSupportTransaction* publishing_tumblr_tumblr_publisher_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) {
+ PublishingTumblrTumblrPublisherUploader * self;
+ PublishingRESTSupportTransaction* result = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingTumblrTumblrPublisherSession* _tmp1_ = NULL;
+ SpitPublishingPublishable* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ PublishingTumblrTumblrPublisherUploadTransaction* _tmp5_ = NULL;
+ PublishingRESTSupportTransaction* _tmp6_ = NULL;
+#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploader);
+#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:1011: Create upload transaction");
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION, PublishingTumblrTumblrPublisherSession);
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = self->priv->blog_url;
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = publishing_tumblr_tumblr_publisher_upload_transaction_new (_tmp1_, _tmp3_, _tmp4_);
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction);
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (_tmp3_);
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp6_;
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 7224 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_uploader_class_init (PublishingTumblrTumblrPublisherUploaderClass * klass) {
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_uploader_parent_class = g_type_class_peek_parent (klass);
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_tumblr_tumblr_publisher_uploader_finalize;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherUploaderPrivate));
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = publishing_tumblr_tumblr_publisher_uploader_real_create_transaction;
+#line 7237 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_uploader_instance_init (PublishingTumblrTumblrPublisherUploader * self) {
+ gchar* _tmp0_ = NULL;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_GET_PRIVATE (self);
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = g_strdup ("");
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blog_url = _tmp0_;
+#line 7249 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_uploader_finalize (PublishingRESTSupportBatchUploader* obj) {
+ PublishingTumblrTumblrPublisherUploader * self;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploader);
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->blog_url);
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_tumblr_tumblr_publisher_uploader_parent_class)->finalize (obj);
+#line 7261 "TumblrPublishing.c"
+}
+
+
+GType publishing_tumblr_tumblr_publisher_uploader_get_type (void) {
+ static volatile gsize publishing_tumblr_tumblr_publisher_uploader_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_uploader_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherUploader), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_uploader_instance_init, NULL };
+ GType publishing_tumblr_tumblr_publisher_uploader_type_id;
+ publishing_tumblr_tumblr_publisher_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingTumblrTumblrPublisherUploader", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_tumblr_tumblr_publisher_uploader_type_id__volatile, publishing_tumblr_tumblr_publisher_uploader_type_id);
+ }
+ return publishing_tumblr_tumblr_publisher_uploader_type_id__volatile;
+}
+
+
+PublishingTumblrTumblrPublisherSession* publishing_tumblr_tumblr_publisher_session_construct (GType object_type) {
+ PublishingTumblrTumblrPublisherSession* self = NULL;
+#line 1027 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = (PublishingTumblrTumblrPublisherSession*) publishing_rest_support_session_construct (object_type, PUBLISHING_TUMBLR_ENDPOINT_URL);
+#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self;
+#line 7283 "TumblrPublishing.c"
+}
+
+
+PublishingTumblrTumblrPublisherSession* publishing_tumblr_tumblr_publisher_session_new (void) {
+#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return publishing_tumblr_tumblr_publisher_session_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION);
+#line 7290 "TumblrPublishing.c"
+}
+
+
+static gboolean publishing_tumblr_tumblr_publisher_session_real_is_authenticated (PublishingRESTSupportSession* base) {
+ PublishingTumblrTumblrPublisherSession * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION, PublishingTumblrTumblrPublisherSession);
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = self->priv->access_phase_token;
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp1_ != NULL) {
+#line 7305 "TumblrPublishing.c"
+ const gchar* _tmp2_ = NULL;
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = self->priv->access_phase_token_secret;
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = _tmp2_ != NULL;
+#line 7311 "TumblrPublishing.c"
+ } else {
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = FALSE;
+#line 7315 "TumblrPublishing.c"
+ }
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp0_;
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 7321 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_tumblr_publisher_session_authenticate_from_persistent_credentials (PublishingTumblrTumblrPublisherSession* self, const gchar* token, const gchar* secret) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (self));
+#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (secret != NULL);
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = token;
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token);
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->access_phase_token = _tmp1_;
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = secret;
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token_secret);
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->access_phase_token_secret = _tmp3_;
+#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated");
+#line 7354 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_tumblr_publisher_session_deauthenticate (PublishingTumblrTumblrPublisherSession* self) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (self));
+#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token);
+#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->access_phase_token = NULL;
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token_secret);
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->access_phase_token_secret = NULL;
+#line 7369 "TumblrPublishing.c"
+}
+
+
+static gpointer _publishing_rest_support_transaction_ref0 (gpointer self) {
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return self ? publishing_rest_support_transaction_ref (self) : NULL;
+#line 7376 "TumblrPublishing.c"
+}
+
+
+static void _vala_array_add23 (PublishingRESTSupportArgument*** array, int* length, int* size, PublishingRESTSupportArgument* value) {
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1);
+#line 7387 "TumblrPublishing.c"
+ }
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 7393 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_tumblr_publisher_session_sign_transaction (PublishingTumblrTumblrPublisherSession* self, PublishingRESTSupportTransaction* txn) {
+ gchar* http_method = NULL;
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp1_ = 0;
+ gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* signing_key = NULL;
+ const gchar* _tmp6_ = NULL;
+ PublishingRESTSupportArgument** base_string_arguments = NULL;
+ PublishingRESTSupportTransaction* _tmp11_ = NULL;
+ gint _tmp12_ = 0;
+ PublishingRESTSupportArgument** _tmp13_ = NULL;
+ gint base_string_arguments_length1 = 0;
+ gint _base_string_arguments_size_ = 0;
+ PublishingTumblrTumblrPublisherUploadTransaction* upload_txn = NULL;
+ PublishingRESTSupportTransaction* _tmp14_ = NULL;
+ PublishingTumblrTumblrPublisherUploadTransaction* _tmp15_ = NULL;
+ PublishingTumblrTumblrPublisherUploadTransaction* _tmp16_ = NULL;
+ PublishingRESTSupportArgument** sorted_args = NULL;
+ PublishingRESTSupportArgument** _tmp25_ = NULL;
+ gint _tmp25__length1 = 0;
+ gint _tmp26_ = 0;
+ PublishingRESTSupportArgument** _tmp27_ = NULL;
+ gint sorted_args_length1 = 0;
+ gint _sorted_args_size_ = 0;
+ gchar* arguments_string = NULL;
+ gchar* _tmp28_ = NULL;
+ gchar* signature_base_string = NULL;
+ const gchar* _tmp51_ = NULL;
+ gchar* _tmp52_ = NULL;
+ gchar* _tmp53_ = NULL;
+ PublishingRESTSupportTransaction* _tmp54_ = NULL;
+ gchar* _tmp55_ = NULL;
+ gchar* _tmp56_ = NULL;
+ gchar* _tmp57_ = NULL;
+ gchar* _tmp58_ = NULL;
+ gchar* _tmp59_ = NULL;
+ gchar* _tmp60_ = NULL;
+ gchar* _tmp61_ = NULL;
+ gchar* _tmp62_ = NULL;
+ const gchar* _tmp63_ = NULL;
+ gchar* _tmp64_ = NULL;
+ gchar* _tmp65_ = NULL;
+ gchar* _tmp66_ = NULL;
+ gchar* _tmp67_ = NULL;
+ const gchar* _tmp68_ = NULL;
+ const gchar* _tmp69_ = NULL;
+ gchar* signature = NULL;
+ const gchar* _tmp70_ = NULL;
+ const gchar* _tmp71_ = NULL;
+ gchar* _tmp72_ = NULL;
+ const gchar* _tmp73_ = NULL;
+ const gchar* _tmp74_ = NULL;
+ gchar* _tmp75_ = NULL;
+ const gchar* _tmp76_ = NULL;
+ PublishingTumblrTumblrPublisherUploadTransaction* _tmp77_ = NULL;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (self));
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = txn;
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = publishing_rest_support_transaction_get_method (_tmp0_);
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = publishing_rest_support_http_method_to_string (_tmp1_);
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ http_method = _tmp2_;
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:1050: signing transaction with parameters:");
+#line 1051 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = http_method;
+#line 1051 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = g_strconcat ("HTTP method = ", _tmp3_, NULL);
+#line 1051 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1051 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:1051: %s", _tmp5_);
+#line 1051 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ signing_key = NULL;
+#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = self->priv->access_phase_token_secret;
+#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp6_ != NULL) {
+#line 7485 "TumblrPublishing.c"
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:1054: access phase token secret available; using" \
+" it as signing key");
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = publishing_tumblr_tumblr_publisher_session_get_access_phase_token_secret (self);
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = g_strconcat (PUBLISHING_TUMBLR_API_SECRET "&", _tmp8_, NULL);
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (signing_key);
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ signing_key = _tmp9_;
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 7503 "TumblrPublishing.c"
+ } else {
+ gchar* _tmp10_ = NULL;
+#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:1058: %s", "Access phase token secret not available; using API " "key as signing key");
+#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = g_strdup (PUBLISHING_TUMBLR_API_SECRET "&");
+#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (signing_key);
+#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ signing_key = _tmp10_;
+#line 7514 "TumblrPublishing.c"
+ }
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11_ = txn;
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp13_ = publishing_rest_support_transaction_get_arguments (_tmp11_, &_tmp12_);
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ base_string_arguments = _tmp13_;
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ base_string_arguments_length1 = _tmp12_;
+#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _base_string_arguments_size_ = base_string_arguments_length1;
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp14_ = txn;
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp15_ = _publishing_rest_support_transaction_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION) ? ((PublishingTumblrTumblrPublisherUploadTransaction*) _tmp14_) : NULL);
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ upload_txn = _tmp15_;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp16_ = upload_txn;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp16_ != NULL) {
+#line 7536 "TumblrPublishing.c"
+ PublishingRESTSupportArgument** auth_header_args = NULL;
+ PublishingTumblrTumblrPublisherUploadTransaction* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+ PublishingRESTSupportArgument** _tmp19_ = NULL;
+ gint auth_header_args_length1 = 0;
+ gint _auth_header_args_size_ = 0;
+ PublishingRESTSupportArgument** _tmp20_ = NULL;
+ gint _tmp20__length1 = 0;
+#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:1069: %s", "this transaction is an UploadTransaction; including Authorization head" \
+"er " "fields in signature base string");
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp17_ = upload_txn;
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp19_ = publishing_tumblr_tumblr_publisher_upload_transaction_get_authorization_header_fields (_tmp17_, &_tmp18_);
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ auth_header_args = _tmp19_;
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ auth_header_args_length1 = _tmp18_;
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _auth_header_args_size_ = auth_header_args_length1;
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp20_ = auth_header_args;
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp20__length1 = auth_header_args_length1;
+#line 7561 "TumblrPublishing.c"
+ {
+ PublishingRESTSupportArgument** arg_collection = NULL;
+ gint arg_collection_length1 = 0;
+ gint _arg_collection_size_ = 0;
+ gint arg_it = 0;
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ arg_collection = _tmp20_;
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ arg_collection_length1 = _tmp20__length1;
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ for (arg_it = 0; arg_it < _tmp20__length1; arg_it = arg_it + 1) {
+#line 7573 "TumblrPublishing.c"
+ PublishingRESTSupportArgument* _tmp21_ = NULL;
+ PublishingRESTSupportArgument* arg = NULL;
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp21_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]);
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ arg = _tmp21_;
+#line 7580 "TumblrPublishing.c"
+ {
+ PublishingRESTSupportArgument** _tmp22_ = NULL;
+ gint _tmp22__length1 = 0;
+ PublishingRESTSupportArgument* _tmp23_ = NULL;
+ PublishingRESTSupportArgument* _tmp24_ = NULL;
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp22_ = base_string_arguments;
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp22__length1 = base_string_arguments_length1;
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp23_ = arg;
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp24_ = _publishing_rest_support_argument_ref0 (_tmp23_);
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _vala_array_add23 (&base_string_arguments, &base_string_arguments_length1, &_base_string_arguments_size_, _tmp24_);
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_argument_unref0 (arg);
+#line 7598 "TumblrPublishing.c"
+ }
+ }
+ }
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ auth_header_args = (_vala_array_free (auth_header_args, auth_header_args_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 7604 "TumblrPublishing.c"
+ }
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp25_ = base_string_arguments;
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp25__length1 = base_string_arguments_length1;
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp27_ = publishing_rest_support_argument_sort (_tmp25_, _tmp25__length1, &_tmp26_);
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ sorted_args = _tmp27_;
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ sorted_args_length1 = _tmp26_;
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _sorted_args_size_ = sorted_args_length1;
+#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp28_ = g_strdup ("");
+#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ arguments_string = _tmp28_;
+#line 7622 "TumblrPublishing.c"
+ {
+ gint i = 0;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ i = 0;
+#line 7627 "TumblrPublishing.c"
+ {
+ gboolean _tmp29_ = FALSE;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp29_ = TRUE;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ while (TRUE) {
+#line 7634 "TumblrPublishing.c"
+ gint _tmp31_ = 0;
+ PublishingRESTSupportArgument** _tmp32_ = NULL;
+ gint _tmp32__length1 = 0;
+ const gchar* _tmp33_ = NULL;
+ PublishingRESTSupportArgument** _tmp34_ = NULL;
+ gint _tmp34__length1 = 0;
+ gint _tmp35_ = 0;
+ PublishingRESTSupportArgument* _tmp36_ = NULL;
+ const gchar* _tmp37_ = NULL;
+ gchar* _tmp38_ = NULL;
+ gchar* _tmp39_ = NULL;
+ PublishingRESTSupportArgument** _tmp40_ = NULL;
+ gint _tmp40__length1 = 0;
+ gint _tmp41_ = 0;
+ PublishingRESTSupportArgument* _tmp42_ = NULL;
+ const gchar* _tmp43_ = NULL;
+ gchar* _tmp44_ = NULL;
+ gchar* _tmp45_ = NULL;
+ gchar* _tmp46_ = NULL;
+ gint _tmp47_ = 0;
+ PublishingRESTSupportArgument** _tmp48_ = NULL;
+ gint _tmp48__length1 = 0;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!_tmp29_) {
+#line 7659 "TumblrPublishing.c"
+ gint _tmp30_ = 0;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp30_ = i;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ i = _tmp30_ + 1;
+#line 7665 "TumblrPublishing.c"
+ }
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp29_ = FALSE;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp31_ = i;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp32_ = sorted_args;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp32__length1 = sorted_args_length1;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (!(_tmp31_ < _tmp32__length1)) {
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ break;
+#line 7679 "TumblrPublishing.c"
+ }
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp33_ = arguments_string;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp34_ = sorted_args;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp34__length1 = sorted_args_length1;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp35_ = i;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp36_ = _tmp34_[_tmp35_];
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp37_ = _tmp36_->key;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp38_ = g_strconcat (_tmp37_, "=", NULL);
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp39_ = _tmp38_;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp40_ = sorted_args;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp40__length1 = sorted_args_length1;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp41_ = i;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp42_ = _tmp40_[_tmp41_];
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp43_ = _tmp42_->value;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp44_ = g_strconcat (_tmp39_, _tmp43_, NULL);
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp45_ = _tmp44_;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp46_ = g_strconcat (_tmp33_, _tmp45_, NULL);
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (arguments_string);
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ arguments_string = _tmp46_;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp45_);
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp39_);
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp47_ = i;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp48_ = sorted_args;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp48__length1 = sorted_args_length1;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp47_ < (_tmp48__length1 - 1)) {
+#line 7729 "TumblrPublishing.c"
+ const gchar* _tmp49_ = NULL;
+ gchar* _tmp50_ = NULL;
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp49_ = arguments_string;
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp50_ = g_strconcat (_tmp49_, "&", NULL);
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (arguments_string);
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ arguments_string = _tmp50_;
+#line 7740 "TumblrPublishing.c"
+ }
+ }
+ }
+ }
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp51_ = http_method;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp52_ = g_strconcat (_tmp51_, "&", NULL);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp53_ = _tmp52_;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp54_ = txn;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp55_ = publishing_rest_support_transaction_get_endpoint_url (_tmp54_);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp56_ = _tmp55_;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp57_ = soup_uri_encode (_tmp56_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp58_ = _tmp57_;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp59_ = g_strconcat (_tmp53_, _tmp58_, NULL);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp60_ = _tmp59_;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp61_ = g_strconcat (_tmp60_, "&", NULL);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp62_ = _tmp61_;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp63_ = arguments_string;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp64_ = soup_uri_encode (_tmp63_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp65_ = _tmp64_;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp66_ = g_strconcat (_tmp62_, _tmp65_, NULL);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp67_ = _tmp66_;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp65_);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp62_);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp60_);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp58_);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp56_);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp53_);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ signature_base_string = _tmp67_;
+#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp68_ = signature_base_string;
+#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:1094: signature base string = '%s'", _tmp68_);
+#line 1095 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp69_ = signing_key;
+#line 1095 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:1095: signing key = '%s'", _tmp69_);
+#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp70_ = signing_key;
+#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp71_ = signature_base_string;
+#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp72_ = publishing_rest_support_hmac_sha1 (_tmp70_, _tmp71_);
+#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ signature = _tmp72_;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp73_ = signature;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:1099: signature = '%s'", _tmp73_);
+#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp74_ = signature;
+#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp75_ = soup_uri_encode (_tmp74_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA);
+#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (signature);
+#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ signature = _tmp75_;
+#line 1102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp76_ = signature;
+#line 1102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_debug ("TumblrPublishing.vala:1102: signature after RFC encode = '%s'", _tmp76_);
+#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp77_ = upload_txn;
+#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ if (_tmp77_ != NULL) {
+#line 7829 "TumblrPublishing.c"
+ PublishingTumblrTumblrPublisherUploadTransaction* _tmp78_ = NULL;
+ const gchar* _tmp79_ = NULL;
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp78_ = upload_txn;
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp79_ = signature;
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_upload_transaction_add_authorization_header_field (_tmp78_, "oauth_signature", _tmp79_);
+#line 7838 "TumblrPublishing.c"
+ } else {
+ PublishingRESTSupportTransaction* _tmp80_ = NULL;
+ const gchar* _tmp81_ = NULL;
+#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp80_ = txn;
+#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp81_ = signature;
+#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (_tmp80_, "oauth_signature", _tmp81_);
+#line 7848 "TumblrPublishing.c"
+ }
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (signature);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (signature_base_string);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (arguments_string);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ sorted_args = (_vala_array_free (sorted_args, sorted_args_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (upload_txn);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ base_string_arguments = (_vala_array_free (base_string_arguments, base_string_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (signing_key);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (http_method);
+#line 7866 "TumblrPublishing.c"
+}
+
+
+void publishing_tumblr_tumblr_publisher_session_set_access_phase_credentials (PublishingTumblrTumblrPublisherSession* self, const gchar* token, const gchar* secret) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (self));
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_if_fail (secret != NULL);
+#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = token;
+#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token);
+#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->access_phase_token = _tmp1_;
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = secret;
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token_secret);
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->access_phase_token_secret = _tmp3_;
+#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated");
+#line 7899 "TumblrPublishing.c"
+}
+
+
+gchar* publishing_tumblr_tumblr_publisher_session_get_access_phase_token (PublishingTumblrTumblrPublisherSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (self), NULL);
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->access_phase_token;
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 7917 "TumblrPublishing.c"
+}
+
+
+gchar* publishing_tumblr_tumblr_publisher_session_get_access_phase_token_secret (PublishingTumblrTumblrPublisherSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (self), NULL);
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->access_phase_token_secret;
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp1_;
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 7935 "TumblrPublishing.c"
+}
+
+
+gchar* publishing_tumblr_tumblr_publisher_session_get_oauth_nonce (PublishingTumblrTumblrPublisherSession* self) {
+ gchar* result = NULL;
+ GTimeVal currtime = {0};
+ GTimeVal _tmp0_ = {0};
+ glong _tmp1_ = 0L;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ GTimeVal _tmp4_ = {0};
+ glong _tmp5_ = 0L;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+#line 1129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (self), NULL);
+#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_get_current_time (&currtime);
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_get_current_time (&currtime);
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = currtime;
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = _tmp0_.tv_sec;
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = g_strdup_printf ("%li", _tmp1_);
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = currtime;
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp5_ = _tmp4_.tv_usec;
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp6_ = g_strdup_printf ("%li", _tmp5_);
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp8_ = g_strconcat (_tmp3_, _tmp7_, NULL);
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp10_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp9_, (gsize) -1);
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp11_;
+#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 7994 "TumblrPublishing.c"
+}
+
+
+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 8017 "TumblrPublishing.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 8025 "TumblrPublishing.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 8037 "TumblrPublishing.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 8061 "TumblrPublishing.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 8067 "TumblrPublishing.c"
+ } else {
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = FALSE;
+#line 8071 "TumblrPublishing.c"
+ }
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp0_) {
+#line 8075 "TumblrPublishing.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 8087 "TumblrPublishing.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 8097 "TumblrPublishing.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 8103 "TumblrPublishing.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 8117 "TumblrPublishing.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 8127 "TumblrPublishing.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 8133 "TumblrPublishing.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 8142 "TumblrPublishing.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 8162 "TumblrPublishing.c"
+}
+
+
+gchar* publishing_tumblr_tumblr_publisher_session_get_oauth_timestamp (PublishingTumblrTumblrPublisherSession* self) {
+ gchar* result = NULL;
+ gint64 _tmp0_ = 0LL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_SESSION (self), NULL);
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = g_get_real_time ();
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp1_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp0_);
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp3_ = string_substring (_tmp2_, (glong) 0, (glong) 10);
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (_tmp2_);
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ result = _tmp4_;
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ return result;
+#line 8191 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_session_class_init (PublishingTumblrTumblrPublisherSessionClass * klass) {
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_session_parent_class = g_type_class_peek_parent (klass);
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_tumblr_tumblr_publisher_session_finalize;
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherSessionPrivate));
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = publishing_tumblr_tumblr_publisher_session_real_is_authenticated;
+#line 8204 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_session_instance_init (PublishingTumblrTumblrPublisherSession * self) {
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_SESSION_GET_PRIVATE (self);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->access_phase_token = NULL;
+#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->access_phase_token_secret = NULL;
+#line 8215 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_session_finalize (PublishingRESTSupportSession* obj) {
+ PublishingTumblrTumblrPublisherSession * self;
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_SESSION, PublishingTumblrTumblrPublisherSession);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token);
+#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token_secret);
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_tumblr_tumblr_publisher_session_parent_class)->finalize (obj);
+#line 8229 "TumblrPublishing.c"
+}
+
+
+/**
+ * Session class that keeps track of the authentication status and of the
+ * user token tumblr.
+ */
+GType publishing_tumblr_tumblr_publisher_session_get_type (void) {
+ static volatile gsize publishing_tumblr_tumblr_publisher_session_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_session_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherSession), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_session_instance_init, NULL };
+ GType publishing_tumblr_tumblr_publisher_session_type_id;
+ publishing_tumblr_tumblr_publisher_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingTumblrTumblrPublisherSession", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_tumblr_tumblr_publisher_session_type_id__volatile, publishing_tumblr_tumblr_publisher_session_type_id);
+ }
+ return publishing_tumblr_tumblr_publisher_session_type_id__volatile;
+}
+
+
+static void publishing_tumblr_tumblr_publisher_class_init (PublishingTumblrTumblrPublisherClass * klass) {
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_parent_class = g_type_class_peek_parent (klass);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherPrivate));
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_tumblr_tumblr_publisher_finalize;
+#line 8256 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) {
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ publishing_tumblr_tumblr_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->get_service = (SpitPublishingService* (*)(SpitPublishingPublisher*)) publishing_tumblr_tumblr_publisher_real_get_service;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->is_running = (gboolean (*)(SpitPublishingPublisher*)) publishing_tumblr_tumblr_publisher_real_is_running;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->start = (void (*)(SpitPublishingPublisher*)) publishing_tumblr_tumblr_publisher_real_start;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ iface->stop = (void (*)(SpitPublishingPublisher*)) publishing_tumblr_tumblr_publisher_real_stop;
+#line 8271 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_instance_init (PublishingTumblrTumblrPublisher * self) {
+ gchar* _tmp0_ = NULL;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_GET_PRIVATE (self);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->running = FALSE;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->was_started = FALSE;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->session = NULL;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->publishing_options_pane = NULL;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes = NULL;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes_length1 = 0;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->_sizes_size_ = self->priv->sizes_length1;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs = NULL;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs_length1 = 0;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->_blogs_size_ = self->priv->blogs_length1;
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = g_strdup ("");
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->username = _tmp0_;
+#line 8305 "TumblrPublishing.c"
+}
+
+
+static void publishing_tumblr_tumblr_publisher_finalize (GObject* obj) {
+ PublishingTumblrTumblrPublisher * self;
+ PublishingTumblrTumblrPublisherSession* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher);
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_parse_name ("authenticated", PUBLISHING_REST_SUPPORT_TYPE_SESSION, &_tmp1_, NULL, FALSE);
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_session_authenticated_publishing_rest_support_session_authenticated, self);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->service);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->host);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_object_unref0 (self->priv->publishing_options_pane);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL);
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/TumblrPublishing.vala"
+ G_OBJECT_CLASS (publishing_tumblr_tumblr_publisher_parent_class)->finalize (obj);
+#line 8345 "TumblrPublishing.c"
+}
+
+
+GType publishing_tumblr_tumblr_publisher_get_type (void) {
+ static volatile gsize publishing_tumblr_tumblr_publisher_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisher), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_tumblr_tumblr_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_tumblr_tumblr_publisher_type_id;
+ publishing_tumblr_tumblr_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingTumblrTumblrPublisher", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_tumblr_tumblr_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info);
+ g_once_init_leave (&publishing_tumblr_tumblr_publisher_type_id__volatile, publishing_tumblr_tumblr_publisher_type_id);
+ }
+ return publishing_tumblr_tumblr_publisher_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);
+}
+
+
+static gint _vala_array_length (gpointer array) {
+ int length;
+ length = 0;
+ if (array) {
+ while (((gpointer*) array)[length]) {
+ length++;
+ }
+ }
+ return length;
+}
+
+
+
diff --git a/plugins/shotwell-publishing-extras/TumblrPublishing.vala b/plugins/shotwell-publishing-extras/TumblrPublishing.vala
index 9e17b4e..3f5a2ed 100644
--- a/plugins/shotwell-publishing-extras/TumblrPublishing.vala
+++ b/plugins/shotwell-publishing-extras/TumblrPublishing.vala
@@ -13,7 +13,9 @@ public class TumblrService : Object, Spit.Pluggable, Spit.Publishing.Service {
public TumblrService(GLib.File resource_directory) {
if (icon_pixbuf_set == null)
- icon_pixbuf_set = Resources.load_icon_set(resource_directory.get_child(ICON_FILENAME));
+ icon_pixbuf_set =
+ Resources.load_from_resource(Resources.RESOURCE_PATH + "/" +
+ ICON_FILENAME);
}
public int get_pluggable_interface(int min_host_interface, int max_host_interface) {
@@ -596,12 +598,9 @@ internal class AuthenticationPane : Spit.Publishing.DialogPane, Object {
public AuthenticationPane(TumblrPublisher publisher, Mode mode = Mode.INTRO) {
this.pane_widget = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
- File ui_file = publisher.get_host().get_module_file().get_parent().
- get_child("tumblr_authentication_pane.glade");
-
try {
builder = new Gtk.Builder();
- builder.add_from_file(ui_file.get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH + "/tumblr_authentication_pane.ui");
builder.connect_signals(null);
Gtk.Alignment align = builder.get_object("alignment") as Gtk.Alignment;
@@ -714,12 +713,11 @@ internal class PublishingOptionsPane : Spit.Publishing.DialogPane, GLib.Object {
this.media_type = media_type;
this.sizes = sizes;
this.blogs=blogs;
- File ui_file = publisher.get_host().get_module_file().get_parent().
- get_child("tumblr_publishing_options_pane.glade");
-
+
try {
builder = new Gtk.Builder();
- builder.add_from_file(ui_file.get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH +
+ "/tumblr_publishing_options_pane.ui");
builder.connect_signals(null);
// pull in the necessary widgets from the glade file
diff --git a/plugins/shotwell-publishing-extras/YandexPublishing.c b/plugins/shotwell-publishing-extras/YandexPublishing.c
new file mode 100644
index 0000000..35dac7f
--- /dev/null
+++ b/plugins/shotwell-publishing-extras/YandexPublishing.c
@@ -0,0 +1,5224 @@
+/* YandexPublishing.c generated by valac 0.32.1, the Vala compiler
+ * generated from YandexPublishing.vala, do not modify */
+
+/* Copyright 2010+ Evgeniy Polyakov <zbr@ioremap.net>
+ *
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib/gi18n-lib.h>
+#include "shotwell-plugin-common.h"
+#include <webkit2/webkit2.h>
+#include <gtk/gtk.h>
+#include <gdk/gdk.h>
+#include <gee.h>
+#include <libsoup/soup.h>
+#include <glib/gstdio.h>
+#include <gio/gio.h>
+#include <libxml/tree.h>
+#include <float.h>
+#include <math.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_YANDEX_SERVICE (yandex_service_get_type ())
+#define YANDEX_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_YANDEX_SERVICE, YandexService))
+#define YANDEX_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_YANDEX_SERVICE, YandexServiceClass))
+#define IS_YANDEX_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_YANDEX_SERVICE))
+#define IS_YANDEX_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_YANDEX_SERVICE))
+#define YANDEX_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_YANDEX_SERVICE, YandexServiceClass))
+
+typedef struct _YandexService YandexService;
+typedef struct _YandexServiceClass YandexServiceClass;
+typedef struct _YandexServicePrivate YandexServicePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER (publishing_yandex_yandex_publisher_get_type ())
+#define PUBLISHING_YANDEX_YANDEX_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher))
+#define PUBLISHING_YANDEX_YANDEX_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisherClass))
+#define PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER))
+#define PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER))
+#define PUBLISHING_YANDEX_YANDEX_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisherClass))
+
+typedef struct _PublishingYandexYandexPublisher PublishingYandexYandexPublisher;
+typedef struct _PublishingYandexYandexPublisherClass PublishingYandexYandexPublisherClass;
+
+#define PUBLISHING_YANDEX_TYPE_TRANSACTION (publishing_yandex_transaction_get_type ())
+#define PUBLISHING_YANDEX_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_TRANSACTION, PublishingYandexTransaction))
+#define PUBLISHING_YANDEX_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_TRANSACTION, PublishingYandexTransactionClass))
+#define PUBLISHING_YANDEX_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_TRANSACTION))
+#define PUBLISHING_YANDEX_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_TRANSACTION))
+#define PUBLISHING_YANDEX_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_TRANSACTION, PublishingYandexTransactionClass))
+
+typedef struct _PublishingYandexTransaction PublishingYandexTransaction;
+typedef struct _PublishingYandexTransactionClass PublishingYandexTransactionClass;
+typedef struct _PublishingYandexTransactionPrivate PublishingYandexTransactionPrivate;
+
+#define PUBLISHING_YANDEX_TYPE_SESSION (publishing_yandex_session_get_type ())
+#define PUBLISHING_YANDEX_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession))
+#define PUBLISHING_YANDEX_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSessionClass))
+#define PUBLISHING_YANDEX_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_SESSION))
+#define PUBLISHING_YANDEX_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_SESSION))
+#define PUBLISHING_YANDEX_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSessionClass))
+
+typedef struct _PublishingYandexSession PublishingYandexSession;
+typedef struct _PublishingYandexSessionClass PublishingYandexSessionClass;
+#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL)))
+typedef struct _PublishingYandexSessionPrivate PublishingYandexSessionPrivate;
+
+#define PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE (publishing_yandex_web_auth_pane_get_type ())
+#define PUBLISHING_YANDEX_WEB_AUTH_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane))
+#define PUBLISHING_YANDEX_WEB_AUTH_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPaneClass))
+#define PUBLISHING_YANDEX_IS_WEB_AUTH_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE))
+#define PUBLISHING_YANDEX_IS_WEB_AUTH_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE))
+#define PUBLISHING_YANDEX_WEB_AUTH_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPaneClass))
+
+typedef struct _PublishingYandexWebAuthPane PublishingYandexWebAuthPane;
+typedef struct _PublishingYandexWebAuthPaneClass PublishingYandexWebAuthPaneClass;
+typedef struct _PublishingYandexWebAuthPanePrivate PublishingYandexWebAuthPanePrivate;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (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 _g_match_info_unref0(var) ((var == NULL) ? NULL : (var = (g_match_info_unref (var), NULL)))
+#define __vala_WebKitNavigationAction_free0(var) ((var == NULL) ? NULL : (var = (_vala_WebKitNavigationAction_free (var), NULL)))
+
+#define PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS (publishing_yandex_publish_options_get_type ())
+#define PUBLISHING_YANDEX_PUBLISH_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptions))
+#define PUBLISHING_YANDEX_PUBLISH_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptionsClass))
+#define PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS))
+#define PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS))
+#define PUBLISHING_YANDEX_PUBLISH_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptionsClass))
+
+typedef struct _PublishingYandexPublishOptions PublishingYandexPublishOptions;
+typedef struct _PublishingYandexPublishOptionsClass PublishingYandexPublishOptionsClass;
+typedef struct _PublishingYandexPublishOptionsPrivate PublishingYandexPublishOptionsPrivate;
+typedef struct _PublishingYandexParamSpecPublishOptions PublishingYandexParamSpecPublishOptions;
+
+#define PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE (publishing_yandex_publishing_options_pane_get_type ())
+#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane))
+#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPaneClass))
+#define PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPaneClass))
+
+typedef struct _PublishingYandexPublishingOptionsPane PublishingYandexPublishingOptionsPane;
+typedef struct _PublishingYandexPublishingOptionsPaneClass PublishingYandexPublishingOptionsPaneClass;
+typedef struct _PublishingYandexPublishingOptionsPanePrivate PublishingYandexPublishingOptionsPanePrivate;
+
+#define PUBLISHING_YANDEX_TYPE_UPLOADER (publishing_yandex_uploader_get_type ())
+#define PUBLISHING_YANDEX_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploader))
+#define PUBLISHING_YANDEX_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploaderClass))
+#define PUBLISHING_YANDEX_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_UPLOADER))
+#define PUBLISHING_YANDEX_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_UPLOADER))
+#define PUBLISHING_YANDEX_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploaderClass))
+
+typedef struct _PublishingYandexUploader PublishingYandexUploader;
+typedef struct _PublishingYandexUploaderClass PublishingYandexUploaderClass;
+typedef struct _PublishingYandexUploaderPrivate PublishingYandexUploaderPrivate;
+
+#define PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION (publishing_yandex_upload_transaction_get_type ())
+#define PUBLISHING_YANDEX_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, PublishingYandexUploadTransaction))
+#define PUBLISHING_YANDEX_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, PublishingYandexUploadTransactionClass))
+#define PUBLISHING_YANDEX_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_YANDEX_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_YANDEX_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, PublishingYandexUploadTransactionClass))
+
+typedef struct _PublishingYandexUploadTransaction PublishingYandexUploadTransaction;
+typedef struct _PublishingYandexUploadTransactionClass PublishingYandexUploadTransactionClass;
+typedef struct _PublishingYandexUploadTransactionPrivate PublishingYandexUploadTransactionPrivate;
+#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL)))
+#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
+#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL)))
+typedef struct _PublishingYandexYandexPublisherPrivate PublishingYandexYandexPublisherPrivate;
+#define _publishing_yandex_publish_options_unref0(var) ((var == NULL) ? NULL : (var = (publishing_yandex_publish_options_unref (var), NULL)))
+#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL)))
+#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL)))
+#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL)))
+#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 _YandexService {
+ GObject parent_instance;
+ YandexServicePrivate * priv;
+};
+
+struct _YandexServiceClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingYandexTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingYandexTransactionPrivate * priv;
+};
+
+struct _PublishingYandexTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingYandexSession {
+ PublishingRESTSupportSession parent_instance;
+ PublishingYandexSessionPrivate * priv;
+};
+
+struct _PublishingYandexSessionClass {
+ PublishingRESTSupportSessionClass parent_class;
+};
+
+struct _PublishingYandexSessionPrivate {
+ gchar* auth_token;
+};
+
+struct _PublishingYandexWebAuthPane {
+ GObject parent_instance;
+ PublishingYandexWebAuthPanePrivate * priv;
+};
+
+struct _PublishingYandexWebAuthPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingYandexWebAuthPanePrivate {
+ WebKitWebView* webview;
+ GtkBox* pane_widget;
+ GtkScrolledWindow* webview_frame;
+ GRegex* re;
+ gchar* login_url;
+};
+
+struct _PublishingYandexPublishOptions {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingYandexPublishOptionsPrivate * priv;
+ gboolean disable_comments;
+ gboolean hide_original;
+ gchar* access_type;
+ gchar* destination_album;
+ gchar* destination_album_url;
+};
+
+struct _PublishingYandexPublishOptionsClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingYandexPublishOptions *self);
+};
+
+struct _PublishingYandexParamSpecPublishOptions {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingYandexPublishingOptionsPane {
+ GObject parent_instance;
+ PublishingYandexPublishingOptionsPanePrivate * priv;
+};
+
+struct _PublishingYandexPublishingOptionsPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingYandexPublishingOptionsPanePrivate {
+ GtkBox* box;
+ GtkBuilder* builder;
+ GtkButton* logout_button;
+ GtkButton* publish_button;
+ GtkComboBoxText* album_list;
+ PublishingYandexPublishOptions* options;
+};
+
+struct _PublishingYandexUploader {
+ PublishingRESTSupportBatchUploader parent_instance;
+ PublishingYandexUploaderPrivate * priv;
+};
+
+struct _PublishingYandexUploaderClass {
+ PublishingRESTSupportBatchUploaderClass parent_class;
+};
+
+struct _PublishingYandexUploaderPrivate {
+ PublishingYandexPublishOptions* options;
+};
+
+struct _PublishingYandexUploadTransaction {
+ PublishingYandexTransaction parent_instance;
+ PublishingYandexUploadTransactionPrivate * priv;
+};
+
+struct _PublishingYandexUploadTransactionClass {
+ PublishingYandexTransactionClass parent_class;
+};
+
+struct _PublishingYandexYandexPublisher {
+ GObject parent_instance;
+ PublishingYandexYandexPublisherPrivate * priv;
+};
+
+struct _PublishingYandexYandexPublisherClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingYandexYandexPublisherPrivate {
+ SpitPublishingPluginHost* host;
+ SpitPublishingProgressCallback progress_reporter;
+ gpointer progress_reporter_target;
+ GDestroyNotify progress_reporter_target_destroy_notify;
+ SpitPublishingService* service;
+ gchar* service_url;
+ GeeHashMap* album_list;
+ PublishingYandexPublishOptions* options;
+ gboolean running;
+ PublishingYandexWebAuthPane* web_auth_pane;
+ PublishingYandexSession* session;
+};
+
+
+static gpointer yandex_service_parent_class = NULL;
+static SpitPluggableIface* yandex_service_spit_pluggable_parent_iface = NULL;
+static SpitPublishingServiceIface* yandex_service_spit_publishing_service_parent_iface = NULL;
+static gpointer publishing_yandex_transaction_parent_class = NULL;
+static gpointer publishing_yandex_session_parent_class = NULL;
+static gpointer publishing_yandex_web_auth_pane_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_yandex_web_auth_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_yandex_publish_options_parent_class = NULL;
+static gpointer publishing_yandex_publishing_options_pane_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_yandex_uploader_parent_class = NULL;
+static gpointer publishing_yandex_upload_transaction_parent_class = NULL;
+static gpointer publishing_yandex_yandex_publisher_parent_class = NULL;
+static SpitPublishingPublisherIface* publishing_yandex_yandex_publisher_spit_publishing_publisher_parent_iface = NULL;
+
+GType yandex_service_get_type (void) G_GNUC_CONST;
+enum {
+ YANDEX_SERVICE_DUMMY_PROPERTY
+};
+static gint yandex_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+static const gchar* yandex_service_real_get_id (SpitPluggable* base);
+static const gchar* yandex_service_real_get_pluggable_name (SpitPluggable* base);
+static void yandex_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static SpitPublishingPublisher* yandex_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host);
+PublishingYandexYandexPublisher* publishing_yandex_yandex_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host);
+PublishingYandexYandexPublisher* publishing_yandex_yandex_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host);
+GType publishing_yandex_yandex_publisher_get_type (void) G_GNUC_CONST;
+static SpitPublishingPublisherMediaType yandex_service_real_get_supported_media (SpitPublishingService* base);
+static void yandex_service_real_activation (SpitPluggable* base, gboolean enabled);
+YandexService* yandex_service_new (void);
+YandexService* yandex_service_construct (GType object_type);
+#define PUBLISHING_YANDEX_SERVICE_NAME "Yandex.Fotki"
+#define PUBLISHING_YANDEX_client_id "52be4756dee3438792c831a75d7cd360"
+GType publishing_yandex_transaction_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_YANDEX_TRANSACTION_DUMMY_PROPERTY
+};
+GType publishing_yandex_session_get_type (void) G_GNUC_CONST;
+PublishingYandexTransaction* publishing_yandex_transaction_new_with_url (PublishingYandexSession* session, const gchar* url, PublishingRESTSupportHttpMethod method);
+PublishingYandexTransaction* publishing_yandex_transaction_construct_with_url (GType object_type, PublishingYandexSession* session, const gchar* url, PublishingRESTSupportHttpMethod method);
+static void publishing_yandex_transaction_add_headers (PublishingYandexTransaction* self);
+gchar* publishing_yandex_session_get_auth_token (PublishingYandexSession* self);
+PublishingYandexTransaction* publishing_yandex_transaction_new (PublishingYandexSession* session, PublishingRESTSupportHttpMethod method);
+PublishingYandexTransaction* publishing_yandex_transaction_construct (GType object_type, PublishingYandexSession* session, PublishingRESTSupportHttpMethod method);
+void publishing_yandex_transaction_add_data (PublishingYandexTransaction* self, const gchar* type, const gchar* data);
+#define PUBLISHING_YANDEX_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSessionPrivate))
+enum {
+ PUBLISHING_YANDEX_SESSION_DUMMY_PROPERTY
+};
+PublishingYandexSession* publishing_yandex_session_new (void);
+PublishingYandexSession* publishing_yandex_session_construct (GType object_type);
+static gboolean publishing_yandex_session_real_is_authenticated (PublishingRESTSupportSession* base);
+void publishing_yandex_session_deauthenticate (PublishingYandexSession* self);
+void publishing_yandex_session_set_auth_token (PublishingYandexSession* self, const gchar* token);
+static void publishing_yandex_session_finalize (PublishingRESTSupportSession* obj);
+GType publishing_yandex_web_auth_pane_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_YANDEX_WEB_AUTH_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPanePrivate))
+enum {
+ PUBLISHING_YANDEX_WEB_AUTH_PANE_DUMMY_PROPERTY
+};
+PublishingYandexWebAuthPane* publishing_yandex_web_auth_pane_new (const gchar* login_url);
+PublishingYandexWebAuthPane* publishing_yandex_web_auth_pane_construct (GType object_type, const gchar* login_url);
+static void publishing_yandex_web_auth_pane_on_page_load_changed (PublishingYandexWebAuthPane* self, WebKitLoadEvent load_event);
+static void _publishing_yandex_web_auth_pane_on_page_load_changed_webkit_web_view_load_changed (WebKitWebView* _sender, WebKitLoadEvent load_event, gpointer self);
+static gboolean publishing_yandex_web_auth_pane_on_decide_policy (PublishingYandexWebAuthPane* self, WebKitPolicyDecision* decision, WebKitPolicyDecisionType type);
+static gboolean _publishing_yandex_web_auth_pane_on_decide_policy_webkit_web_view_decide_policy (WebKitWebView* _sender, WebKitPolicyDecision* decision, WebKitPolicyDecisionType type, gpointer self);
+static gboolean __lambda4_ (PublishingYandexWebAuthPane* self);
+static gboolean ___lambda4__webkit_web_view_context_menu (WebKitWebView* _sender, WebKitContextMenu* context_menu, GdkEvent* event, WebKitHitTestResult* hit_test_result, gpointer self);
+static void publishing_yandex_web_auth_pane_on_page_load (PublishingYandexWebAuthPane* self);
+static WebKitNavigationAction* _vala_WebKitNavigationAction_copy (WebKitNavigationAction* self);
+static void _vala_WebKitNavigationAction_free (WebKitNavigationAction* self);
+static void publishing_yandex_web_auth_pane_on_load_started (PublishingYandexWebAuthPane* self);
+static GtkWidget* publishing_yandex_web_auth_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_yandex_web_auth_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_yandex_web_auth_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_yandex_web_auth_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void publishing_yandex_web_auth_pane_finalize (GObject* obj);
+gpointer publishing_yandex_publish_options_ref (gpointer instance);
+void publishing_yandex_publish_options_unref (gpointer instance);
+GParamSpec* publishing_yandex_param_spec_publish_options (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_yandex_value_set_publish_options (GValue* value, gpointer v_object);
+void publishing_yandex_value_take_publish_options (GValue* value, gpointer v_object);
+gpointer publishing_yandex_value_get_publish_options (const GValue* value);
+GType publishing_yandex_publish_options_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_YANDEX_PUBLISH_OPTIONS_DUMMY_PROPERTY
+};
+PublishingYandexPublishOptions* publishing_yandex_publish_options_new (void);
+PublishingYandexPublishOptions* publishing_yandex_publish_options_construct (GType object_type);
+static void publishing_yandex_publish_options_finalize (PublishingYandexPublishOptions* obj);
+GType publishing_yandex_publishing_options_pane_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPanePrivate))
+enum {
+ PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_DUMMY_PROPERTY
+};
+static SpitPublishingDialogPaneGeometryOptions publishing_yandex_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_yandex_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_yandex_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static GtkWidget* publishing_yandex_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base);
+PublishingYandexPublishingOptionsPane* publishing_yandex_publishing_options_pane_new (PublishingYandexPublishOptions* options, GeeHashMap* list, SpitPublishingPluginHost* host);
+PublishingYandexPublishingOptionsPane* publishing_yandex_publishing_options_pane_construct (GType object_type, PublishingYandexPublishOptions* options, GeeHashMap* list, SpitPublishingPluginHost* host);
+static void publishing_yandex_publishing_options_pane_on_publish_clicked (PublishingYandexPublishingOptionsPane* self);
+static void _publishing_yandex_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_yandex_publishing_options_pane_on_logout_clicked (PublishingYandexPublishingOptionsPane* self);
+static void _publishing_yandex_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_yandex_publishing_options_pane_finalize (GObject* obj);
+GType publishing_yandex_uploader_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_YANDEX_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploaderPrivate))
+enum {
+ PUBLISHING_YANDEX_UPLOADER_DUMMY_PROPERTY
+};
+PublishingYandexUploader* publishing_yandex_uploader_new (PublishingYandexSession* session, PublishingYandexPublishOptions* options, SpitPublishingPublishable** photos, int photos_length1);
+PublishingYandexUploader* publishing_yandex_uploader_construct (GType object_type, PublishingYandexSession* session, PublishingYandexPublishOptions* options, SpitPublishingPublishable** photos, int photos_length1);
+static PublishingRESTSupportTransaction* publishing_yandex_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable);
+PublishingYandexUploadTransaction* publishing_yandex_upload_transaction_new (PublishingYandexSession* session, PublishingYandexPublishOptions* options, SpitPublishingPublishable* photo);
+PublishingYandexUploadTransaction* publishing_yandex_upload_transaction_construct (GType object_type, PublishingYandexSession* session, PublishingYandexPublishOptions* options, SpitPublishingPublishable* photo);
+GType publishing_yandex_upload_transaction_get_type (void) G_GNUC_CONST;
+static void publishing_yandex_uploader_finalize (PublishingRESTSupportBatchUploader* obj);
+enum {
+ PUBLISHING_YANDEX_UPLOAD_TRANSACTION_DUMMY_PROPERTY
+};
+static void _vala_SoupMultipart_free (SoupMultipart* self);
+static void _g_free0_ (gpointer var);
+static void _vala_SoupBuffer_free (SoupBuffer* self);
+#define PUBLISHING_YANDEX_YANDEX_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisherPrivate))
+enum {
+ PUBLISHING_YANDEX_YANDEX_PUBLISHER_DUMMY_PROPERTY
+};
+gchar* publishing_yandex_yandex_publisher_get_persistent_auth_token (PublishingYandexYandexPublisher* self);
+void publishing_yandex_yandex_publisher_set_persistent_auth_token (PublishingYandexYandexPublisher* self, const gchar* auth_token);
+void publishing_yandex_yandex_publisher_invalidate_persistent_session (PublishingYandexYandexPublisher* self);
+gboolean publishing_yandex_yandex_publisher_is_persistent_session_available (PublishingYandexYandexPublisher* self);
+static gboolean publishing_yandex_yandex_publisher_real_is_running (SpitPublishingPublisher* base);
+static SpitPublishingService* publishing_yandex_yandex_publisher_real_get_service (SpitPublishingPublisher* base);
+static gchar* publishing_yandex_yandex_publisher_check_response (PublishingYandexYandexPublisher* self, PublishingRESTSupportXmlDocument* doc);
+static void publishing_yandex_yandex_publisher_parse_album_entry (PublishingYandexYandexPublisher* self, xmlNode* e, GError** error);
+void publishing_yandex_yandex_publisher_parse_album_creation (PublishingYandexYandexPublisher* self, const gchar* data, GError** error);
+static gchar* _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self);
+void publishing_yandex_yandex_publisher_parse_album_list (PublishingYandexYandexPublisher* self, const gchar* data, GError** error);
+static void publishing_yandex_yandex_publisher_album_creation_error (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t, GError* err);
+static void publishing_yandex_yandex_publisher_album_creation_complete (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t);
+static void _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_yandex_yandex_publisher_start_upload (PublishingYandexYandexPublisher* self);
+static void publishing_yandex_yandex_publisher_create_destination_album (PublishingYandexYandexPublisher* self);
+static void publishing_yandex_yandex_publisher_on_upload_complete (PublishingYandexYandexPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published);
+static void _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self);
+static void publishing_yandex_yandex_publisher_on_upload_error (PublishingYandexYandexPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err);
+static void _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self);
+static void publishing_yandex_yandex_publisher_on_upload_status_updated (PublishingYandexYandexPublisher* self, gint file_number, gdouble completed_fraction);
+static void _publishing_yandex_yandex_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self);
+static void publishing_yandex_yandex_publisher_on_logout (PublishingYandexYandexPublisher* self);
+static void publishing_yandex_yandex_publisher_on_publish (PublishingYandexYandexPublisher* self);
+void publishing_yandex_yandex_publisher_service_get_album_list_error (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t, GError* err);
+void publishing_yandex_yandex_publisher_service_get_album_list_complete (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t);
+static void _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void _publishing_yandex_yandex_publisher_on_publish_publishing_yandex_publishing_options_pane_publish (PublishingYandexPublishingOptionsPane* _sender, gpointer self);
+static void _publishing_yandex_yandex_publisher_on_logout_publishing_yandex_publishing_options_pane_logout (PublishingYandexPublishingOptionsPane* _sender, gpointer self);
+void publishing_yandex_yandex_publisher_service_get_album_list (PublishingYandexYandexPublisher* self, const gchar* url);
+void publishing_yandex_yandex_publisher_fetch_account_error (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t, GError* err);
+void publishing_yandex_yandex_publisher_fetch_account_complete (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t);
+static void _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+void publishing_yandex_yandex_publisher_fetch_account_information (PublishingYandexYandexPublisher* self, const gchar* auth_token);
+static void publishing_yandex_yandex_publisher_web_auth_login_succeeded (PublishingYandexYandexPublisher* self, const gchar* access_token);
+static void publishing_yandex_yandex_publisher_web_auth_login_failed (PublishingYandexYandexPublisher* self);
+static void publishing_yandex_yandex_publisher_start_web_auth (PublishingYandexYandexPublisher* self);
+static void _publishing_yandex_yandex_publisher_web_auth_login_succeeded_publishing_yandex_web_auth_pane_login_succeeded (PublishingYandexWebAuthPane* _sender, const gchar* success_url, gpointer self);
+static void _publishing_yandex_yandex_publisher_web_auth_login_failed_publishing_yandex_web_auth_pane_login_failed (PublishingYandexWebAuthPane* _sender, gpointer self);
+static void publishing_yandex_yandex_publisher_show_welcome_page (PublishingYandexYandexPublisher* self);
+static void _publishing_yandex_yandex_publisher_start_web_auth_spit_publishing_login_callback (gpointer self);
+static void publishing_yandex_yandex_publisher_real_start (SpitPublishingPublisher* base);
+static void publishing_yandex_yandex_publisher_real_stop (SpitPublishingPublisher* base);
+static void publishing_yandex_yandex_publisher_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 gint _vala_array_length (gpointer array);
+
+
+static gint yandex_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ YandexService * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = min_host_interface;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = max_host_interface;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = _tmp2_;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 479 "YandexPublishing.c"
+}
+
+
+static const gchar* yandex_service_real_get_id (SpitPluggable* base) {
+ YandexService * self;
+ const gchar* result = NULL;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = "org.yorba.shotwell.publishing.yandex-fotki";
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 492 "YandexPublishing.c"
+}
+
+
+static const gchar* yandex_service_real_get_pluggable_name (SpitPluggable* base) {
+ YandexService * self;
+ const gchar* result = NULL;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService);
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = "Yandex.Fotki";
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 505 "YandexPublishing.c"
+}
+
+
+static void yandex_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ YandexService * self;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (info != NULL);
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = g_strdup ("Evgeniy Polyakov <zbr@ioremap.net>");
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 ((*info).authors);
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ (*info).authors = _tmp0_;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = _ ("Copyright 2010+ Evgeniy Polyakov <zbr@ioremap.net>");
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 ((*info).copyright);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ (*info).copyright = _tmp2_;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 ((*info).translators);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ (*info).translators = _tmp3_;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = g_strdup (_VERSION);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 ((*info).version);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ (*info).version = _tmp4_;
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = _ ("Visit the Yandex.Fotki web site");
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = g_strdup (_tmp5_);
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 ((*info).website_name);
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ (*info).website_name = _tmp6_;
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = g_strdup ("http://fotki.yandex.ru/");
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 ((*info).website_url);
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ (*info).website_url = _tmp7_;
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = g_strdup (RESOURCES_LICENSE);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 ((*info).license);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ (*info).license = _tmp8_;
+#line 572 "YandexPublishing.c"
+}
+
+
+static SpitPublishingPublisher* yandex_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) {
+ YandexService * self;
+ SpitPublishingPublisher* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingYandexYandexPublisher* _tmp1_ = NULL;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = host;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = publishing_yandex_yandex_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 593 "YandexPublishing.c"
+}
+
+
+static SpitPublishingPublisherMediaType yandex_service_real_get_supported_media (SpitPublishingService* base) {
+ YandexService * self;
+ SpitPublishingPublisherMediaType result = 0;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 606 "YandexPublishing.c"
+}
+
+
+static void yandex_service_real_activation (SpitPluggable* base, gboolean enabled) {
+ YandexService * self;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService);
+#line 614 "YandexPublishing.c"
+}
+
+
+YandexService* yandex_service_construct (GType object_type) {
+ YandexService * self = NULL;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = (YandexService*) g_object_new (object_type, NULL);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self;
+#line 624 "YandexPublishing.c"
+}
+
+
+YandexService* yandex_service_new (void) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return yandex_service_construct (TYPE_YANDEX_SERVICE);
+#line 631 "YandexPublishing.c"
+}
+
+
+static void yandex_service_class_init (YandexServiceClass * klass) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ yandex_service_parent_class = g_type_class_peek_parent (klass);
+#line 638 "YandexPublishing.c"
+}
+
+
+static void yandex_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ yandex_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) yandex_service_real_get_pluggable_interface;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) yandex_service_real_get_id;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) yandex_service_real_get_pluggable_name;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) yandex_service_real_get_info;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) yandex_service_real_activation;
+#line 655 "YandexPublishing.c"
+}
+
+
+static void yandex_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ yandex_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->create_publisher = (SpitPublishingPublisher* (*)(SpitPublishingService*, SpitPublishingPluginHost*)) yandex_service_real_create_publisher;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->get_supported_media = (SpitPublishingPublisherMediaType (*)(SpitPublishingService*)) yandex_service_real_get_supported_media;
+#line 666 "YandexPublishing.c"
+}
+
+
+static void yandex_service_instance_init (YandexService * self) {
+}
+
+
+GType yandex_service_get_type (void) {
+ static volatile gsize yandex_service_type_id__volatile = 0;
+ if (g_once_init_enter (&yandex_service_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (YandexServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) yandex_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (YandexService), 0, (GInstanceInitFunc) yandex_service_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) yandex_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) yandex_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType yandex_service_type_id;
+ yandex_service_type_id = g_type_register_static (G_TYPE_OBJECT, "YandexService", &g_define_type_info, 0);
+ g_type_add_interface_static (yandex_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (yandex_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info);
+ g_once_init_leave (&yandex_service_type_id__volatile, yandex_service_type_id);
+ }
+ return yandex_service_type_id__volatile;
+}
+
+
+PublishingYandexTransaction* publishing_yandex_transaction_construct_with_url (GType object_type, PublishingYandexSession* session, const gchar* url, PublishingRESTSupportHttpMethod method) {
+ PublishingYandexTransaction* self = NULL;
+ PublishingYandexSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp2_ = 0;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = session;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = url;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = method;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = (PublishingYandexTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp2_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_transaction_add_headers (self);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self;
+#line 711 "YandexPublishing.c"
+}
+
+
+PublishingYandexTransaction* publishing_yandex_transaction_new_with_url (PublishingYandexSession* session, const gchar* url, PublishingRESTSupportHttpMethod method) {
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return publishing_yandex_transaction_construct_with_url (PUBLISHING_YANDEX_TYPE_TRANSACTION, session, url, method);
+#line 718 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_transaction_add_headers (PublishingYandexTransaction* self) {
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingYandexSession* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ gboolean _tmp3_ = FALSE;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_TRANSACTION (self));
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp3_) {
+#line 741 "YandexPublishing.c"
+ PublishingRESTSupportSession* _tmp4_ = NULL;
+ PublishingYandexSession* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = publishing_yandex_session_get_auth_token (_tmp5_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = g_strdup_printf ("OAuth %s", _tmp7_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", _tmp9_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp5_);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Connection", "close");
+#line 770 "YandexPublishing.c"
+ }
+}
+
+
+PublishingYandexTransaction* publishing_yandex_transaction_construct (GType object_type, PublishingYandexSession* session, PublishingRESTSupportHttpMethod method) {
+ PublishingYandexTransaction* self = NULL;
+ PublishingYandexSession* _tmp0_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp1_ = 0;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = session;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = method;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = (PublishingYandexTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_transaction_add_headers (self);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self;
+#line 791 "YandexPublishing.c"
+}
+
+
+PublishingYandexTransaction* publishing_yandex_transaction_new (PublishingYandexSession* session, PublishingRESTSupportHttpMethod method) {
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return publishing_yandex_transaction_construct (PUBLISHING_YANDEX_TYPE_TRANSACTION, session, method);
+#line 798 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_transaction_add_data (PublishingYandexTransaction* self, const gchar* type, const gchar* data) {
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_TRANSACTION (self));
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (type != NULL);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (data != NULL);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = data;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = type;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_rest_support_transaction_set_custom_payload (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp0_, _tmp1_, (gulong) 0);
+#line 817 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_transaction_class_init (PublishingYandexTransactionClass * klass) {
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 824 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_transaction_instance_init (PublishingYandexTransaction * self) {
+}
+
+
+GType publishing_yandex_transaction_get_type (void) {
+ static volatile gsize publishing_yandex_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_yandex_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexTransaction), 0, (GInstanceInitFunc) publishing_yandex_transaction_instance_init, NULL };
+ GType publishing_yandex_transaction_type_id;
+ publishing_yandex_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingYandexTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_yandex_transaction_type_id__volatile, publishing_yandex_transaction_type_id);
+ }
+ return publishing_yandex_transaction_type_id__volatile;
+}
+
+
+PublishingYandexSession* publishing_yandex_session_construct (GType object_type) {
+ PublishingYandexSession* self = NULL;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = (PublishingYandexSession*) publishing_rest_support_session_construct (object_type, NULL);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self;
+#line 850 "YandexPublishing.c"
+}
+
+
+PublishingYandexSession* publishing_yandex_session_new (void) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return publishing_yandex_session_construct (PUBLISHING_YANDEX_TYPE_SESSION);
+#line 857 "YandexPublishing.c"
+}
+
+
+static gboolean publishing_yandex_session_real_is_authenticated (PublishingRESTSupportSession* base) {
+ PublishingYandexSession * self;
+ gboolean result = FALSE;
+ const gchar* _tmp0_ = NULL;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->auth_token;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = _tmp0_ != NULL;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 873 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_session_deauthenticate (PublishingYandexSession* self) {
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_SESSION (self));
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (self->priv->auth_token);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->auth_token = NULL;
+#line 884 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_session_set_auth_token (PublishingYandexSession* self, const gchar* token) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_SESSION (self));
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = token;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (self->priv->auth_token);
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->auth_token = _tmp1_;
+#line 903 "YandexPublishing.c"
+}
+
+
+gchar* publishing_yandex_session_get_auth_token (PublishingYandexSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (self), NULL);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->auth_token;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = _tmp1_;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 921 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_session_class_init (PublishingYandexSessionClass * klass) {
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_session_parent_class = g_type_class_peek_parent (klass);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_yandex_session_finalize;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingYandexSessionPrivate));
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = publishing_yandex_session_real_is_authenticated;
+#line 934 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_session_instance_init (PublishingYandexSession * self) {
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv = PUBLISHING_YANDEX_SESSION_GET_PRIVATE (self);
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->auth_token = NULL;
+#line 943 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_session_finalize (PublishingRESTSupportSession* obj) {
+ PublishingYandexSession * self;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession);
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (self->priv->auth_token);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_yandex_session_parent_class)->finalize (obj);
+#line 955 "YandexPublishing.c"
+}
+
+
+GType publishing_yandex_session_get_type (void) {
+ static volatile gsize publishing_yandex_session_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_yandex_session_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexSession), 0, (GInstanceInitFunc) publishing_yandex_session_instance_init, NULL };
+ GType publishing_yandex_session_type_id;
+ publishing_yandex_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingYandexSession", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_yandex_session_type_id__volatile, publishing_yandex_session_type_id);
+ }
+ return publishing_yandex_session_type_id__volatile;
+}
+
+
+static void _publishing_yandex_web_auth_pane_on_page_load_changed_webkit_web_view_load_changed (WebKitWebView* _sender, WebKitLoadEvent load_event, gpointer self) {
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_web_auth_pane_on_page_load_changed ((PublishingYandexWebAuthPane*) self, load_event);
+#line 974 "YandexPublishing.c"
+}
+
+
+static gboolean _publishing_yandex_web_auth_pane_on_decide_policy_webkit_web_view_decide_policy (WebKitWebView* _sender, WebKitPolicyDecision* decision, WebKitPolicyDecisionType type, gpointer self) {
+ gboolean result;
+ result = publishing_yandex_web_auth_pane_on_decide_policy ((PublishingYandexWebAuthPane*) self, decision, type);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 983 "YandexPublishing.c"
+}
+
+
+static gboolean __lambda4_ (PublishingYandexWebAuthPane* self) {
+ gboolean result = FALSE;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = FALSE;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 993 "YandexPublishing.c"
+}
+
+
+static gboolean ___lambda4__webkit_web_view_context_menu (WebKitWebView* _sender, WebKitContextMenu* context_menu, GdkEvent* event, WebKitHitTestResult* hit_test_result, gpointer self) {
+ gboolean result;
+ result = __lambda4_ ((PublishingYandexWebAuthPane*) self);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 1002 "YandexPublishing.c"
+}
+
+
+PublishingYandexWebAuthPane* publishing_yandex_web_auth_pane_construct (GType object_type, const gchar* login_url) {
+ PublishingYandexWebAuthPane * self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ GtkBox* _tmp7_ = NULL;
+ GtkScrolledWindow* _tmp8_ = NULL;
+ GtkScrolledWindow* _tmp9_ = NULL;
+ GtkScrolledWindow* _tmp10_ = NULL;
+ WebKitWebView* _tmp11_ = NULL;
+ WebKitWebView* _tmp12_ = NULL;
+ WebKitSettings* _tmp13_ = NULL;
+ WebKitWebView* _tmp14_ = NULL;
+ WebKitWebView* _tmp15_ = NULL;
+ WebKitWebView* _tmp16_ = NULL;
+ GtkScrolledWindow* _tmp17_ = NULL;
+ WebKitWebView* _tmp18_ = NULL;
+ GtkBox* _tmp19_ = NULL;
+ GtkScrolledWindow* _tmp20_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (login_url != NULL, NULL);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = (PublishingYandexWebAuthPane*) g_object_new (object_type, NULL);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = login_url;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (self->priv->login_url);
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->login_url = _tmp1_;
+#line 1037 "YandexPublishing.c"
+ {
+ GRegex* _tmp2_ = NULL;
+ GRegex* _tmp3_ = NULL;
+ GRegex* _tmp4_ = NULL;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = g_regex_new ("(.*)#access_token=([a-zA-Z0-9]*)&", 0, 0, &_inner_error_);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = _tmp3_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == G_REGEX_ERROR) {
+#line 1050 "YandexPublishing.c"
+ goto __catch39_g_regex_error;
+ }
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return NULL;
+#line 1059 "YandexPublishing.c"
+ }
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = _tmp2_;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = NULL;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_regex_unref0 (self->priv->re);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->re = _tmp4_;
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_regex_unref0 (_tmp2_);
+#line 1071 "YandexPublishing.c"
+ }
+ goto __finally39;
+ __catch39_g_regex_error:
+ {
+ GError* e = NULL;
+ GError* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ e = _inner_error_;
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _inner_error_ = NULL;
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = e;
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = _tmp5_->message;
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_critical ("YandexPublishing.vala:112: %s", _tmp6_);
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (e);
+#line 1091 "YandexPublishing.c"
+ }
+ __finally39:
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return NULL;
+#line 1102 "YandexPublishing.c"
+ }
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_object_ref_sink (_tmp7_);
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->pane_widget = _tmp7_;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_object_ref_sink (_tmp8_);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->webview_frame);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->webview_frame = _tmp8_;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = self->priv->webview_frame;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gtk_scrolled_window_set_shadow_type (_tmp9_, GTK_SHADOW_ETCHED_IN);
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = self->priv->webview_frame;
+#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gtk_scrolled_window_set_policy (_tmp10_, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = (WebKitWebView*) webkit_web_view_new ();
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_object_ref_sink (_tmp11_);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->webview);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->webview = _tmp11_;
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = self->priv->webview;
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_ = webkit_web_view_get_settings (_tmp12_);
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ webkit_settings_set_enable_plugins (_tmp13_, FALSE);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp14_ = self->priv->webview;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (_tmp14_, "load-changed", (GCallback) _publishing_yandex_web_auth_pane_on_page_load_changed_webkit_web_view_load_changed, self, 0);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp15_ = self->priv->webview;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (_tmp15_, "decide-policy", (GCallback) _publishing_yandex_web_auth_pane_on_decide_policy_webkit_web_view_decide_policy, self, 0);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp16_ = self->priv->webview;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (_tmp16_, "context-menu", (GCallback) ___lambda4__webkit_web_view_context_menu, self, 0);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp17_ = self->priv->webview_frame;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp18_ = self->priv->webview;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget));
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp19_ = self->priv->pane_widget;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp20_ = self->priv->webview_frame;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gtk_box_pack_start (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self;
+#line 1168 "YandexPublishing.c"
+}
+
+
+PublishingYandexWebAuthPane* publishing_yandex_web_auth_pane_new (const gchar* login_url) {
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return publishing_yandex_web_auth_pane_construct (PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, login_url);
+#line 1175 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_web_auth_pane_on_page_load (PublishingYandexWebAuthPane* self) {
+ GtkBox* _tmp0_ = NULL;
+ GdkWindow* _tmp1_ = NULL;
+ GdkCursor* _tmp2_ = NULL;
+ GdkCursor* _tmp3_ = NULL;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_WEB_AUTH_PANE (self));
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = gdk_cursor_new (GDK_LEFT_PTR);
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gdk_window_set_cursor (_tmp1_, _tmp3_);
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (_tmp3_);
+#line 1198 "YandexPublishing.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 1205 "YandexPublishing.c"
+}
+
+
+static WebKitNavigationAction* _vala_WebKitNavigationAction_copy (WebKitNavigationAction* self) {
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return g_boxed_copy (webkit_navigation_action_get_type (), self);
+#line 1212 "YandexPublishing.c"
+}
+
+
+static gpointer __vala_WebKitNavigationAction_copy0 (gpointer self) {
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self ? _vala_WebKitNavigationAction_copy (self) : NULL;
+#line 1219 "YandexPublishing.c"
+}
+
+
+static void _vala_WebKitNavigationAction_free (WebKitNavigationAction* self) {
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_boxed_free (webkit_navigation_action_get_type (), self);
+#line 1226 "YandexPublishing.c"
+}
+
+
+static gboolean publishing_yandex_web_auth_pane_on_decide_policy (PublishingYandexWebAuthPane* self, WebKitPolicyDecision* decision, WebKitPolicyDecisionType type) {
+ gboolean result = FALSE;
+ WebKitPolicyDecisionType _tmp0_ = 0;
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_WEB_AUTH_PANE (self), FALSE);
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (WEBKIT_IS_POLICY_DECISION (decision), FALSE);
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = type;
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ switch (_tmp0_) {
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ case WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION:
+#line 1243 "YandexPublishing.c"
+ {
+ WebKitNavigationPolicyDecision* n_decision = NULL;
+ WebKitPolicyDecision* _tmp1_ = NULL;
+ WebKitNavigationPolicyDecision* _tmp2_ = NULL;
+ WebKitNavigationAction* action = NULL;
+ WebKitNavigationPolicyDecision* _tmp3_ = NULL;
+ WebKitNavigationAction* _tmp4_ = NULL;
+ WebKitNavigationAction* _tmp5_ = NULL;
+ WebKitNavigationAction* _tmp6_ = NULL;
+ gchar* uri = NULL;
+ WebKitNavigationAction* _tmp7_ = NULL;
+ WebKitURIRequest* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ GMatchInfo* info = NULL;
+ GRegex* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ GMatchInfo* _tmp15_ = NULL;
+ gboolean _tmp16_ = FALSE;
+ WebKitPolicyDecision* _tmp32_ = NULL;
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = decision;
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, webkit_navigation_policy_decision_get_type (), WebKitNavigationPolicyDecision));
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ n_decision = _tmp2_;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = n_decision;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = webkit_navigation_policy_decision_get_navigation_action (_tmp3_);
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = __vala_WebKitNavigationAction_copy0 (_tmp5_);
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ action = _tmp6_;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = action;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = webkit_navigation_action_get_request (_tmp7_);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = webkit_uri_request_get_uri (_tmp8_);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = g_strdup (_tmp10_);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ uri = _tmp11_;
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = uri;
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:143: Navigating to '%s'", _tmp12_);
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ info = NULL;
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_ = self->priv->re;
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp14_ = uri;
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp16_ = g_regex_match (_tmp13_, _tmp14_, 0, &_tmp15_);
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_match_info_unref0 (info);
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ info = _tmp15_;
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp16_) {
+#line 1312 "YandexPublishing.c"
+ gchar* access_token = NULL;
+ GMatchInfo* _tmp17_ = NULL;
+ gchar** _tmp18_ = NULL;
+ gchar** _tmp19_ = NULL;
+ gchar** _tmp20_ = NULL;
+ gint _tmp20__length1 = 0;
+ const gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ GtkBox* _tmp25_ = NULL;
+ GdkWindow* _tmp26_ = NULL;
+ GdkCursor* _tmp27_ = NULL;
+ GdkCursor* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp17_ = info;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp19_ = _tmp18_ = g_match_info_fetch_all (_tmp17_);
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp20_ = _tmp19_;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp20__length1 = _vala_array_length (_tmp18_);
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp21_ = _tmp20_[2];
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp22_ = g_strdup (_tmp21_);
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp23_ = _tmp22_;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp20_ = (_vala_array_free (_tmp20_, _tmp20__length1, (GDestroyNotify) g_free), NULL);
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ access_token = _tmp23_;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp24_ = access_token;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:150: Load completed: %s", _tmp24_);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp25_ = self->priv->pane_widget;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp26_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget));
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp27_ = gdk_cursor_new (GDK_LEFT_PTR);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp28_ = _tmp27_;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gdk_window_set_cursor (_tmp26_, _tmp28_);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (_tmp28_);
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp29_ = access_token;
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp29_ != NULL) {
+#line 1366 "YandexPublishing.c"
+ const gchar* _tmp30_ = NULL;
+ WebKitPolicyDecision* _tmp31_ = NULL;
+#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp30_ = access_token;
+#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_emit_by_name (self, "login-succeeded", _tmp30_);
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp31_ = decision;
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ webkit_policy_decision_ignore (_tmp31_);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (access_token);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_match_info_unref0 (info);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (uri);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ __vala_WebKitNavigationAction_free0 (action);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (n_decision);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 1389 "YandexPublishing.c"
+ } else {
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_emit_by_name (self, "login-failed");
+#line 1393 "YandexPublishing.c"
+ }
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (access_token);
+#line 1397 "YandexPublishing.c"
+ }
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp32_ = decision;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ webkit_policy_decision_use (_tmp32_);
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_match_info_unref0 (info);
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (uri);
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ __vala_WebKitNavigationAction_free0 (action);
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (n_decision);
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 1413 "YandexPublishing.c"
+ }
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ case WEBKIT_POLICY_DECISION_TYPE_RESPONSE:
+#line 1417 "YandexPublishing.c"
+ {
+ WebKitPolicyDecision* _tmp33_ = NULL;
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp33_ = decision;
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ webkit_policy_decision_use (_tmp33_);
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 1426 "YandexPublishing.c"
+ }
+ default:
+ {
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = FALSE;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 1434 "YandexPublishing.c"
+ }
+ }
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = TRUE;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 1441 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_web_auth_pane_on_load_started (PublishingYandexWebAuthPane* self) {
+ GtkBox* _tmp0_ = NULL;
+ GdkWindow* _tmp1_ = NULL;
+ GdkCursor* _tmp2_ = NULL;
+ GdkCursor* _tmp3_ = NULL;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_WEB_AUTH_PANE (self));
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = gdk_cursor_new (GDK_WATCH);
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gdk_window_set_cursor (_tmp1_, _tmp3_);
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (_tmp3_);
+#line 1464 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_web_auth_pane_on_page_load_changed (PublishingYandexWebAuthPane* self, WebKitLoadEvent load_event) {
+ WebKitLoadEvent _tmp0_ = 0;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_WEB_AUTH_PANE (self));
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = load_event;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ switch (_tmp0_) {
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ case WEBKIT_LOAD_STARTED:
+#line 1478 "YandexPublishing.c"
+ {
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_web_auth_pane_on_load_started (self);
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 1484 "YandexPublishing.c"
+ }
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ case WEBKIT_LOAD_FINISHED:
+#line 1488 "YandexPublishing.c"
+ {
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_web_auth_pane_on_page_load (self);
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 1494 "YandexPublishing.c"
+ }
+ default:
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 1499 "YandexPublishing.c"
+ }
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 1503 "YandexPublishing.c"
+}
+
+
+static GtkWidget* publishing_yandex_web_auth_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingYandexWebAuthPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = _tmp1_;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 1522 "YandexPublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_yandex_web_auth_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingYandexWebAuthPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane);
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE;
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 1535 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_web_auth_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingYandexWebAuthPane * self;
+ WebKitWebView* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane);
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->webview;
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = self->priv->login_url;
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ webkit_web_view_load_uri (_tmp0_, _tmp1_);
+#line 1551 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_web_auth_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingYandexWebAuthPane * self;
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane);
+#line 1559 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_web_auth_pane_class_init (PublishingYandexWebAuthPaneClass * klass) {
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_web_auth_pane_parent_class = g_type_class_peek_parent (klass);
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingYandexWebAuthPanePrivate));
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_yandex_web_auth_pane_finalize;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_new ("login_succeeded", PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_new ("login_failed", PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 1574 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_web_auth_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_web_auth_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_yandex_web_auth_pane_real_get_widget;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_yandex_web_auth_pane_real_get_preferred_geometry;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_yandex_web_auth_pane_real_on_pane_installed;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_yandex_web_auth_pane_real_on_pane_uninstalled;
+#line 1589 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_web_auth_pane_instance_init (PublishingYandexWebAuthPane * self) {
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv = PUBLISHING_YANDEX_WEB_AUTH_PANE_GET_PRIVATE (self);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->webview = NULL;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->webview_frame = NULL;
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->login_url = NULL;
+#line 1604 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_web_auth_pane_finalize (GObject* obj) {
+ PublishingYandexWebAuthPane * self;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->webview);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->webview_frame);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_regex_unref0 (self->priv->re);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (self->priv->login_url);
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ G_OBJECT_CLASS (publishing_yandex_web_auth_pane_parent_class)->finalize (obj);
+#line 1624 "YandexPublishing.c"
+}
+
+
+GType publishing_yandex_web_auth_pane_get_type (void) {
+ static volatile gsize publishing_yandex_web_auth_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_yandex_web_auth_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexWebAuthPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_web_auth_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexWebAuthPane), 0, (GInstanceInitFunc) publishing_yandex_web_auth_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_yandex_web_auth_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_yandex_web_auth_pane_type_id;
+ publishing_yandex_web_auth_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYandexWebAuthPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_yandex_web_auth_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_yandex_web_auth_pane_type_id__volatile, publishing_yandex_web_auth_pane_type_id);
+ }
+ return publishing_yandex_web_auth_pane_type_id__volatile;
+}
+
+
+PublishingYandexPublishOptions* publishing_yandex_publish_options_construct (GType object_type) {
+ PublishingYandexPublishOptions* self = NULL;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = (PublishingYandexPublishOptions*) g_type_create_instance (object_type);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self;
+#line 1648 "YandexPublishing.c"
+}
+
+
+PublishingYandexPublishOptions* publishing_yandex_publish_options_new (void) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return publishing_yandex_publish_options_construct (PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS);
+#line 1655 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_value_publish_options_init (GValue* value) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1662 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_value_publish_options_free_value (GValue* value) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_publish_options_unref (value->data[0].v_pointer);
+#line 1671 "YandexPublishing.c"
+ }
+}
+
+
+static void publishing_yandex_value_publish_options_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_yandex_publish_options_ref (src_value->data[0].v_pointer);
+#line 1681 "YandexPublishing.c"
+ } else {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1685 "YandexPublishing.c"
+ }
+}
+
+
+static gpointer publishing_yandex_value_publish_options_peek_pointer (const GValue* value) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1693 "YandexPublishing.c"
+}
+
+
+static gchar* publishing_yandex_value_publish_options_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 1700 "YandexPublishing.c"
+ PublishingYandexPublishOptions* object;
+ object = collect_values[0].v_pointer;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1707 "YandexPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 1711 "YandexPublishing.c"
+ }
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ value->data[0].v_pointer = publishing_yandex_publish_options_ref (object);
+#line 1715 "YandexPublishing.c"
+ } else {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1719 "YandexPublishing.c"
+ }
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return NULL;
+#line 1723 "YandexPublishing.c"
+}
+
+
+static gchar* publishing_yandex_value_publish_options_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingYandexPublishOptions** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!object_p) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1734 "YandexPublishing.c"
+ }
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ *object_p = NULL;
+#line 1740 "YandexPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1744 "YandexPublishing.c"
+ } else {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ *object_p = publishing_yandex_publish_options_ref (value->data[0].v_pointer);
+#line 1748 "YandexPublishing.c"
+ }
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return NULL;
+#line 1752 "YandexPublishing.c"
+}
+
+
+GParamSpec* publishing_yandex_param_spec_publish_options (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingYandexParamSpecPublishOptions* spec;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS), NULL);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 1766 "YandexPublishing.c"
+}
+
+
+gpointer publishing_yandex_value_get_publish_options (const GValue* value) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS), NULL);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1775 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_value_set_publish_options (GValue* value, gpointer v_object) {
+ PublishingYandexPublishOptions* old;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS));
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (v_object) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS));
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_publish_options_ref (value->data[0].v_pointer);
+#line 1795 "YandexPublishing.c"
+ } else {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1799 "YandexPublishing.c"
+ }
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (old) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_publish_options_unref (old);
+#line 1805 "YandexPublishing.c"
+ }
+}
+
+
+void publishing_yandex_value_take_publish_options (GValue* value, gpointer v_object) {
+ PublishingYandexPublishOptions* old;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS));
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (v_object) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS));
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1824 "YandexPublishing.c"
+ } else {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1828 "YandexPublishing.c"
+ }
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (old) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_publish_options_unref (old);
+#line 1834 "YandexPublishing.c"
+ }
+}
+
+
+static void publishing_yandex_publish_options_class_init (PublishingYandexPublishOptionsClass * klass) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_publish_options_parent_class = g_type_class_peek_parent (klass);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ ((PublishingYandexPublishOptionsClass *) klass)->finalize = publishing_yandex_publish_options_finalize;
+#line 1844 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_publish_options_instance_init (PublishingYandexPublishOptions * self) {
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->disable_comments = FALSE;
+#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->hide_original = FALSE;
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->destination_album = NULL;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->destination_album_url = NULL;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->ref_count = 1;
+#line 1859 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_publish_options_finalize (PublishingYandexPublishOptions* obj) {
+ PublishingYandexPublishOptions * self;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptions);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (self->access_type);
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (self->destination_album);
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (self->destination_album_url);
+#line 1875 "YandexPublishing.c"
+}
+
+
+GType publishing_yandex_publish_options_get_type (void) {
+ static volatile gsize publishing_yandex_publish_options_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_yandex_publish_options_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_yandex_value_publish_options_init, publishing_yandex_value_publish_options_free_value, publishing_yandex_value_publish_options_copy_value, publishing_yandex_value_publish_options_peek_pointer, "p", publishing_yandex_value_publish_options_collect_value, "p", publishing_yandex_value_publish_options_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexPublishOptionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_publish_options_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexPublishOptions), 0, (GInstanceInitFunc) publishing_yandex_publish_options_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 publishing_yandex_publish_options_type_id;
+ publishing_yandex_publish_options_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingYandexPublishOptions", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_yandex_publish_options_type_id__volatile, publishing_yandex_publish_options_type_id);
+ }
+ return publishing_yandex_publish_options_type_id__volatile;
+}
+
+
+gpointer publishing_yandex_publish_options_ref (gpointer instance) {
+ PublishingYandexPublishOptions* self;
+ self = instance;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return instance;
+#line 1900 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_publish_options_unref (gpointer instance) {
+ PublishingYandexPublishOptions* self;
+ self = instance;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ PUBLISHING_YANDEX_PUBLISH_OPTIONS_GET_CLASS (self)->finalize (self);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1913 "YandexPublishing.c"
+ }
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_yandex_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingYandexPublishingOptionsPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 1927 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingYandexPublishingOptionsPane * self;
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane);
+#line 1935 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingYandexPublishingOptionsPane * self;
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane);
+#line 1943 "YandexPublishing.c"
+}
+
+
+static GtkWidget* publishing_yandex_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingYandexPublishingOptionsPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->box;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = _tmp1_;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 1962 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_publishing_options_pane_on_publish_clicked ((PublishingYandexPublishingOptionsPane*) self);
+#line 1969 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_publishing_options_pane_on_logout_clicked ((PublishingYandexPublishingOptionsPane*) self);
+#line 1976 "YandexPublishing.c"
+}
+
+
+PublishingYandexPublishingOptionsPane* publishing_yandex_publishing_options_pane_construct (GType object_type, PublishingYandexPublishOptions* options, GeeHashMap* list, SpitPublishingPluginHost* host) {
+ PublishingYandexPublishingOptionsPane * self = NULL;
+ PublishingYandexPublishOptions* _tmp0_ = NULL;
+ GtkBox* _tmp1_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS (options), NULL);
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (GEE_IS_HASH_MAP (list), NULL);
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = (PublishingYandexPublishingOptionsPane*) g_object_new (object_type, NULL);
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = options;
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->options = _tmp0_;
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_object_ref_sink (_tmp1_);
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->box);
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->box = _tmp1_;
+#line 2005 "YandexPublishing.c"
+ {
+ GtkBuilder* _tmp2_ = NULL;
+ GtkBuilder* _tmp3_ = NULL;
+ GtkBuilder* _tmp4_ = NULL;
+ GtkAlignment* align = NULL;
+ GtkBuilder* _tmp5_ = NULL;
+ GObject* _tmp6_ = NULL;
+ GtkAlignment* _tmp7_ = NULL;
+ GtkBuilder* _tmp8_ = NULL;
+ GObject* _tmp9_ = NULL;
+ GtkComboBoxText* _tmp10_ = NULL;
+ GtkComboBoxText* _tmp23_ = NULL;
+ GtkBuilder* _tmp24_ = NULL;
+ GObject* _tmp25_ = NULL;
+ GtkButton* _tmp26_ = NULL;
+ GtkBuilder* _tmp27_ = NULL;
+ GObject* _tmp28_ = NULL;
+ GtkButton* _tmp29_ = NULL;
+ GtkButton* _tmp30_ = NULL;
+ GtkButton* _tmp31_ = NULL;
+ GtkAlignment* _tmp32_ = NULL;
+ GtkBox* _tmp33_ = NULL;
+ GtkBox* _tmp34_ = NULL;
+ GtkAlignment* _tmp35_ = NULL;
+#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = gtk_builder_new ();
+#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->builder = _tmp2_;
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = self->priv->builder;
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gtk_builder_add_from_resource (_tmp3_, PLUGIN_RESOURCE_PATH "/yandex_publish_model.ui", &_inner_error_);
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 2042 "YandexPublishing.c"
+ goto __catch40_g_error;
+ }
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = self->priv->builder;
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gtk_builder_connect_signals (_tmp4_, NULL);
+#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = self->priv->builder;
+#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = gtk_builder_get_object (_tmp5_, "alignment");
+#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, gtk_alignment_get_type ()) ? ((GtkAlignment*) _tmp6_) : NULL);
+#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ align = _tmp7_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = self->priv->builder;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = gtk_builder_get_object (_tmp8_, "album_list");
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp9_) : NULL);
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->album_list);
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->album_list = _tmp10_;
+#line 2067 "YandexPublishing.c"
+ {
+ GeeIterator* _key_it = NULL;
+ GeeHashMap* _tmp11_ = NULL;
+ GeeSet* _tmp12_ = NULL;
+ GeeSet* _tmp13_ = NULL;
+ GeeSet* _tmp14_ = NULL;
+ GeeIterator* _tmp15_ = NULL;
+ GeeIterator* _tmp16_ = NULL;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = list;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_MAP, GeeMap));
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp14_ = _tmp13_;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp15_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp16_ = _tmp15_;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (_tmp14_);
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _key_it = _tmp16_;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ while (TRUE) {
+#line 2094 "YandexPublishing.c"
+ GeeIterator* _tmp17_ = NULL;
+ gboolean _tmp18_ = FALSE;
+ gchar* key = NULL;
+ GeeIterator* _tmp19_ = NULL;
+ gpointer _tmp20_ = NULL;
+ GtkComboBoxText* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp17_ = _key_it;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp18_ = gee_iterator_next (_tmp17_);
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!_tmp18_) {
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 2110 "YandexPublishing.c"
+ }
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp19_ = _key_it;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp20_ = gee_iterator_get (_tmp19_);
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ key = (gchar*) _tmp20_;
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp21_ = self->priv->album_list;
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp22_ = key;
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp21_, _tmp22_);
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (key);
+#line 2126 "YandexPublishing.c"
+ }
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (_key_it);
+#line 2130 "YandexPublishing.c"
+ }
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp23_ = self->priv->album_list;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp24_ = self->priv->builder;
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp25_ = gtk_builder_get_object (_tmp24_, "publish_button");
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, gtk_button_get_type ()) ? ((GtkButton*) _tmp25_) : NULL);
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->publish_button = _tmp26_;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp27_ = self->priv->builder;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp28_ = gtk_builder_get_object (_tmp27_, "logout_button");
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, gtk_button_get_type ()) ? ((GtkButton*) _tmp28_) : NULL);
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->logout_button = _tmp29_;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp30_ = self->priv->publish_button;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (_tmp30_, "clicked", (GCallback) _publishing_yandex_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0);
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp31_ = self->priv->logout_button;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (_tmp31_, "clicked", (GCallback) _publishing_yandex_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0);
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp32_ = align;
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp33_ = self->priv->box;
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gtk_widget_reparent (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget), G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget));
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp34_ = self->priv->box;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp35_ = align;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gtk_box_set_child_packing (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0, GTK_PACK_START);
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (align);
+#line 2178 "YandexPublishing.c"
+ }
+ goto __finally40;
+ __catch40_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp36_ = NULL;
+ const gchar* _tmp37_ = NULL;
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ e = _inner_error_;
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _inner_error_ = NULL;
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp36_ = e;
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp37_ = _tmp36_->message;
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_warning ("YandexPublishing.vala:263: Could not load UI: %s", _tmp37_);
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (e);
+#line 2198 "YandexPublishing.c"
+ }
+ __finally40:
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return NULL;
+#line 2209 "YandexPublishing.c"
+ }
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self;
+#line 2213 "YandexPublishing.c"
+}
+
+
+PublishingYandexPublishingOptionsPane* publishing_yandex_publishing_options_pane_new (PublishingYandexPublishOptions* options, GeeHashMap* list, SpitPublishingPluginHost* host) {
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return publishing_yandex_publishing_options_pane_construct (PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, options, list, host);
+#line 2220 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_publishing_options_pane_on_logout_clicked (PublishingYandexPublishingOptionsPane* self) {
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 2229 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_publishing_options_pane_on_publish_clicked (PublishingYandexPublishingOptionsPane* self) {
+ PublishingYandexPublishOptions* _tmp0_ = NULL;
+ GtkComboBoxText* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ GtkCheckButton* tmp = NULL;
+ GtkBuilder* _tmp3_ = NULL;
+ GObject* _tmp4_ = NULL;
+ GtkCheckButton* _tmp5_ = NULL;
+ PublishingYandexPublishOptions* _tmp6_ = NULL;
+ GtkCheckButton* _tmp7_ = NULL;
+ gboolean _tmp8_ = FALSE;
+ gboolean _tmp9_ = FALSE;
+ GtkBuilder* _tmp10_ = NULL;
+ GObject* _tmp11_ = NULL;
+ GtkCheckButton* _tmp12_ = NULL;
+ PublishingYandexPublishOptions* _tmp13_ = NULL;
+ GtkCheckButton* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+ gboolean _tmp16_ = FALSE;
+ GtkComboBoxText* access_type = NULL;
+ GtkBuilder* _tmp17_ = NULL;
+ GObject* _tmp18_ = NULL;
+ GtkComboBoxText* _tmp19_ = NULL;
+ PublishingYandexPublishOptions* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->options;
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = self->priv->album_list;
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = gtk_combo_box_text_get_active_text (_tmp1_);
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp0_->destination_album);
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_->destination_album = _tmp2_;
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = self->priv->builder;
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = gtk_builder_get_object (_tmp3_, "hide_original_check");
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp4_) : NULL);
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ tmp = _tmp5_;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = self->priv->options;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = tmp;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_->hide_original = _tmp9_;
+#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = self->priv->builder;
+#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = gtk_builder_get_object (_tmp10_, "disable_comments_check");
+#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp11_) : NULL);
+#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (tmp);
+#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ tmp = _tmp12_;
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_ = self->priv->options;
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp14_ = tmp;
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp15_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp16_ = _tmp15_;
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_->disable_comments = _tmp16_;
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp17_ = self->priv->builder;
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp18_ = gtk_builder_get_object (_tmp17_, "access_type_list");
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp18_) : NULL);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ access_type = _tmp19_;
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp20_ = self->priv->options;
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp21_ = gtk_combo_box_text_get_active_text (access_type);
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp20_->access_type);
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp20_->access_type = _tmp21_;
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_emit_by_name (self, "publish");
+#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (access_type);
+#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (tmp);
+#line 2330 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_publishing_options_pane_class_init (PublishingYandexPublishingOptionsPaneClass * klass) {
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_publishing_options_pane_parent_class = g_type_class_peek_parent (klass);
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingYandexPublishingOptionsPanePrivate));
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_yandex_publishing_options_pane_finalize;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_new ("publish", PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_new ("logout", PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 2345 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_yandex_publishing_options_pane_real_get_preferred_geometry;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_yandex_publishing_options_pane_real_on_pane_installed;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_yandex_publishing_options_pane_real_on_pane_uninstalled;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_yandex_publishing_options_pane_real_get_widget;
+#line 2360 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_publishing_options_pane_instance_init (PublishingYandexPublishingOptionsPane * self) {
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv = PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self);
+#line 2367 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_publishing_options_pane_finalize (GObject* obj) {
+ PublishingYandexPublishingOptionsPane * self;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane);
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->box);
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->album_list);
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ G_OBJECT_CLASS (publishing_yandex_publishing_options_pane_parent_class)->finalize (obj);
+#line 2387 "YandexPublishing.c"
+}
+
+
+GType publishing_yandex_publishing_options_pane_get_type (void) {
+ static volatile gsize publishing_yandex_publishing_options_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_yandex_publishing_options_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_yandex_publishing_options_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_yandex_publishing_options_pane_type_id;
+ publishing_yandex_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYandexPublishingOptionsPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_yandex_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_yandex_publishing_options_pane_type_id__volatile, publishing_yandex_publishing_options_pane_type_id);
+ }
+ return publishing_yandex_publishing_options_pane_type_id__volatile;
+}
+
+
+PublishingYandexUploader* publishing_yandex_uploader_construct (GType object_type, PublishingYandexSession* session, PublishingYandexPublishOptions* options, SpitPublishingPublishable** photos, int photos_length1) {
+ PublishingYandexUploader* self = NULL;
+ PublishingYandexSession* _tmp0_ = NULL;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingYandexPublishOptions* _tmp2_ = NULL;
+#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL);
+#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS (options), NULL);
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = session;
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = photos;
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1__length1 = photos_length1;
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = (PublishingYandexUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp1__length1);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = options;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->options = _tmp2_;
+#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self;
+#line 2429 "YandexPublishing.c"
+}
+
+
+PublishingYandexUploader* publishing_yandex_uploader_new (PublishingYandexSession* session, PublishingYandexPublishOptions* options, SpitPublishingPublishable** photos, int photos_length1) {
+#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return publishing_yandex_uploader_construct (PUBLISHING_YANDEX_TYPE_UPLOADER, session, options, photos, photos_length1);
+#line 2436 "YandexPublishing.c"
+}
+
+
+static PublishingRESTSupportTransaction* publishing_yandex_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) {
+ PublishingYandexUploader * self;
+ PublishingRESTSupportTransaction* result = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingYandexSession* _tmp1_ = NULL;
+ PublishingYandexPublishOptions* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ SpitPublishingPublishable* _tmp4_ = NULL;
+ PublishingYandexUploadTransaction* _tmp5_ = NULL;
+ PublishingRESTSupportTransaction* _tmp6_ = NULL;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploader);
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:297: create transaction");
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = self->priv->options;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = publishing_yandex_upload_transaction_new (_tmp1_, _tmp2_, _tmp4_);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (_tmp4_);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = _tmp6_;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 2478 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_uploader_class_init (PublishingYandexUploaderClass * klass) {
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_uploader_parent_class = g_type_class_peek_parent (klass);
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_yandex_uploader_finalize;
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingYandexUploaderPrivate));
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = publishing_yandex_uploader_real_create_transaction;
+#line 2491 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_uploader_instance_init (PublishingYandexUploader * self) {
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv = PUBLISHING_YANDEX_UPLOADER_GET_PRIVATE (self);
+#line 2498 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_uploader_finalize (PublishingRESTSupportBatchUploader* obj) {
+ PublishingYandexUploader * self;
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploader);
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_yandex_uploader_parent_class)->finalize (obj);
+#line 2508 "YandexPublishing.c"
+}
+
+
+GType publishing_yandex_uploader_get_type (void) {
+ static volatile gsize publishing_yandex_uploader_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_yandex_uploader_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexUploader), 0, (GInstanceInitFunc) publishing_yandex_uploader_instance_init, NULL };
+ GType publishing_yandex_uploader_type_id;
+ publishing_yandex_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingYandexUploader", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_yandex_uploader_type_id__volatile, publishing_yandex_uploader_type_id);
+ }
+ return publishing_yandex_uploader_type_id__volatile;
+}
+
+
+static gchar* bool_to_string (gboolean self) {
+ gchar* result = NULL;
+#line 37 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (self) {
+#line 2528 "YandexPublishing.c"
+ gchar* _tmp0_ = NULL;
+#line 38 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strdup ("true");
+#line 38 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp0_;
+#line 38 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 2536 "YandexPublishing.c"
+ } else {
+ gchar* _tmp1_ = NULL;
+#line 40 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = g_strdup ("false");
+#line 40 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp1_;
+#line 40 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 2545 "YandexPublishing.c"
+ }
+}
+
+
+static void _vala_SoupMultipart_free (SoupMultipart* self) {
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_boxed_free (soup_multipart_get_type (), self);
+#line 2553 "YandexPublishing.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 2597 "YandexPublishing.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 2603 "YandexPublishing.c"
+}
+
+
+static void _g_free0_ (gpointer var) {
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ var = (g_free (var), NULL);
+#line 2610 "YandexPublishing.c"
+}
+
+
+static void _vala_SoupBuffer_free (SoupBuffer* self) {
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_boxed_free (soup_buffer_get_type (), self);
+#line 2617 "YandexPublishing.c"
+}
+
+
+PublishingYandexUploadTransaction* publishing_yandex_upload_transaction_construct (GType object_type, PublishingYandexSession* session, PublishingYandexPublishOptions* options, SpitPublishingPublishable* photo) {
+ PublishingYandexUploadTransaction* self = NULL;
+ PublishingYandexSession* _tmp0_ = NULL;
+ PublishingYandexPublishOptions* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ PublishingYandexPublishOptions* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ PublishingYandexPublishOptions* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ SoupMultipart* message_parts = NULL;
+ SoupMultipart* _tmp10_ = NULL;
+ SpitPublishingPublishable* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ PublishingYandexPublishOptions* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ PublishingYandexPublishOptions* _tmp18_ = NULL;
+ gboolean _tmp19_ = FALSE;
+ gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ PublishingYandexPublishOptions* _tmp22_ = NULL;
+ const gchar* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ gchar* photo_data = NULL;
+ gsize data_length = 0UL;
+ gint image_part_num = 0;
+ gint _tmp40_ = 0;
+ SoupBuffer* bindable_data = NULL;
+ guint8* _tmp41_ = NULL;
+ gint _tmp41__length1 = 0;
+ guint8* _tmp42_ = NULL;
+ gint _tmp42__length1 = 0;
+ SoupBuffer* _tmp43_ = NULL;
+ SpitPublishingPublishable* _tmp44_ = NULL;
+ GFile* _tmp45_ = NULL;
+ GFile* _tmp46_ = NULL;
+ gchar* _tmp47_ = NULL;
+ gchar* _tmp48_ = NULL;
+ SoupMessageHeaders* image_part_header = NULL;
+ SoupBuffer* image_part_body = NULL;
+ SoupMessageHeaders* _tmp49_ = NULL;
+ SoupBuffer* _tmp50_ = NULL;
+ GHashTable* _result_ = NULL;
+ GHashFunc _tmp51_ = NULL;
+ GEqualFunc _tmp52_ = NULL;
+ GHashTable* _tmp53_ = NULL;
+ gchar* _tmp54_ = NULL;
+ gchar* _tmp55_ = NULL;
+ gchar* _tmp56_ = NULL;
+ gchar* _tmp57_ = NULL;
+ SoupMessage* outbound_message = NULL;
+ gchar* _tmp58_ = NULL;
+ gchar* _tmp59_ = NULL;
+ SoupMessage* _tmp60_ = NULL;
+ SoupMessage* _tmp61_ = NULL;
+ SoupMessageHeaders* _tmp62_ = NULL;
+ PublishingYandexSession* _tmp63_ = NULL;
+ gchar* _tmp64_ = NULL;
+ gchar* _tmp65_ = NULL;
+ gchar* _tmp66_ = NULL;
+ gchar* _tmp67_ = NULL;
+ SoupMessageHeaders* _tmp68_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS (options), NULL);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (photo), NULL);
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = session;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = options;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = _tmp1_->destination_album_url;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = (PublishingYandexUploadTransaction*) publishing_yandex_transaction_construct_with_url (object_type, _tmp0_, _tmp2_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_rest_support_transaction_set_custom_payload (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "qwe", "image/jpeg", (gulong) 1);
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = photo;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = spit_publishing_publishable_get_publishing_name (_tmp3_);
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = options;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = _tmp6_->destination_album;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = options;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = _tmp8_->destination_album_url;
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:308: Uploading '%s' -> %s : %s", _tmp5_, _tmp7_, _tmp9_);
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = soup_multipart_new ("multipart/form-data");
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ message_parts = _tmp10_;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = photo;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = spit_publishing_publishable_get_publishing_name (_tmp11_);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ soup_multipart_append_form_string (message_parts, "title", _tmp13_);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp13_);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp14_ = options;
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp15_ = _tmp14_->hide_original;
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp16_ = bool_to_string (_tmp15_);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp17_ = _tmp16_;
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ soup_multipart_append_form_string (message_parts, "hide_original", _tmp17_);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp17_);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp18_ = options;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp19_ = _tmp18_->disable_comments;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp20_ = bool_to_string (_tmp19_);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp21_ = _tmp20_;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ soup_multipart_append_form_string (message_parts, "disable_comments", _tmp21_);
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp21_);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp22_ = options;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp23_ = _tmp22_->access_type;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp24_ = g_utf8_strdown (_tmp23_, (gssize) -1);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp25_ = _tmp24_;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ soup_multipart_append_form_string (message_parts, "access", _tmp25_);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp25_);
+#line 2774 "YandexPublishing.c"
+ {
+ SpitPublishingPublishable* _tmp26_ = NULL;
+ GFile* _tmp27_ = NULL;
+ GFile* _tmp28_ = NULL;
+ gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ gsize _tmp32_ = 0UL;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp26_ = photo;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp27_ = spit_publishing_publishable_get_serialized_file (_tmp26_);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp28_ = _tmp27_;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp29_ = g_file_get_path (_tmp28_);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp30_ = _tmp29_;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_file_get_contents (_tmp30_, &_tmp31_, &_tmp32_, &_inner_error_);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (photo_data);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ photo_data = _tmp31_;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ data_length = _tmp32_;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp30_);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (_tmp28_);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == G_FILE_ERROR) {
+#line 2809 "YandexPublishing.c"
+ goto __catch41_g_file_error;
+ }
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (photo_data);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return NULL;
+#line 2822 "YandexPublishing.c"
+ }
+ }
+ goto __finally41;
+ __catch41_g_file_error:
+ {
+ GError* e = NULL;
+ SpitPublishingPublishable* _tmp33_ = NULL;
+ GFile* _tmp34_ = NULL;
+ GFile* _tmp35_ = NULL;
+ gchar* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+ GError* _tmp38_ = NULL;
+ const gchar* _tmp39_ = NULL;
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ e = _inner_error_;
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _inner_error_ = NULL;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp33_ = photo;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp34_ = spit_publishing_publishable_get_serialized_file (_tmp33_);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp35_ = _tmp34_;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp36_ = g_file_get_path (_tmp35_);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp37_ = _tmp36_;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp38_ = e;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp39_ = _tmp38_->message;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_critical ("YandexPublishing.vala:322: Failed to read data file '%s': %s", _tmp37_, _tmp39_);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp37_);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (_tmp35_);
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (e);
+#line 2862 "YandexPublishing.c"
+ }
+ __finally41:
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (photo_data);
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return NULL;
+#line 2877 "YandexPublishing.c"
+ }
+#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp40_ = soup_multipart_get_length (message_parts);
+#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ image_part_num = _tmp40_;
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp41_ = string_get_data (photo_data, &_tmp41__length1);
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp42_ = _tmp41_;
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp42__length1 = _tmp41__length1;
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp43_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp42_ + 0, ((gint) data_length) - 0);
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ bindable_data = _tmp43_;
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp44_ = photo;
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp45_ = spit_publishing_publishable_get_serialized_file (_tmp44_);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp46_ = _tmp45_;
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp47_ = g_file_get_path (_tmp46_);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp48_ = _tmp47_;
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ soup_multipart_append_form_file (message_parts, "", _tmp48_, "image/jpeg", bindable_data);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp48_);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (_tmp46_);
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ soup_multipart_get_part (message_parts, image_part_num, &_tmp49_, &_tmp50_);
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ image_part_header = _tmp49_;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ image_part_body = _tmp50_;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp51_ = g_str_hash;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp52_ = g_str_equal;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp53_ = g_hash_table_new_full (_tmp51_, _tmp52_, _g_free0_, _g_free0_);
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _result_ = _tmp53_;
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp54_ = g_strdup ("name");
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp55_ = g_strdup ("image");
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_hash_table_insert (_result_, _tmp54_, _tmp55_);
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp56_ = g_strdup ("filename");
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp57_ = g_strdup ("unused");
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_hash_table_insert (_result_, _tmp56_, _tmp57_);
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ soup_message_headers_set_content_disposition (image_part_header, "form-data", _result_);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp58_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp59_ = _tmp58_;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp60_ = soup_form_request_new_from_multipart (_tmp59_, message_parts);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp61_ = _tmp60_;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp59_);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ outbound_message = _tmp61_;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp62_ = outbound_message->request_headers;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp63_ = session;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp64_ = publishing_yandex_session_get_auth_token (_tmp63_);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp65_ = _tmp64_;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp66_ = g_strdup_printf ("OAuth %s", _tmp65_);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp67_ = _tmp66_;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ soup_message_headers_append (_tmp62_, "Authorization", _tmp67_);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp67_);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp65_);
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp68_ = outbound_message->request_headers;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ soup_message_headers_append (_tmp68_, "Connection", "close");
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), outbound_message);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (outbound_message);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_hash_table_unref0 (_result_);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ __vala_SoupBuffer_free0 (bindable_data);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (photo_data);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self;
+#line 2985 "YandexPublishing.c"
+}
+
+
+PublishingYandexUploadTransaction* publishing_yandex_upload_transaction_new (PublishingYandexSession* session, PublishingYandexPublishOptions* options, SpitPublishingPublishable* photo) {
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return publishing_yandex_upload_transaction_construct (PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, session, options, photo);
+#line 2992 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_upload_transaction_class_init (PublishingYandexUploadTransactionClass * klass) {
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_upload_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 2999 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_upload_transaction_instance_init (PublishingYandexUploadTransaction * self) {
+}
+
+
+GType publishing_yandex_upload_transaction_get_type (void) {
+ static volatile gsize publishing_yandex_upload_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_yandex_upload_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexUploadTransaction), 0, (GInstanceInitFunc) publishing_yandex_upload_transaction_instance_init, NULL };
+ GType publishing_yandex_upload_transaction_type_id;
+ publishing_yandex_upload_transaction_type_id = g_type_register_static (PUBLISHING_YANDEX_TYPE_TRANSACTION, "PublishingYandexUploadTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_yandex_upload_transaction_type_id__volatile, publishing_yandex_upload_transaction_type_id);
+ }
+ return publishing_yandex_upload_transaction_type_id__volatile;
+}
+
+
+PublishingYandexYandexPublisher* publishing_yandex_yandex_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) {
+ PublishingYandexYandexPublisher * self = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingYandexSession* _tmp2_ = NULL;
+ GeeHashMap* _tmp3_ = NULL;
+ PublishingYandexPublishOptions* _tmp4_ = NULL;
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = (PublishingYandexYandexPublisher*) g_object_new (object_type, NULL);
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = service;
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->service = _tmp0_;
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = host;
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->host = _tmp1_;
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = publishing_yandex_session_new ();
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->session = _tmp2_;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->album_list);
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->album_list = _tmp3_;
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = publishing_yandex_publish_options_new ();
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_yandex_publish_options_unref0 (self->priv->options);
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->options = _tmp4_;
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return self;
+#line 3060 "YandexPublishing.c"
+}
+
+
+PublishingYandexYandexPublisher* publishing_yandex_yandex_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) {
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return publishing_yandex_yandex_publisher_construct (PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, service, host);
+#line 3067 "YandexPublishing.c"
+}
+
+
+gchar* publishing_yandex_yandex_publisher_get_persistent_auth_token (PublishingYandexYandexPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self), NULL);
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "auth_token", NULL);
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = _tmp1_;
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 3085 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_yandex_publisher_set_persistent_auth_token (PublishingYandexYandexPublisher* self, const gchar* auth_token) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (auth_token != NULL);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = auth_token;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "auth_token", _tmp1_);
+#line 3102 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_yandex_publisher_invalidate_persistent_session (PublishingYandexYandexPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_host_interface_unset_config_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "auth_token");
+#line 3114 "YandexPublishing.c"
+}
+
+
+gboolean publishing_yandex_yandex_publisher_is_persistent_session_available (PublishingYandexYandexPublisher* self) {
+ gboolean result = FALSE;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self), FALSE);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = publishing_yandex_yandex_publisher_get_persistent_auth_token (self);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = _tmp0_;
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = _tmp1_ != NULL;
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp1_);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = _tmp2_;
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 3137 "YandexPublishing.c"
+}
+
+
+static gboolean publishing_yandex_yandex_publisher_real_is_running (SpitPublishingPublisher* base) {
+ PublishingYandexYandexPublisher * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = _tmp0_;
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 3153 "YandexPublishing.c"
+}
+
+
+static SpitPublishingService* publishing_yandex_yandex_publisher_real_get_service (SpitPublishingPublisher* base) {
+ PublishingYandexYandexPublisher * self;
+ SpitPublishingService* result = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher);
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->service;
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = _tmp1_;
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 3172 "YandexPublishing.c"
+}
+
+
+static gchar* publishing_yandex_yandex_publisher_check_response (PublishingYandexYandexPublisher* self, PublishingRESTSupportXmlDocument* doc) {
+ gchar* result = NULL;
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self), NULL);
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL);
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ result = NULL;
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 3186 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_parse_album_entry (PublishingYandexYandexPublisher* self, xmlNode* e, GError** error) {
+ gchar* title = NULL;
+ gchar* link = NULL;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ title = NULL;
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ link = NULL;
+#line 3199 "YandexPublishing.c"
+ {
+ xmlNode* c = NULL;
+ xmlNode* _tmp0_ = NULL;
+ xmlNode* _tmp1_ = NULL;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = e;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = _tmp0_->children;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ c = _tmp1_;
+#line 3210 "YandexPublishing.c"
+ {
+ gboolean _tmp2_ = FALSE;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = TRUE;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ while (TRUE) {
+#line 3217 "YandexPublishing.c"
+ xmlNode* _tmp5_ = NULL;
+ xmlNode* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ gboolean _tmp10_ = FALSE;
+ xmlNode* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ gboolean _tmp18_ = FALSE;
+ const gchar* _tmp19_ = NULL;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!_tmp2_) {
+#line 3228 "YandexPublishing.c"
+ xmlNode* _tmp3_ = NULL;
+ xmlNode* _tmp4_ = NULL;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = c;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = _tmp3_->next;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ c = _tmp4_;
+#line 3237 "YandexPublishing.c"
+ }
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = FALSE;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = c;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!(_tmp5_ != NULL)) {
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 3247 "YandexPublishing.c"
+ }
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = c;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = _tmp6_->name;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (g_strcmp0 (_tmp7_, "title") == 0) {
+#line 3255 "YandexPublishing.c"
+ xmlNode* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = c;
+#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = (gchar*) xmlNodeGetContent (_tmp8_);
+#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (title);
+#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ title = _tmp9_;
+#line 3266 "YandexPublishing.c"
+ }
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = c;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = _tmp11_->name;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (g_strcmp0 (_tmp12_, "link") == 0) {
+#line 3274 "YandexPublishing.c"
+ xmlNode* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_ = c;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp14_ = (gchar*) xmlGetProp (_tmp13_, (xmlChar*) "rel");
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp15_ = _tmp14_;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = g_strcmp0 (_tmp15_, "photos") == 0;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp15_);
+#line 3288 "YandexPublishing.c"
+ } else {
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = FALSE;
+#line 3292 "YandexPublishing.c"
+ }
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp10_) {
+#line 3296 "YandexPublishing.c"
+ xmlNode* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp16_ = c;
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp17_ = (gchar*) xmlGetProp (_tmp16_, (xmlChar*) "href");
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (link);
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ link = _tmp17_;
+#line 3307 "YandexPublishing.c"
+ }
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp19_ = title;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp19_ != NULL) {
+#line 3313 "YandexPublishing.c"
+ const gchar* _tmp20_ = NULL;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp20_ = link;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp18_ = _tmp20_ != NULL;
+#line 3319 "YandexPublishing.c"
+ } else {
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp18_ = FALSE;
+#line 3323 "YandexPublishing.c"
+ }
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp18_) {
+#line 3327 "YandexPublishing.c"
+ const gchar* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ GeeHashMap* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ const gchar* _tmp25_ = NULL;
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp21_ = title;
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp22_ = link;
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:411: Added album: '%s', link: %s", _tmp21_, _tmp22_);
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp23_ = self->priv->album_list;
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp24_ = title;
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp25_ = link;
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp24_, _tmp25_);
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (title);
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ title = NULL;
+#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (link);
+#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ link = NULL;
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 3357 "YandexPublishing.c"
+ }
+ }
+ }
+ }
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (link);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (title);
+#line 3366 "YandexPublishing.c"
+}
+
+
+static gchar* _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self) {
+ gchar* result;
+ result = publishing_yandex_yandex_publisher_check_response ((PublishingYandexYandexPublisher*) self, doc);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return result;
+#line 3375 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_yandex_publisher_parse_album_creation (PublishingYandexYandexPublisher* self, const gchar* data, GError** error) {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ const gchar* _tmp0_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp1_ = NULL;
+ xmlNode* root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp2_ = NULL;
+ xmlNode* _tmp3_ = NULL;
+ xmlNode* _tmp4_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (data != NULL);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = data;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = publishing_rest_support_xml_document_parse_string (_tmp0_, _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response, self, &_inner_error_);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ doc = _tmp1_;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3406 "YandexPublishing.c"
+ } else {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3414 "YandexPublishing.c"
+ }
+ }
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = doc;
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = publishing_rest_support_xml_document_get_root_node (_tmp2_);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ root = _tmp3_;
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = root;
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_parse_album_entry (self, _tmp4_, &_inner_error_);
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3437 "YandexPublishing.c"
+ } else {
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3447 "YandexPublishing.c"
+ }
+ }
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 3452 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_yandex_publisher_parse_album_list (PublishingYandexYandexPublisher* self, const gchar* data, GError** error) {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ const gchar* _tmp0_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp1_ = NULL;
+ xmlNode* root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp2_ = NULL;
+ xmlNode* _tmp3_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (data != NULL);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = data;
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = publishing_rest_support_xml_document_parse_string (_tmp0_, _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response, self, &_inner_error_);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ doc = _tmp1_;
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3482 "YandexPublishing.c"
+ } else {
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3490 "YandexPublishing.c"
+ }
+ }
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = doc;
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = publishing_rest_support_xml_document_get_root_node (_tmp2_);
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ root = _tmp3_;
+#line 3499 "YandexPublishing.c"
+ {
+ xmlNode* e = NULL;
+ xmlNode* _tmp4_ = NULL;
+ xmlNode* _tmp5_ = NULL;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = root;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = _tmp4_->children;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ e = _tmp5_;
+#line 3510 "YandexPublishing.c"
+ {
+ gboolean _tmp6_ = FALSE;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = TRUE;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ while (TRUE) {
+#line 3517 "YandexPublishing.c"
+ xmlNode* _tmp9_ = NULL;
+ xmlNode* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ xmlNode* _tmp12_ = NULL;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!_tmp6_) {
+#line 3524 "YandexPublishing.c"
+ xmlNode* _tmp7_ = NULL;
+ xmlNode* _tmp8_ = NULL;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = e;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = _tmp7_->next;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ e = _tmp8_;
+#line 3533 "YandexPublishing.c"
+ }
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = FALSE;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = e;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!(_tmp9_ != NULL)) {
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 3543 "YandexPublishing.c"
+ }
+#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = e;
+#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = _tmp10_->name;
+#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (g_strcmp0 (_tmp11_, "entry") != 0) {
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ continue;
+#line 3553 "YandexPublishing.c"
+ }
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = e;
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_parse_album_entry (self, _tmp12_, &_inner_error_);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3569 "YandexPublishing.c"
+ } else {
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3579 "YandexPublishing.c"
+ }
+ }
+ }
+ }
+ }
+#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 3587 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_album_creation_complete ((PublishingYandexYandexPublisher*) self, _sender);
+#line 3594 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_album_creation_error ((PublishingYandexYandexPublisher*) self, _sender, err);
+#line 3601 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_album_creation_error (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ GError* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t));
+#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = t;
+#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed, self);
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = t;
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error, self);
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = err;
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = _tmp4_->message;
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_warning ("YandexPublishing.vala:443: Album creation error: %s", _tmp5_);
+#line 3634 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_album_creation_complete (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ GeeHashMap* _tmp9_ = NULL;
+ PublishingYandexPublishOptions* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gpointer _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gboolean _tmp14_ = FALSE;
+ GError * _inner_error_ = NULL;
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t));
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = t;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed, self);
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = t;
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error, self);
+#line 3666 "YandexPublishing.c"
+ {
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = t;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_parse_album_creation (self, _tmp6_, &_inner_error_);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3685 "YandexPublishing.c"
+ goto __catch42_spit_publishing_publishing_error;
+ }
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3694 "YandexPublishing.c"
+ }
+ }
+ goto __finally42;
+ __catch42_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ err = _inner_error_;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _inner_error_ = NULL;
+#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = err;
+#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (err);
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3717 "YandexPublishing.c"
+ }
+ __finally42:
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3728 "YandexPublishing.c"
+ }
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = self->priv->album_list;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = self->priv->options;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = _tmp10_->destination_album;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_);
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_ = (gchar*) _tmp12_;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp14_ = _tmp13_ != NULL;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp13_);
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp14_) {
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_start_upload (self);
+#line 3748 "YandexPublishing.c"
+ } else {
+ SpitPublishingPluginHost* _tmp15_ = NULL;
+ GError* _tmp16_ = NULL;
+ GError* _tmp17_ = NULL;
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp15_ = self->priv->host;
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp16_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, "Server did not create album");
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp17_ = _tmp16_;
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp15_, _tmp17_);
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (_tmp17_);
+#line 3763 "YandexPublishing.c"
+ }
+}
+
+
+static void publishing_yandex_yandex_publisher_create_destination_album (PublishingYandexYandexPublisher* self) {
+ gchar* album = NULL;
+ PublishingYandexPublishOptions* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* data = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingYandexTransaction* t = NULL;
+ PublishingYandexSession* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ PublishingYandexTransaction* _tmp6_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->options;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = _tmp0_->destination_album;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ album = _tmp2_;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = g_strdup_printf ("<entry xmlns=\"http://www.w3.org/2005/Atom\" xmlns:f=\"yandex:fotki\">" \
+"<title>%s</title></entry>", album);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ data = _tmp3_;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = self->priv->session;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = self->priv->service_url;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = publishing_yandex_transaction_new_with_url (_tmp4_, _tmp5_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ t = _tmp6_;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_transaction_add_data (t, "application/atom+xml; charset=utf-8; type=entry", data);
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 3808 "YandexPublishing.c"
+ {
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3816 "YandexPublishing.c"
+ goto __catch43_spit_publishing_publishing_error;
+ }
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (t);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (data);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (album);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3831 "YandexPublishing.c"
+ }
+ }
+ goto __finally43;
+ __catch43_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ err = _inner_error_;
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _inner_error_ = NULL;
+#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = err;
+#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (err);
+#line 3852 "YandexPublishing.c"
+ }
+ __finally43:
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (t);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (data);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (album);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 3869 "YandexPublishing.c"
+ }
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (t);
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (data);
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (album);
+#line 3877 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self) {
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_on_upload_complete ((PublishingYandexYandexPublisher*) self, _sender, num_photos_published);
+#line 3884 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self) {
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_on_upload_error ((PublishingYandexYandexPublisher*) self, _sender, err);
+#line 3891 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_on_upload_complete (PublishingYandexYandexPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) {
+ PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gint _tmp4_ = 0;
+ SpitPublishingPluginHost* _tmp8_ = NULL;
+ SpitPublishingPluginHost* _tmp9_ = NULL;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = uploader;
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = uploader;
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = num_published;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp4_ == 0) {
+#line 3923 "YandexPublishing.c"
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = self->priv->host;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, "");
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp5_, _tmp7_);
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (_tmp7_);
+#line 3937 "YandexPublishing.c"
+ }
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = self->priv->host;
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp8_, FALSE);
+#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = self->priv->host;
+#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_install_success_pane (_tmp9_);
+#line 3947 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_on_upload_error (PublishingYandexYandexPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err) {
+ PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ GError* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = uploader;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = uploader;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = err;
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = _tmp4_->message;
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_warning ("YandexPublishing.vala:497: Photo upload error: %s", _tmp5_);
+#line 3980 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_on_upload_status_updated (PublishingYandexYandexPublisher* self, gint file_number, gdouble completed_fraction) {
+ gdouble _tmp0_ = 0.0;
+ SpitPublishingProgressCallback _tmp1_ = NULL;
+ void* _tmp1__target = NULL;
+ SpitPublishingProgressCallback _tmp2_ = NULL;
+ void* _tmp2__target = NULL;
+ gint _tmp3_ = 0;
+ gdouble _tmp4_ = 0.0;
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = completed_fraction;
+#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:501: EVENT: uploader reports upload %.2f percent" \
+" complete.", 100.0 * _tmp0_);
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = self->priv->progress_reporter;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1__target = self->priv->progress_reporter_target;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _vala_assert (_tmp1_ != NULL, "progress_reporter != null");
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = self->priv->progress_reporter;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2__target = self->priv->progress_reporter_target;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = file_number;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = completed_fraction;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ (_tmp3_, _tmp4_, _tmp2__target);
+#line 4014 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self) {
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_on_upload_status_updated ((PublishingYandexYandexPublisher*) self, file_number, fraction_complete);
+#line 4021 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_start_upload (PublishingYandexYandexPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ void* _tmp2_ = NULL;
+ GDestroyNotify _tmp3_ = NULL;
+ SpitPublishingProgressCallback _tmp4_ = NULL;
+ PublishingYandexPublishOptions* _tmp5_ = NULL;
+ GeeHashMap* _tmp6_ = NULL;
+ PublishingYandexPublishOptions* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ gpointer _tmp9_ = NULL;
+ SpitPublishingPublishable** publishables = NULL;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ SpitPublishingPublishable** _tmp12_ = NULL;
+ gint publishables_length1 = 0;
+ gint _publishables_size_ = 0;
+ PublishingYandexUploader* uploader = NULL;
+ PublishingYandexSession* _tmp13_ = NULL;
+ PublishingYandexPublishOptions* _tmp14_ = NULL;
+ PublishingYandexUploader* _tmp15_ = NULL;
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, 0, FALSE, &_tmp2_, &_tmp3_);
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->progress_reporter = _tmp4_;
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->progress_reporter_target = _tmp2_;
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = _tmp3_;
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = self->priv->options;
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = self->priv->album_list;
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = self->priv->options;
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = _tmp7_->destination_album;
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_);
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp5_->destination_album_url);
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_->destination_album_url = (gchar*) _tmp9_;
+#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = self->priv->host;
+#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = spit_publishing_plugin_host_get_publishables (_tmp10_, &_tmp11_);
+#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishables = _tmp12_;
+#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishables_length1 = _tmp11_;
+#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishables_size_ = publishables_length1;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_ = self->priv->session;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp14_ = self->priv->options;
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp15_ = publishing_yandex_uploader_new (_tmp13_, _tmp14_, publishables, publishables_length1);
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ uploader = _tmp15_;
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0);
+#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0);
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_yandex_yandex_publisher_on_upload_status_updated_spit_publishing_progress_callback, self);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_batch_uploader_unref0 (uploader);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 4112 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_on_logout (PublishingYandexYandexPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+ PublishingYandexSession* _tmp1_ = NULL;
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!_tmp0_) {
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 4127 "YandexPublishing.c"
+ }
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = self->priv->session;
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_session_deauthenticate (_tmp1_);
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_invalidate_persistent_session (self);
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->running = FALSE;
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_publisher_start (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 4139 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_on_publish (PublishingYandexYandexPublisher* self) {
+ PublishingYandexPublishOptions* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ GeeHashMap* _tmp2_ = NULL;
+ PublishingYandexPublishOptions* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gpointer _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ GeeHashMap* _tmp7_ = NULL;
+ PublishingYandexPublishOptions* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gpointer _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->options;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = _tmp0_->destination_album;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = self->priv->album_list;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = self->priv->options;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = _tmp3_->destination_album;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_);
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = (gchar*) _tmp5_;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:535: Going to publish to '%s' : %s", _tmp1_, _tmp6_);
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = self->priv->album_list;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = self->priv->options;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = _tmp8_->destination_album;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_);
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = (gchar*) _tmp10_;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = _tmp11_ == NULL;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp11_);
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp12_) {
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_create_destination_album (self);
+#line 4195 "YandexPublishing.c"
+ } else {
+#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_start_upload (self);
+#line 4199 "YandexPublishing.c"
+ }
+}
+
+
+static void _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_service_get_album_list_complete ((PublishingYandexYandexPublisher*) self, _sender);
+#line 4207 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_service_get_album_list_error ((PublishingYandexYandexPublisher*) self, _sender, err);
+#line 4214 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_yandex_publisher_service_get_album_list_error (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ GError* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t));
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = t;
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed, self);
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = t;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error, self);
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_invalidate_persistent_session (self);
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = err;
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = _tmp4_->message;
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_warning ("YandexPublishing.vala:547: Failed to get album list: %s", _tmp5_);
+#line 4249 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_on_publish_publishing_yandex_publishing_options_pane_publish (PublishingYandexPublishingOptionsPane* _sender, gpointer self) {
+#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_on_publish ((PublishingYandexYandexPublisher*) self);
+#line 4256 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_on_logout_publishing_yandex_publishing_options_pane_logout (PublishingYandexPublishingOptionsPane* _sender, gpointer self) {
+#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_on_logout ((PublishingYandexYandexPublisher*) self);
+#line 4263 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_yandex_publisher_service_get_album_list_complete (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ PublishingYandexPublishingOptionsPane* publishing_options_pane = NULL;
+ PublishingYandexPublishOptions* _tmp12_ = NULL;
+ GeeHashMap* _tmp13_ = NULL;
+ SpitPublishingPluginHost* _tmp14_ = NULL;
+ PublishingYandexPublishingOptionsPane* _tmp15_ = NULL;
+ SpitPublishingPluginHost* _tmp16_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t));
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = t;
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed, self);
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = t;
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error, self);
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = t;
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:554: service_get_album_list_complete: %s", _tmp6_);
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 4308 "YandexPublishing.c"
+ {
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = t;
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_parse_album_list (self, _tmp9_, &_inner_error_);
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4327 "YandexPublishing.c"
+ goto __catch44_spit_publishing_publishing_error;
+ }
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 4336 "YandexPublishing.c"
+ }
+ }
+ goto __finally44;
+ __catch44_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ GError* _tmp11_ = NULL;
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ err = _inner_error_;
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _inner_error_ = NULL;
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = self->priv->host;
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = err;
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp10_, _tmp11_);
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (err);
+#line 4357 "YandexPublishing.c"
+ }
+ __finally44:
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 4368 "YandexPublishing.c"
+ }
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = self->priv->options;
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_ = self->priv->album_list;
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp14_ = self->priv->host;
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp15_ = publishing_yandex_publishing_options_pane_new (_tmp12_, _tmp13_, _tmp14_);
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_options_pane = _tmp15_;
+#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (publishing_options_pane, "publish", (GCallback) _publishing_yandex_yandex_publisher_on_publish_publishing_yandex_publishing_options_pane_publish, self, 0);
+#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (publishing_options_pane, "logout", (GCallback) _publishing_yandex_yandex_publisher_on_logout_publishing_yandex_publishing_options_pane_logout, self, 0);
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp16_ = self->priv->host;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (publishing_options_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (publishing_options_pane);
+#line 4390 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_yandex_publisher_service_get_album_list (PublishingYandexYandexPublisher* self, const gchar* url) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ PublishingYandexTransaction* t = NULL;
+ PublishingYandexSession* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ PublishingYandexTransaction* _tmp4_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (url != NULL);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = url;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (self->priv->service_url);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->service_url = _tmp1_;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = url;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = publishing_yandex_transaction_new_with_url (_tmp2_, _tmp3_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ t = _tmp4_;
+#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 4426 "YandexPublishing.c"
+ {
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4434 "YandexPublishing.c"
+ goto __catch45_spit_publishing_publishing_error;
+ }
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (t);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 4445 "YandexPublishing.c"
+ }
+ }
+ goto __finally45;
+ __catch45_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ err = _inner_error_;
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _inner_error_ = NULL;
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = self->priv->host;
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = err;
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp5_, _tmp6_);
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (err);
+#line 4466 "YandexPublishing.c"
+ }
+ __finally45:
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (t);
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 4479 "YandexPublishing.c"
+ }
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (t);
+#line 4483 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_fetch_account_complete ((PublishingYandexYandexPublisher*) self, _sender);
+#line 4490 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_fetch_account_error ((PublishingYandexYandexPublisher*) self, _sender, err);
+#line 4497 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_yandex_publisher_fetch_account_error (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ GError* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t));
+#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = t;
+#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed, self);
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = t;
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error, self);
+#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = err;
+#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = _tmp4_->message;
+#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_warning ("YandexPublishing.vala:587: Failed to fetch account info: %s", _tmp5_);
+#line 4530 "YandexPublishing.c"
+}
+
+
+void publishing_yandex_yandex_publisher_fetch_account_complete (PublishingYandexYandexPublisher* self, PublishingRESTSupportTransaction* t) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t));
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = t;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed, self);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = t;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error, self);
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = t;
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:594: account info: %s", _tmp6_);
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 4569 "YandexPublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ PublishingRESTSupportTransaction* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp10_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp11_ = NULL;
+ xmlNode* root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = t;
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_response (_tmp7_);
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp10_ = publishing_rest_support_xml_document_parse_string (_tmp9_, _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response, self, &_inner_error_);
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ doc = _tmp11_;
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4598 "YandexPublishing.c"
+ goto __catch46_spit_publishing_publishing_error;
+ }
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 4607 "YandexPublishing.c"
+ }
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp12_ = doc;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp13_ = publishing_rest_support_xml_document_get_root_node (_tmp12_);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ root = _tmp13_;
+#line 4615 "YandexPublishing.c"
+ {
+ xmlNode* work = NULL;
+ xmlNode* _tmp14_ = NULL;
+ xmlNode* _tmp15_ = NULL;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp14_ = root;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp15_ = _tmp14_->children;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ work = _tmp15_;
+#line 4626 "YandexPublishing.c"
+ {
+ gboolean _tmp16_ = FALSE;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp16_ = TRUE;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ while (TRUE) {
+#line 4633 "YandexPublishing.c"
+ xmlNode* _tmp19_ = NULL;
+ xmlNode* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!_tmp16_) {
+#line 4639 "YandexPublishing.c"
+ xmlNode* _tmp17_ = NULL;
+ xmlNode* _tmp18_ = NULL;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp17_ = work;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp18_ = _tmp17_->next;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ work = _tmp18_;
+#line 4648 "YandexPublishing.c"
+ }
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp16_ = FALSE;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp19_ = work;
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!(_tmp19_ != NULL)) {
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 4658 "YandexPublishing.c"
+ }
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp20_ = work;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp21_ = _tmp20_->name;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (g_strcmp0 (_tmp21_, "workspace") != 0) {
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ continue;
+#line 4668 "YandexPublishing.c"
+ }
+ {
+ xmlNode* c = NULL;
+ xmlNode* _tmp22_ = NULL;
+ xmlNode* _tmp23_ = NULL;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp22_ = work;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp23_ = _tmp22_->children;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ c = _tmp23_;
+#line 4680 "YandexPublishing.c"
+ {
+ gboolean _tmp24_ = FALSE;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp24_ = TRUE;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ while (TRUE) {
+#line 4687 "YandexPublishing.c"
+ xmlNode* _tmp27_ = NULL;
+ xmlNode* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+ xmlNode* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+ gboolean _tmp33_ = FALSE;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!_tmp24_) {
+#line 4697 "YandexPublishing.c"
+ xmlNode* _tmp25_ = NULL;
+ xmlNode* _tmp26_ = NULL;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp25_ = c;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp26_ = _tmp25_->next;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ c = _tmp26_;
+#line 4706 "YandexPublishing.c"
+ }
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp24_ = FALSE;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp27_ = c;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (!(_tmp27_ != NULL)) {
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 4716 "YandexPublishing.c"
+ }
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp28_ = c;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp29_ = _tmp28_->name;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (g_strcmp0 (_tmp29_, "collection") != 0) {
+#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ continue;
+#line 4726 "YandexPublishing.c"
+ }
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp30_ = c;
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp31_ = (gchar*) xmlGetProp (_tmp30_, (xmlChar*) "id");
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp32_ = _tmp31_;
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp33_ = g_strcmp0 (_tmp32_, "album-list") == 0;
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp32_);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp33_) {
+#line 4740 "YandexPublishing.c"
+ gchar* url = NULL;
+ xmlNode* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+ PublishingYandexSession* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+ gchar* _tmp38_ = NULL;
+ const gchar* _tmp39_ = NULL;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp34_ = c;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp35_ = (gchar*) xmlGetProp (_tmp34_, (xmlChar*) "href");
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ url = _tmp35_;
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp36_ = self->priv->session;
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp37_ = publishing_yandex_session_get_auth_token (_tmp36_);
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp38_ = _tmp37_;
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_set_persistent_auth_token (self, _tmp38_);
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp38_);
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp39_ = url;
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_service_get_album_list (self, _tmp39_);
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (url);
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ break;
+#line 4772 "YandexPublishing.c"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 4782 "YandexPublishing.c"
+ }
+ goto __finally46;
+ __catch46_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp40_ = NULL;
+ GError* _tmp41_ = NULL;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ err = _inner_error_;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _inner_error_ = NULL;
+#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp40_ = self->priv->host;
+#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp41_ = err;
+#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp40_, _tmp41_);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (err);
+#line 4802 "YandexPublishing.c"
+ }
+ __finally46:
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 4813 "YandexPublishing.c"
+ }
+}
+
+
+void publishing_yandex_yandex_publisher_fetch_account_information (PublishingYandexYandexPublisher* self, const gchar* auth_token) {
+ PublishingYandexSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingYandexTransaction* t = NULL;
+ PublishingYandexSession* _tmp2_ = NULL;
+ PublishingYandexTransaction* _tmp3_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (auth_token != NULL);
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = auth_token;
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_session_set_auth_token (_tmp0_, _tmp1_);
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = publishing_yandex_transaction_new_with_url (_tmp2_, "http://api-fotki.yandex.ru/api/me/", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ t = _tmp3_;
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 4845 "YandexPublishing.c"
+ {
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4853 "YandexPublishing.c"
+ goto __catch47_spit_publishing_publishing_error;
+ }
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (t);
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 4864 "YandexPublishing.c"
+ }
+ }
+ goto __finally47;
+ __catch47_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ err = _inner_error_;
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _inner_error_ = NULL;
+#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = self->priv->host;
+#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = err;
+#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_);
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_error_free0 (err);
+#line 4885 "YandexPublishing.c"
+ }
+ __finally47:
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (t);
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.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 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 4898 "YandexPublishing.c"
+ }
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (t);
+#line 4902 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_web_auth_login_succeeded (PublishingYandexYandexPublisher* self, const gchar* access_token) {
+ const gchar* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (access_token != NULL);
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = access_token;
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:635: login succeeded with token %s", _tmp0_);
+#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE);
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = self->priv->host;
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp2_);
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = access_token;
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_fetch_account_information (self, _tmp3_);
+#line 4931 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_web_auth_login_failed (PublishingYandexYandexPublisher* self) {
+#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:644: login failed");
+#line 4940 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_web_auth_login_succeeded_publishing_yandex_web_auth_pane_login_succeeded (PublishingYandexWebAuthPane* _sender, const gchar* success_url, gpointer self) {
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_web_auth_login_succeeded ((PublishingYandexYandexPublisher*) self, success_url);
+#line 4947 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_web_auth_login_failed_publishing_yandex_web_auth_pane_login_failed (PublishingYandexWebAuthPane* _sender, gpointer self) {
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_web_auth_login_failed ((PublishingYandexYandexPublisher*) self);
+#line 4954 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_start_web_auth (PublishingYandexYandexPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ PublishingYandexWebAuthPane* _tmp3_ = NULL;
+ PublishingYandexWebAuthPane* _tmp4_ = NULL;
+ PublishingYandexWebAuthPane* _tmp5_ = NULL;
+ SpitPublishingPluginHost* _tmp6_ = NULL;
+ PublishingYandexWebAuthPane* _tmp7_ = NULL;
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = g_strdup_printf ("http://oauth.yandex.ru/authorize?client_id=%s&response_type=token", PUBLISHING_YANDEX_client_id);
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = publishing_yandex_web_auth_pane_new (_tmp2_);
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->web_auth_pane);
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->web_auth_pane = _tmp3_;
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp2_);
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = self->priv->web_auth_pane;
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (_tmp4_, "login-succeeded", (GCallback) _publishing_yandex_yandex_publisher_web_auth_login_succeeded_publishing_yandex_web_auth_pane_login_succeeded, self, 0);
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = self->priv->web_auth_pane;
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_signal_connect_object (_tmp5_, "login-failed", (GCallback) _publishing_yandex_yandex_publisher_web_auth_login_failed_publishing_yandex_web_auth_pane_login_failed, self, 0);
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = self->priv->host;
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = self->priv->web_auth_pane;
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 4999 "YandexPublishing.c"
+}
+
+
+static void _publishing_yandex_yandex_publisher_start_web_auth_spit_publishing_login_callback (gpointer self) {
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_start_web_auth ((PublishingYandexYandexPublisher*) self);
+#line 5006 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_show_welcome_page (PublishingYandexYandexPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self));
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = _ ("You are not currently logged into Yandex.Fotki.");
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ spit_publishing_plugin_host_install_welcome_pane (_tmp0_, _tmp1_, _publishing_yandex_yandex_publisher_start_web_auth_spit_publishing_login_callback, self);
+#line 5021 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_real_start (SpitPublishingPublisher* base) {
+ PublishingYandexYandexPublisher * self;
+ gboolean _tmp0_ = FALSE;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher);
+#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp0_) {
+#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ return;
+#line 5038 "YandexPublishing.c"
+ }
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp1_ == NULL) {
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_error ("YandexPublishing.vala:667: YandexPublisher: start( ): can't start; thi" \
+"s publisher is not restartable.");
+#line 5046 "YandexPublishing.c"
+ }
+#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:669: YandexPublisher: starting interaction.");
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->running = TRUE;
+#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp2_ = publishing_yandex_yandex_publisher_is_persistent_session_available (self);
+#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ if (_tmp2_) {
+#line 5056 "YandexPublishing.c"
+ PublishingYandexSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp3_ = self->priv->session;
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp4_ = publishing_yandex_yandex_publisher_get_persistent_auth_token (self);
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_session_set_auth_token (_tmp3_, _tmp5_);
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp6_ = publishing_yandex_yandex_publisher_get_persistent_auth_token (self);
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_fetch_account_information (self, _tmp7_);
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 5080 "YandexPublishing.c"
+ } else {
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_show_welcome_page (self);
+#line 5084 "YandexPublishing.c"
+ }
+}
+
+
+static void publishing_yandex_yandex_publisher_real_stop (SpitPublishingPublisher* base) {
+ PublishingYandexYandexPublisher * self;
+#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher);
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_debug ("YandexPublishing.vala:683: YandexPublisher: stop( ) invoked.");
+#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->host = NULL;
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->running = FALSE;
+#line 5099 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_class_init (PublishingYandexYandexPublisherClass * klass) {
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_parent_class = g_type_class_peek_parent (klass);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingYandexYandexPublisherPrivate));
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_yandex_yandex_publisher_finalize;
+#line 5110 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) {
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ publishing_yandex_yandex_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->is_running = (gboolean (*)(SpitPublishingPublisher*)) publishing_yandex_yandex_publisher_real_is_running;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->get_service = (SpitPublishingService* (*)(SpitPublishingPublisher*)) publishing_yandex_yandex_publisher_real_get_service;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->start = (void (*)(SpitPublishingPublisher*)) publishing_yandex_yandex_publisher_real_start;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ iface->stop = (void (*)(SpitPublishingPublisher*)) publishing_yandex_yandex_publisher_real_stop;
+#line 5125 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_instance_init (PublishingYandexYandexPublisher * self) {
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv = PUBLISHING_YANDEX_YANDEX_PUBLISHER_GET_PRIVATE (self);
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->host = NULL;
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->service = NULL;
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->service_url = NULL;
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->album_list = NULL;
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->running = FALSE;
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->web_auth_pane = NULL;
+#line 5146 "YandexPublishing.c"
+}
+
+
+static void publishing_yandex_yandex_publisher_finalize (GObject* obj) {
+ PublishingYandexYandexPublisher * self;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher);
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_free0 (self->priv->service_url);
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->album_list);
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_yandex_publish_options_unref0 (self->priv->options);
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _g_object_unref0 (self->priv->web_auth_pane);
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala"
+ G_OBJECT_CLASS (publishing_yandex_yandex_publisher_parent_class)->finalize (obj);
+#line 5174 "YandexPublishing.c"
+}
+
+
+GType publishing_yandex_yandex_publisher_get_type (void) {
+ static volatile gsize publishing_yandex_yandex_publisher_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_yandex_yandex_publisher_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexYandexPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_yandex_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexYandexPublisher), 0, (GInstanceInitFunc) publishing_yandex_yandex_publisher_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_yandex_yandex_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_yandex_yandex_publisher_type_id;
+ publishing_yandex_yandex_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYandexYandexPublisher", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_yandex_yandex_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info);
+ g_once_init_leave (&publishing_yandex_yandex_publisher_type_id__volatile, publishing_yandex_yandex_publisher_type_id);
+ }
+ return publishing_yandex_yandex_publisher_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);
+}
+
+
+static gint _vala_array_length (gpointer array) {
+ int length;
+ length = 0;
+ if (array) {
+ while (((gpointer*) array)[length]) {
+ length++;
+ }
+ }
+ return length;
+}
+
+
+
diff --git a/plugins/shotwell-publishing-extras/YandexPublishing.vala b/plugins/shotwell-publishing-extras/YandexPublishing.vala
index 6504572..2ee67cf 100644
--- a/plugins/shotwell-publishing-extras/YandexPublishing.vala
+++ b/plugins/shotwell-publishing-extras/YandexPublishing.vala
@@ -238,11 +238,10 @@ internal class PublishingOptionsPane: Spit.Publishing.DialogPane, GLib.Object {
box = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
- File ui_file = host.get_module_file().get_parent().get_child("yandex_publish_model.glade");
-
try {
builder = new Gtk.Builder();
- builder.add_from_file(ui_file.get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH + "/yandex_publish_model.ui");
+
builder.connect_signals(null);
Gtk.Alignment align = builder.get_object("alignment") as Gtk.Alignment;
diff --git a/plugins/shotwell-publishing-extras/gallery3_authentication_pane.glade b/plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui
index 43eb422..dc8b373 100644
--- a/plugins/shotwell-publishing-extras/gallery3_authentication_pane.glade
+++ b/plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui
@@ -15,7 +15,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="ypad">15</property>
- <property name="label" translatable="yes">Intro message replaced at runtime</property>
+ <property name="label">Intro message replaced at runtime</property>
<property name="use_markup">True</property>
<property name="wrap">True</property>
</object>
diff --git a/plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.glade b/plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui
index 17e3569..fc2824f 100644
--- a/plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.glade
+++ b/plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui
@@ -30,7 +30,7 @@
<property name="can_focus">False</property>
<property name="xalign">0.30000001192092896</property>
<property name="ypad">16</property>
- <property name="label" translatable="yes">'Publishing to $url as $username' (populated in application code)</property>
+ <property name="label">'Publishing to $url as $username' (populated in application code)</property>
</object>
<packing>
<property name="left_attach">0</property>
diff --git a/plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml b/plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml
new file mode 100644
index 0000000..ab8a367
--- /dev/null
+++ b/plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/gnome/Shotwell/Publishing/Extras">
+ <file>gallery3.png</file>
+ <file>rajce.png</file>
+ <file>tumblr.png</file>
+ <file>gallery3_authentication_pane.ui</file>
+ <file>gallery3_publishing_options_pane.ui</file>
+ <file>rajce_authentication_pane.ui</file>
+ <file>rajce_publishing_options_pane.ui</file>
+ <file>tumblr_authentication_pane.ui</file>
+ <file>tumblr_publishing_options_pane.ui</file>
+ <file>yandex_publish_model.ui</file>
+ </gresource>
+</gresources>
diff --git a/plugins/shotwell-publishing-extras/rajce_authentication_pane.glade b/plugins/shotwell-publishing-extras/rajce_authentication_pane.ui
index 61f6c69..72ac53c 100644
--- a/plugins/shotwell-publishing-extras/rajce_authentication_pane.glade
+++ b/plugins/shotwell-publishing-extras/rajce_authentication_pane.ui
@@ -24,7 +24,7 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">label</property>
+ <property name="label">label</property>
<property name="wrap">True</property>
</object>
<packing>
diff --git a/plugins/shotwell-publishing-extras/rajce_publishing_options_pane.glade b/plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui
index c6b992c..374ca65 100644
--- a/plugins/shotwell-publishing-extras/rajce_publishing_options_pane.glade
+++ b/plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui
@@ -24,7 +24,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
- <property name="label" translatable="yes">you are logged in rajce as $name</property>
+ <property name="label">you are logged in rajce as $name</property>
</object>
<packing>
<property name="expand">False</property>
@@ -199,7 +199,7 @@
<property name="margin_top">4</property>
<property name="margin_bottom">8</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">$mediatype will appear in</property>
+ <property name="label">$mediatype will appear in</property>
</object>
<packing>
<property name="left_attach">0</property>
diff --git a/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c b/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c
new file mode 100644
index 0000000..53262a3
--- /dev/null
+++ b/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c
@@ -0,0 +1,504 @@
+/* shotwell-publishing-extras.c generated by valac 0.32.1, the Vala compiler
+ * generated from shotwell-publishing-extras.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 <shotwell-plugin-dev-1.0.h>
+#include <gio/gio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib/gi18n-lib.h>
+
+
+#define TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES (shotwell_publishing_extra_services_get_type ())
+#define SHOTWELL_PUBLISHING_EXTRA_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices))
+#define SHOTWELL_PUBLISHING_EXTRA_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServicesClass))
+#define IS_SHOTWELL_PUBLISHING_EXTRA_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES))
+#define IS_SHOTWELL_PUBLISHING_EXTRA_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES))
+#define SHOTWELL_PUBLISHING_EXTRA_SERVICES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServicesClass))
+
+typedef struct _ShotwellPublishingExtraServices ShotwellPublishingExtraServices;
+typedef struct _ShotwellPublishingExtraServicesClass ShotwellPublishingExtraServicesClass;
+typedef struct _ShotwellPublishingExtraServicesPrivate ShotwellPublishingExtraServicesPrivate;
+
+#define TYPE_YANDEX_SERVICE (yandex_service_get_type ())
+#define YANDEX_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_YANDEX_SERVICE, YandexService))
+#define YANDEX_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_YANDEX_SERVICE, YandexServiceClass))
+#define IS_YANDEX_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_YANDEX_SERVICE))
+#define IS_YANDEX_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_YANDEX_SERVICE))
+#define YANDEX_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_YANDEX_SERVICE, YandexServiceClass))
+
+typedef struct _YandexService YandexService;
+typedef struct _YandexServiceClass YandexServiceClass;
+
+#define TYPE_TUMBLR_SERVICE (tumblr_service_get_type ())
+#define TUMBLR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TUMBLR_SERVICE, TumblrService))
+#define TUMBLR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TUMBLR_SERVICE, TumblrServiceClass))
+#define IS_TUMBLR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TUMBLR_SERVICE))
+#define IS_TUMBLR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TUMBLR_SERVICE))
+#define TUMBLR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TUMBLR_SERVICE, TumblrServiceClass))
+
+typedef struct _TumblrService TumblrService;
+typedef struct _TumblrServiceClass TumblrServiceClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define TYPE_RAJCE_SERVICE (rajce_service_get_type ())
+#define RAJCE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAJCE_SERVICE, RajceService))
+#define RAJCE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAJCE_SERVICE, RajceServiceClass))
+#define IS_RAJCE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAJCE_SERVICE))
+#define IS_RAJCE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAJCE_SERVICE))
+#define RAJCE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAJCE_SERVICE, RajceServiceClass))
+
+typedef struct _RajceService RajceService;
+typedef struct _RajceServiceClass RajceServiceClass;
+
+#define TYPE_GALLERY3_SERVICE (gallery3_service_get_type ())
+#define GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GALLERY3_SERVICE, Gallery3Service))
+#define GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass))
+#define IS_GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GALLERY3_SERVICE))
+#define IS_GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GALLERY3_SERVICE))
+#define GALLERY3_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass))
+
+typedef struct _Gallery3Service Gallery3Service;
+typedef struct _Gallery3ServiceClass Gallery3ServiceClass;
+
+struct _ShotwellPublishingExtraServices {
+ GObject parent_instance;
+ ShotwellPublishingExtraServicesPrivate * priv;
+};
+
+struct _ShotwellPublishingExtraServicesClass {
+ GObjectClass parent_class;
+};
+
+struct _ShotwellPublishingExtraServicesPrivate {
+ SpitPluggable** pluggables;
+ gint pluggables_length1;
+ gint _pluggables_size_;
+};
+
+
+static gpointer shotwell_publishing_extra_services_parent_class = NULL;
+static SpitModuleIface* shotwell_publishing_extra_services_spit_module_parent_iface = NULL;
+
+GType shotwell_publishing_extra_services_get_type (void) G_GNUC_CONST;
+#define SHOTWELL_PUBLISHING_EXTRA_SERVICES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServicesPrivate))
+enum {
+ SHOTWELL_PUBLISHING_EXTRA_SERVICES_DUMMY_PROPERTY
+};
+ShotwellPublishingExtraServices* shotwell_publishing_extra_services_new (GFile* module_file);
+ShotwellPublishingExtraServices* shotwell_publishing_extra_services_construct (GType object_type, GFile* module_file);
+YandexService* yandex_service_new (void);
+YandexService* yandex_service_construct (GType object_type);
+GType yandex_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add14 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+TumblrService* tumblr_service_new (GFile* resource_directory);
+TumblrService* tumblr_service_construct (GType object_type, GFile* resource_directory);
+GType tumblr_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add15 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+RajceService* rajce_service_new (GFile* resource_directory);
+RajceService* rajce_service_construct (GType object_type, GFile* resource_directory);
+GType rajce_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add16 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+Gallery3Service* gallery3_service_new (GFile* resource_directory);
+Gallery3Service* gallery3_service_construct (GType object_type, GFile* resource_directory);
+GType gallery3_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add17 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+static const gchar* shotwell_publishing_extra_services_real_get_module_name (SpitModule* base);
+static const gchar* shotwell_publishing_extra_services_real_get_version (SpitModule* base);
+static const gchar* shotwell_publishing_extra_services_real_get_id (SpitModule* base);
+static SpitPluggable** shotwell_publishing_extra_services_real_get_pluggables (SpitModule* base, int* result_length1);
+static void shotwell_publishing_extra_services_finalize (GObject* obj);
+SpitModule* spit_entry_point (SpitEntryPointParams* params);
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
+
+
+static void _vala_array_add14 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ if ((*length) == (*size)) {
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 131 "shotwell-publishing-extras.c"
+ }
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ (*array)[(*length)++] = value;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ (*array)[*length] = NULL;
+#line 137 "shotwell-publishing-extras.c"
+}
+
+
+static void _vala_array_add15 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ if ((*length) == (*size)) {
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 148 "shotwell-publishing-extras.c"
+ }
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ (*array)[(*length)++] = value;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ (*array)[*length] = NULL;
+#line 154 "shotwell-publishing-extras.c"
+}
+
+
+static void _vala_array_add16 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ if ((*length) == (*size)) {
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 165 "shotwell-publishing-extras.c"
+ }
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ (*array)[(*length)++] = value;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ (*array)[*length] = NULL;
+#line 171 "shotwell-publishing-extras.c"
+}
+
+
+static void _vala_array_add17 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ if ((*length) == (*size)) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 182 "shotwell-publishing-extras.c"
+ }
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ (*array)[(*length)++] = value;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ (*array)[*length] = NULL;
+#line 188 "shotwell-publishing-extras.c"
+}
+
+
+ShotwellPublishingExtraServices* shotwell_publishing_extra_services_construct (GType object_type, GFile* module_file) {
+ ShotwellPublishingExtraServices * self = NULL;
+ SpitPluggable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ YandexService* _tmp1_ = NULL;
+ SpitPluggable** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ GFile* _tmp3_ = NULL;
+ GFile* _tmp4_ = NULL;
+ GFile* _tmp5_ = NULL;
+ TumblrService* _tmp6_ = NULL;
+ SpitPluggable** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ GFile* _tmp8_ = NULL;
+ GFile* _tmp9_ = NULL;
+ GFile* _tmp10_ = NULL;
+ RajceService* _tmp11_ = NULL;
+ SpitPluggable** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ GFile* _tmp13_ = NULL;
+ GFile* _tmp14_ = NULL;
+ GFile* _tmp15_ = NULL;
+ Gallery3Service* _tmp16_ = NULL;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ g_return_val_if_fail (G_IS_FILE (module_file), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self = (ShotwellPublishingExtraServices*) g_object_new (object_type, NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp0_ = self->priv->pluggables;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp0__length1 = self->priv->pluggables_length1;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp1_ = yandex_service_new ();
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _vala_array_add14 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp2_ = self->priv->pluggables;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp2__length1 = self->priv->pluggables_length1;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp3_ = module_file;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp4_ = g_file_get_parent (_tmp3_);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp5_ = _tmp4_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp6_ = tumblr_service_new (_tmp5_);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _vala_array_add15 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _g_object_unref0 (_tmp5_);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp7_ = self->priv->pluggables;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp7__length1 = self->priv->pluggables_length1;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp8_ = module_file;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp9_ = g_file_get_parent (_tmp8_);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp10_ = _tmp9_;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp11_ = rajce_service_new (_tmp10_);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _vala_array_add16 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _g_object_unref0 (_tmp10_);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp12_ = self->priv->pluggables;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp12__length1 = self->priv->pluggables_length1;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp13_ = module_file;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp14_ = g_file_get_parent (_tmp13_);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp15_ = _tmp14_;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp16_ = gallery3_service_new (_tmp15_);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _vala_array_add17 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _g_object_unref0 (_tmp15_);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ return self;
+#line 277 "shotwell-publishing-extras.c"
+}
+
+
+ShotwellPublishingExtraServices* shotwell_publishing_extra_services_new (GFile* module_file) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ return shotwell_publishing_extra_services_construct (TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, module_file);
+#line 284 "shotwell-publishing-extras.c"
+}
+
+
+static const gchar* shotwell_publishing_extra_services_real_get_module_name (SpitModule* base) {
+ ShotwellPublishingExtraServices * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp0_ = _ ("Shotwell Extra Publishing Services");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ return result;
+#line 300 "shotwell-publishing-extras.c"
+}
+
+
+static const gchar* shotwell_publishing_extra_services_real_get_version (SpitModule* base) {
+ ShotwellPublishingExtraServices * self;
+ const gchar* result = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ result = _VERSION;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ return result;
+#line 313 "shotwell-publishing-extras.c"
+}
+
+
+static const gchar* shotwell_publishing_extra_services_real_get_id (SpitModule* base) {
+ ShotwellPublishingExtraServices * self;
+ const gchar* result = NULL;
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ result = "org.yorba.shotwell.publishing.extras";
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ return result;
+#line 326 "shotwell-publishing-extras.c"
+}
+
+
+static SpitPluggable** shotwell_publishing_extra_services_real_get_pluggables (SpitModule* base, int* result_length1) {
+ ShotwellPublishingExtraServices * self;
+ SpitPluggable** result = NULL;
+ SpitPluggable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ SpitPluggable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp0_ = self->priv->pluggables;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp0__length1 = self->priv->pluggables_length1;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp1_ = _tmp0_;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ if (result_length1) {
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ *result_length1 = _tmp1__length1;
+#line 351 "shotwell-publishing-extras.c"
+ }
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ result = _tmp1_;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ return result;
+#line 357 "shotwell-publishing-extras.c"
+}
+
+
+static void shotwell_publishing_extra_services_class_init (ShotwellPublishingExtraServicesClass * klass) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ shotwell_publishing_extra_services_parent_class = g_type_class_peek_parent (klass);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ g_type_class_add_private (klass, sizeof (ShotwellPublishingExtraServicesPrivate));
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ G_OBJECT_CLASS (klass)->finalize = shotwell_publishing_extra_services_finalize;
+#line 368 "shotwell-publishing-extras.c"
+}
+
+
+static void shotwell_publishing_extra_services_spit_module_interface_init (SpitModuleIface * iface) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ shotwell_publishing_extra_services_spit_module_parent_iface = g_type_interface_peek_parent (iface);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ iface->get_module_name = (const gchar* (*)(SpitModule*)) shotwell_publishing_extra_services_real_get_module_name;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ iface->get_version = (const gchar* (*)(SpitModule*)) shotwell_publishing_extra_services_real_get_version;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ iface->get_id = (const gchar* (*)(SpitModule*)) shotwell_publishing_extra_services_real_get_id;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ iface->get_pluggables = (SpitPluggable** (*)(SpitModule*, int*)) shotwell_publishing_extra_services_real_get_pluggables;
+#line 383 "shotwell-publishing-extras.c"
+}
+
+
+static void shotwell_publishing_extra_services_instance_init (ShotwellPublishingExtraServices * self) {
+ SpitPluggable** _tmp0_ = NULL;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self->priv = SHOTWELL_PUBLISHING_EXTRA_SERVICES_GET_PRIVATE (self);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp0_ = g_new0 (SpitPluggable*, 0 + 1);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self->priv->pluggables = _tmp0_;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self->priv->pluggables_length1 = 0;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self->priv->_pluggables_size_ = self->priv->pluggables_length1;
+#line 399 "shotwell-publishing-extras.c"
+}
+
+
+static void shotwell_publishing_extra_services_finalize (GObject* obj) {
+ ShotwellPublishingExtraServices * self;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ G_OBJECT_CLASS (shotwell_publishing_extra_services_parent_class)->finalize (obj);
+#line 411 "shotwell-publishing-extras.c"
+}
+
+
+GType shotwell_publishing_extra_services_get_type (void) {
+ static volatile gsize shotwell_publishing_extra_services_type_id__volatile = 0;
+ if (g_once_init_enter (&shotwell_publishing_extra_services_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (ShotwellPublishingExtraServicesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_publishing_extra_services_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPublishingExtraServices), 0, (GInstanceInitFunc) shotwell_publishing_extra_services_instance_init, NULL };
+ static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_publishing_extra_services_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType shotwell_publishing_extra_services_type_id;
+ shotwell_publishing_extra_services_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPublishingExtraServices", &g_define_type_info, 0);
+ g_type_add_interface_static (shotwell_publishing_extra_services_type_id, SPIT_TYPE_MODULE, &spit_module_info);
+ g_once_init_leave (&shotwell_publishing_extra_services_type_id__volatile, shotwell_publishing_extra_services_type_id);
+ }
+ return shotwell_publishing_extra_services_type_id__volatile;
+}
+
+
+SpitModule* spit_entry_point (SpitEntryPointParams* params) {
+ SpitModule* result = NULL;
+ SpitEntryPointParams* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ SpitEntryPointParams* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+ ShotwellPublishingExtraServices* _tmp5_ = NULL;
+ SpitEntryPointParams* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp0_ = params;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp1_ = (*_tmp0_).host_min_spit_interface;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp2_ = params;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp3_ = (*_tmp2_).host_max_spit_interface;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp4_ = spit_negotiate_interfaces (_tmp1_, _tmp3_, SPIT_CURRENT_INTERFACE);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ (*params).module_spit_interface = _tmp4_;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp6_ = params;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp7_ = (*_tmp6_).module_spit_interface;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ if (_tmp7_ != SPIT_UNSUPPORTED_INTERFACE) {
+#line 457 "shotwell-publishing-extras.c"
+ SpitEntryPointParams* _tmp8_ = NULL;
+ GFile* _tmp9_ = NULL;
+ ShotwellPublishingExtraServices* _tmp10_ = NULL;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp8_ = params;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp9_ = (*_tmp8_).module_file;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp10_ = shotwell_publishing_extra_services_new (_tmp9_);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _g_object_unref0 (_tmp5_);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp5_ = _tmp10_;
+#line 471 "shotwell-publishing-extras.c"
+ } else {
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _g_object_unref0 (_tmp5_);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ _tmp5_ = NULL;
+#line 477 "shotwell-publishing-extras.c"
+ }
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_MODULE, SpitModule);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala"
+ return result;
+#line 483 "shotwell-publishing-extras.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/plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade b/plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui
index 9b43309..131a547 100644
--- a/plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade
+++ b/plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui
@@ -24,7 +24,7 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">label</property>
+ <property name="label">label</property>
<property name="wrap">True</property>
</object>
<packing>
diff --git a/plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade b/plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.ui
index 102e260..ac201da 100644
--- a/plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade
+++ b/plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.ui
@@ -18,7 +18,7 @@
<property name="can_focus">False</property>
<property name="label" translatable="no">You are logged into Tumblr as (name).
-(this label's string is populated and set inside the code,
+(this label's string is populated and set inside the code,
so changes made here will not display)</property>
</object>
<packing>
diff --git a/plugins/shotwell-publishing-extras/yandex_publish_model.glade b/plugins/shotwell-publishing-extras/yandex_publish_model.ui
index 175bafd..175bafd 100644
--- a/plugins/shotwell-publishing-extras/yandex_publish_model.glade
+++ b/plugins/shotwell-publishing-extras/yandex_publish_model.ui
diff --git a/plugins/shotwell-publishing/FacebookPublishing.c b/plugins/shotwell-publishing/FacebookPublishing.c
new file mode 100644
index 0000000..e3cccd3
--- /dev/null
+++ b/plugins/shotwell-publishing/FacebookPublishing.c
@@ -0,0 +1,11997 @@
+/* FacebookPublishing.c generated by valac 0.32.1, the Vala compiler
+ * generated from FacebookPublishing.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 <shotwell-plugin-dev-1.0.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include "shotwell-plugin-common.h"
+#include <glib/gi18n-lib.h>
+#include <json-glib/json-glib.h>
+#include <gtk/gtk.h>
+#include <libsoup/soup.h>
+#include <float.h>
+#include <math.h>
+#include <webkit2/webkit2.h>
+#include <gdk/gdk.h>
+#include <locale.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_FACEBOOK_SERVICE (facebook_service_get_type ())
+#define FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FACEBOOK_SERVICE, FacebookService))
+#define FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FACEBOOK_SERVICE, FacebookServiceClass))
+#define IS_FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FACEBOOK_SERVICE))
+#define IS_FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FACEBOOK_SERVICE))
+#define FACEBOOK_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FACEBOOK_SERVICE, FacebookServiceClass))
+
+typedef struct _FacebookService FacebookService;
+typedef struct _FacebookServiceClass FacebookServiceClass;
+typedef struct _FacebookServicePrivate FacebookServicePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER (publishing_facebook_facebook_publisher_get_type ())
+#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher))
+#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisherClass))
+#define PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER))
+#define PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER))
+#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisherClass))
+
+typedef struct _PublishingFacebookFacebookPublisher PublishingFacebookFacebookPublisher;
+typedef struct _PublishingFacebookFacebookPublisherClass PublishingFacebookFacebookPublisherClass;
+
+#define PUBLISHING_FACEBOOK_TYPE_ALBUM (publishing_facebook_album_get_type ())
+#define PUBLISHING_FACEBOOK_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbum))
+#define PUBLISHING_FACEBOOK_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbumClass))
+#define PUBLISHING_FACEBOOK_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_ALBUM))
+#define PUBLISHING_FACEBOOK_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_ALBUM))
+#define PUBLISHING_FACEBOOK_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbumClass))
+
+typedef struct _PublishingFacebookAlbum PublishingFacebookAlbum;
+typedef struct _PublishingFacebookAlbumClass PublishingFacebookAlbumClass;
+typedef struct _PublishingFacebookAlbumPrivate PublishingFacebookAlbumPrivate;
+typedef struct _PublishingFacebookParamSpecAlbum PublishingFacebookParamSpecAlbum;
+
+#define PUBLISHING_FACEBOOK_TYPE_RESOLUTION (publishing_facebook_resolution_get_type ())
+
+#define PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS (publishing_facebook_publishing_parameters_get_type ())
+#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParameters))
+#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParametersClass))
+#define PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParametersClass))
+
+typedef struct _PublishingFacebookPublishingParameters PublishingFacebookPublishingParameters;
+typedef struct _PublishingFacebookPublishingParametersClass PublishingFacebookPublishingParametersClass;
+typedef struct _PublishingFacebookPublishingParametersPrivate PublishingFacebookPublishingParametersPrivate;
+#define _publishing_facebook_album_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_album_unref (var), NULL)))
+typedef struct _PublishingFacebookParamSpecPublishingParameters PublishingFacebookParamSpecPublishingParameters;
+typedef struct _PublishingFacebookFacebookPublisherPrivate PublishingFacebookFacebookPublisherPrivate;
+
+#define PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE (publishing_facebook_web_authentication_pane_get_type ())
+#define PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingFacebookWebAuthenticationPane))
+#define PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingFacebookWebAuthenticationPaneClass))
+#define PUBLISHING_FACEBOOK_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE))
+#define PUBLISHING_FACEBOOK_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE))
+#define PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingFacebookWebAuthenticationPaneClass))
+
+typedef struct _PublishingFacebookWebAuthenticationPane PublishingFacebookWebAuthenticationPane;
+typedef struct _PublishingFacebookWebAuthenticationPaneClass PublishingFacebookWebAuthenticationPaneClass;
+
+#define PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION (publishing_facebook_graph_session_get_type ())
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSession))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSessionClass))
+#define PUBLISHING_FACEBOOK_IS_GRAPH_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION))
+#define PUBLISHING_FACEBOOK_IS_GRAPH_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSessionClass))
+
+typedef struct _PublishingFacebookGraphSession PublishingFacebookGraphSession;
+typedef struct _PublishingFacebookGraphSessionClass PublishingFacebookGraphSessionClass;
+
+#define PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE (publishing_facebook_publishing_options_pane_get_type ())
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane))
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPaneClass))
+#define PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPaneClass))
+
+typedef struct _PublishingFacebookPublishingOptionsPane PublishingFacebookPublishingOptionsPane;
+typedef struct _PublishingFacebookPublishingOptionsPaneClass PublishingFacebookPublishingOptionsPaneClass;
+
+#define PUBLISHING_FACEBOOK_TYPE_UPLOADER (publishing_facebook_uploader_get_type ())
+#define PUBLISHING_FACEBOOK_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploader))
+#define PUBLISHING_FACEBOOK_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploaderClass))
+#define PUBLISHING_FACEBOOK_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_UPLOADER))
+#define PUBLISHING_FACEBOOK_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_UPLOADER))
+#define PUBLISHING_FACEBOOK_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploaderClass))
+
+typedef struct _PublishingFacebookUploader PublishingFacebookUploader;
+typedef struct _PublishingFacebookUploaderClass PublishingFacebookUploaderClass;
+#define _publishing_facebook_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_publishing_parameters_unref (var), NULL)))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _publishing_facebook_graph_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_graph_session_unref (var), NULL)))
+#define _publishing_facebook_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_uploader_unref (var), NULL)))
+
+#define PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE (publishing_facebook_graph_message_get_type ())
+#define PUBLISHING_FACEBOOK_GRAPH_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage))
+#define PUBLISHING_FACEBOOK_GRAPH_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessageClass))
+#define PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE))
+#define PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE))
+#define PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessageClass))
+
+typedef struct _PublishingFacebookGraphMessage PublishingFacebookGraphMessage;
+typedef struct _PublishingFacebookGraphMessageClass PublishingFacebookGraphMessageClass;
+#define _publishing_facebook_graph_message_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_graph_message_unref (var), NULL)))
+#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL)))
+#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+#define _json_array_unref0(var) ((var == NULL) ? NULL : (var = (json_array_unref (var), NULL)))
+#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
+typedef struct _PublishingFacebookWebAuthenticationPanePrivate PublishingFacebookWebAuthenticationPanePrivate;
+
+#define PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP (publishing_facebook_web_authentication_pane_locale_lookup_get_type ())
+#define PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingFacebookWebAuthenticationPaneLocaleLookup))
+#define PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingFacebookWebAuthenticationPaneLocaleLookupClass))
+#define PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_IS_LOCALE_LOOKUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP))
+#define PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_IS_LOCALE_LOOKUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP))
+#define PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingFacebookWebAuthenticationPaneLocaleLookupClass))
+
+typedef struct _PublishingFacebookWebAuthenticationPaneLocaleLookup PublishingFacebookWebAuthenticationPaneLocaleLookup;
+typedef struct _PublishingFacebookWebAuthenticationPaneLocaleLookupClass PublishingFacebookWebAuthenticationPaneLocaleLookupClass;
+typedef struct _PublishingFacebookWebAuthenticationPaneLocaleLookupPrivate PublishingFacebookWebAuthenticationPaneLocaleLookupPrivate;
+#define _publishing_facebook_web_authentication_pane_locale_lookup_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_web_authentication_pane_locale_lookup_unref (var), NULL)))
+typedef struct _PublishingFacebookWebAuthenticationPaneParamSpecLocaleLookup PublishingFacebookWebAuthenticationPaneParamSpecLocaleLookup;
+typedef struct _PublishingFacebookPublishingOptionsPanePrivate PublishingFacebookPublishingOptionsPanePrivate;
+
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION (publishing_facebook_publishing_options_pane_privacy_description_get_type ())
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescription))
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass))
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION))
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION))
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass))
+
+typedef struct _PublishingFacebookPublishingOptionsPanePrivacyDescription PublishingFacebookPublishingOptionsPanePrivacyDescription;
+typedef struct _PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass;
+#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))
+typedef struct _PublishingFacebookPublishingOptionsPanePrivacyDescriptionPrivate PublishingFacebookPublishingOptionsPanePrivacyDescriptionPrivate;
+#define _publishing_facebook_publishing_options_pane_privacy_description_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_publishing_options_pane_privacy_description_unref (var), NULL)))
+typedef struct _PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription;
+
+#define PUBLISHING_FACEBOOK_TYPE_ENDPOINT (publishing_facebook_endpoint_get_type ())
+typedef struct _PublishingFacebookGraphMessagePrivate PublishingFacebookGraphMessagePrivate;
+typedef struct _PublishingFacebookParamSpecGraphMessage PublishingFacebookParamSpecGraphMessage;
+typedef struct _PublishingFacebookGraphSessionPrivate PublishingFacebookGraphSessionPrivate;
+
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL (publishing_facebook_graph_session_graph_message_impl_get_type ())
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImplClass))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImplClass))
+
+typedef struct _PublishingFacebookGraphSessionGraphMessageImpl PublishingFacebookGraphSessionGraphMessageImpl;
+typedef struct _PublishingFacebookGraphSessionGraphMessageImplClass PublishingFacebookGraphSessionGraphMessageImplClass;
+typedef struct _PublishingFacebookGraphSessionGraphMessageImplPrivate PublishingFacebookGraphSessionGraphMessageImplPrivate;
+
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE (publishing_facebook_graph_session_graph_endpoint_probe_message_get_type ())
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_ENDPOINT_PROBE_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, PublishingFacebookGraphSessionGraphEndpointProbeMessage))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_ENDPOINT_PROBE_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, PublishingFacebookGraphSessionGraphEndpointProbeMessageClass))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_ENDPOINT_PROBE_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_ENDPOINT_PROBE_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_ENDPOINT_PROBE_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, PublishingFacebookGraphSessionGraphEndpointProbeMessageClass))
+
+typedef struct _PublishingFacebookGraphSessionGraphEndpointProbeMessage PublishingFacebookGraphSessionGraphEndpointProbeMessage;
+typedef struct _PublishingFacebookGraphSessionGraphEndpointProbeMessageClass PublishingFacebookGraphSessionGraphEndpointProbeMessageClass;
+
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE (publishing_facebook_graph_session_graph_query_message_get_type ())
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_QUERY_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, PublishingFacebookGraphSessionGraphQueryMessage))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_QUERY_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, PublishingFacebookGraphSessionGraphQueryMessageClass))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_QUERY_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_QUERY_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_QUERY_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, PublishingFacebookGraphSessionGraphQueryMessageClass))
+
+typedef struct _PublishingFacebookGraphSessionGraphQueryMessage PublishingFacebookGraphSessionGraphQueryMessage;
+typedef struct _PublishingFacebookGraphSessionGraphQueryMessageClass PublishingFacebookGraphSessionGraphQueryMessageClass;
+
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE (publishing_facebook_graph_session_graph_upload_message_get_type ())
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessage))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessageClass))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_UPLOAD_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_UPLOAD_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessageClass))
+
+typedef struct _PublishingFacebookGraphSessionGraphUploadMessage PublishingFacebookGraphSessionGraphUploadMessage;
+typedef struct _PublishingFacebookGraphSessionGraphUploadMessageClass PublishingFacebookGraphSessionGraphUploadMessageClass;
+
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE (publishing_facebook_graph_session_graph_create_album_message_get_type ())
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_CREATE_ALBUM_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, PublishingFacebookGraphSessionGraphCreateAlbumMessage))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_CREATE_ALBUM_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, PublishingFacebookGraphSessionGraphCreateAlbumMessageClass))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_CREATE_ALBUM_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_CREATE_ALBUM_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE))
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_CREATE_ALBUM_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, PublishingFacebookGraphSessionGraphCreateAlbumMessageClass))
+
+typedef struct _PublishingFacebookGraphSessionGraphCreateAlbumMessage PublishingFacebookGraphSessionGraphCreateAlbumMessage;
+typedef struct _PublishingFacebookGraphSessionGraphCreateAlbumMessageClass PublishingFacebookGraphSessionGraphCreateAlbumMessageClass;
+typedef struct _PublishingFacebookGraphSessionGraphQueryMessagePrivate PublishingFacebookGraphSessionGraphQueryMessagePrivate;
+#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL)))
+typedef struct _PublishingFacebookGraphSessionGraphEndpointProbeMessagePrivate PublishingFacebookGraphSessionGraphEndpointProbeMessagePrivate;
+typedef struct _PublishingFacebookGraphSessionGraphUploadMessagePrivate PublishingFacebookGraphSessionGraphUploadMessagePrivate;
+#define _g_mapped_file_unref0(var) ((var == NULL) ? NULL : (var = (g_mapped_file_unref (var), NULL)))
+#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
+#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL)))
+#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL)))
+typedef struct _PublishingFacebookGraphSessionGraphCreateAlbumMessagePrivate PublishingFacebookGraphSessionGraphCreateAlbumMessagePrivate;
+typedef struct _PublishingFacebookParamSpecGraphSession PublishingFacebookParamSpecGraphSession;
+typedef struct _PublishingFacebookUploaderPrivate PublishingFacebookUploaderPrivate;
+typedef struct _PublishingFacebookParamSpecUploader PublishingFacebookParamSpecUploader;
+#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 _FacebookService {
+ GObject parent_instance;
+ FacebookServicePrivate * priv;
+};
+
+struct _FacebookServiceClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingFacebookAlbum {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFacebookAlbumPrivate * priv;
+ gchar* name;
+ gchar* id;
+};
+
+struct _PublishingFacebookAlbumClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFacebookAlbum *self);
+};
+
+struct _PublishingFacebookParamSpecAlbum {
+ GParamSpec parent_instance;
+};
+
+typedef enum {
+ PUBLISHING_FACEBOOK_RESOLUTION_STANDARD,
+ PUBLISHING_FACEBOOK_RESOLUTION_HIGH
+} PublishingFacebookResolution;
+
+struct _PublishingFacebookPublishingParameters {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFacebookPublishingParametersPrivate * priv;
+ gboolean strip_metadata;
+ PublishingFacebookAlbum** albums;
+ gint albums_length1;
+ gint _albums_size_;
+ gint target_album;
+ gchar* new_album_name;
+ gchar* privacy_object;
+ PublishingFacebookResolution resolution;
+};
+
+struct _PublishingFacebookPublishingParametersClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFacebookPublishingParameters *self);
+};
+
+struct _PublishingFacebookParamSpecPublishingParameters {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingFacebookFacebookPublisher {
+ GObject parent_instance;
+ PublishingFacebookFacebookPublisherPrivate * priv;
+};
+
+struct _PublishingFacebookFacebookPublisherClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingFacebookFacebookPublisherPrivate {
+ PublishingFacebookPublishingParameters* publishing_params;
+ SpitPublishingPluginHost* host;
+ PublishingFacebookWebAuthenticationPane* web_auth_pane;
+ SpitPublishingProgressCallback progress_reporter;
+ gpointer progress_reporter_target;
+ GDestroyNotify progress_reporter_target_destroy_notify;
+ SpitPublishingService* service;
+ gboolean running;
+ PublishingFacebookGraphSession* graph_session;
+ PublishingFacebookPublishingOptionsPane* publishing_options_pane;
+ PublishingFacebookUploader* uploader;
+ gchar* uid;
+ gchar* username;
+};
+
+struct _PublishingFacebookWebAuthenticationPane {
+ GObject parent_instance;
+ PublishingFacebookWebAuthenticationPanePrivate * priv;
+};
+
+struct _PublishingFacebookWebAuthenticationPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingFacebookWebAuthenticationPanePrivate {
+ WebKitWebView* webview;
+ GtkBox* pane_widget;
+ GtkScrolledWindow* webview_frame;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup** locale_lookup_table;
+ gint locale_lookup_table_length1;
+ gint _locale_lookup_table_size_;
+};
+
+struct _PublishingFacebookWebAuthenticationPaneLocaleLookup {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFacebookWebAuthenticationPaneLocaleLookupPrivate * priv;
+ gchar* prefix;
+ gchar* translation;
+ gchar* exception_code;
+ gchar* exception_translation;
+ gchar* exception_code_2;
+ gchar* exception_translation_2;
+};
+
+struct _PublishingFacebookWebAuthenticationPaneLocaleLookupClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFacebookWebAuthenticationPaneLocaleLookup *self);
+};
+
+struct _PublishingFacebookWebAuthenticationPaneParamSpecLocaleLookup {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingFacebookPublishingOptionsPane {
+ GObject parent_instance;
+ PublishingFacebookPublishingOptionsPanePrivate * priv;
+};
+
+struct _PublishingFacebookPublishingOptionsPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingFacebookPublishingOptionsPanePrivate {
+ GtkBuilder* builder;
+ GtkBox* pane_widget;
+ GtkRadioButton* use_existing_radio;
+ GtkRadioButton* create_new_radio;
+ GtkComboBoxText* existing_albums_combo;
+ GtkComboBoxText* visibility_combo;
+ GtkEntry* new_album_entry;
+ GtkCheckButton* strip_metadata_check;
+ GtkButton* publish_button;
+ GtkButton* logout_button;
+ GtkLabel* how_to_label;
+ PublishingFacebookAlbum** albums;
+ gint albums_length1;
+ gint _albums_size_;
+ PublishingFacebookFacebookPublisher* publisher;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** privacy_descriptions;
+ gint privacy_descriptions_length1;
+ gint _privacy_descriptions_size_;
+ PublishingFacebookResolution* possible_resolutions;
+ gint possible_resolutions_length1;
+ gint _possible_resolutions_size_;
+ GtkComboBoxText* resolution_combo;
+ SpitPublishingPublisherMediaType media_type;
+};
+
+struct _PublishingFacebookPublishingOptionsPanePrivacyDescription {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFacebookPublishingOptionsPanePrivacyDescriptionPrivate * priv;
+ gchar* description;
+ gchar* privacy_setting;
+};
+
+struct _PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFacebookPublishingOptionsPanePrivacyDescription *self);
+};
+
+struct _PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription {
+ GParamSpec parent_instance;
+};
+
+typedef enum {
+ PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT,
+ PUBLISHING_FACEBOOK_ENDPOINT_VIDEO,
+ PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION
+} PublishingFacebookEndpoint;
+
+struct _PublishingFacebookGraphMessage {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFacebookGraphMessagePrivate * priv;
+};
+
+struct _PublishingFacebookGraphMessageClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFacebookGraphMessage *self);
+ gchar* (*get_uri) (PublishingFacebookGraphMessage* self);
+ gchar* (*get_response_body) (PublishingFacebookGraphMessage* self);
+};
+
+struct _PublishingFacebookParamSpecGraphMessage {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingFacebookGraphSession {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFacebookGraphSessionPrivate * priv;
+};
+
+struct _PublishingFacebookGraphSessionClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFacebookGraphSession *self);
+};
+
+struct _PublishingFacebookGraphSessionPrivate {
+ SoupSession* soup_session;
+ gchar* access_token;
+ PublishingFacebookGraphMessage* current_message;
+};
+
+struct _PublishingFacebookGraphSessionGraphMessageImpl {
+ PublishingFacebookGraphMessage parent_instance;
+ PublishingFacebookGraphSessionGraphMessageImplPrivate * priv;
+ PublishingRESTSupportHttpMethod method;
+ gchar* uri;
+ gchar* access_token;
+ SoupMessage* soup_message;
+ PublishingFacebookGraphSession* host_session;
+ gint bytes_so_far;
+};
+
+struct _PublishingFacebookGraphSessionGraphMessageImplClass {
+ PublishingFacebookGraphMessageClass parent_class;
+ gboolean (*prepare_for_transmission) (PublishingFacebookGraphSessionGraphMessageImpl* self);
+};
+
+struct _PublishingFacebookGraphSessionGraphQueryMessage {
+ PublishingFacebookGraphSessionGraphMessageImpl parent_instance;
+ PublishingFacebookGraphSessionGraphQueryMessagePrivate * priv;
+};
+
+struct _PublishingFacebookGraphSessionGraphQueryMessageClass {
+ PublishingFacebookGraphSessionGraphMessageImplClass parent_class;
+};
+
+struct _PublishingFacebookGraphSessionGraphEndpointProbeMessage {
+ PublishingFacebookGraphSessionGraphMessageImpl parent_instance;
+ PublishingFacebookGraphSessionGraphEndpointProbeMessagePrivate * priv;
+};
+
+struct _PublishingFacebookGraphSessionGraphEndpointProbeMessageClass {
+ PublishingFacebookGraphSessionGraphMessageImplClass parent_class;
+};
+
+struct _PublishingFacebookGraphSessionGraphUploadMessage {
+ PublishingFacebookGraphSessionGraphMessageImpl parent_instance;
+ PublishingFacebookGraphSessionGraphUploadMessagePrivate * priv;
+};
+
+struct _PublishingFacebookGraphSessionGraphUploadMessageClass {
+ PublishingFacebookGraphSessionGraphMessageImplClass parent_class;
+};
+
+struct _PublishingFacebookGraphSessionGraphUploadMessagePrivate {
+ GMappedFile* mapped_file;
+ SpitPublishingPublishable* publishable;
+};
+
+struct _PublishingFacebookGraphSessionGraphCreateAlbumMessage {
+ PublishingFacebookGraphSessionGraphMessageImpl parent_instance;
+ PublishingFacebookGraphSessionGraphCreateAlbumMessagePrivate * priv;
+};
+
+struct _PublishingFacebookGraphSessionGraphCreateAlbumMessageClass {
+ PublishingFacebookGraphSessionGraphMessageImplClass parent_class;
+};
+
+struct _PublishingFacebookParamSpecGraphSession {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingFacebookUploader {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFacebookUploaderPrivate * priv;
+};
+
+struct _PublishingFacebookUploaderClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFacebookUploader *self);
+};
+
+struct _PublishingFacebookUploaderPrivate {
+ gint current_file;
+ SpitPublishingPublishable** publishables;
+ gint publishables_length1;
+ gint _publishables_size_;
+ PublishingFacebookGraphSession* session;
+ PublishingFacebookPublishingParameters* publishing_params;
+ SpitPublishingProgressCallback status_updated;
+ gpointer status_updated_target;
+};
+
+struct _PublishingFacebookParamSpecUploader {
+ GParamSpec parent_instance;
+};
+
+
+static gpointer facebook_service_parent_class = NULL;
+static GdkPixbuf** facebook_service_icon_pixbuf_set;
+static gint facebook_service_icon_pixbuf_set_length1;
+static GdkPixbuf** facebook_service_icon_pixbuf_set = NULL;
+static gint facebook_service_icon_pixbuf_set_length1 = 0;
+static gint _facebook_service_icon_pixbuf_set_size_ = 0;
+static SpitPluggableIface* facebook_service_spit_pluggable_parent_iface = NULL;
+static SpitPublishingServiceIface* facebook_service_spit_publishing_service_parent_iface = NULL;
+static gpointer publishing_facebook_album_parent_class = NULL;
+static gpointer publishing_facebook_publishing_parameters_parent_class = NULL;
+static gpointer publishing_facebook_facebook_publisher_parent_class = NULL;
+static SpitPublishingPublisherIface* publishing_facebook_facebook_publisher_spit_publishing_publisher_parent_iface = NULL;
+static gpointer publishing_facebook_web_authentication_pane_parent_class = NULL;
+static gboolean publishing_facebook_web_authentication_pane_cache_dirty;
+static gboolean publishing_facebook_web_authentication_pane_cache_dirty = FALSE;
+static gpointer publishing_facebook_web_authentication_pane_locale_lookup_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_facebook_web_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_facebook_publishing_options_pane_parent_class = NULL;
+static gpointer publishing_facebook_publishing_options_pane_privacy_description_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_facebook_graph_message_parent_class = NULL;
+static gpointer publishing_facebook_graph_session_parent_class = NULL;
+static gpointer publishing_facebook_graph_session_graph_message_impl_parent_class = NULL;
+static gpointer publishing_facebook_graph_session_graph_query_message_parent_class = NULL;
+static gpointer publishing_facebook_graph_session_graph_endpoint_probe_message_parent_class = NULL;
+static gpointer publishing_facebook_graph_session_graph_upload_message_parent_class = NULL;
+static gpointer publishing_facebook_graph_session_graph_create_album_message_parent_class = NULL;
+static gpointer publishing_facebook_uploader_parent_class = NULL;
+
+GType facebook_service_get_type (void) G_GNUC_CONST;
+enum {
+ FACEBOOK_SERVICE_DUMMY_PROPERTY
+};
+#define FACEBOOK_SERVICE_ICON_FILENAME "facebook.png"
+FacebookService* facebook_service_new (GFile* resource_directory);
+FacebookService* facebook_service_construct (GType object_type, GFile* resource_directory);
+static gint facebook_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+static const gchar* facebook_service_real_get_id (SpitPluggable* base);
+static const gchar* facebook_service_real_get_pluggable_name (SpitPluggable* base);
+static void facebook_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length);
+static void facebook_service_real_activation (SpitPluggable* base, gboolean enabled);
+static SpitPublishingPublisher* facebook_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host);
+PublishingFacebookFacebookPublisher* publishing_facebook_facebook_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host);
+PublishingFacebookFacebookPublisher* publishing_facebook_facebook_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host);
+GType publishing_facebook_facebook_publisher_get_type (void) G_GNUC_CONST;
+static SpitPublishingPublisherMediaType facebook_service_real_get_supported_media (SpitPublishingService* base);
+static void facebook_service_finalize (GObject* obj);
+#define PUBLISHING_FACEBOOK_SERVICE_NAME "facebook"
+#define PUBLISHING_FACEBOOK_USER_VISIBLE_NAME "Facebook"
+#define PUBLISHING_FACEBOOK_APPLICATION_ID "1612018629063184"
+#define PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME _ ("Shotwell Connect")
+#define PUBLISHING_FACEBOOK_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into Facebook.\n" \
+"\n" \
+"If you don't yet have a Facebook account, you can create one during th" \
+"e login process. During login, Shotwell Connect may ask you for permis" \
+"sion to upload photos and publish to your feed. These permissions are " \
+"required for Shotwell Connect to function.")
+#define PUBLISHING_FACEBOOK_RESTART_ERROR_MESSAGE _ ("You have already logged in and out of Facebook during this Shotwell se" \
+"ssion.\n" \
+"To continue publishing to Facebook, quit and restart Shotwell, then tr" \
+"y publishing again.")
+#define PUBLISHING_FACEBOOK_USER_AGENT "Java/1.6.0_16"
+#define PUBLISHING_FACEBOOK_EXPIRED_SESSION_STATUS_CODE 400
+gpointer publishing_facebook_album_ref (gpointer instance);
+void publishing_facebook_album_unref (gpointer instance);
+GParamSpec* publishing_facebook_param_spec_album (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_facebook_value_set_album (GValue* value, gpointer v_object);
+void publishing_facebook_value_take_album (GValue* value, gpointer v_object);
+gpointer publishing_facebook_value_get_album (const GValue* value);
+GType publishing_facebook_album_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_FACEBOOK_ALBUM_DUMMY_PROPERTY
+};
+PublishingFacebookAlbum* publishing_facebook_album_new (const gchar* name, const gchar* id);
+PublishingFacebookAlbum* publishing_facebook_album_construct (GType object_type, const gchar* name, const gchar* id);
+static void publishing_facebook_album_finalize (PublishingFacebookAlbum* obj);
+GType publishing_facebook_resolution_get_type (void) G_GNUC_CONST;
+gchar* publishing_facebook_resolution_get_name (PublishingFacebookResolution self);
+const gchar* publishing_facebook_resolution_to_string (PublishingFacebookResolution self);
+gint publishing_facebook_resolution_get_pixels (PublishingFacebookResolution self);
+gpointer publishing_facebook_publishing_parameters_ref (gpointer instance);
+void publishing_facebook_publishing_parameters_unref (gpointer instance);
+GParamSpec* publishing_facebook_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_facebook_value_set_publishing_parameters (GValue* value, gpointer v_object);
+void publishing_facebook_value_take_publishing_parameters (GValue* value, gpointer v_object);
+gpointer publishing_facebook_value_get_publishing_parameters (const GValue* value);
+GType publishing_facebook_publishing_parameters_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_DUMMY_PROPERTY
+};
+#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM -1
+PublishingFacebookPublishingParameters* publishing_facebook_publishing_parameters_new (void);
+PublishingFacebookPublishingParameters* publishing_facebook_publishing_parameters_construct (GType object_type);
+void publishing_facebook_publishing_parameters_add_album (PublishingFacebookPublishingParameters* self, const gchar* name, const gchar* id);
+static void _vala_array_add6 (PublishingFacebookAlbum*** array, int* length, int* size, PublishingFacebookAlbum* value);
+void publishing_facebook_publishing_parameters_set_target_album_by_name (PublishingFacebookPublishingParameters* self, const gchar* name);
+gchar* publishing_facebook_publishing_parameters_get_target_album_name (PublishingFacebookPublishingParameters* self);
+gchar* publishing_facebook_publishing_parameters_get_target_album_id (PublishingFacebookPublishingParameters* self);
+static void publishing_facebook_publishing_parameters_finalize (PublishingFacebookPublishingParameters* obj);
+GType publishing_facebook_web_authentication_pane_get_type (void) G_GNUC_CONST;
+gpointer publishing_facebook_graph_session_ref (gpointer instance);
+void publishing_facebook_graph_session_unref (gpointer instance);
+GParamSpec* publishing_facebook_param_spec_graph_session (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_facebook_value_set_graph_session (GValue* value, gpointer v_object);
+void publishing_facebook_value_take_graph_session (GValue* value, gpointer v_object);
+gpointer publishing_facebook_value_get_graph_session (const GValue* value);
+GType publishing_facebook_graph_session_get_type (void) G_GNUC_CONST;
+GType publishing_facebook_publishing_options_pane_get_type (void) G_GNUC_CONST;
+gpointer publishing_facebook_uploader_ref (gpointer instance);
+void publishing_facebook_uploader_unref (gpointer instance);
+GParamSpec* publishing_facebook_param_spec_uploader (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_facebook_value_set_uploader (GValue* value, gpointer v_object);
+void publishing_facebook_value_take_uploader (GValue* value, gpointer v_object);
+gpointer publishing_facebook_value_get_uploader (const GValue* value);
+GType publishing_facebook_uploader_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisherPrivate))
+enum {
+ PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_DUMMY_PROPERTY
+};
+PublishingFacebookGraphSession* publishing_facebook_graph_session_new (void);
+PublishingFacebookGraphSession* publishing_facebook_graph_session_construct (GType object_type);
+static void publishing_facebook_facebook_publisher_on_session_authenticated (PublishingFacebookFacebookPublisher* self);
+static void _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated (PublishingFacebookGraphSession* _sender, gpointer self);
+static gboolean publishing_facebook_facebook_publisher_is_persistent_session_valid (PublishingFacebookFacebookPublisher* self);
+static gchar* publishing_facebook_facebook_publisher_get_persistent_access_token (PublishingFacebookFacebookPublisher* self);
+static gboolean publishing_facebook_facebook_publisher_get_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self);
+static void publishing_facebook_facebook_publisher_set_persistent_access_token (PublishingFacebookFacebookPublisher* self, const gchar* access_token);
+static void publishing_facebook_facebook_publisher_set_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self, gboolean strip_metadata);
+gint publishing_facebook_facebook_publisher_get_persistent_default_size (PublishingFacebookFacebookPublisher* self);
+void publishing_facebook_facebook_publisher_set_persistent_default_size (PublishingFacebookFacebookPublisher* self, gint size);
+static void publishing_facebook_facebook_publisher_invalidate_persistent_session (PublishingFacebookFacebookPublisher* self);
+static void publishing_facebook_facebook_publisher_do_show_service_welcome_pane (PublishingFacebookFacebookPublisher* self);
+static void publishing_facebook_facebook_publisher_on_login_clicked (PublishingFacebookFacebookPublisher* self);
+static void _publishing_facebook_facebook_publisher_on_login_clicked_spit_publishing_login_callback (gpointer self);
+static void publishing_facebook_facebook_publisher_do_test_connection_to_endpoint (PublishingFacebookFacebookPublisher* self);
+gpointer publishing_facebook_graph_message_ref (gpointer instance);
+void publishing_facebook_graph_message_unref (gpointer instance);
+GParamSpec* publishing_facebook_param_spec_graph_message (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_facebook_value_set_graph_message (GValue* value, gpointer v_object);
+void publishing_facebook_value_take_graph_message (GValue* value, gpointer v_object);
+gpointer publishing_facebook_value_get_graph_message (const GValue* value);
+GType publishing_facebook_graph_message_get_type (void) G_GNUC_CONST;
+PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_endpoint_test (PublishingFacebookGraphSession* self);
+static void publishing_facebook_facebook_publisher_on_endpoint_test_completed (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message);
+static void _publishing_facebook_facebook_publisher_on_endpoint_test_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, gpointer self);
+static void publishing_facebook_facebook_publisher_on_endpoint_test_error (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message, GError* _error_);
+static void _publishing_facebook_facebook_publisher_on_endpoint_test_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, GError* err, gpointer self);
+void publishing_facebook_graph_session_send_message (PublishingFacebookGraphSession* self, PublishingFacebookGraphMessage* message);
+static void publishing_facebook_facebook_publisher_do_fetch_user_info (PublishingFacebookFacebookPublisher* self);
+PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_query (PublishingFacebookGraphSession* self, const gchar* resource_path);
+static void publishing_facebook_facebook_publisher_on_fetch_user_info_completed (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message);
+static void _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, gpointer self);
+static void publishing_facebook_facebook_publisher_on_fetch_user_info_error (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message, GError* _error_);
+static void _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, GError* err, gpointer self);
+static void publishing_facebook_facebook_publisher_do_fetch_album_descriptions (PublishingFacebookFacebookPublisher* self);
+static void publishing_facebook_facebook_publisher_on_fetch_albums_completed (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message);
+static void _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, gpointer self);
+static void publishing_facebook_facebook_publisher_on_fetch_albums_error (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message, GError* err);
+static void _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, GError* err, gpointer self);
+static void publishing_facebook_facebook_publisher_do_extract_user_info_from_json (PublishingFacebookFacebookPublisher* self, const gchar* json);
+static JsonNode* _vala_JsonNode_copy (JsonNode* self);
+static void _vala_JsonNode_free (JsonNode* self);
+static void publishing_facebook_facebook_publisher_on_user_info_extracted (PublishingFacebookFacebookPublisher* self);
+static void publishing_facebook_facebook_publisher_do_extract_albums_from_json (PublishingFacebookFacebookPublisher* self, const gchar* json);
+static void publishing_facebook_facebook_publisher_on_albums_extracted (PublishingFacebookFacebookPublisher* self);
+static void publishing_facebook_facebook_publisher_do_create_new_album (PublishingFacebookFacebookPublisher* self);
+PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_create_album (PublishingFacebookGraphSession* self, const gchar* album_name, const gchar* privacy);
+static void publishing_facebook_facebook_publisher_on_create_album_completed (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message);
+static void _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, gpointer self);
+static void publishing_facebook_facebook_publisher_on_create_album_error (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message, GError* err);
+static void _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, GError* err, gpointer self);
+static void publishing_facebook_facebook_publisher_do_show_publishing_options_pane (PublishingFacebookFacebookPublisher* self);
+PublishingFacebookPublishingOptionsPane* publishing_facebook_publishing_options_pane_new (const gchar* username, PublishingFacebookAlbum** albums, int albums_length1, SpitPublishingPublisherMediaType media_type, PublishingFacebookFacebookPublisher* publisher, GtkBuilder* builder, gboolean strip_metadata);
+PublishingFacebookPublishingOptionsPane* publishing_facebook_publishing_options_pane_construct (GType object_type, const gchar* username, PublishingFacebookAlbum** albums, int albums_length1, SpitPublishingPublisherMediaType media_type, PublishingFacebookFacebookPublisher* publisher, GtkBuilder* builder, gboolean strip_metadata);
+static void publishing_facebook_facebook_publisher_on_publishing_options_pane_logout (PublishingFacebookFacebookPublisher* self);
+static void _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, gpointer self);
+static void publishing_facebook_facebook_publisher_on_publishing_options_pane_publish (PublishingFacebookFacebookPublisher* self, const gchar* target_album, const gchar* privacy_setting, PublishingFacebookResolution resolution, gboolean strip_metadata);
+static void _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, const gchar* target_album, const gchar* privacy_setting, PublishingFacebookResolution target_resolution, gboolean strip_metadata, gpointer self);
+static void publishing_facebook_facebook_publisher_do_logout (PublishingFacebookFacebookPublisher* self);
+static void publishing_facebook_facebook_publisher_do_add_new_local_album_from_json (PublishingFacebookFacebookPublisher* self, const gchar* album_name, const gchar* json);
+static void publishing_facebook_facebook_publisher_do_upload (PublishingFacebookFacebookPublisher* self);
+static void publishing_facebook_facebook_publisher_do_hosted_web_authentication (PublishingFacebookFacebookPublisher* self);
+PublishingFacebookWebAuthenticationPane* publishing_facebook_web_authentication_pane_new (void);
+PublishingFacebookWebAuthenticationPane* publishing_facebook_web_authentication_pane_construct (GType object_type);
+static void publishing_facebook_facebook_publisher_on_web_auth_pane_login_succeeded (PublishingFacebookFacebookPublisher* self, const gchar* success_url);
+static void _publishing_facebook_facebook_publisher_on_web_auth_pane_login_succeeded_publishing_facebook_web_authentication_pane_login_succeeded (PublishingFacebookWebAuthenticationPane* _sender, const gchar* success_url, gpointer self);
+static void publishing_facebook_facebook_publisher_on_web_auth_pane_login_failed (PublishingFacebookFacebookPublisher* self);
+static void _publishing_facebook_facebook_publisher_on_web_auth_pane_login_failed_publishing_facebook_web_authentication_pane_login_failed (PublishingFacebookWebAuthenticationPane* _sender, gpointer self);
+static void publishing_facebook_facebook_publisher_do_authenticate_session (PublishingFacebookFacebookPublisher* self, const gchar* good_login_uri);
+void publishing_facebook_graph_session_authenticate (PublishingFacebookGraphSession* self, const gchar* access_token);
+static void publishing_facebook_facebook_publisher_do_save_session_information (PublishingFacebookFacebookPublisher* self);
+gchar* publishing_facebook_graph_session_get_access_token (PublishingFacebookGraphSession* self);
+PublishingFacebookUploader* publishing_facebook_uploader_new (PublishingFacebookGraphSession* session, PublishingFacebookPublishingParameters* publishing_params, SpitPublishingPublishable** publishables, int publishables_length1);
+PublishingFacebookUploader* publishing_facebook_uploader_construct (GType object_type, PublishingFacebookGraphSession* session, PublishingFacebookPublishingParameters* publishing_params, SpitPublishingPublishable** publishables, int publishables_length1);
+static void publishing_facebook_facebook_publisher_on_upload_complete (PublishingFacebookFacebookPublisher* self, PublishingFacebookUploader* uploader, gint num_published);
+static void _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete (PublishingFacebookUploader* _sender, gint num_photos_published, gpointer self);
+static void publishing_facebook_facebook_publisher_on_upload_error (PublishingFacebookFacebookPublisher* self, PublishingFacebookUploader* uploader, GError* err);
+static void _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error (PublishingFacebookUploader* _sender, GError* err, gpointer self);
+void publishing_facebook_uploader_upload (PublishingFacebookUploader* self, SpitPublishingProgressCallback status_updated, void* status_updated_target);
+static void publishing_facebook_facebook_publisher_on_upload_status_updated (PublishingFacebookFacebookPublisher* self, gint file_number, gdouble completed_fraction);
+static void _publishing_facebook_facebook_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self);
+static void publishing_facebook_facebook_publisher_do_show_success_pane (PublishingFacebookFacebookPublisher* self);
+static void publishing_facebook_facebook_publisher_on_generic_error (PublishingFacebookFacebookPublisher* self, GError* _error_);
+gboolean publishing_facebook_graph_session_is_authenticated (PublishingFacebookGraphSession* self);
+gchar* publishing_facebook_graph_message_get_response_body (PublishingFacebookGraphMessage* self);
+static SpitPublishingService* publishing_facebook_facebook_publisher_real_get_service (SpitPublishingPublisher* base);
+gchar* publishing_facebook_facebook_publisher_get_service_name (PublishingFacebookFacebookPublisher* self);
+gchar* publishing_facebook_facebook_publisher_get_user_visible_name (PublishingFacebookFacebookPublisher* self);
+static void publishing_facebook_facebook_publisher_real_start (SpitPublishingPublisher* base);
+gboolean publishing_facebook_web_authentication_pane_is_cache_dirty (void);
+static void publishing_facebook_facebook_publisher_real_stop (SpitPublishingPublisher* base);
+void publishing_facebook_graph_session_stop_transactions (PublishingFacebookGraphSession* self);
+static gboolean publishing_facebook_facebook_publisher_real_is_running (SpitPublishingPublisher* base);
+static void publishing_facebook_facebook_publisher_finalize (GObject* obj);
+static gpointer publishing_facebook_web_authentication_pane_locale_lookup_ref (gpointer instance);
+static void publishing_facebook_web_authentication_pane_locale_lookup_unref (gpointer instance);
+static GParamSpec* publishing_facebook_web_authentication_pane_param_spec_locale_lookup (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
+static void publishing_facebook_web_authentication_pane_value_set_locale_lookup (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static void publishing_facebook_web_authentication_pane_value_take_locale_lookup (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static gpointer publishing_facebook_web_authentication_pane_value_get_locale_lookup (const GValue* value) G_GNUC_UNUSED;
+static GType publishing_facebook_web_authentication_pane_locale_lookup_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+#define PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingFacebookWebAuthenticationPanePrivate))
+enum {
+ PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_DUMMY_PROPERTY
+};
+static PublishingFacebookWebAuthenticationPaneLocaleLookup* publishing_facebook_web_authentication_pane_locale_lookup_new (const gchar* prefix, const gchar* translation, const gchar* exception_code, const gchar* exception_translation, const gchar* exception_code_2, const gchar* exception_translation_2);
+static PublishingFacebookWebAuthenticationPaneLocaleLookup* publishing_facebook_web_authentication_pane_locale_lookup_construct (GType object_type, const gchar* prefix, const gchar* translation, const gchar* exception_code, const gchar* exception_translation, const gchar* exception_code_2, const gchar* exception_translation_2);
+static void publishing_facebook_web_authentication_pane_on_page_load_changed (PublishingFacebookWebAuthenticationPane* self, WebKitLoadEvent load_event);
+static void _publishing_facebook_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed (WebKitWebView* _sender, WebKitLoadEvent load_event, gpointer self);
+static gboolean __lambda4_ (PublishingFacebookWebAuthenticationPane* self);
+static gboolean ___lambda4__webkit_web_view_context_menu (WebKitWebView* _sender, WebKitContextMenu* context_menu, GdkEvent* event, WebKitHitTestResult* hit_test_result, gpointer self);
+static gchar* publishing_facebook_web_authentication_pane_get_system_locale_as_facebook_locale (PublishingFacebookWebAuthenticationPane* self);
+static gchar* publishing_facebook_web_authentication_pane_get_login_url (PublishingFacebookWebAuthenticationPane* self);
+static void publishing_facebook_web_authentication_pane_on_page_load (PublishingFacebookWebAuthenticationPane* self);
+static void publishing_facebook_web_authentication_pane_on_load_started (PublishingFacebookWebAuthenticationPane* self);
+static GtkWidget* publishing_facebook_web_authentication_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_facebook_web_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_facebook_web_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_facebook_web_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+enum {
+ PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP_DUMMY_PROPERTY
+};
+static void publishing_facebook_web_authentication_pane_locale_lookup_finalize (PublishingFacebookWebAuthenticationPaneLocaleLookup* obj);
+static void publishing_facebook_web_authentication_pane_finalize (GObject* obj);
+static gpointer publishing_facebook_publishing_options_pane_privacy_description_ref (gpointer instance);
+static void publishing_facebook_publishing_options_pane_privacy_description_unref (gpointer instance);
+static GParamSpec* publishing_facebook_publishing_options_pane_param_spec_privacy_description (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
+static void publishing_facebook_publishing_options_pane_value_set_privacy_description (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static void publishing_facebook_publishing_options_pane_value_take_privacy_description (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static gpointer publishing_facebook_publishing_options_pane_value_get_privacy_description (const GValue* value) G_GNUC_UNUSED;
+static GType publishing_facebook_publishing_options_pane_privacy_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPanePrivate))
+enum {
+ PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_DUMMY_PROPERTY
+};
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_HEADER_LABEL_TEXT _ ("You are logged into Facebook as %s.\n\n")
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PHOTOS_LABEL_TEXT _ ("Where would you like to publish the selected photos?")
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_RESOLUTION_LABEL_TEXT _ ("Upload _size:")
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_CONTENT_GROUP_SPACING 32
+#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_STANDARD_ACTION_BUTTON_WIDTH 128
+static PublishingFacebookAlbum** _vala_array_dup2 (PublishingFacebookAlbum** self, int length);
+static PublishingFacebookPublishingOptionsPanePrivacyDescription** publishing_facebook_publishing_options_pane_create_privacy_descriptions (PublishingFacebookPublishingOptionsPane* self, int* result_length1);
+static PublishingFacebookResolution* publishing_facebook_publishing_options_pane_create_resolution_list (PublishingFacebookPublishingOptionsPane* self, int* result_length1);
+static void publishing_facebook_publishing_options_pane_on_create_new_toggled (PublishingFacebookPublishingOptionsPane* self);
+static void _publishing_facebook_publishing_options_pane_on_create_new_toggled_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_facebook_publishing_options_pane_on_use_existing_toggled (PublishingFacebookPublishingOptionsPane* self);
+static void _publishing_facebook_publishing_options_pane_on_use_existing_toggled_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_facebook_publishing_options_pane_setup_visibility_combo (PublishingFacebookPublishingOptionsPane* self);
+static void publishing_facebook_publishing_options_pane_on_publish_button_clicked (PublishingFacebookPublishingOptionsPane* self);
+static void _publishing_facebook_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_facebook_publishing_options_pane_on_logout_button_clicked (PublishingFacebookPublishingOptionsPane* self);
+static void _publishing_facebook_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_facebook_publishing_options_pane_setup_resolution_combo (PublishingFacebookPublishingOptionsPane* self);
+static void publishing_facebook_publishing_options_pane_on_size_changed (PublishingFacebookPublishingOptionsPane* self);
+static void _publishing_facebook_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
+static gboolean publishing_facebook_publishing_options_pane_publishing_photos (PublishingFacebookPublishingOptionsPane* self);
+static PublishingFacebookPublishingOptionsPanePrivacyDescription* publishing_facebook_publishing_options_pane_privacy_description_new (const gchar* description, const gchar* privacy_setting);
+static PublishingFacebookPublishingOptionsPanePrivacyDescription* publishing_facebook_publishing_options_pane_privacy_description_construct (GType object_type, const gchar* description, const gchar* privacy_setting);
+static void _vala_array_add7 (PublishingFacebookPublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingFacebookPublishingOptionsPanePrivacyDescription* value);
+static void _vala_array_add8 (PublishingFacebookPublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingFacebookPublishingOptionsPanePrivacyDescription* value);
+static void _vala_array_add9 (PublishingFacebookPublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingFacebookPublishingOptionsPanePrivacyDescription* value);
+static void _vala_array_add10 (PublishingFacebookResolution** array, int* length, int* size, PublishingFacebookResolution value);
+static void _vala_array_add11 (PublishingFacebookResolution** array, int* length, int* size, PublishingFacebookResolution value);
+void publishing_facebook_publishing_options_pane_installed (PublishingFacebookPublishingOptionsPane* self);
+static void publishing_facebook_publishing_options_pane_notify_logout (PublishingFacebookPublishingOptionsPane* self);
+static void publishing_facebook_publishing_options_pane_notify_publish (PublishingFacebookPublishingOptionsPane* self, const gchar* target_album, const gchar* privacy_setting, PublishingFacebookResolution target_resolution);
+static GtkWidget* publishing_facebook_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_facebook_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_facebook_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void _publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, gpointer self);
+static void _publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, const gchar* target_album, const gchar* privacy_setting, PublishingFacebookResolution target_resolution, gboolean strip_metadata, gpointer self);
+static void publishing_facebook_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void g_cclosure_user_marshal_VOID__STRING_STRING_ENUM_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+enum {
+ PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_DUMMY_PROPERTY
+};
+static void publishing_facebook_publishing_options_pane_privacy_description_finalize (PublishingFacebookPublishingOptionsPanePrivacyDescription* obj);
+static void publishing_facebook_publishing_options_pane_finalize (GObject* obj);
+GType publishing_facebook_endpoint_get_type (void) G_GNUC_CONST;
+gchar* publishing_facebook_endpoint_to_uri (PublishingFacebookEndpoint self);
+enum {
+ PUBLISHING_FACEBOOK_GRAPH_MESSAGE_DUMMY_PROPERTY
+};
+gchar* publishing_facebook_graph_message_get_uri (PublishingFacebookGraphMessage* self);
+static gchar* publishing_facebook_graph_message_real_get_uri (PublishingFacebookGraphMessage* self);
+static gchar* publishing_facebook_graph_message_real_get_response_body (PublishingFacebookGraphMessage* self);
+PublishingFacebookGraphMessage* publishing_facebook_graph_message_construct (GType object_type);
+static void g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void publishing_facebook_graph_message_finalize (PublishingFacebookGraphMessage* obj);
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSessionPrivate))
+enum {
+ PUBLISHING_FACEBOOK_GRAPH_SESSION_DUMMY_PROPERTY
+};
+static void publishing_facebook_graph_session_on_request_unqueued (PublishingFacebookGraphSession* self, SoupMessage* msg);
+static void _publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued (SoupSession* _sender, SoupMessage* msg, gpointer self);
+static void publishing_facebook_graph_session_manage_message (PublishingFacebookGraphSession* self, PublishingFacebookGraphMessage* msg);
+static void publishing_facebook_graph_session_unmanage_message (PublishingFacebookGraphSession* self, PublishingFacebookGraphMessage* msg);
+static GType publishing_facebook_graph_session_graph_message_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+static void publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data (PublishingFacebookGraphSessionGraphMessageImpl* self, SoupBuffer* chunk);
+static void _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, SoupBuffer* chunk, gpointer self);
+static PublishingFacebookGraphSessionGraphEndpointProbeMessage* publishing_facebook_graph_session_graph_endpoint_probe_message_new (PublishingFacebookGraphSession* host_session);
+static PublishingFacebookGraphSessionGraphEndpointProbeMessage* publishing_facebook_graph_session_graph_endpoint_probe_message_construct (GType object_type, PublishingFacebookGraphSession* host_session);
+static GType publishing_facebook_graph_session_graph_endpoint_probe_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+static PublishingFacebookGraphSessionGraphQueryMessage* publishing_facebook_graph_session_graph_query_message_new (PublishingFacebookGraphSession* host_session, const gchar* relative_uri, const gchar* access_token);
+static PublishingFacebookGraphSessionGraphQueryMessage* publishing_facebook_graph_session_graph_query_message_construct (GType object_type, PublishingFacebookGraphSession* host_session, const gchar* relative_uri, const gchar* access_token);
+static GType publishing_facebook_graph_session_graph_query_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_upload (PublishingFacebookGraphSession* self, const gchar* resource_path, SpitPublishingPublishable* publishable, gboolean suppress_titling, const gchar* resource_privacy);
+static PublishingFacebookGraphSessionGraphUploadMessage* publishing_facebook_graph_session_graph_upload_message_new (PublishingFacebookGraphSession* host_session, const gchar* access_token, const gchar* relative_uri, SpitPublishingPublishable* publishable, gboolean suppress_titling, const gchar* resource_privacy);
+static PublishingFacebookGraphSessionGraphUploadMessage* publishing_facebook_graph_session_graph_upload_message_construct (GType object_type, PublishingFacebookGraphSession* host_session, const gchar* access_token, const gchar* relative_uri, SpitPublishingPublishable* publishable, gboolean suppress_titling, const gchar* resource_privacy);
+static GType publishing_facebook_graph_session_graph_upload_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+static PublishingFacebookGraphSessionGraphCreateAlbumMessage* publishing_facebook_graph_session_graph_create_album_message_new (PublishingFacebookGraphSession* host_session, const gchar* access_token, const gchar* album_name, const gchar* album_privacy);
+static PublishingFacebookGraphSessionGraphCreateAlbumMessage* publishing_facebook_graph_session_graph_create_album_message_construct (GType object_type, PublishingFacebookGraphSession* host_session, const gchar* access_token, const gchar* album_name, const gchar* album_privacy);
+static GType publishing_facebook_graph_session_graph_create_album_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+static gboolean publishing_facebook_graph_session_graph_message_impl_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self);
+enum {
+ PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL_DUMMY_PROPERTY
+};
+static PublishingFacebookGraphSessionGraphMessageImpl* publishing_facebook_graph_session_graph_message_impl_construct (GType object_type, PublishingFacebookGraphSession* host_session, PublishingRESTSupportHttpMethod method, const gchar* relative_uri, const gchar* access_token, PublishingFacebookEndpoint endpoint);
+static gboolean publishing_facebook_graph_session_graph_message_impl_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self);
+static gchar* publishing_facebook_graph_session_graph_message_impl_real_get_uri (PublishingFacebookGraphMessage* base);
+static gchar* publishing_facebook_graph_session_graph_message_impl_real_get_response_body (PublishingFacebookGraphMessage* base);
+static void publishing_facebook_graph_session_graph_message_impl_finalize (PublishingFacebookGraphMessage* obj);
+enum {
+ PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_QUERY_MESSAGE_DUMMY_PROPERTY
+};
+static void _vala_SoupURI_free (SoupURI* self);
+enum {
+ PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_ENDPOINT_PROBE_MESSAGE_DUMMY_PROPERTY
+};
+#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessagePrivate))
+enum {
+ PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_DUMMY_PROPERTY
+};
+static void _vala_SoupMultipart_free (SoupMultipart* self);
+static void _vala_SoupBuffer_free (SoupBuffer* self);
+static gboolean publishing_facebook_graph_session_graph_upload_message_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* base);
+static void publishing_facebook_graph_session_graph_upload_message_finalize (PublishingFacebookGraphMessage* obj);
+enum {
+ PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_CREATE_ALBUM_MESSAGE_DUMMY_PROPERTY
+};
+static void publishing_facebook_graph_session_finalize (PublishingFacebookGraphSession* obj);
+#define PUBLISHING_FACEBOOK_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploaderPrivate))
+enum {
+ PUBLISHING_FACEBOOK_UPLOADER_DUMMY_PROPERTY
+};
+static SpitPublishingPublishable** _vala_array_dup3 (SpitPublishingPublishable** self, int length);
+static void publishing_facebook_uploader_send_current_file (PublishingFacebookUploader* self);
+static void publishing_facebook_uploader_on_chunk_transmitted (PublishingFacebookUploader* self, gint bytes_written_so_far, gint total_bytes);
+static void _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted (PublishingFacebookGraphMessage* _sender, gint bytes_sent_so_far, gint total_bytes, gpointer self);
+static void publishing_facebook_uploader_on_message_completed (PublishingFacebookUploader* self, PublishingFacebookGraphMessage* message);
+static void _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, gpointer self);
+static void publishing_facebook_uploader_on_message_failed (PublishingFacebookUploader* self, PublishingFacebookGraphMessage* message, GError* _error_);
+static void _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, GError* err, gpointer self);
+static void publishing_facebook_uploader_send_files (PublishingFacebookUploader* self);
+static void publishing_facebook_uploader_finalize (PublishingFacebookUploader* 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);
+
+
+FacebookService* facebook_service_construct (GType object_type, GFile* resource_directory) {
+ FacebookService * self = NULL;
+ GdkPixbuf** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (FacebookService*) g_object_new (object_type, NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = facebook_service_icon_pixbuf_set;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0__length1 = facebook_service_icon_pixbuf_set_length1;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 927 "FacebookPublishing.c"
+ gint _tmp1_ = 0;
+ GdkPixbuf** _tmp2_ = NULL;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" FACEBOOK_SERVICE_ICON_FILENAME, &_tmp1_);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ facebook_service_icon_pixbuf_set = (_vala_array_free (facebook_service_icon_pixbuf_set, facebook_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ facebook_service_icon_pixbuf_set = _tmp2_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ facebook_service_icon_pixbuf_set_length1 = _tmp1_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _facebook_service_icon_pixbuf_set_size_ = facebook_service_icon_pixbuf_set_length1;
+#line 940 "FacebookPublishing.c"
+ }
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 944 "FacebookPublishing.c"
+}
+
+
+FacebookService* facebook_service_new (GFile* resource_directory) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return facebook_service_construct (TYPE_FACEBOOK_SERVICE, resource_directory);
+#line 951 "FacebookPublishing.c"
+}
+
+
+static gint facebook_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ FacebookService * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = min_host_interface;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = max_host_interface;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp2_;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 973 "FacebookPublishing.c"
+}
+
+
+static const gchar* facebook_service_real_get_id (SpitPluggable* base) {
+ FacebookService * self;
+ const gchar* result = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = "org.yorba.shotwell.publishing.facebook";
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 986 "FacebookPublishing.c"
+}
+
+
+static const gchar* facebook_service_real_get_pluggable_name (SpitPluggable* base) {
+ FacebookService * self;
+ const gchar* result = NULL;
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = "Facebook";
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 999 "FacebookPublishing.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 1006 "FacebookPublishing.c"
+}
+
+
+static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length) {
+ GdkPixbuf** result;
+ int i;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = g_new0 (GdkPixbuf*, length + 1);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 1017 "FacebookPublishing.c"
+ GdkPixbuf* _tmp0_ = NULL;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result[i] = _tmp0_;
+#line 1023 "FacebookPublishing.c"
+ }
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1027 "FacebookPublishing.c"
+}
+
+
+static void facebook_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ FacebookService * self;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GdkPixbuf** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GdkPixbuf** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (info != NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = g_strdup ("Lucas Beeler");
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 ((*info).authors);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).authors = _tmp0_;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _ ("Copyright 2016 Software Freedom Conservancy Inc.");
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 ((*info).copyright);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).copyright = _tmp2_;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 ((*info).translators);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).translators = _tmp3_;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = g_strdup (_VERSION);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 ((*info).version);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).version = _tmp4_;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 ((*info).website_name);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).website_name = _tmp5_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 ((*info).website_url);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).website_url = _tmp6_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = g_strdup (RESOURCES_LICENSE);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 ((*info).license);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).license = _tmp7_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = facebook_service_icon_pixbuf_set;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8__length1 = facebook_service_icon_pixbuf_set_length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup1 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9__length1 = _tmp8__length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).icons = _tmp9_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*info).icons_length1 = _tmp9__length1;
+#line 1109 "FacebookPublishing.c"
+}
+
+
+static void facebook_service_real_activation (SpitPluggable* base, gboolean enabled) {
+ FacebookService * self;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService);
+#line 1117 "FacebookPublishing.c"
+}
+
+
+static SpitPublishingPublisher* facebook_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) {
+ FacebookService * self;
+ SpitPublishingPublisher* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingFacebookFacebookPublisher* _tmp1_ = NULL;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = host;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = publishing_facebook_facebook_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1138 "FacebookPublishing.c"
+}
+
+
+static SpitPublishingPublisherMediaType facebook_service_real_get_supported_media (SpitPublishingService* base) {
+ FacebookService * self;
+ SpitPublishingPublisherMediaType result = 0;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService);
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1151 "FacebookPublishing.c"
+}
+
+
+static void facebook_service_class_init (FacebookServiceClass * klass) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ facebook_service_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = facebook_service_finalize;
+#line 1160 "FacebookPublishing.c"
+}
+
+
+static void facebook_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ facebook_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) facebook_service_real_get_pluggable_interface;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) facebook_service_real_get_id;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) facebook_service_real_get_pluggable_name;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) facebook_service_real_get_info;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) facebook_service_real_activation;
+#line 1177 "FacebookPublishing.c"
+}
+
+
+static void facebook_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ facebook_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->create_publisher = (SpitPublishingPublisher* (*)(SpitPublishingService*, SpitPublishingPluginHost*)) facebook_service_real_create_publisher;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->get_supported_media = (SpitPublishingPublisherMediaType (*)(SpitPublishingService*)) facebook_service_real_get_supported_media;
+#line 1188 "FacebookPublishing.c"
+}
+
+
+static void facebook_service_instance_init (FacebookService * self) {
+}
+
+
+static void facebook_service_finalize (GObject* obj) {
+ FacebookService * self;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FACEBOOK_SERVICE, FacebookService);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_OBJECT_CLASS (facebook_service_parent_class)->finalize (obj);
+#line 1202 "FacebookPublishing.c"
+}
+
+
+GType facebook_service_get_type (void) {
+ static volatile gsize facebook_service_type_id__volatile = 0;
+ if (g_once_init_enter (&facebook_service_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (FacebookServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) facebook_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FacebookService), 0, (GInstanceInitFunc) facebook_service_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) facebook_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) facebook_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType facebook_service_type_id;
+ facebook_service_type_id = g_type_register_static (G_TYPE_OBJECT, "FacebookService", &g_define_type_info, 0);
+ g_type_add_interface_static (facebook_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (facebook_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info);
+ g_once_init_leave (&facebook_service_type_id__volatile, facebook_service_type_id);
+ }
+ return facebook_service_type_id__volatile;
+}
+
+
+PublishingFacebookAlbum* publishing_facebook_album_construct (GType object_type, const gchar* name, const gchar* id) {
+ PublishingFacebookAlbum* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (id != NULL, NULL);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookAlbum*) g_type_create_instance (object_type);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = name;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->name);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->name = _tmp1_;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = id;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->id);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->id = _tmp3_;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 1252 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookAlbum* publishing_facebook_album_new (const gchar* name, const gchar* id) {
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_album_construct (PUBLISHING_FACEBOOK_TYPE_ALBUM, name, id);
+#line 1259 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_value_album_init (GValue* value) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1266 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_value_album_free_value (GValue* value) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_album_unref (value->data[0].v_pointer);
+#line 1275 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_value_album_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_facebook_album_ref (src_value->data[0].v_pointer);
+#line 1285 "FacebookPublishing.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1289 "FacebookPublishing.c"
+ }
+}
+
+
+static gpointer publishing_facebook_value_album_peek_pointer (const GValue* value) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1297 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_value_album_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 1304 "FacebookPublishing.c"
+ PublishingFacebookAlbum* object;
+ object = collect_values[0].v_pointer;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1311 "FacebookPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 1315 "FacebookPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = publishing_facebook_album_ref (object);
+#line 1319 "FacebookPublishing.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1323 "FacebookPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 1327 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_value_album_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFacebookAlbum** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!object_p) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1338 "FacebookPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = NULL;
+#line 1344 "FacebookPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1348 "FacebookPublishing.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = publishing_facebook_album_ref (value->data[0].v_pointer);
+#line 1352 "FacebookPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 1356 "FacebookPublishing.c"
+}
+
+
+GParamSpec* publishing_facebook_param_spec_album (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFacebookParamSpecAlbum* spec;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_ALBUM), NULL);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 1370 "FacebookPublishing.c"
+}
+
+
+gpointer publishing_facebook_value_get_album (const GValue* value) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_ALBUM), NULL);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1379 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_value_set_album (GValue* value, gpointer v_object) {
+ PublishingFacebookAlbum* old;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_ALBUM));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_ALBUM));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_album_ref (value->data[0].v_pointer);
+#line 1399 "FacebookPublishing.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1403 "FacebookPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_album_unref (old);
+#line 1409 "FacebookPublishing.c"
+ }
+}
+
+
+void publishing_facebook_value_take_album (GValue* value, gpointer v_object) {
+ PublishingFacebookAlbum* old;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_ALBUM));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_ALBUM));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1428 "FacebookPublishing.c"
+ } else {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1432 "FacebookPublishing.c"
+ }
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_album_unref (old);
+#line 1438 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_album_class_init (PublishingFacebookAlbumClass * klass) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_album_parent_class = g_type_class_peek_parent (klass);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookAlbumClass *) klass)->finalize = publishing_facebook_album_finalize;
+#line 1448 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_album_instance_init (PublishingFacebookAlbum * self) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->ref_count = 1;
+#line 1455 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_album_finalize (PublishingFacebookAlbum* obj) {
+ PublishingFacebookAlbum * self;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbum);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->name);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->id);
+#line 1469 "FacebookPublishing.c"
+}
+
+
+GType publishing_facebook_album_get_type (void) {
+ static volatile gsize publishing_facebook_album_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_album_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_album_init, publishing_facebook_value_album_free_value, publishing_facebook_value_album_copy_value, publishing_facebook_value_album_peek_pointer, "p", publishing_facebook_value_album_collect_value, "p", publishing_facebook_value_album_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookAlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookAlbum), 0, (GInstanceInitFunc) publishing_facebook_album_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 publishing_facebook_album_type_id;
+ publishing_facebook_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookAlbum", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_facebook_album_type_id__volatile, publishing_facebook_album_type_id);
+ }
+ return publishing_facebook_album_type_id__volatile;
+}
+
+
+gpointer publishing_facebook_album_ref (gpointer instance) {
+ PublishingFacebookAlbum* self;
+ self = instance;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return instance;
+#line 1494 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_album_unref (gpointer instance) {
+ PublishingFacebookAlbum* self;
+ self = instance;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ PUBLISHING_FACEBOOK_ALBUM_GET_CLASS (self)->finalize (self);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1507 "FacebookPublishing.c"
+ }
+}
+
+
+gchar* publishing_facebook_resolution_get_name (PublishingFacebookResolution self) {
+ gchar* result = NULL;
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ switch (self) {
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case PUBLISHING_FACEBOOK_RESOLUTION_STANDARD:
+#line 1518 "FacebookPublishing.c"
+ {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = _ ("Standard (720 pixels)");
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp1_;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1530 "FacebookPublishing.c"
+ }
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case PUBLISHING_FACEBOOK_RESOLUTION_HIGH:
+#line 1534 "FacebookPublishing.c"
+ {
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _ ("Large (2048 pixels)");
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp3_;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1546 "FacebookPublishing.c"
+ }
+ default:
+ {
+ GEnumValue* _tmp4_;
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = g_enum_get_value (g_type_class_ref (PUBLISHING_FACEBOOK_TYPE_RESOLUTION), self);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_error ("FacebookPublishing.vala:93: Unknown resolution %s", (_tmp4_ != NULL) ? _tmp4_->value_name : NULL);
+#line 1555 "FacebookPublishing.c"
+ }
+ }
+}
+
+
+gint publishing_facebook_resolution_get_pixels (PublishingFacebookResolution self) {
+ gint result = 0;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ switch (self) {
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case PUBLISHING_FACEBOOK_RESOLUTION_STANDARD:
+#line 1567 "FacebookPublishing.c"
+ {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = 720;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1573 "FacebookPublishing.c"
+ }
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case PUBLISHING_FACEBOOK_RESOLUTION_HIGH:
+#line 1577 "FacebookPublishing.c"
+ {
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = 2048;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1583 "FacebookPublishing.c"
+ }
+ default:
+ {
+ GEnumValue* _tmp0_;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = g_enum_get_value (g_type_class_ref (PUBLISHING_FACEBOOK_TYPE_RESOLUTION), self);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_error ("FacebookPublishing.vala:106: Unknown resolution %s", (_tmp0_ != NULL) ? _tmp0_->value_name : NULL);
+#line 1592 "FacebookPublishing.c"
+ }
+ }
+}
+
+
+GType publishing_facebook_resolution_get_type (void) {
+ static volatile gsize publishing_facebook_resolution_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_resolution_type_id__volatile)) {
+ static const GEnumValue values[] = {{PUBLISHING_FACEBOOK_RESOLUTION_STANDARD, "PUBLISHING_FACEBOOK_RESOLUTION_STANDARD", "standard"}, {PUBLISHING_FACEBOOK_RESOLUTION_HIGH, "PUBLISHING_FACEBOOK_RESOLUTION_HIGH", "high"}, {0, NULL, NULL}};
+ GType publishing_facebook_resolution_type_id;
+ publishing_facebook_resolution_type_id = g_enum_register_static ("PublishingFacebookResolution", values);
+ g_once_init_leave (&publishing_facebook_resolution_type_id__volatile, publishing_facebook_resolution_type_id);
+ }
+ return publishing_facebook_resolution_type_id__volatile;
+}
+
+
+PublishingFacebookPublishingParameters* publishing_facebook_publishing_parameters_construct (GType object_type) {
+ PublishingFacebookPublishingParameters* self = NULL;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookPublishingParameters*) g_type_create_instance (object_type);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->albums = (_vala_array_free (self->albums, self->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->albums = NULL;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->albums_length1 = 0;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->_albums_size_ = self->albums_length1;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->privacy_object);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->privacy_object = NULL;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->target_album = PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->new_album_name);
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->new_album_name = NULL;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->strip_metadata = FALSE;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->resolution = PUBLISHING_FACEBOOK_RESOLUTION_HIGH;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 1638 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookPublishingParameters* publishing_facebook_publishing_parameters_new (void) {
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_publishing_parameters_construct (PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS);
+#line 1645 "FacebookPublishing.c"
+}
+
+
+static gpointer _publishing_facebook_album_ref0 (gpointer self) {
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self ? publishing_facebook_album_ref (self) : NULL;
+#line 1652 "FacebookPublishing.c"
+}
+
+
+static void _vala_array_add6 (PublishingFacebookAlbum*** array, int* length, int* size, PublishingFacebookAlbum* value) {
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if ((*length) == (*size)) {
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *array = g_renew (PublishingFacebookAlbum*, *array, (*size) + 1);
+#line 1663 "FacebookPublishing.c"
+ }
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*array)[*length] = NULL;
+#line 1669 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_publishing_parameters_add_album (PublishingFacebookPublishingParameters* self, const gchar* name, const gchar* id) {
+ PublishingFacebookAlbum** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingFacebookAlbum* new_album = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ PublishingFacebookAlbum* _tmp4_ = NULL;
+ PublishingFacebookAlbum** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ PublishingFacebookAlbum* _tmp6_ = NULL;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self));
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (name != NULL);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (id != NULL);
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->albums;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0__length1 = self->albums_length1;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 1695 "FacebookPublishing.c"
+ PublishingFacebookAlbum** _tmp1_ = NULL;
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = g_new0 (PublishingFacebookAlbum*, 0 + 1);
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->albums = (_vala_array_free (self->albums, self->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL);
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->albums = _tmp1_;
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->albums_length1 = 0;
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->_albums_size_ = self->albums_length1;
+#line 1707 "FacebookPublishing.c"
+ }
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = name;
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = id;
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = publishing_facebook_album_new (_tmp2_, _tmp3_);
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ new_album = _tmp4_;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->albums;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5__length1 = self->albums_length1;
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _publishing_facebook_album_ref0 (new_album);
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_array_add6 (&self->albums, &self->albums_length1, &self->_albums_size_, _tmp6_);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_album_unref0 (new_album);
+#line 1727 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_publishing_parameters_set_target_album_by_name (PublishingFacebookPublishingParameters* self, const gchar* name) {
+ const gchar* _tmp0_ = NULL;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self));
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = name;
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->target_album = PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM;
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 1743 "FacebookPublishing.c"
+ }
+ {
+ gint i = 0;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ i = 0;
+#line 1749 "FacebookPublishing.c"
+ {
+ gboolean _tmp1_ = FALSE;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = TRUE;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ while (TRUE) {
+#line 1756 "FacebookPublishing.c"
+ gint _tmp3_ = 0;
+ PublishingFacebookAlbum** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ PublishingFacebookAlbum** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ gint _tmp6_ = 0;
+ PublishingFacebookAlbum* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp1_) {
+#line 1768 "FacebookPublishing.c"
+ gint _tmp2_ = 0;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = i;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ i = _tmp2_ + 1;
+#line 1774 "FacebookPublishing.c"
+ }
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = FALSE;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = i;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->albums;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4__length1 = self->albums_length1;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!(_tmp3_ < _tmp4__length1)) {
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ break;
+#line 1788 "FacebookPublishing.c"
+ }
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->albums;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5__length1 = self->albums_length1;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = i;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp5_[_tmp6_];
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _tmp7_->name;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = name;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (g_strcmp0 (_tmp8_, _tmp9_) == 0) {
+#line 1804 "FacebookPublishing.c"
+ gint _tmp10_ = 0;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = i;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->target_album = _tmp10_;
+#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 1812 "FacebookPublishing.c"
+ }
+ }
+ }
+ }
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->target_album = PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM;
+#line 1819 "FacebookPublishing.c"
+}
+
+
+gchar* publishing_facebook_publishing_parameters_get_target_album_name (PublishingFacebookPublishingParameters* self) {
+ gchar* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ PublishingFacebookAlbum** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingFacebookAlbum** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ gint _tmp4_ = 0;
+ PublishingFacebookAlbum* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->albums;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1__length1 = self->albums_length1;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp1_ == NULL) {
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = TRUE;
+#line 1844 "FacebookPublishing.c"
+ } else {
+ gint _tmp2_ = 0;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->target_album;
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = _tmp2_ == PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM;
+#line 1851 "FacebookPublishing.c"
+ }
+#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp0_) {
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = NULL;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1859 "FacebookPublishing.c"
+ }
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->albums;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3__length1 = self->albums_length1;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->target_album;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _tmp3_[_tmp4_];
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _tmp5_->name;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = g_strdup (_tmp6_);
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp7_;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1877 "FacebookPublishing.c"
+}
+
+
+gchar* publishing_facebook_publishing_parameters_get_target_album_id (PublishingFacebookPublishingParameters* self) {
+ gchar* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ PublishingFacebookAlbum** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingFacebookAlbum** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ gint _tmp4_ = 0;
+ PublishingFacebookAlbum* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->albums;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1__length1 = self->albums_length1;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp1_ == NULL) {
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = TRUE;
+#line 1902 "FacebookPublishing.c"
+ } else {
+ gint _tmp2_ = 0;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->target_album;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = _tmp2_ == PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM;
+#line 1909 "FacebookPublishing.c"
+ }
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp0_) {
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = NULL;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1917 "FacebookPublishing.c"
+ }
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->albums;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3__length1 = self->albums_length1;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->target_album;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _tmp3_[_tmp4_];
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _tmp5_->id;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = g_strdup (_tmp6_);
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp7_;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 1935 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_value_publishing_parameters_init (GValue* value) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1942 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_value_publishing_parameters_free_value (GValue* value) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_parameters_unref (value->data[0].v_pointer);
+#line 1951 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_value_publishing_parameters_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_facebook_publishing_parameters_ref (src_value->data[0].v_pointer);
+#line 1961 "FacebookPublishing.c"
+ } else {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1965 "FacebookPublishing.c"
+ }
+}
+
+
+static gpointer publishing_facebook_value_publishing_parameters_peek_pointer (const GValue* value) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1973 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_value_publishing_parameters_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 1980 "FacebookPublishing.c"
+ PublishingFacebookPublishingParameters* object;
+ object = collect_values[0].v_pointer;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1987 "FacebookPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 1991 "FacebookPublishing.c"
+ }
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = publishing_facebook_publishing_parameters_ref (object);
+#line 1995 "FacebookPublishing.c"
+ } else {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1999 "FacebookPublishing.c"
+ }
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 2003 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_value_publishing_parameters_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFacebookPublishingParameters** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!object_p) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 2014 "FacebookPublishing.c"
+ }
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = NULL;
+#line 2020 "FacebookPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 2024 "FacebookPublishing.c"
+ } else {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = publishing_facebook_publishing_parameters_ref (value->data[0].v_pointer);
+#line 2028 "FacebookPublishing.c"
+ }
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 2032 "FacebookPublishing.c"
+}
+
+
+GParamSpec* publishing_facebook_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFacebookParamSpecPublishingParameters* spec;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 2046 "FacebookPublishing.c"
+}
+
+
+gpointer publishing_facebook_value_get_publishing_parameters (const GValue* value) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 2055 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_value_set_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingFacebookPublishingParameters* old;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS));
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS));
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_parameters_ref (value->data[0].v_pointer);
+#line 2075 "FacebookPublishing.c"
+ } else {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 2079 "FacebookPublishing.c"
+ }
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_parameters_unref (old);
+#line 2085 "FacebookPublishing.c"
+ }
+}
+
+
+void publishing_facebook_value_take_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingFacebookPublishingParameters* old;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS));
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS));
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 2104 "FacebookPublishing.c"
+ } else {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 2108 "FacebookPublishing.c"
+ }
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_parameters_unref (old);
+#line 2114 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_publishing_parameters_class_init (PublishingFacebookPublishingParametersClass * klass) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_parameters_parent_class = g_type_class_peek_parent (klass);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookPublishingParametersClass *) klass)->finalize = publishing_facebook_publishing_parameters_finalize;
+#line 2124 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_parameters_instance_init (PublishingFacebookPublishingParameters * self) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->ref_count = 1;
+#line 2131 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_parameters_finalize (PublishingFacebookPublishingParameters* obj) {
+ PublishingFacebookPublishingParameters * self;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParameters);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->albums = (_vala_array_free (self->albums, self->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->new_album_name);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->privacy_object);
+#line 2147 "FacebookPublishing.c"
+}
+
+
+GType publishing_facebook_publishing_parameters_get_type (void) {
+ static volatile gsize publishing_facebook_publishing_parameters_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_publishing_parameters_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_publishing_parameters_init, publishing_facebook_value_publishing_parameters_free_value, publishing_facebook_value_publishing_parameters_copy_value, publishing_facebook_value_publishing_parameters_peek_pointer, "p", publishing_facebook_value_publishing_parameters_collect_value, "p", publishing_facebook_value_publishing_parameters_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookPublishingParameters), 0, (GInstanceInitFunc) publishing_facebook_publishing_parameters_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 publishing_facebook_publishing_parameters_type_id;
+ publishing_facebook_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_facebook_publishing_parameters_type_id__volatile, publishing_facebook_publishing_parameters_type_id);
+ }
+ return publishing_facebook_publishing_parameters_type_id__volatile;
+}
+
+
+gpointer publishing_facebook_publishing_parameters_ref (gpointer instance) {
+ PublishingFacebookPublishingParameters* self;
+ self = instance;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return instance;
+#line 2172 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_publishing_parameters_unref (gpointer instance) {
+ PublishingFacebookPublishingParameters* self;
+ self = instance;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 2185 "FacebookPublishing.c"
+ }
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated (PublishingFacebookGraphSession* _sender, gpointer self) {
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_session_authenticated ((PublishingFacebookFacebookPublisher*) self);
+#line 2193 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookFacebookPublisher* publishing_facebook_facebook_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) {
+ PublishingFacebookFacebookPublisher * self = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp2_ = NULL;
+ PublishingFacebookGraphSession* _tmp3_ = NULL;
+ PublishingFacebookGraphSession* _tmp4_ = NULL;
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookFacebookPublisher*) g_object_new (object_type, NULL);
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:189: FacebookPublisher instantiated.");
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = service;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->service = _tmp0_;
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = host;
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->host = _tmp1_;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = publishing_facebook_publishing_parameters_new ();
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params);
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publishing_params = _tmp2_;
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = publishing_facebook_graph_session_new ();
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_session_unref0 (self->priv->graph_session);
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->graph_session = _tmp3_;
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->priv->graph_session;
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp4_, "authenticated", (GCallback) _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated, self, 0);
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 2238 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookFacebookPublisher* publishing_facebook_facebook_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) {
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_facebook_publisher_construct (PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, service, host);
+#line 2245 "FacebookPublishing.c"
+}
+
+
+static gboolean publishing_facebook_facebook_publisher_is_persistent_session_valid (PublishingFacebookFacebookPublisher* self) {
+ gboolean result = FALSE;
+ gchar* token = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp3_ = NULL;
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), FALSE);
+#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = publishing_facebook_facebook_publisher_get_persistent_access_token (self);
+#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ token = _tmp0_;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = token;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp1_ != NULL) {
+#line 2265 "FacebookPublishing.c"
+ const gchar* _tmp2_ = NULL;
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = token;
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:204: existing Facebook session found in config" \
+"uration database (access_token = %s).", _tmp2_);
+#line 2271 "FacebookPublishing.c"
+ } else {
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:207: no existing Facebook session available.");
+#line 2275 "FacebookPublishing.c"
+ }
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = token;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp3_ != NULL;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (token);
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 2285 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_facebook_publisher_get_persistent_access_token (PublishingFacebookFacebookPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), NULL);
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_token", NULL);
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp1_;
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 2303 "FacebookPublishing.c"
+}
+
+
+static gboolean publishing_facebook_facebook_publisher_get_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self) {
+ gboolean result = FALSE;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), FALSE);
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", FALSE);
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp1_;
+#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 2321 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_set_persistent_access_token (PublishingFacebookFacebookPublisher* self, const gchar* access_token) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (access_token != NULL);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = access_token;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_token", _tmp1_);
+#line 2338 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_set_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self, gboolean strip_metadata) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = strip_metadata;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", _tmp1_);
+#line 2353 "FacebookPublishing.c"
+}
+
+
+gint publishing_facebook_facebook_publisher_get_persistent_default_size (PublishingFacebookFacebookPublisher* self) {
+ gint result = 0;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), 0);
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 0);
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp1_;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 2371 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_facebook_publisher_set_persistent_default_size (PublishingFacebookFacebookPublisher* self, gint size) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = size;
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", _tmp1_);
+#line 2386 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_invalidate_persistent_session (PublishingFacebookFacebookPublisher* self) {
+#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:239: invalidating saved Facebook session.");
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_set_persistent_access_token (self, "");
+#line 2397 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_login_clicked_spit_publishing_login_callback (gpointer self) {
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_login_clicked ((PublishingFacebookFacebookPublisher*) self);
+#line 2404 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_show_service_welcome_pane (PublishingFacebookFacebookPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:245: ACTION: showing service welcome pane.");
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_install_welcome_pane (_tmp0_, PUBLISHING_FACEBOOK_SERVICE_WELCOME_MESSAGE, _publishing_facebook_facebook_publisher_on_login_clicked_spit_publishing_login_callback, self);
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp1_, FALSE);
+#line 2423 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_endpoint_test_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, gpointer self) {
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_endpoint_test_completed ((PublishingFacebookFacebookPublisher*) self, _sender);
+#line 2430 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_endpoint_test_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, GError* err, gpointer self) {
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_endpoint_test_error ((PublishingFacebookFacebookPublisher*) self, _sender, err);
+#line 2437 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_test_connection_to_endpoint (PublishingFacebookFacebookPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingFacebookGraphMessage* endpoint_test_message = NULL;
+ PublishingFacebookGraphSession* _tmp3_ = NULL;
+ PublishingFacebookGraphMessage* _tmp4_ = NULL;
+ PublishingFacebookGraphSession* _tmp5_ = NULL;
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:252: ACTION: testing connection to Facebook en" \
+"dpoint.");
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _ ("Testing connection to Facebook...");
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_install_static_message_pane (_tmp1_, _tmp2_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->graph_session;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = publishing_facebook_graph_session_new_endpoint_test (_tmp3_);
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ endpoint_test_message = _tmp4_;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (endpoint_test_message, "completed", (GCallback) _publishing_facebook_facebook_publisher_on_endpoint_test_completed_publishing_facebook_graph_message_completed, self, 0);
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (endpoint_test_message, "failed", (GCallback) _publishing_facebook_facebook_publisher_on_endpoint_test_error_publishing_facebook_graph_message_failed, self, 0);
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->priv->graph_session;
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_send_message (_tmp5_, endpoint_test_message);
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (endpoint_test_message);
+#line 2479 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, gpointer self) {
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_fetch_user_info_completed ((PublishingFacebookFacebookPublisher*) self, _sender);
+#line 2486 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, GError* err, gpointer self) {
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_fetch_user_info_error ((PublishingFacebookFacebookPublisher*) self, _sender, err);
+#line 2493 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_fetch_user_info (PublishingFacebookFacebookPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingFacebookGraphMessage* user_info_message = NULL;
+ PublishingFacebookGraphSession* _tmp2_ = NULL;
+ PublishingFacebookGraphMessage* _tmp3_ = NULL;
+ PublishingFacebookGraphSession* _tmp4_ = NULL;
+#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:265: ACTION: fetching user information.");
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_);
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->graph_session;
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = publishing_facebook_graph_session_new_query (_tmp2_, "/me");
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ user_info_message = _tmp3_;
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (user_info_message, "completed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed, self, 0);
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (user_info_message, "failed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed, self, 0);
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->priv->graph_session;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_send_message (_tmp4_, user_info_message);
+#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (user_info_message);
+#line 2532 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, gpointer self) {
+#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_fetch_albums_completed ((PublishingFacebookFacebookPublisher*) self, _sender);
+#line 2539 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, GError* err, gpointer self) {
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_fetch_albums_error ((PublishingFacebookFacebookPublisher*) self, _sender, err);
+#line 2546 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_fetch_album_descriptions (PublishingFacebookFacebookPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingFacebookGraphMessage* albums_message = NULL;
+ PublishingFacebookGraphSession* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ PublishingFacebookGraphMessage* _tmp6_ = NULL;
+ PublishingFacebookGraphMessage* _tmp7_ = NULL;
+ PublishingFacebookGraphSession* _tmp8_ = NULL;
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:279: ACTION: fetching album list.");
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_);
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->graph_session;
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->uid;
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = g_strdup_printf ("/%s/albums", _tmp3_);
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = publishing_facebook_graph_session_new_query (_tmp2_, _tmp5_);
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ albums_message = _tmp7_;
+#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (albums_message, "completed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed, self, 0);
+#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (albums_message, "failed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed, self, 0);
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = self->priv->graph_session;
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_send_message (_tmp8_, albums_message);
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (albums_message);
+#line 2599 "FacebookPublishing.c"
+}
+
+
+static JsonNode* _vala_JsonNode_copy (JsonNode* self) {
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_boxed_copy (json_node_get_type (), self);
+#line 2606 "FacebookPublishing.c"
+}
+
+
+static gpointer __vala_JsonNode_copy0 (gpointer self) {
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self ? _vala_JsonNode_copy (self) : NULL;
+#line 2613 "FacebookPublishing.c"
+}
+
+
+static gpointer _json_object_ref0 (gpointer self) {
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self ? json_object_ref (self) : NULL;
+#line 2620 "FacebookPublishing.c"
+}
+
+
+static void _vala_JsonNode_free (JsonNode* self) {
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_boxed_free (json_node_get_type (), self);
+#line 2627 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_extract_user_info_from_json (PublishingFacebookFacebookPublisher* self, const gchar* json) {
+ GError * _inner_error_ = NULL;
+#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (json != NULL);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:293: ACTION: extracting user info from JSON re" \
+"sponse.");
+#line 2639 "FacebookPublishing.c"
+ {
+ JsonParser* parser = NULL;
+ JsonParser* _tmp0_ = NULL;
+ JsonParser* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ JsonNode* root = NULL;
+ JsonParser* _tmp3_ = NULL;
+ JsonNode* _tmp4_ = NULL;
+ JsonNode* _tmp5_ = NULL;
+ JsonObject* response_object = NULL;
+ JsonNode* _tmp6_ = NULL;
+ JsonObject* _tmp7_ = NULL;
+ JsonObject* _tmp8_ = NULL;
+ JsonObject* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ JsonObject* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = json_parser_new ();
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ parser = _tmp0_;
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = parser;
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = json;
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ json_parser_load_from_data (_tmp1_, _tmp2_, (gssize) -1, &_inner_error_);
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (parser);
+#line 2673 "FacebookPublishing.c"
+ goto __catch0_g_error;
+ }
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = parser;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = json_parser_get_root (_tmp3_);
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = __vala_JsonNode_copy0 (_tmp4_);
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ root = _tmp5_;
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = root;
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = json_node_get_object (_tmp6_);
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _json_object_ref0 (_tmp7_);
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ response_object = _tmp8_;
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = response_object;
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = json_object_get_string_member (_tmp9_, "id");
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = g_strdup (_tmp10_);
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->priv->uid);
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->uid = _tmp11_;
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = response_object;
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = json_object_get_string_member (_tmp12_, "name");
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = g_strdup (_tmp13_);
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->username = _tmp14_;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _json_object_unref0 (response_object);
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __vala_JsonNode_free0 (root);
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (parser);
+#line 2718 "FacebookPublishing.c"
+ }
+ goto __finally0;
+ __catch0_g_error:
+ {
+ GError* _error_ = NULL;
+ SpitPublishingPluginHost* _tmp15_ = NULL;
+ GError* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ GError* _tmp18_ = NULL;
+ GError* _tmp19_ = NULL;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _error_ = _inner_error_;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _inner_error_ = NULL;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = self->priv->host;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = _error_;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = _tmp16_->message;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp17_);
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = _tmp18_;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp15_, _tmp19_);
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_tmp19_);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_error_);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 2751 "FacebookPublishing.c"
+ }
+ __finally0:
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 2762 "FacebookPublishing.c"
+ }
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_user_info_extracted (self);
+#line 2766 "FacebookPublishing.c"
+}
+
+
+static gpointer _json_array_ref0 (gpointer self) {
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self ? json_array_ref (self) : NULL;
+#line 2773 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_extract_albums_from_json (PublishingFacebookFacebookPublisher* self, const gchar* json) {
+ GError * _inner_error_ = NULL;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (json != NULL);
+#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:312: ACTION: extracting album info from JSON r" \
+"esponse.");
+#line 2785 "FacebookPublishing.c"
+ {
+ JsonParser* parser = NULL;
+ JsonParser* _tmp0_ = NULL;
+ JsonParser* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ JsonNode* root = NULL;
+ JsonParser* _tmp3_ = NULL;
+ JsonNode* _tmp4_ = NULL;
+ JsonNode* _tmp5_ = NULL;
+ JsonObject* response_object = NULL;
+ JsonNode* _tmp6_ = NULL;
+ JsonObject* _tmp7_ = NULL;
+ JsonObject* _tmp8_ = NULL;
+ JsonArray* album_list = NULL;
+ JsonObject* _tmp9_ = NULL;
+ JsonArray* _tmp10_ = NULL;
+ JsonArray* _tmp11_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp12_ = NULL;
+ PublishingFacebookAlbum** _tmp13_ = NULL;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = json_parser_new ();
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ parser = _tmp0_;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = parser;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = json;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ json_parser_load_from_data (_tmp1_, _tmp2_, (gssize) -1, &_inner_error_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (parser);
+#line 2819 "FacebookPublishing.c"
+ goto __catch1_g_error;
+ }
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = parser;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = json_parser_get_root (_tmp3_);
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = __vala_JsonNode_copy0 (_tmp4_);
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ root = _tmp5_;
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = root;
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = json_node_get_object (_tmp6_);
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _json_object_ref0 (_tmp7_);
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ response_object = _tmp8_;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = response_object;
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = json_object_get_array_member (_tmp9_, "data");
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = _json_array_ref0 (_tmp10_);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ album_list = _tmp11_;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = self->priv->publishing_params;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = g_new0 (PublishingFacebookAlbum*, 0 + 1);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_->albums = (_vala_array_free (_tmp12_->albums, _tmp12_->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_->albums = _tmp13_;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_->albums_length1 = 0;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_->_albums_size_ = _tmp12_->albums_length1;
+#line 2858 "FacebookPublishing.c"
+ {
+ gint i = 0;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ i = 0;
+#line 2863 "FacebookPublishing.c"
+ {
+ gboolean _tmp14_ = FALSE;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = TRUE;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ while (TRUE) {
+#line 2870 "FacebookPublishing.c"
+ gint _tmp16_ = 0;
+ JsonArray* _tmp17_ = NULL;
+ guint _tmp18_ = 0U;
+ JsonObject* current_album = NULL;
+ JsonArray* _tmp19_ = NULL;
+ gint _tmp20_ = 0;
+ JsonObject* _tmp21_ = NULL;
+ JsonObject* _tmp22_ = NULL;
+ gchar* album_id = NULL;
+ JsonObject* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ gchar* album_name = NULL;
+ JsonObject* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp29_ = NULL;
+ const gchar* _tmp30_ = NULL;
+ const gchar* _tmp31_ = NULL;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp14_) {
+#line 2892 "FacebookPublishing.c"
+ gint _tmp15_ = 0;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = i;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ i = _tmp15_ + 1;
+#line 2898 "FacebookPublishing.c"
+ }
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = FALSE;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = i;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = album_list;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = json_array_get_length (_tmp17_);
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!(((guint) _tmp16_) < _tmp18_)) {
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ break;
+#line 2912 "FacebookPublishing.c"
+ }
+#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = album_list;
+#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = i;
+#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = json_array_get_object_element (_tmp19_, (guint) _tmp20_);
+#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = _json_object_ref0 (_tmp21_);
+#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ current_album = _tmp22_;
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = current_album;
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp24_ = json_object_get_string_member (_tmp23_, "id");
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp25_ = g_strdup (_tmp24_);
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ album_id = _tmp25_;
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp26_ = current_album;
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp27_ = json_object_get_string_member (_tmp26_, "name");
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp28_ = g_strdup (_tmp27_);
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ album_name = _tmp28_;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp29_ = self->priv->publishing_params;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp30_ = album_name;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp31_ = album_id;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_parameters_add_album (_tmp29_, _tmp30_, _tmp31_);
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (album_name);
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (album_id);
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _json_object_unref0 (current_album);
+#line 2954 "FacebookPublishing.c"
+ }
+ }
+ }
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _json_array_unref0 (album_list);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _json_object_unref0 (response_object);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __vala_JsonNode_free0 (root);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (parser);
+#line 2966 "FacebookPublishing.c"
+ }
+ goto __finally1;
+ __catch1_g_error:
+ {
+ GError* _error_ = NULL;
+ SpitPublishingPluginHost* _tmp32_ = NULL;
+ GError* _tmp33_ = NULL;
+ const gchar* _tmp34_ = NULL;
+ GError* _tmp35_ = NULL;
+ GError* _tmp36_ = NULL;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _error_ = _inner_error_;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _inner_error_ = NULL;
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp32_ = self->priv->host;
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp33_ = _error_;
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp34_ = _tmp33_->message;
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp35_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp34_);
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp36_ = _tmp35_;
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp32_, _tmp36_);
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_tmp36_);
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_error_);
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 2999 "FacebookPublishing.c"
+ }
+ __finally1:
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 3010 "FacebookPublishing.c"
+ }
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_albums_extracted (self);
+#line 3014 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, gpointer self) {
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_create_album_completed ((PublishingFacebookFacebookPublisher*) self, _sender);
+#line 3021 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, GError* err, gpointer self) {
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_create_album_error ((PublishingFacebookFacebookPublisher*) self, _sender, err);
+#line 3028 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_create_new_album (PublishingFacebookFacebookPublisher* self) {
+ PublishingFacebookPublishingParameters* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ PublishingFacebookGraphMessage* create_album_message = NULL;
+ PublishingFacebookGraphSession* _tmp5_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ PublishingFacebookGraphMessage* _tmp10_ = NULL;
+ PublishingFacebookGraphSession* _tmp11_ = NULL;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->publishing_params;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _tmp0_->new_album_name;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:345: ACTION: creating a new album named \"%s\"" \
+".\n", _tmp1_);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->host;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp2_, TRUE);
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->host;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = _ ("Creating album...");
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_install_static_message_pane (_tmp3_, _tmp4_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->priv->graph_session;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = self->priv->publishing_params;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp6_->new_album_name;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = self->priv->publishing_params;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = _tmp8_->privacy_object;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = publishing_facebook_graph_session_new_create_album (_tmp5_, _tmp7_, _tmp9_);
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ create_album_message = _tmp10_;
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (create_album_message, "completed", (GCallback) _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed, self, 0);
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (create_album_message, "failed", (GCallback) _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed, self, 0);
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = self->priv->graph_session;
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_send_message (_tmp11_, create_album_message);
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (create_album_message);
+#line 3088 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, gpointer self) {
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_publishing_options_pane_logout ((PublishingFacebookFacebookPublisher*) self);
+#line 3095 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, const gchar* target_album, const gchar* privacy_setting, PublishingFacebookResolution target_resolution, gboolean strip_metadata, gpointer self) {
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_publishing_options_pane_publish ((PublishingFacebookFacebookPublisher*) self, target_album, privacy_setting, target_resolution, strip_metadata);
+#line 3102 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_show_publishing_options_pane (PublishingFacebookFacebookPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ GtkBuilder* builder = NULL;
+ GtkBuilder* _tmp1_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp10_ = NULL;
+ PublishingFacebookAlbum** _tmp11_ = NULL;
+ gint _tmp11__length1 = 0;
+ SpitPublishingPluginHost* _tmp12_ = NULL;
+ SpitPublishingPublisherMediaType _tmp13_ = 0;
+ GtkBuilder* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+ PublishingFacebookPublishingOptionsPane* _tmp16_ = NULL;
+ PublishingFacebookPublishingOptionsPane* _tmp17_ = NULL;
+ PublishingFacebookPublishingOptionsPane* _tmp18_ = NULL;
+ SpitPublishingPluginHost* _tmp19_ = NULL;
+ PublishingFacebookPublishingOptionsPane* _tmp20_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:360: ACTION: showing publishing options pane.");
+#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = gtk_builder_new ();
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ builder = _tmp1_;
+#line 3136 "FacebookPublishing.c"
+ {
+ GtkBuilder* _tmp2_ = NULL;
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = builder;
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/" "facebook_publishing_options_pane.ui", &_inner_error_);
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 3145 "FacebookPublishing.c"
+ goto __catch2_g_error;
+ }
+ }
+ goto __finally2;
+ __catch2_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ e = _inner_error_;
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _inner_error_ = NULL;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = e;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = _tmp3_->message;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_warning ("FacebookPublishing.vala:371: Could not parse UI file! Error: %s.", _tmp4_);
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->priv->host;
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _ ("A file required for publishing is unavailable. Publishing to Facebook " \
+"can't continue.");
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp6_);
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp5_, _tmp8_);
+#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_tmp8_);
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (e);
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (builder);
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 3187 "FacebookPublishing.c"
+ }
+ __finally2:
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (builder);
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 3200 "FacebookPublishing.c"
+ }
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = self->priv->username;
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = self->priv->publishing_params;
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = _tmp10_->albums;
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11__length1 = _tmp10_->albums_length1;
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = self->priv->host;
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = spit_publishing_plugin_host_get_publishable_media_type (_tmp12_);
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = builder;
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = publishing_facebook_facebook_publisher_get_persistent_strip_metadata (self);
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = publishing_facebook_publishing_options_pane_new (_tmp9_, _tmp11_, _tmp11__length1, _tmp13_, self, _tmp14_, _tmp15_);
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->publishing_options_pane);
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publishing_options_pane = _tmp16_;
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = self->priv->publishing_options_pane;
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp17_, "logout", (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout, self, 0);
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = self->priv->publishing_options_pane;
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp18_, "publish", (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish, self, 0);
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = self->priv->host;
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = self->priv->publishing_options_pane;
+#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (builder);
+#line 3240 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_logout (PublishingFacebookFacebookPublisher* self) {
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:387: ACTION: clearing persistent session infor" \
+"mation and restaring interaction.");
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_invalidate_persistent_session (self);
+#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->running = FALSE;
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_publisher_start (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 3255 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_add_new_local_album_from_json (PublishingFacebookFacebookPublisher* self, const gchar* album_name, const gchar* json) {
+ PublishingFacebookPublishingParameters* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (album_name != NULL);
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (json != NULL);
+#line 3269 "FacebookPublishing.c"
+ {
+ JsonParser* parser = NULL;
+ JsonParser* _tmp0_ = NULL;
+ JsonParser* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ JsonNode* root = NULL;
+ JsonParser* _tmp3_ = NULL;
+ JsonNode* _tmp4_ = NULL;
+ JsonNode* _tmp5_ = NULL;
+ JsonObject* response_object = NULL;
+ JsonNode* _tmp6_ = NULL;
+ JsonObject* _tmp7_ = NULL;
+ JsonObject* _tmp8_ = NULL;
+ gchar* album_id = NULL;
+ JsonObject* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = json_parser_new ();
+#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ parser = _tmp0_;
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = parser;
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = json;
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ json_parser_load_from_data (_tmp1_, _tmp2_, (gssize) -1, &_inner_error_);
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (parser);
+#line 3304 "FacebookPublishing.c"
+ goto __catch3_g_error;
+ }
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = parser;
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = json_parser_get_root (_tmp3_);
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = __vala_JsonNode_copy0 (_tmp4_);
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ root = _tmp5_;
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = root;
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = json_node_get_object (_tmp6_);
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _json_object_ref0 (_tmp7_);
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ response_object = _tmp8_;
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = response_object;
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = json_object_get_string_member (_tmp9_, "id");
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = g_strdup (_tmp10_);
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ album_id = _tmp11_;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = self->priv->publishing_params;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = album_name;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = album_id;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_parameters_add_album (_tmp12_, _tmp13_, _tmp14_);
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (album_id);
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _json_object_unref0 (response_object);
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __vala_JsonNode_free0 (root);
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (parser);
+#line 3347 "FacebookPublishing.c"
+ }
+ goto __finally3;
+ __catch3_g_error:
+ {
+ GError* _error_ = NULL;
+ SpitPublishingPluginHost* _tmp15_ = NULL;
+ GError* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ GError* _tmp18_ = NULL;
+ GError* _tmp19_ = NULL;
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _error_ = _inner_error_;
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _inner_error_ = NULL;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = self->priv->host;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = _error_;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = _tmp16_->message;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp17_);
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = _tmp18_;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp15_, _tmp19_);
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_tmp19_);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_error_);
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 3380 "FacebookPublishing.c"
+ }
+ __finally3:
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 3391 "FacebookPublishing.c"
+ }
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = self->priv->publishing_params;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = album_name;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_parameters_set_target_album_by_name (_tmp20_, _tmp21_);
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_upload (self);
+#line 3401 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_web_auth_pane_login_succeeded_publishing_facebook_web_authentication_pane_login_succeeded (PublishingFacebookWebAuthenticationPane* _sender, const gchar* success_url, gpointer self) {
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_web_auth_pane_login_succeeded ((PublishingFacebookFacebookPublisher*) self, success_url);
+#line 3408 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_web_auth_pane_login_failed_publishing_facebook_web_authentication_pane_login_failed (PublishingFacebookWebAuthenticationPane* _sender, gpointer self) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_web_auth_pane_login_failed ((PublishingFacebookFacebookPublisher*) self);
+#line 3415 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_hosted_web_authentication (PublishingFacebookFacebookPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingFacebookWebAuthenticationPane* _tmp1_ = NULL;
+ PublishingFacebookWebAuthenticationPane* _tmp2_ = NULL;
+ PublishingFacebookWebAuthenticationPane* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ PublishingFacebookWebAuthenticationPane* _tmp5_ = NULL;
+#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:415: ACTION: doing hosted web authentication.");
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = publishing_facebook_web_authentication_pane_new ();
+#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->web_auth_pane);
+#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->web_auth_pane = _tmp1_;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->web_auth_pane;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp2_, "login-succeeded", (GCallback) _publishing_facebook_facebook_publisher_on_web_auth_pane_login_succeeded_publishing_facebook_web_authentication_pane_login_succeeded, self, 0);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->web_auth_pane;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp3_, "login-failed", (GCallback) _publishing_facebook_facebook_publisher_on_web_auth_pane_login_failed_publishing_facebook_web_authentication_pane_login_failed, self, 0);
+#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->priv->host;
+#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->priv->web_auth_pane;
+#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 3454 "FacebookPublishing.c"
+}
+
+
+static gint string_index_of (const gchar* self, const gchar* needle, gint start_index) {
+ gint result = 0;
+ gchar* _result_ = NULL;
+ gint _tmp0_ = 0;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 987 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, 0);
+#line 987 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (needle != NULL, 0);
+#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = start_index;
+#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = needle;
+#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = strstr (((gchar*) self) + _tmp0_, (gchar*) _tmp1_);
+#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp2_;
+#line 990 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = _result_;
+#line 990 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp3_ != NULL) {
+#line 3481 "FacebookPublishing.c"
+ gchar* _tmp4_ = NULL;
+#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = _result_;
+#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = (gint) (_tmp4_ - ((gchar*) self));
+#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 3489 "FacebookPublishing.c"
+ } else {
+#line 993 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = -1;
+#line 993 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 3495 "FacebookPublishing.c"
+ }
+}
+
+
+static gchar* string_slice (const gchar* self, glong start, glong end) {
+ gchar* result = NULL;
+ glong string_length = 0L;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ glong _tmp2_ = 0L;
+ glong _tmp5_ = 0L;
+ gboolean _tmp8_ = FALSE;
+ glong _tmp9_ = 0L;
+ gboolean _tmp12_ = FALSE;
+ glong _tmp13_ = 0L;
+ glong _tmp16_ = 0L;
+ glong _tmp17_ = 0L;
+ glong _tmp18_ = 0L;
+ glong _tmp19_ = 0L;
+ glong _tmp20_ = 0L;
+ gchar* _tmp21_ = NULL;
+#line 1328 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = strlen (self);
+#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp0_;
+#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ string_length = (glong) _tmp1_;
+#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = start;
+#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp2_ < ((glong) 0)) {
+#line 3529 "FacebookPublishing.c"
+ glong _tmp3_ = 0L;
+ glong _tmp4_ = 0L;
+#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = string_length;
+#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = start;
+#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ start = _tmp3_ + _tmp4_;
+#line 3538 "FacebookPublishing.c"
+ }
+#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = end;
+#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp5_ < ((glong) 0)) {
+#line 3544 "FacebookPublishing.c"
+ glong _tmp6_ = 0L;
+ glong _tmp7_ = 0L;
+#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp6_ = string_length;
+#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp7_ = end;
+#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ end = _tmp6_ + _tmp7_;
+#line 3553 "FacebookPublishing.c"
+ }
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp9_ = start;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp9_ >= ((glong) 0)) {
+#line 3559 "FacebookPublishing.c"
+ glong _tmp10_ = 0L;
+ glong _tmp11_ = 0L;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp10_ = start;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = string_length;
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp8_ = _tmp10_ <= _tmp11_;
+#line 3568 "FacebookPublishing.c"
+ } else {
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp8_ = FALSE;
+#line 3572 "FacebookPublishing.c"
+ }
+#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp8_, NULL);
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp13_ = end;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp13_ >= ((glong) 0)) {
+#line 3580 "FacebookPublishing.c"
+ glong _tmp14_ = 0L;
+ glong _tmp15_ = 0L;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp14_ = end;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp15_ = string_length;
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = _tmp14_ <= _tmp15_;
+#line 3589 "FacebookPublishing.c"
+ } else {
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 3593 "FacebookPublishing.c"
+ }
+#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp12_, NULL);
+#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = start;
+#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp17_ = end;
+#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp18_ = start;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp19_ = end;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp20_ = start;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp21_;
+#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 3615 "FacebookPublishing.c"
+}
+
+
+static gint string_index_of_char (const gchar* self, gunichar c, gint start_index) {
+ gint result = 0;
+ gchar* _result_ = NULL;
+ gint _tmp0_ = 0;
+ gunichar _tmp1_ = 0U;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1007 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, 0);
+#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = start_index;
+#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = c;
+#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = g_utf8_strchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_);
+#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp2_;
+#line 1010 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = _result_;
+#line 1010 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp3_ != NULL) {
+#line 3640 "FacebookPublishing.c"
+ gchar* _tmp4_ = NULL;
+#line 1011 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = _result_;
+#line 1011 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = (gint) (_tmp4_ - ((gchar*) self));
+#line 1011 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 3648 "FacebookPublishing.c"
+ } else {
+#line 1013 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = -1;
+#line 1013 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 3654 "FacebookPublishing.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 3668 "FacebookPublishing.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 3699 "FacebookPublishing.c"
+ goto __catch4_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 3708 "FacebookPublishing.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 3724 "FacebookPublishing.c"
+ goto __catch4_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 3735 "FacebookPublishing.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 3749 "FacebookPublishing.c"
+ }
+ goto __finally4;
+ __catch4_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 3763 "FacebookPublishing.c"
+ }
+ __finally4:
+#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 3774 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_facebook_publisher_do_authenticate_session (PublishingFacebookFacebookPublisher* self, const gchar* good_login_uri) {
+ const gchar* _tmp0_ = NULL;
+ gchar* decoded_uri = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* access_token = NULL;
+ gint index = 0;
+ const gchar* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gint _tmp5_ = 0;
+ const gchar* _tmp12_ = NULL;
+ gchar* trailing_params = NULL;
+ const gchar* _tmp16_ = NULL;
+ gint _tmp17_ = 0;
+ gint _tmp18_ = 0;
+ const gchar* _tmp25_ = NULL;
+ const gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ PublishingFacebookGraphSession* _tmp31_ = NULL;
+ PublishingFacebookGraphSession* _tmp32_ = NULL;
+ const gchar* _tmp33_ = NULL;
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (good_login_uri != NULL);
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = good_login_uri;
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:429: ACTION: preparing to extract session info" \
+"rmation encoded in uri = '%s'", _tmp0_);
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = good_login_uri;
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = soup_uri_decode (_tmp1_);
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ decoded_uri = _tmp2_;
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ access_token = NULL;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = decoded_uri;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = string_index_of (_tmp3_, "#access_token=", 0);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ index = _tmp4_;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = index;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp5_ >= 0) {
+#line 3826 "FacebookPublishing.c"
+ const gchar* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ const gchar* _tmp8_ = NULL;
+ gint _tmp9_ = 0;
+ gint _tmp10_ = 0;
+ gchar* _tmp11_ = NULL;
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = decoded_uri;
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = index;
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = decoded_uri;
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = strlen (_tmp8_);
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = string_slice (_tmp6_, (glong) _tmp7_, (glong) _tmp10_);
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (access_token);
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ access_token = _tmp11_;
+#line 3849 "FacebookPublishing.c"
+ }
+#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = access_token;
+#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp12_ == NULL) {
+#line 3855 "FacebookPublishing.c"
+ SpitPublishingPluginHost* _tmp13_ = NULL;
+ GError* _tmp14_ = NULL;
+ GError* _tmp15_ = NULL;
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = self->priv->host;
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Server redirect URL contained no access token");
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = _tmp14_;
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp13_, _tmp15_);
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_tmp15_);
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (access_token);
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (decoded_uri);
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 3875 "FacebookPublishing.c"
+ }
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ trailing_params = NULL;
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = access_token;
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = string_index_of_char (_tmp16_, (gunichar) '&', 0);
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ index = _tmp17_;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = index;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp18_ >= 0) {
+#line 3889 "FacebookPublishing.c"
+ const gchar* _tmp19_ = NULL;
+ gint _tmp20_ = 0;
+ const gchar* _tmp21_ = NULL;
+ gint _tmp22_ = 0;
+ gint _tmp23_ = 0;
+ gchar* _tmp24_ = NULL;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = access_token;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = index;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = access_token;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = strlen (_tmp21_);
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = _tmp22_;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp24_ = string_slice (_tmp19_, (glong) _tmp20_, (glong) _tmp23_);
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (trailing_params);
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ trailing_params = _tmp24_;
+#line 3912 "FacebookPublishing.c"
+ }
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp25_ = trailing_params;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp25_ != NULL) {
+#line 3918 "FacebookPublishing.c"
+ const gchar* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp26_ = access_token;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp27_ = trailing_params;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp28_ = string_replace (_tmp26_, _tmp27_, "");
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (access_token);
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ access_token = _tmp28_;
+#line 3932 "FacebookPublishing.c"
+ }
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp29_ = access_token;
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp30_ = string_replace (_tmp29_, "#access_token=", "");
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (access_token);
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ access_token = _tmp30_;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp31_ = self->priv->graph_session;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp31_, "authenticated", (GCallback) _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated, self, 0);
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp32_ = self->priv->graph_session;
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp33_ = access_token;
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_authenticate (_tmp32_, _tmp33_);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (trailing_params);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (access_token);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (decoded_uri);
+#line 3958 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_save_session_information (PublishingFacebookFacebookPublisher* self) {
+ PublishingFacebookGraphSession* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:463: ACTION: saving session information to con" \
+"figuration system.");
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->graph_session;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = publishing_facebook_graph_session_get_access_token (_tmp0_);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_set_persistent_access_token (self, _tmp2_);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp2_);
+#line 3980 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete (PublishingFacebookUploader* _sender, gint num_photos_published, gpointer self) {
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_upload_complete ((PublishingFacebookFacebookPublisher*) self, _sender, num_photos_published);
+#line 3987 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error (PublishingFacebookUploader* _sender, GError* err, gpointer self) {
+#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_upload_error ((PublishingFacebookFacebookPublisher*) self, _sender, err);
+#line 3994 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_facebook_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self) {
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_upload_status_updated ((PublishingFacebookFacebookPublisher*) self, file_number, fraction_complete);
+#line 4001 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_upload (PublishingFacebookFacebookPublisher* self) {
+ gchar* _tmp0_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ SpitPublishingPluginHost* _tmp6_ = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp8_ = NULL;
+ PublishingFacebookResolution _tmp9_ = 0;
+ gint _tmp10_ = 0;
+ PublishingFacebookPublishingParameters* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+ void* _tmp13_ = NULL;
+ GDestroyNotify _tmp14_ = NULL;
+ SpitPublishingProgressCallback _tmp15_ = NULL;
+ gboolean _tmp16_ = FALSE;
+ SpitPublishingPublishable** publishables = NULL;
+ SpitPublishingPluginHost* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+ SpitPublishingPublishable** _tmp19_ = NULL;
+ gint publishables_length1 = 0;
+ gint _publishables_size_ = 0;
+ PublishingFacebookGraphSession* _tmp20_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp21_ = NULL;
+ SpitPublishingPublishable** _tmp22_ = NULL;
+ gint _tmp22__length1 = 0;
+ PublishingFacebookUploader* _tmp23_ = NULL;
+ PublishingFacebookUploader* _tmp24_ = NULL;
+ PublishingFacebookUploader* _tmp25_ = NULL;
+ PublishingFacebookUploader* _tmp26_ = NULL;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->publishing_params;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _tmp1_->target_album;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp2_ == PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM) {
+#line 4042 "FacebookPublishing.c"
+ gchar* _tmp3_ = NULL;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = g_strdup ("(none)");
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp0_);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = _tmp3_;
+#line 4050 "FacebookPublishing.c"
+ } else {
+ PublishingFacebookPublishingParameters* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->priv->publishing_params;
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = publishing_facebook_publishing_parameters_get_target_album_name (_tmp4_);
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp0_);
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = _tmp5_;
+#line 4062 "FacebookPublishing.c"
+ }
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:469: ACTION: uploading photos to album '%s'", _tmp0_);
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = self->priv->host;
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp6_, TRUE);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = self->priv->publishing_params;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = _tmp8_->resolution;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = publishing_facebook_resolution_get_pixels (_tmp9_);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = self->priv->publishing_params;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = _tmp11_->strip_metadata;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = spit_publishing_plugin_host_serialize_publishables (_tmp7_, _tmp10_, _tmp12_, &_tmp13_, &_tmp14_);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->progress_reporter = _tmp15_;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->progress_reporter_target = _tmp13_;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = _tmp14_;
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp16_) {
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp0_);
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4106 "FacebookPublishing.c"
+ }
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = self->priv->host;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = spit_publishing_plugin_host_get_publishables (_tmp17_, &_tmp18_);
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishables = _tmp19_;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishables_length1 = _tmp18_;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishables_size_ = publishables_length1;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = self->priv->graph_session;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = self->priv->publishing_params;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = publishables;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22__length1 = publishables_length1;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = publishing_facebook_uploader_new (_tmp20_, _tmp21_, _tmp22_, _tmp22__length1);
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_uploader_unref0 (self->priv->uploader);
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->uploader = _tmp23_;
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp24_ = self->priv->uploader;
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp24_, "upload-complete", (GCallback) _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete, self, 0);
+#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp25_ = self->priv->uploader;
+#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp25_, "upload-error", (GCallback) _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error, self, 0);
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp26_ = self->priv->uploader;
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_upload (_tmp26_, _publishing_facebook_facebook_publisher_on_upload_status_updated_spit_publishing_progress_callback, self);
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp0_);
+#line 4148 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_do_show_success_pane (PublishingFacebookFacebookPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:495: ACTION: showing success pane.");
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_install_success_pane (_tmp1_);
+#line 4167 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_generic_error (PublishingFacebookFacebookPublisher* self, GError* _error_) {
+ GError* _tmp0_ = NULL;
+#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = _error_;
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (g_error_matches (_tmp0_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) {
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_logout (self);
+#line 4181 "FacebookPublishing.c"
+ } else {
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ GError* _tmp2_ = NULL;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _error_;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp1_, _tmp2_);
+#line 4191 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_facebook_publisher_on_login_clicked (PublishingFacebookFacebookPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp0_) {
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4206 "FacebookPublishing.c"
+ }
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:512: EVENT: user clicked 'Login' on welcome pa" \
+"ne.");
+#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_test_connection_to_endpoint (self);
+#line 4212 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_endpoint_test_completed (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE);
+#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_endpoint_test_completed_publishing_facebook_graph_message_completed, self);
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = message;
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp3_, NULL, FALSE);
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_endpoint_test_error_publishing_facebook_graph_message_failed, self);
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4244 "FacebookPublishing.c"
+ }
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:524: EVENT: endpoint test transaction detected" \
+" that the Facebook endpoint is alive.");
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_hosted_web_authentication (self);
+#line 4250 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_endpoint_test_error (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message, GError* _error_) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ GError* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_endpoint_test_completed_publishing_facebook_graph_message_completed, self);
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = message;
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp3_, NULL, FALSE);
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_endpoint_test_error_publishing_facebook_graph_message_failed, self);
+#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4287 "FacebookPublishing.c"
+ }
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _error_;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _tmp5_->message;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = g_strconcat ("EVENT: endpoint test transaction failed to detect a connection to the " \
+"Facebook " "endpoint", _tmp6_, NULL);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:537: %s", _tmp8_);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = _error_;
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_generic_error (self, _tmp9_);
+#line 4305 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_web_auth_pane_login_succeeded (PublishingFacebookFacebookPublisher* self, const gchar* success_url) {
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (success_url != NULL);
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp0_) {
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4322 "FacebookPublishing.c"
+ }
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:547: EVENT: hosted web login succeeded.");
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = success_url;
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_authenticate_session (self, _tmp1_);
+#line 4330 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_web_auth_pane_login_failed (PublishingFacebookFacebookPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp0_) {
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4344 "FacebookPublishing.c"
+ }
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:558: EVENT: hosted web login failed.");
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_show_service_welcome_pane (self);
+#line 4350 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_session_authenticated (PublishingFacebookFacebookPublisher* self) {
+ PublishingFacebookGraphSession* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ gboolean _tmp2_ = FALSE;
+ PublishingFacebookGraphSession* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->graph_session;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("authenticated", PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, &_tmp1_, NULL, FALSE);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated, self);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp2_) {
+#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4374 "FacebookPublishing.c"
+ }
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->graph_session;
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = publishing_facebook_graph_session_is_authenticated (_tmp3_);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp4_, "graph_session.is_authenticated()");
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:576: EVENT: an authenticated session has becom" \
+"e available.");
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_save_session_information (self);
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_fetch_user_info (self);
+#line 4388 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_fetch_user_info_completed (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingFacebookGraphMessage* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ PublishingFacebookGraphMessage* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE);
+#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed, self);
+#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = message;
+#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp3_, NULL, FALSE);
+#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed, self);
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4426 "FacebookPublishing.c"
+ }
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = message;
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = publishing_facebook_graph_message_get_response_body (_tmp5_);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:589: EVENT: user info fetch completed; respons" \
+"e = '%s'.", _tmp7_);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = message;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = publishing_facebook_graph_message_get_response_body (_tmp8_);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_extract_user_info_from_json (self, _tmp10_);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp10_);
+#line 4448 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_fetch_user_info_error (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message, GError* _error_) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ GError* _tmp5_ = NULL;
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE);
+#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed, self);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = message;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp3_, NULL, FALSE);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed, self);
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4481 "FacebookPublishing.c"
+ }
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:602: EVENT: fetching user info generated and e" \
+"rror.");
+#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _error_;
+#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_generic_error (self, _tmp5_);
+#line 4489 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_user_info_extracted (PublishingFacebookFacebookPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp0_) {
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4505 "FacebookPublishing.c"
+ }
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->uid;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->username;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:611: EVENT: user info extracted from JSON resp" \
+"onse: uid = %s; name = %s.", _tmp1_, _tmp2_);
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_fetch_album_descriptions (self);
+#line 4515 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_fetch_albums_completed (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingFacebookGraphMessage* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ PublishingFacebookGraphMessage* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE);
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed, self);
+#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = message;
+#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp3_, NULL, FALSE);
+#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed, self);
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4553 "FacebookPublishing.c"
+ }
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = message;
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = publishing_facebook_graph_message_get_response_body (_tmp5_);
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:623: EVENT: album descriptions fetch transacti" \
+"on completed; response = '%s'.", _tmp7_);
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = message;
+#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = publishing_facebook_graph_message_get_response_body (_tmp8_);
+#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_extract_albums_from_json (self, _tmp10_);
+#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp10_);
+#line 4575 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_fetch_albums_error (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message, GError* err) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ GError* _tmp5_ = NULL;
+#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE);
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed, self);
+#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = message;
+#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp3_, NULL, FALSE);
+#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed, self);
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4608 "FacebookPublishing.c"
+ }
+#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:637: EVENT: album description fetch attempt ge" \
+"nerated an error.");
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = err;
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_generic_error (self, _tmp5_);
+#line 4616 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_albums_extracted (PublishingFacebookFacebookPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+ PublishingFacebookPublishingParameters* _tmp1_ = NULL;
+ PublishingFacebookAlbum** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp0_) {
+#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4633 "FacebookPublishing.c"
+ }
+#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->publishing_params;
+#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _tmp1_->albums;
+#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2__length1 = _tmp1_->albums_length1;
+#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:646: EVENT: successfully extracted %d albums f" \
+"rom JSON response", _tmp2__length1);
+#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_show_publishing_options_pane (self);
+#line 4645 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_publishing_options_pane_logout (PublishingFacebookFacebookPublisher* self) {
+ PublishingFacebookPublishingOptionsPane* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookPublishingOptionsPane* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->publishing_options_pane;
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE);
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish, self);
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->publishing_options_pane;
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE);
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout, self);
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4675 "FacebookPublishing.c"
+ }
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:659: EVENT: user clicked 'Logout' in publishin" \
+"g options pane.");
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_logout (self);
+#line 4681 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_publishing_options_pane_publish (PublishingFacebookFacebookPublisher* self, const gchar* target_album, const gchar* privacy_setting, PublishingFacebookResolution resolution, gboolean strip_metadata) {
+ PublishingFacebookPublishingOptionsPane* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookPublishingOptionsPane* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingFacebookPublishingParameters* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ gboolean _tmp7_ = FALSE;
+ PublishingFacebookPublishingParameters* _tmp8_ = NULL;
+ PublishingFacebookResolution _tmp9_ = 0;
+ PublishingFacebookResolution _tmp10_ = 0;
+ PublishingFacebookPublishingParameters* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (privacy_setting != NULL);
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->publishing_options_pane;
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE);
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish, self);
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->publishing_options_pane;
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE);
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout, self);
+#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4723 "FacebookPublishing.c"
+ }
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:672: EVENT: user clicked 'Publish' in publishi" \
+"ng options pane.");
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->priv->publishing_params;
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = strip_metadata;
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_->strip_metadata = _tmp6_;
+#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = strip_metadata;
+#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_set_persistent_strip_metadata (self, _tmp7_);
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = self->priv->publishing_params;
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = resolution;
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_->resolution = _tmp9_;
+#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = resolution;
+#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_set_persistent_default_size (self, (gint) _tmp10_);
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = self->priv->publishing_params;
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = privacy_setting;
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = g_strdup (_tmp12_);
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp11_->privacy_object);
+#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_->privacy_object = _tmp13_;
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = target_album;
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp14_ != NULL) {
+#line 4761 "FacebookPublishing.c"
+ PublishingFacebookPublishingParameters* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = self->priv->publishing_params;
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = target_album;
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_parameters_set_target_album_by_name (_tmp15_, _tmp16_);
+#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = self->priv->publishing_params;
+#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = _tmp17_->target_album;
+#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp18_ != PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM) {
+#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_upload (self);
+#line 4780 "FacebookPublishing.c"
+ } else {
+ PublishingFacebookPublishingParameters* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = self->priv->publishing_params;
+#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = target_album;
+#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = g_strdup (_tmp20_);
+#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp19_->new_album_name);
+#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_->new_album_name = _tmp21_;
+#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_create_new_album (self);
+#line 4797 "FacebookPublishing.c"
+ }
+ } else {
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_upload (self);
+#line 4802 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_facebook_publisher_on_create_album_completed (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingFacebookPublishingParameters* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingFacebookGraphMessage* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ PublishingFacebookGraphMessage* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE);
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed, self);
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = message;
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp3_, NULL, FALSE);
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed, self);
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->priv->publishing_params;
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _tmp4_->new_album_name;
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp5_ != NULL, "publishing_params.new_album_name != null");
+#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp6_) {
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4851 "FacebookPublishing.c"
+ }
+#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = message;
+#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = publishing_facebook_graph_message_get_response_body (_tmp7_);
+#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:705: EVENT: created new album resource on remo" \
+"te host; response body = %s.\n", _tmp9_);
+#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = self->priv->publishing_params;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = _tmp10_->new_album_name;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = message;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = publishing_facebook_graph_message_get_response_body (_tmp12_);
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = _tmp13_;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_add_new_local_album_from_json (self, _tmp11_, _tmp14_);
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp14_);
+#line 4877 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_create_album_error (PublishingFacebookFacebookPublisher* self, PublishingFacebookGraphMessage* message, GError* err) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ GError* _tmp5_ = NULL;
+#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE);
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed, self);
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = message;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp3_, NULL, FALSE);
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed, self);
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4910 "FacebookPublishing.c"
+ }
+#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:719: EVENT: attempt to create new album genera" \
+"ted an error.");
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = err;
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_on_generic_error (self, _tmp5_);
+#line 4918 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_upload_status_updated (PublishingFacebookFacebookPublisher* self, gint file_number, gdouble completed_fraction) {
+ gboolean _tmp0_ = FALSE;
+ gdouble _tmp1_ = 0.0;
+ SpitPublishingProgressCallback _tmp2_ = NULL;
+ void* _tmp2__target = NULL;
+ SpitPublishingProgressCallback _tmp3_ = NULL;
+ void* _tmp3__target = NULL;
+ gint _tmp4_ = 0;
+ gdouble _tmp5_ = 0.0;
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp0_) {
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4939 "FacebookPublishing.c"
+ }
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = completed_fraction;
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:728: EVENT: uploader reports upload %.2f perce" \
+"nt complete.", 100.0 * _tmp1_);
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->progress_reporter;
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2__target = self->priv->progress_reporter_target;
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp2_ != NULL, "progress_reporter != null");
+#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->progress_reporter;
+#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3__target = self->priv->progress_reporter_target;
+#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = file_number;
+#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = completed_fraction;
+#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ (_tmp4_, _tmp5_, _tmp3__target);
+#line 4961 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_upload_complete (PublishingFacebookFacebookPublisher* self, PublishingFacebookUploader* uploader, gint num_published) {
+ PublishingFacebookUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ gint _tmp5_ = 0;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (uploader));
+#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = uploader;
+#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete, self);
+#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = uploader;
+#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error, self);
+#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 4994 "FacebookPublishing.c"
+ }
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = num_published;
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:742: EVENT: uploader reports upload complete; " \
+"%d items published.", _tmp5_);
+#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_show_success_pane (self);
+#line 5002 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_on_upload_error (PublishingFacebookFacebookPublisher* self, PublishingFacebookUploader* uploader, GError* err) {
+ PublishingFacebookUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ GError* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self));
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (uploader));
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = uploader;
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete, self);
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = uploader;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error, self);
+#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp4_) {
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 5038 "FacebookPublishing.c"
+ }
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = err;
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _tmp5_->message;
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:754: EVENT: uploader reports upload error = '%" \
+"s'.", _tmp6_);
+#line 756 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 756 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = err;
+#line 756 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
+#line 5052 "FacebookPublishing.c"
+}
+
+
+static SpitPublishingService* publishing_facebook_facebook_publisher_real_get_service (SpitPublishingPublisher* base) {
+ PublishingFacebookFacebookPublisher * self;
+ SpitPublishingService* result = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher);
+#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->service;
+#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp1_;
+#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5071 "FacebookPublishing.c"
+}
+
+
+gchar* publishing_facebook_facebook_publisher_get_service_name (PublishingFacebookFacebookPublisher* self) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), NULL);
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = g_strdup (PUBLISHING_FACEBOOK_SERVICE_NAME);
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp0_;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5086 "FacebookPublishing.c"
+}
+
+
+gchar* publishing_facebook_facebook_publisher_get_user_visible_name (PublishingFacebookFacebookPublisher* self) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), NULL);
+#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = g_strdup (PUBLISHING_FACEBOOK_USER_VISIBLE_NAME);
+#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp0_;
+#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5101 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_real_start (SpitPublishingPublisher* base) {
+ PublishingFacebookFacebookPublisher * self;
+ gboolean _tmp0_ = FALSE;
+ PublishingFacebookPublishingParameters* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher);
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp0_) {
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 5118 "FacebookPublishing.c"
+ }
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:775: FacebookPublisher: starting interaction.");
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->running = TRUE;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = publishing_facebook_publishing_parameters_new ();
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publishing_params = _tmp1_;
+#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = publishing_facebook_facebook_publisher_is_persistent_session_valid (self);
+#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp2_) {
+#line 5134 "FacebookPublishing.c"
+ PublishingFacebookGraphSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->graph_session;
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = publishing_facebook_facebook_publisher_get_persistent_access_token (self);
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_authenticate (_tmp3_, _tmp5_);
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 5148 "FacebookPublishing.c"
+ } else {
+ gboolean _tmp6_ = FALSE;
+#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = publishing_facebook_web_authentication_pane_is_cache_dirty ();
+#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp6_) {
+#line 5155 "FacebookPublishing.c"
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ SpitPublishingPluginHost* _tmp8_ = NULL;
+#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp7_, FALSE);
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = self->priv->host;
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spit_publishing_plugin_host_install_static_message_pane (_tmp8_, PUBLISHING_FACEBOOK_RESTART_ERROR_MESSAGE, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 5166 "FacebookPublishing.c"
+ } else {
+#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_do_show_service_welcome_pane (self);
+#line 5170 "FacebookPublishing.c"
+ }
+ }
+}
+
+
+static void publishing_facebook_facebook_publisher_real_stop (SpitPublishingPublisher* base) {
+ PublishingFacebookFacebookPublisher * self;
+ PublishingFacebookGraphSession* _tmp0_ = NULL;
+#line 799 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher);
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:800: FacebookPublisher: stop( ) invoked.");
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->graph_session;
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp0_ != NULL) {
+#line 5187 "FacebookPublishing.c"
+ PublishingFacebookGraphSession* _tmp1_ = NULL;
+#line 803 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->graph_session;
+#line 803 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_stop_transactions (_tmp1_);
+#line 5193 "FacebookPublishing.c"
+ }
+#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->host = NULL;
+#line 806 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->running = FALSE;
+#line 5199 "FacebookPublishing.c"
+}
+
+
+static gboolean publishing_facebook_facebook_publisher_real_is_running (SpitPublishingPublisher* base) {
+ PublishingFacebookFacebookPublisher * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher);
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp0_;
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5215 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_class_init (PublishingFacebookFacebookPublisherClass * klass) {
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_parent_class = g_type_class_peek_parent (klass);
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFacebookFacebookPublisherPrivate));
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_facebook_facebook_publisher_finalize;
+#line 5226 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) {
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface);
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->get_service = (SpitPublishingService* (*)(SpitPublishingPublisher*)) publishing_facebook_facebook_publisher_real_get_service;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->start = (void (*)(SpitPublishingPublisher*)) publishing_facebook_facebook_publisher_real_start;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->stop = (void (*)(SpitPublishingPublisher*)) publishing_facebook_facebook_publisher_real_stop;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->is_running = (gboolean (*)(SpitPublishingPublisher*)) publishing_facebook_facebook_publisher_real_is_running;
+#line 5241 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_instance_init (PublishingFacebookFacebookPublisher * self) {
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv = PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_GET_PRIVATE (self);
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->host = NULL;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->web_auth_pane = NULL;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->service = NULL;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->running = FALSE;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publishing_options_pane = NULL;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->uploader = NULL;
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->uid = NULL;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->username = NULL;
+#line 5266 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_facebook_publisher_finalize (GObject* obj) {
+ PublishingFacebookFacebookPublisher * self;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher);
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params);
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->web_auth_pane);
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_session_unref0 (self->priv->graph_session);
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->publishing_options_pane);
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_uploader_unref0 (self->priv->uploader);
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->priv->uid);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_OBJECT_CLASS (publishing_facebook_facebook_publisher_parent_class)->finalize (obj);
+#line 5298 "FacebookPublishing.c"
+}
+
+
+GType publishing_facebook_facebook_publisher_get_type (void) {
+ static volatile gsize publishing_facebook_facebook_publisher_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_facebook_publisher_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookFacebookPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_facebook_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookFacebookPublisher), 0, (GInstanceInitFunc) publishing_facebook_facebook_publisher_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_facebook_facebook_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_facebook_facebook_publisher_type_id;
+ publishing_facebook_facebook_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFacebookFacebookPublisher", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_facebook_facebook_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info);
+ g_once_init_leave (&publishing_facebook_facebook_publisher_type_id__volatile, publishing_facebook_facebook_publisher_type_id);
+ }
+ return publishing_facebook_facebook_publisher_type_id__volatile;
+}
+
+
+static void _publishing_facebook_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed (WebKitWebView* _sender, WebKitLoadEvent load_event, gpointer self) {
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_on_page_load_changed ((PublishingFacebookWebAuthenticationPane*) self, load_event);
+#line 5319 "FacebookPublishing.c"
+}
+
+
+static gboolean __lambda4_ (PublishingFacebookWebAuthenticationPane* self) {
+ gboolean result = FALSE;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = TRUE;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5329 "FacebookPublishing.c"
+}
+
+
+static gboolean ___lambda4__webkit_web_view_context_menu (WebKitWebView* _sender, WebKitContextMenu* context_menu, GdkEvent* event, WebKitHitTestResult* hit_test_result, gpointer self) {
+ gboolean result;
+ result = __lambda4_ ((PublishingFacebookWebAuthenticationPane*) self);
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5338 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookWebAuthenticationPane* publishing_facebook_web_authentication_pane_construct (GType object_type) {
+ PublishingFacebookWebAuthenticationPane * self = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkScrolledWindow* _tmp1_ = NULL;
+ GtkScrolledWindow* _tmp2_ = NULL;
+ GtkScrolledWindow* _tmp3_ = NULL;
+ WebKitWebView* _tmp4_ = NULL;
+ WebKitWebView* _tmp5_ = NULL;
+ WebKitSettings* _tmp6_ = NULL;
+ WebKitWebView* _tmp7_ = NULL;
+ WebKitWebView* _tmp8_ = NULL;
+ GtkScrolledWindow* _tmp9_ = NULL;
+ WebKitWebView* _tmp10_ = NULL;
+ GtkBox* _tmp11_ = NULL;
+ GtkScrolledWindow* _tmp12_ = NULL;
+#line 823 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookWebAuthenticationPane*) g_object_new (object_type, NULL);
+#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_ref_sink (_tmp0_);
+#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->pane_widget = _tmp0_;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_ref_sink (_tmp1_);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->webview_frame);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->webview_frame = _tmp1_;
+#line 827 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->webview_frame;
+#line 827 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_scrolled_window_set_shadow_type (_tmp2_, GTK_SHADOW_ETCHED_IN);
+#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->webview_frame;
+#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_scrolled_window_set_policy (_tmp3_, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = (WebKitWebView*) webkit_web_view_new ();
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_ref_sink (_tmp4_);
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->webview);
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->webview = _tmp4_;
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->priv->webview;
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = webkit_web_view_get_settings (_tmp5_);
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ webkit_settings_set_enable_plugins (_tmp6_, FALSE);
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = self->priv->webview;
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp7_, "load-changed", (GCallback) _publishing_facebook_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed, self, 0);
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = self->priv->webview;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp8_, "context-menu", (GCallback) ___lambda4__webkit_web_view_context_menu, self, 0);
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = self->priv->webview_frame;
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = self->priv->webview;
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
+#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = self->priv->pane_widget;
+#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = self->priv->webview_frame;
+#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_box_pack_start (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
+#line 823 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 5419 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookWebAuthenticationPane* publishing_facebook_web_authentication_pane_new (void) {
+#line 823 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_web_authentication_pane_construct (PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE);
+#line 5426 "FacebookPublishing.c"
+}
+
+
+static gpointer _publishing_facebook_web_authentication_pane_locale_lookup_ref0 (gpointer self) {
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self ? publishing_facebook_web_authentication_pane_locale_lookup_ref (self) : NULL;
+#line 5433 "FacebookPublishing.c"
+}
+
+
+static gboolean string_contains (const gchar* self, const gchar* needle) {
+ gboolean result = FALSE;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, FALSE);
+#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (needle != NULL, FALSE);
+#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = needle;
+#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
+#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp1_ != NULL;
+#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 5453 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_web_authentication_pane_get_system_locale_as_facebook_locale (PublishingFacebookWebAuthenticationPane* self) {
+ gchar* result = NULL;
+ const gchar* raw_system_locale = NULL;
+ const gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ const gchar* _tmp2_ = NULL;
+ gchar* system_locale = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar** _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gchar** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ gchar* _tmp43_ = NULL;
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_WEB_AUTHENTICATION_PANE (self), NULL);
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = setlocale (LC_ALL, "");
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ raw_system_locale = _tmp0_;
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = raw_system_locale;
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp2_ == NULL) {
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = TRUE;
+#line 5487 "FacebookPublishing.c"
+ } else {
+ const gchar* _tmp3_ = NULL;
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = raw_system_locale;
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = g_strcmp0 (_tmp3_, "") == 0;
+#line 5494 "FacebookPublishing.c"
+ }
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp1_) {
+#line 5498 "FacebookPublishing.c"
+ gchar* _tmp4_ = NULL;
+#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = g_strdup ("www");
+#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp4_;
+#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5506 "FacebookPublishing.c"
+ }
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = raw_system_locale;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp6_ = g_strsplit (_tmp5_, ".", 0);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8__length1 = _vala_array_length (_tmp6_);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = _tmp8_[0];
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = g_strdup (_tmp9_);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ system_locale = _tmp11_;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = self->priv->locale_lookup_table;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12__length1 = self->priv->locale_lookup_table_length1;
+#line 5530 "FacebookPublishing.c"
+ {
+ PublishingFacebookWebAuthenticationPaneLocaleLookup** locale_lookup_collection = NULL;
+ gint locale_lookup_collection_length1 = 0;
+ gint _locale_lookup_collection_size_ = 0;
+ gint locale_lookup_it = 0;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ locale_lookup_collection = _tmp12_;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ locale_lookup_collection_length1 = _tmp12__length1;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ for (locale_lookup_it = 0; locale_lookup_it < _tmp12__length1; locale_lookup_it = locale_lookup_it + 1) {
+#line 5542 "FacebookPublishing.c"
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp13_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* locale_lookup = NULL;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = _publishing_facebook_web_authentication_pane_locale_lookup_ref0 (locale_lookup_collection[locale_lookup_it]);
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ locale_lookup = _tmp13_;
+#line 5549 "FacebookPublishing.c"
+ {
+ const gchar* _tmp14_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ gboolean _tmp17_ = FALSE;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp29_ = NULL;
+ const gchar* _tmp30_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp40_ = NULL;
+ const gchar* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = system_locale;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = locale_lookup;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = _tmp15_->prefix;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = g_str_has_prefix (_tmp14_, _tmp16_);
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp17_) {
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup);
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ continue;
+#line 5576 "FacebookPublishing.c"
+ }
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = locale_lookup;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = _tmp18_->exception_code;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp19_ != NULL) {
+#line 5584 "FacebookPublishing.c"
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ gboolean _tmp25_ = FALSE;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = locale_lookup;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = _tmp20_->exception_translation;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp21_ != NULL, "locale_lookup.exception_translation != null");
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = system_locale;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = locale_lookup;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp24_ = _tmp23_->exception_code;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp25_ = string_contains (_tmp22_, _tmp24_);
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp25_) {
+#line 5607 "FacebookPublishing.c"
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+#line 924 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp26_ = locale_lookup;
+#line 924 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp27_ = _tmp26_->exception_translation;
+#line 924 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp28_ = g_strdup (_tmp27_);
+#line 924 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp28_;
+#line 924 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup);
+#line 924 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (system_locale);
+#line 924 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5625 "FacebookPublishing.c"
+ }
+ }
+#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp29_ = locale_lookup;
+#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp30_ = _tmp29_->exception_code_2;
+#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp30_ != NULL) {
+#line 5634 "FacebookPublishing.c"
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ const gchar* _tmp33_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp34_ = NULL;
+ const gchar* _tmp35_ = NULL;
+ gboolean _tmp36_ = FALSE;
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp31_ = locale_lookup;
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp32_ = _tmp31_->exception_translation_2;
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp32_ != NULL, "locale_lookup.exception_translation_2 != null");
+#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp33_ = system_locale;
+#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp34_ = locale_lookup;
+#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp35_ = _tmp34_->exception_code_2;
+#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp36_ = string_contains (_tmp33_, _tmp35_);
+#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp36_) {
+#line 5657 "FacebookPublishing.c"
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp37_ = NULL;
+ const gchar* _tmp38_ = NULL;
+ gchar* _tmp39_ = NULL;
+#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp37_ = locale_lookup;
+#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp38_ = _tmp37_->exception_translation_2;
+#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp39_ = g_strdup (_tmp38_);
+#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp39_;
+#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup);
+#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (system_locale);
+#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5675 "FacebookPublishing.c"
+ }
+ }
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp40_ = locale_lookup;
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp41_ = _tmp40_->translation;
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp42_ = g_strdup (_tmp41_);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp42_;
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (system_locale);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5692 "FacebookPublishing.c"
+ }
+ }
+ }
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp43_ = g_strdup ("www");
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp43_;
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (system_locale);
+#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5704 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_web_authentication_pane_get_login_url (PublishingFacebookWebAuthenticationPane* self) {
+ gchar* result = NULL;
+ gchar* facebook_locale = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_WEB_AUTHENTICATION_PANE (self), NULL);
+#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = publishing_facebook_web_authentication_pane_get_system_locale_as_facebook_locale (self);
+#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ facebook_locale = _tmp0_;
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = g_strdup_printf ("https://%s.facebook.com/dialog/oauth?client_id=%s&redirect_uri=https:/" \
+"/www.facebook.com/connect/login_success.html&display=popup&scope=publi" \
+"sh_actions,user_photos,user_videos&response_type=token", facebook_locale, PUBLISHING_FACEBOOK_APPLICATION_ID);
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp1_;
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (facebook_locale);
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5727 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_on_page_load (PublishingFacebookWebAuthenticationPane* self) {
+ GtkBox* _tmp0_ = NULL;
+ GdkWindow* _tmp1_ = NULL;
+ GdkCursor* _tmp2_ = NULL;
+ GdkCursor* _tmp3_ = NULL;
+ gchar* loaded_url = NULL;
+ WebKitWebView* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+ const gchar* _tmp24_ = NULL;
+ gboolean _tmp25_ = FALSE;
+ const gchar* _tmp29_ = NULL;
+ gboolean _tmp30_ = FALSE;
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_WEB_AUTHENTICATION_PANE (self));
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = gdk_cursor_new (GDK_LEFT_PTR);
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gdk_window_set_cursor (_tmp1_, _tmp3_);
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (_tmp3_);
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->priv->webview;
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = webkit_web_view_get_uri (_tmp4_);
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = g_strdup (_tmp6_);
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ loaded_url = _tmp7_;
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = loaded_url;
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = g_strconcat ("loaded url: ", _tmp8_, NULL);
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:950: %s", _tmp10_);
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp10_);
+#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = loaded_url;
+#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = string_contains (_tmp11_, "?");
+#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp12_) {
+#line 5790 "FacebookPublishing.c"
+ gint index = 0;
+ const gchar* _tmp13_ = NULL;
+ gint _tmp14_ = 0;
+ gchar* params = NULL;
+ const gchar* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+ const gchar* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+ gint _tmp19_ = 0;
+ gchar* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = loaded_url;
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = string_index_of_char (_tmp13_, (gunichar) '?', 0);
+#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ index = _tmp14_;
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = loaded_url;
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = index;
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = loaded_url;
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = strlen (_tmp17_);
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = _tmp18_;
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = string_slice (_tmp15_, (glong) _tmp16_, (glong) _tmp19_);
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ params = _tmp20_;
+#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = loaded_url;
+#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = params;
+#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = string_replace (_tmp21_, _tmp22_, "");
+#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (loaded_url);
+#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ loaded_url = _tmp23_;
+#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (params);
+#line 5836 "FacebookPublishing.c"
+ }
+#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp24_ = loaded_url;
+#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp25_ = string_contains (_tmp24_, "login_success");
+#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp25_) {
+#line 5844 "FacebookPublishing.c"
+ WebKitWebView* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_cache_dirty = TRUE;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp26_ = self->priv->webview;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp27_ = webkit_web_view_get_uri (_tmp26_);
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp28_ = _tmp27_;
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (self, "login-succeeded", _tmp28_);
+#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (loaded_url);
+#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 5862 "FacebookPublishing.c"
+ }
+#line 967 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp29_ = loaded_url;
+#line 967 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp30_ = string_contains (_tmp29_, "login_failure");
+#line 967 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp30_) {
+#line 968 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (self, "login-failed");
+#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (loaded_url);
+#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 5876 "FacebookPublishing.c"
+ }
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (loaded_url);
+#line 5880 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_on_load_started (PublishingFacebookWebAuthenticationPane* self) {
+ GtkBox* _tmp0_ = NULL;
+ GdkWindow* _tmp1_ = NULL;
+ GdkCursor* _tmp2_ = NULL;
+ GdkCursor* _tmp3_ = NULL;
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_WEB_AUTHENTICATION_PANE (self));
+#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = gdk_cursor_new (GDK_WATCH);
+#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gdk_window_set_cursor (_tmp1_, _tmp3_);
+#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (_tmp3_);
+#line 5903 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_on_page_load_changed (PublishingFacebookWebAuthenticationPane* self, WebKitLoadEvent load_event) {
+ WebKitLoadEvent _tmp0_ = 0;
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_WEB_AUTHENTICATION_PANE (self));
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = load_event;
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ switch (_tmp0_) {
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case WEBKIT_LOAD_STARTED:
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case WEBKIT_LOAD_REDIRECTED:
+#line 5919 "FacebookPublishing.c"
+ {
+#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_on_load_started (self);
+#line 982 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ break;
+#line 5925 "FacebookPublishing.c"
+ }
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case WEBKIT_LOAD_FINISHED:
+#line 5929 "FacebookPublishing.c"
+ {
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_on_page_load (self);
+#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ break;
+#line 5935 "FacebookPublishing.c"
+ }
+ default:
+#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ break;
+#line 5940 "FacebookPublishing.c"
+ }
+#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 5944 "FacebookPublishing.c"
+}
+
+
+gboolean publishing_facebook_web_authentication_pane_is_cache_dirty (void) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = publishing_facebook_web_authentication_pane_cache_dirty;
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp0_;
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5957 "FacebookPublishing.c"
+}
+
+
+static GtkWidget* publishing_facebook_web_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingFacebookWebAuthenticationPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 995 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingFacebookWebAuthenticationPane);
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp1_;
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5976 "FacebookPublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_facebook_web_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingFacebookWebAuthenticationPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingFacebookWebAuthenticationPane);
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 5989 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingFacebookWebAuthenticationPane * self;
+ WebKitWebView* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingFacebookWebAuthenticationPane);
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->webview;
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = publishing_facebook_web_authentication_pane_get_login_url (self);
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ webkit_web_view_load_uri (_tmp0_, _tmp2_);
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp2_);
+#line 6010 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingFacebookWebAuthenticationPane * self;
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingFacebookWebAuthenticationPane);
+#line 6018 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookWebAuthenticationPaneLocaleLookup* publishing_facebook_web_authentication_pane_locale_lookup_construct (GType object_type, const gchar* prefix, const gchar* translation, const gchar* exception_code, const gchar* exception_translation, const gchar* exception_code_2, const gchar* exception_translation_2) {
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (prefix != NULL, NULL);
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (translation != NULL, NULL);
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookWebAuthenticationPaneLocaleLookup*) g_type_create_instance (object_type);
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = prefix;
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->prefix);
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->prefix = _tmp1_;
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = translation;
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->translation);
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->translation = _tmp3_;
+#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = exception_code;
+#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->exception_code);
+#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->exception_code = _tmp5_;
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = exception_translation;
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = g_strdup (_tmp6_);
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->exception_translation);
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->exception_translation = _tmp7_;
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = exception_code_2;
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = g_strdup (_tmp8_);
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->exception_code_2);
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->exception_code_2 = _tmp9_;
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = exception_translation_2;
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = g_strdup (_tmp10_);
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->exception_translation_2);
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->exception_translation_2 = _tmp11_;
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 6092 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookWebAuthenticationPaneLocaleLookup* publishing_facebook_web_authentication_pane_locale_lookup_new (const gchar* prefix, const gchar* translation, const gchar* exception_code, const gchar* exception_translation, const gchar* exception_code_2, const gchar* exception_translation_2) {
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_web_authentication_pane_locale_lookup_construct (PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, prefix, translation, exception_code, exception_translation, exception_code_2, exception_translation_2);
+#line 6099 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_value_locale_lookup_init (GValue* value) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6106 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_value_locale_lookup_free_value (GValue* value) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_locale_lookup_unref (value->data[0].v_pointer);
+#line 6115 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_web_authentication_pane_value_locale_lookup_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_facebook_web_authentication_pane_locale_lookup_ref (src_value->data[0].v_pointer);
+#line 6125 "FacebookPublishing.c"
+ } else {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 6129 "FacebookPublishing.c"
+ }
+}
+
+
+static gpointer publishing_facebook_web_authentication_pane_value_locale_lookup_peek_pointer (const GValue* value) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 6137 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_web_authentication_pane_value_locale_lookup_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 6144 "FacebookPublishing.c"
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* object;
+ object = collect_values[0].v_pointer;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 6151 "FacebookPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 6155 "FacebookPublishing.c"
+ }
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = publishing_facebook_web_authentication_pane_locale_lookup_ref (object);
+#line 6159 "FacebookPublishing.c"
+ } else {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6163 "FacebookPublishing.c"
+ }
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 6167 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_web_authentication_pane_value_locale_lookup_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFacebookWebAuthenticationPaneLocaleLookup** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!object_p) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 6178 "FacebookPublishing.c"
+ }
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = NULL;
+#line 6184 "FacebookPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 6188 "FacebookPublishing.c"
+ } else {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = publishing_facebook_web_authentication_pane_locale_lookup_ref (value->data[0].v_pointer);
+#line 6192 "FacebookPublishing.c"
+ }
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 6196 "FacebookPublishing.c"
+}
+
+
+static GParamSpec* publishing_facebook_web_authentication_pane_param_spec_locale_lookup (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFacebookWebAuthenticationPaneParamSpecLocaleLookup* spec;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP), NULL);
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 6210 "FacebookPublishing.c"
+}
+
+
+static gpointer publishing_facebook_web_authentication_pane_value_get_locale_lookup (const GValue* value) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP), NULL);
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 6219 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_value_set_locale_lookup (GValue* value, gpointer v_object) {
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* old;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP));
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP));
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_locale_lookup_ref (value->data[0].v_pointer);
+#line 6239 "FacebookPublishing.c"
+ } else {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6243 "FacebookPublishing.c"
+ }
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_locale_lookup_unref (old);
+#line 6249 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_web_authentication_pane_value_take_locale_lookup (GValue* value, gpointer v_object) {
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* old;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP));
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP));
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 6268 "FacebookPublishing.c"
+ } else {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6272 "FacebookPublishing.c"
+ }
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_locale_lookup_unref (old);
+#line 6278 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_web_authentication_pane_locale_lookup_class_init (PublishingFacebookWebAuthenticationPaneLocaleLookupClass * klass) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_locale_lookup_parent_class = g_type_class_peek_parent (klass);
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookWebAuthenticationPaneLocaleLookupClass *) klass)->finalize = publishing_facebook_web_authentication_pane_locale_lookup_finalize;
+#line 6288 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_locale_lookup_instance_init (PublishingFacebookWebAuthenticationPaneLocaleLookup * self) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->ref_count = 1;
+#line 6295 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_locale_lookup_finalize (PublishingFacebookWebAuthenticationPaneLocaleLookup* obj) {
+ PublishingFacebookWebAuthenticationPaneLocaleLookup * self;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingFacebookWebAuthenticationPaneLocaleLookup);
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->prefix);
+#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->translation);
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->exception_code);
+#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->exception_translation);
+#line 845 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->exception_code_2);
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->exception_translation_2);
+#line 6317 "FacebookPublishing.c"
+}
+
+
+static GType publishing_facebook_web_authentication_pane_locale_lookup_get_type (void) {
+ static volatile gsize publishing_facebook_web_authentication_pane_locale_lookup_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_web_authentication_pane_locale_lookup_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_facebook_web_authentication_pane_value_locale_lookup_init, publishing_facebook_web_authentication_pane_value_locale_lookup_free_value, publishing_facebook_web_authentication_pane_value_locale_lookup_copy_value, publishing_facebook_web_authentication_pane_value_locale_lookup_peek_pointer, "p", publishing_facebook_web_authentication_pane_value_locale_lookup_collect_value, "p", publishing_facebook_web_authentication_pane_value_locale_lookup_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookWebAuthenticationPaneLocaleLookupClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_web_authentication_pane_locale_lookup_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookWebAuthenticationPaneLocaleLookup), 0, (GInstanceInitFunc) publishing_facebook_web_authentication_pane_locale_lookup_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 publishing_facebook_web_authentication_pane_locale_lookup_type_id;
+ publishing_facebook_web_authentication_pane_locale_lookup_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookWebAuthenticationPaneLocaleLookup", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_facebook_web_authentication_pane_locale_lookup_type_id__volatile, publishing_facebook_web_authentication_pane_locale_lookup_type_id);
+ }
+ return publishing_facebook_web_authentication_pane_locale_lookup_type_id__volatile;
+}
+
+
+static gpointer publishing_facebook_web_authentication_pane_locale_lookup_ref (gpointer instance) {
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* self;
+ self = instance;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return instance;
+#line 6342 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_locale_lookup_unref (gpointer instance) {
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* self;
+ self = instance;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP_GET_CLASS (self)->finalize (self);
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 6355 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_web_authentication_pane_class_init (PublishingFacebookWebAuthenticationPaneClass * klass) {
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_parent_class = g_type_class_peek_parent (klass);
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFacebookWebAuthenticationPanePrivate));
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_facebook_web_authentication_pane_finalize;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_new ("login_succeeded", PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_new ("login_failed", PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 6371 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_web_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_facebook_web_authentication_pane_real_get_widget;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_facebook_web_authentication_pane_real_get_preferred_geometry;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_facebook_web_authentication_pane_real_on_pane_installed;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_facebook_web_authentication_pane_real_on_pane_uninstalled;
+#line 6386 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_instance_init (PublishingFacebookWebAuthenticationPane * self) {
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp0_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp1_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp2_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp3_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp4_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp5_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp6_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp7_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp8_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp9_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp10_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp11_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp12_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp13_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp14_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp15_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp16_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp17_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp18_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp19_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp20_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp21_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp22_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp23_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp24_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp25_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp26_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp27_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp28_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp29_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp30_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp31_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp32_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp33_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp34_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp35_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp36_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp37_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp38_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp39_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp40_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp41_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp42_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp43_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup* _tmp44_ = NULL;
+ PublishingFacebookWebAuthenticationPaneLocaleLookup** _tmp45_ = NULL;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv = PUBLISHING_FACEBOOK_WEB_AUTHENTICATION_PANE_GET_PRIVATE (self);
+#line 815 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->webview = NULL;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->webview_frame = NULL;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("es", "es-la", "ES", "es-es", NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("en", "en-gb", "US", "en-us", NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("fr", "fr-fr", "CA", "fr-ca", NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("pt", "pt-br", "PT", "pt-pt", NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("zh", "zh-cn", "HK", "zh-hk", "TW", "zh-tw");
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("af", "af-za", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("ar", "ar-ar", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("nb", "nb-no", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("no", "nb-no", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("id", "id-id", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("ms", "ms-my", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("ca", "ca-es", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("cs", "cs-cz", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("cy", "cy-gb", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("da", "da-dk", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("de", "de-de", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("tl", "tl-ph", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("ko", "ko-kr", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("hr", "hr-hr", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("it", "it-it", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("lt", "lt-lt", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("hu", "hu-hu", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("nl", "nl-nl", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("ja", "ja-jp", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp24_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("nb", "nb-no", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp25_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("no", "nb-no", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp26_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("pl", "pl-pl", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp27_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("ro", "ro-ro", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp28_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("ru", "ru-ru", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp29_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("sk", "sk-sk", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp30_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("sl", "sl-si", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp31_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("sv", "sv-se", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp32_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("th", "th-th", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp33_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("vi", "vi-vn", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp34_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("tr", "tr-tr", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp35_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("el", "el-gr", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp36_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("bg", "bg-bg", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp37_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("sr", "sr-rs", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp38_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("he", "he-il", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp39_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("hi", "hi-in", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp40_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("bn", "bn-in", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp41_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("pa", "pa-in", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp42_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("ta", "ta-in", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp43_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("te", "te-in", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp44_ = publishing_facebook_web_authentication_pane_locale_lookup_new ("ml", "ml-in", NULL, NULL, NULL, NULL);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_ = g_new0 (PublishingFacebookWebAuthenticationPaneLocaleLookup*, 45 + 1);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[0] = _tmp0_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[1] = _tmp1_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[2] = _tmp2_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[3] = _tmp3_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[4] = _tmp4_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[5] = _tmp5_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[6] = _tmp6_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[7] = _tmp7_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[8] = _tmp8_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[9] = _tmp9_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[10] = _tmp10_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[11] = _tmp11_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[12] = _tmp12_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[13] = _tmp13_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[14] = _tmp14_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[15] = _tmp15_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[16] = _tmp16_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[17] = _tmp17_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[18] = _tmp18_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[19] = _tmp19_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[20] = _tmp20_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[21] = _tmp21_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[22] = _tmp22_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[23] = _tmp23_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[24] = _tmp24_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[25] = _tmp25_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[26] = _tmp26_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[27] = _tmp27_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[28] = _tmp28_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[29] = _tmp29_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[30] = _tmp30_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[31] = _tmp31_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[32] = _tmp32_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[33] = _tmp33_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[34] = _tmp34_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[35] = _tmp35_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[36] = _tmp36_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[37] = _tmp37_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[38] = _tmp38_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[39] = _tmp39_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[40] = _tmp40_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[41] = _tmp41_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[42] = _tmp42_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[43] = _tmp43_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_[44] = _tmp44_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->locale_lookup_table = _tmp45_;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->locale_lookup_table_length1 = 45;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->_locale_lookup_table_size_ = self->priv->locale_lookup_table_length1;
+#line 6633 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_web_authentication_pane_finalize (GObject* obj) {
+ PublishingFacebookWebAuthenticationPane * self;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingFacebookWebAuthenticationPane);
+#line 815 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->webview);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->webview_frame);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->locale_lookup_table = (_vala_array_free (self->priv->locale_lookup_table, self->priv->locale_lookup_table_length1, (GDestroyNotify) publishing_facebook_web_authentication_pane_locale_lookup_unref), NULL);
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_OBJECT_CLASS (publishing_facebook_web_authentication_pane_parent_class)->finalize (obj);
+#line 6651 "FacebookPublishing.c"
+}
+
+
+GType publishing_facebook_web_authentication_pane_get_type (void) {
+ static volatile gsize publishing_facebook_web_authentication_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_web_authentication_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookWebAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_web_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookWebAuthenticationPane), 0, (GInstanceInitFunc) publishing_facebook_web_authentication_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_facebook_web_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_facebook_web_authentication_pane_type_id;
+ publishing_facebook_web_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFacebookWebAuthenticationPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_facebook_web_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_facebook_web_authentication_pane_type_id__volatile, publishing_facebook_web_authentication_pane_type_id);
+ }
+ return publishing_facebook_web_authentication_pane_type_id__volatile;
+}
+
+
+static PublishingFacebookAlbum** _vala_array_dup2 (PublishingFacebookAlbum** self, int length) {
+ PublishingFacebookAlbum** result;
+ int i;
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = g_new0 (PublishingFacebookAlbum*, length + 1);
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 6676 "FacebookPublishing.c"
+ PublishingFacebookAlbum* _tmp0_ = NULL;
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = _publishing_facebook_album_ref0 (self[i]);
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result[i] = _tmp0_;
+#line 6682 "FacebookPublishing.c"
+ }
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 6686 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_publishing_options_pane_on_create_new_toggled_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_on_create_new_toggled ((PublishingFacebookPublishingOptionsPane*) self);
+#line 6693 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_publishing_options_pane_on_use_existing_toggled_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_on_use_existing_toggled ((PublishingFacebookPublishingOptionsPane*) self);
+#line 6700 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1095 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_on_publish_button_clicked ((PublishingFacebookPublishingOptionsPane*) self);
+#line 6707 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1096 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_on_logout_button_clicked ((PublishingFacebookPublishingOptionsPane*) self);
+#line 6714 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
+#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_on_size_changed ((PublishingFacebookPublishingOptionsPane*) self);
+#line 6721 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookPublishingOptionsPane* publishing_facebook_publishing_options_pane_construct (GType object_type, const gchar* username, PublishingFacebookAlbum** albums, int albums_length1, SpitPublishingPublisherMediaType media_type, PublishingFacebookFacebookPublisher* publisher, GtkBuilder* builder, gboolean strip_metadata) {
+ PublishingFacebookPublishingOptionsPane * self = NULL;
+ GtkBuilder* _tmp0_ = NULL;
+ GtkBuilder* _tmp1_ = NULL;
+ GtkBuilder* _tmp2_ = NULL;
+ GtkBuilder* _tmp3_ = NULL;
+ GSList* _tmp4_ = NULL;
+ GSList* _tmp5_ = NULL;
+ guint _tmp6_ = 0U;
+ PublishingFacebookAlbum** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ PublishingFacebookAlbum** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ gint _tmp9_ = 0;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ PublishingFacebookResolution* _tmp12_ = NULL;
+ PublishingFacebookFacebookPublisher* _tmp13_ = NULL;
+ PublishingFacebookFacebookPublisher* _tmp14_ = NULL;
+ SpitPublishingPublisherMediaType _tmp15_ = 0;
+ GtkBuilder* _tmp16_ = NULL;
+ GObject* _tmp17_ = NULL;
+ GtkBox* _tmp18_ = NULL;
+ GtkBox* _tmp19_ = NULL;
+ GtkBuilder* _tmp20_ = NULL;
+ GObject* _tmp21_ = NULL;
+ GtkRadioButton* _tmp22_ = NULL;
+ GtkBuilder* _tmp23_ = NULL;
+ GObject* _tmp24_ = NULL;
+ GtkRadioButton* _tmp25_ = NULL;
+ GtkBuilder* _tmp26_ = NULL;
+ GObject* _tmp27_ = NULL;
+ GtkComboBoxText* _tmp28_ = NULL;
+ GtkBuilder* _tmp29_ = NULL;
+ GObject* _tmp30_ = NULL;
+ GtkComboBoxText* _tmp31_ = NULL;
+ GtkBuilder* _tmp32_ = NULL;
+ GObject* _tmp33_ = NULL;
+ GtkButton* _tmp34_ = NULL;
+ GtkBuilder* _tmp35_ = NULL;
+ GObject* _tmp36_ = NULL;
+ GtkButton* _tmp37_ = NULL;
+ GtkBuilder* _tmp38_ = NULL;
+ GObject* _tmp39_ = NULL;
+ GtkEntry* _tmp40_ = NULL;
+ GtkBuilder* _tmp41_ = NULL;
+ GObject* _tmp42_ = NULL;
+ GtkComboBoxText* _tmp43_ = NULL;
+ GtkBuilder* _tmp44_ = NULL;
+ GObject* _tmp45_ = NULL;
+ GtkLabel* _tmp46_ = NULL;
+ GtkBuilder* _tmp47_ = NULL;
+ GObject* _tmp48_ = NULL;
+ GtkCheckButton* _tmp49_ = NULL;
+ GtkRadioButton* _tmp50_ = NULL;
+ GtkRadioButton* _tmp51_ = NULL;
+ gchar* label_text = NULL;
+ const gchar* _tmp52_ = NULL;
+ gchar* _tmp53_ = NULL;
+ SpitPublishingPublisherMediaType _tmp54_ = 0;
+ GtkLabel* _tmp57_ = NULL;
+ const gchar* _tmp58_ = NULL;
+ GtkCheckButton* _tmp59_ = NULL;
+ gboolean _tmp60_ = FALSE;
+ GtkComboBoxText* _tmp61_ = NULL;
+ GtkButton* _tmp62_ = NULL;
+ GtkButton* _tmp63_ = NULL;
+ GtkComboBoxText* _tmp64_ = NULL;
+ PublishingFacebookFacebookPublisher* _tmp65_ = NULL;
+ gint _tmp66_ = 0;
+ GtkComboBoxText* _tmp67_ = NULL;
+ gboolean _tmp68_ = FALSE;
+ gboolean _tmp69_ = FALSE;
+ GtkRadioButton* _tmp70_ = NULL;
+ GtkComboBoxText* _tmp75_ = NULL;
+ SpitPublishingPublisherMediaType _tmp76_ = 0;
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (username != NULL, NULL);
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (publisher), NULL);
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL);
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookPublishingOptionsPane*) g_object_new (object_type, NULL);
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = builder;
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->builder = _tmp1_;
+#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = builder;
+#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp2_ != NULL, "builder != null");
+#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = builder;
+#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = gtk_builder_get_objects (_tmp3_);
+#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = g_slist_length (_tmp5_);
+#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp6_ > ((guint) 0), "builder.get_objects().length() > 0");
+#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_slist_free0 (_tmp5_);
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = albums;
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7__length1 = albums_length1;
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup2 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_);
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8__length1 = _tmp7__length1;
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL);
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->albums = _tmp8_;
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->albums_length1 = _tmp8__length1;
+#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->_albums_size_ = self->priv->albums_length1;
+#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = publishing_facebook_publishing_options_pane_create_privacy_descriptions (self, &_tmp9_);
+#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_facebook_publishing_options_pane_privacy_description_unref), NULL);
+#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->privacy_descriptions = _tmp10_;
+#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->privacy_descriptions_length1 = _tmp9_;
+#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->_privacy_descriptions_size_ = self->priv->privacy_descriptions_length1;
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = publishing_facebook_publishing_options_pane_create_resolution_list (self, &_tmp11_);
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->possible_resolutions = (g_free (self->priv->possible_resolutions), NULL);
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->possible_resolutions = _tmp12_;
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->possible_resolutions_length1 = _tmp11_;
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->_possible_resolutions_size_ = self->priv->possible_resolutions_length1;
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = publisher;
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = _g_object_ref0 (_tmp13_);
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->publisher);
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publisher = _tmp14_;
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = media_type;
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->media_type = _tmp15_;
+#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = builder;
+#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = gtk_builder_get_object (_tmp16_, "facebook_pane_box");
+#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_box_get_type (), GtkBox));
+#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->pane_widget = _tmp18_;
+#line 1070 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = self->priv->pane_widget;
+#line 1070 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_container_get_type (), GtkContainer), (guint) 16);
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = self->priv->builder;
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = gtk_builder_get_object (_tmp20_, "use_existing_radio");
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_radio_button_get_type (), GtkRadioButton));
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->use_existing_radio);
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->use_existing_radio = _tmp22_;
+#line 1073 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = self->priv->builder;
+#line 1073 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp24_ = gtk_builder_get_object (_tmp23_, "create_new_radio");
+#line 1073 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_radio_button_get_type (), GtkRadioButton));
+#line 1073 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->create_new_radio);
+#line 1073 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->create_new_radio = _tmp25_;
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp26_ = self->priv->builder;
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp27_ = gtk_builder_get_object (_tmp26_, "existing_albums_combo");
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_combo_box_text_get_type (), GtkComboBoxText));
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->existing_albums_combo);
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->existing_albums_combo = _tmp28_;
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp29_ = self->priv->builder;
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp30_ = gtk_builder_get_object (_tmp29_, "visibility_combo");
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp31_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_combo_box_text_get_type (), GtkComboBoxText));
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->visibility_combo);
+#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->visibility_combo = _tmp31_;
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp32_ = self->priv->builder;
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp33_ = gtk_builder_get_object (_tmp32_, "publish_button");
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp34_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_button_get_type (), GtkButton));
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publish_button = _tmp34_;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp35_ = self->priv->builder;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp36_ = gtk_builder_get_object (_tmp35_, "logout_button");
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_button_get_type (), GtkButton));
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->logout_button = _tmp37_;
+#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp38_ = self->priv->builder;
+#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp39_ = gtk_builder_get_object (_tmp38_, "new_album_entry");
+#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp40_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_entry_get_type (), GtkEntry));
+#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->new_album_entry);
+#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->new_album_entry = _tmp40_;
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp41_ = self->priv->builder;
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp42_ = gtk_builder_get_object (_tmp41_, "resolution_combo");
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp43_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_combo_box_text_get_type (), GtkComboBoxText));
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->resolution_combo);
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->resolution_combo = _tmp43_;
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp44_ = self->priv->builder;
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_ = gtk_builder_get_object (_tmp44_, "how_to_label");
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp46_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_label_get_type (), GtkLabel));
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->how_to_label);
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->how_to_label = _tmp46_;
+#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp47_ = self->priv->builder;
+#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp48_ = gtk_builder_get_object (_tmp47_, "strip_metadata_check");
+#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp49_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_check_button_get_type (), GtkCheckButton));
+#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->strip_metadata_check);
+#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->strip_metadata_check = _tmp49_;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp50_ = self->priv->create_new_radio;
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_create_new_toggled_gtk_button_clicked, self, 0);
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp51_ = self->priv->use_existing_radio;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_use_existing_toggled_gtk_button_clicked, self, 0);
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp52_ = username;
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp53_ = g_strdup_printf (PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_HEADER_LABEL_TEXT, _tmp52_);
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ label_text = _tmp53_;
+#line 1087 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp54_ = media_type;
+#line 1087 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if ((_tmp54_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0) {
+#line 7013 "FacebookPublishing.c"
+ const gchar* _tmp55_ = NULL;
+ gchar* _tmp56_ = NULL;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp55_ = label_text;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp56_ = g_strconcat (_tmp55_, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PHOTOS_LABEL_TEXT, NULL);
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (label_text);
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ label_text = _tmp56_;
+#line 7024 "FacebookPublishing.c"
+ }
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp57_ = self->priv->how_to_label;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp58_ = label_text;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_label_set_label (_tmp57_, _tmp58_);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp59_ = self->priv->strip_metadata_check;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp60_ = strip_metadata;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp60_);
+#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_setup_visibility_combo (self);
+#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp61_ = self->priv->visibility_combo;
+#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 1095 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp62_ = self->priv->publish_button;
+#line 1095 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp62_, "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked, self, 0);
+#line 1096 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp63_ = self->priv->logout_button;
+#line 1096 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (_tmp63_, "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked, self, 0);
+#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_setup_resolution_combo (self);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp64_ = self->priv->resolution_combo;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp65_ = publisher;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp66_ = publishing_facebook_facebook_publisher_get_persistent_default_size (_tmp65_);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_combo_box_get_type (), GtkComboBox), _tmp66_);
+#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp67_ = self->priv->resolution_combo;
+#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_facebook_publishing_options_pane_on_size_changed_gtk_combo_box_changed, self, 0);
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp70_ = self->priv->create_new_radio;
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp70_ != NULL) {
+#line 7070 "FacebookPublishing.c"
+ GtkRadioButton* _tmp71_ = NULL;
+ gboolean _tmp72_ = FALSE;
+ gboolean _tmp73_ = FALSE;
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp71_ = self->priv->create_new_radio;
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp72_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp73_ = _tmp72_;
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp69_ = _tmp73_;
+#line 7082 "FacebookPublishing.c"
+ } else {
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp69_ = FALSE;
+#line 7086 "FacebookPublishing.c"
+ }
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp69_) {
+#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp68_ = TRUE;
+#line 7092 "FacebookPublishing.c"
+ } else {
+ SpitPublishingPublisherMediaType _tmp74_ = 0;
+#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp74_ = media_type;
+#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp68_ = (_tmp74_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) != 0;
+#line 7099 "FacebookPublishing.c"
+ }
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp75_ = self->priv->visibility_combo;
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, gtk_widget_get_type (), GtkWidget), _tmp68_);
+#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp76_ = media_type;
+#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp76_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 7109 "FacebookPublishing.c"
+ GtkCheckButton* _tmp77_ = NULL;
+ GtkCheckButton* _tmp78_ = NULL;
+ GtkComboBoxText* _tmp79_ = NULL;
+ GtkRadioButton* _tmp80_ = NULL;
+ GtkRadioButton* _tmp81_ = NULL;
+ GtkComboBoxText* _tmp82_ = NULL;
+ GtkEntry* _tmp83_ = NULL;
+#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp77_ = self->priv->strip_metadata_check;
+#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_toggle_button_get_type (), GtkToggleButton), FALSE);
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp78_ = self->priv->strip_metadata_check;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp79_ = self->priv->resolution_combo;
+#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp80_ = self->priv->use_existing_radio;
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp81_ = self->priv->create_new_radio;
+#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp82_ = self->priv->existing_albums_combo;
+#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp83_ = self->priv->new_album_entry;
+#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 7145 "FacebookPublishing.c"
+ }
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (label_text);
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 7151 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookPublishingOptionsPane* publishing_facebook_publishing_options_pane_new (const gchar* username, PublishingFacebookAlbum** albums, int albums_length1, SpitPublishingPublisherMediaType media_type, PublishingFacebookFacebookPublisher* publisher, GtkBuilder* builder, gboolean strip_metadata) {
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_publishing_options_pane_construct (PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, username, albums, albums_length1, media_type, publisher, builder, strip_metadata);
+#line 7158 "FacebookPublishing.c"
+}
+
+
+static gboolean publishing_facebook_publishing_options_pane_publishing_photos (PublishingFacebookPublishingOptionsPane* self) {
+ gboolean result = FALSE;
+ SpitPublishingPublisherMediaType _tmp0_ = 0;
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self), FALSE);
+#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->media_type;
+#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = (_tmp0_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0;
+#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 7173 "FacebookPublishing.c"
+}
+
+
+static gpointer _publishing_facebook_publishing_options_pane_privacy_description_ref0 (gpointer self) {
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self ? publishing_facebook_publishing_options_pane_privacy_description_ref (self) : NULL;
+#line 7180 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_setup_visibility_combo (PublishingFacebookPublishingOptionsPane* self) {
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 1125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->privacy_descriptions;
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0__length1 = self->priv->privacy_descriptions_length1;
+#line 7193 "FacebookPublishing.c"
+ {
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** p_collection = NULL;
+ gint p_collection_length1 = 0;
+ gint _p_collection_size_ = 0;
+ gint p_it = 0;
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ p_collection = _tmp0_;
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ p_collection_length1 = _tmp0__length1;
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ for (p_it = 0; p_it < _tmp0__length1; p_it = p_it + 1) {
+#line 7205 "FacebookPublishing.c"
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp1_ = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* p = NULL;
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _publishing_facebook_publishing_options_pane_privacy_description_ref0 (p_collection[p_it]);
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ p = _tmp1_;
+#line 7212 "FacebookPublishing.c"
+ {
+ GtkComboBoxText* _tmp2_ = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->visibility_combo;
+#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = p;
+#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = _tmp3_->description;
+#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp2_, _tmp4_);
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_publishing_options_pane_privacy_description_unref0 (p);
+#line 7227 "FacebookPublishing.c"
+ }
+ }
+ }
+}
+
+
+static void publishing_facebook_publishing_options_pane_setup_resolution_combo (PublishingFacebookPublishingOptionsPane* self) {
+ PublishingFacebookResolution* _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->possible_resolutions;
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0__length1 = self->priv->possible_resolutions_length1;
+#line 7243 "FacebookPublishing.c"
+ {
+ PublishingFacebookResolution* res_collection = NULL;
+ gint res_collection_length1 = 0;
+ gint _res_collection_size_ = 0;
+ gint res_it = 0;
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ res_collection = _tmp0_;
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ res_collection_length1 = _tmp0__length1;
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ for (res_it = 0; res_it < _tmp0__length1; res_it = res_it + 1) {
+#line 7255 "FacebookPublishing.c"
+ PublishingFacebookResolution res = 0;
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ res = res_collection[res_it];
+#line 7259 "FacebookPublishing.c"
+ {
+ GtkComboBoxText* _tmp1_ = NULL;
+ PublishingFacebookResolution _tmp2_ = 0;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->resolution_combo;
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = res;
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = publishing_facebook_resolution_get_name (_tmp2_);
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp1_, _tmp4_);
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp4_);
+#line 7277 "FacebookPublishing.c"
+ }
+ }
+ }
+}
+
+
+static void publishing_facebook_publishing_options_pane_on_use_existing_toggled (PublishingFacebookPublishingOptionsPane* self) {
+ GtkRadioButton* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ gboolean _tmp2_ = FALSE;
+#line 1135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->use_existing_radio;
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp2_) {
+#line 7298 "FacebookPublishing.c"
+ GtkComboBoxText* _tmp3_ = NULL;
+ GtkEntry* _tmp4_ = NULL;
+ GtkComboBoxText* _tmp5_ = NULL;
+ SpitPublishingPublisherMediaType _tmp6_ = 0;
+ GtkComboBoxText* _tmp7_ = NULL;
+#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->existing_albums_combo;
+#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->priv->new_album_entry;
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->priv->visibility_combo;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = self->priv->media_type;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), (_tmp6_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) != 0);
+#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = self->priv->existing_albums_combo;
+#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget));
+#line 7322 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_publishing_options_pane_on_create_new_toggled (PublishingFacebookPublishingOptionsPane* self) {
+ GtkRadioButton* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ gboolean _tmp2_ = FALSE;
+#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->create_new_radio;
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp2_) {
+#line 7341 "FacebookPublishing.c"
+ GtkComboBoxText* _tmp3_ = NULL;
+ GtkEntry* _tmp4_ = NULL;
+ GtkEntry* _tmp5_ = NULL;
+ GtkComboBoxText* _tmp6_ = NULL;
+#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->existing_albums_combo;
+#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->priv->new_album_entry;
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->priv->new_album_entry;
+#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget));
+#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = self->priv->visibility_combo;
+#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 7362 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_publishing_options_pane_on_size_changed (PublishingFacebookPublishingOptionsPane* self) {
+ PublishingFacebookFacebookPublisher* _tmp0_ = NULL;
+ GtkComboBoxText* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->publisher;
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->resolution_combo;
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_facebook_publisher_set_persistent_default_size (_tmp0_, _tmp2_);
+#line 7381 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_on_logout_button_clicked (PublishingFacebookPublishingOptionsPane* self) {
+#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 7390 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_on_publish_button_clicked (PublishingFacebookPublishingOptionsPane* self) {
+ gchar* album_name = NULL;
+ gchar* privacy_setting = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ GtkComboBoxText* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ PublishingFacebookResolution resolution_setting = 0;
+ gboolean _tmp6_ = FALSE;
+ const gchar* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+ PublishingFacebookResolution _tmp21_ = 0;
+ GtkCheckButton* _tmp22_ = NULL;
+ gboolean _tmp23_ = FALSE;
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->privacy_descriptions;
+#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0__length1 = self->priv->privacy_descriptions_length1;
+#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->visibility_combo;
+#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = _tmp0_[_tmp2_];
+#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = _tmp3_->privacy_setting;
+#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ privacy_setting = _tmp5_;
+#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = publishing_facebook_publishing_options_pane_publishing_photos (self);
+#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp6_) {
+#line 7433 "FacebookPublishing.c"
+ PublishingFacebookResolution* _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ GtkComboBoxText* _tmp8_ = NULL;
+ gint _tmp9_ = 0;
+ PublishingFacebookResolution _tmp10_ = 0;
+ GtkRadioButton* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+ gboolean _tmp13_ = FALSE;
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = self->priv->possible_resolutions;
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7__length1 = self->priv->possible_resolutions_length1;
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = self->priv->resolution_combo;
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = _tmp7_[_tmp9_];
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ resolution_setting = _tmp10_;
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = self->priv->use_existing_radio;
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp13_) {
+#line 7462 "FacebookPublishing.c"
+ GtkComboBoxText* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = self->priv->existing_albums_combo;
+#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = gtk_combo_box_text_get_active_text (_tmp14_);
+#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (album_name);
+#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ album_name = _tmp15_;
+#line 7473 "FacebookPublishing.c"
+ } else {
+ GtkEntry* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = self->priv->new_album_entry;
+#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = gtk_entry_get_text (_tmp16_);
+#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = g_strdup (_tmp17_);
+#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (album_name);
+#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ album_name = _tmp18_;
+#line 7488 "FacebookPublishing.c"
+ }
+ } else {
+#line 1183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ resolution_setting = PUBLISHING_FACEBOOK_RESOLUTION_STANDARD;
+#line 1184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (album_name);
+#line 1184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ album_name = NULL;
+#line 7497 "FacebookPublishing.c"
+ }
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = album_name;
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = privacy_setting;
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = resolution_setting;
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = self->priv->strip_metadata_check;
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (self, "publish", _tmp19_, _tmp20_, _tmp21_, _tmp23_);
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (privacy_setting);
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (album_name);
+#line 7515 "FacebookPublishing.c"
+}
+
+
+static void _vala_array_add7 (PublishingFacebookPublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingFacebookPublishingOptionsPanePrivacyDescription* value) {
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *array = g_renew (PublishingFacebookPublishingOptionsPanePrivacyDescription*, *array, (*size) + 1);
+#line 7526 "FacebookPublishing.c"
+ }
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*array)[*length] = NULL;
+#line 7532 "FacebookPublishing.c"
+}
+
+
+static void _vala_array_add8 (PublishingFacebookPublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingFacebookPublishingOptionsPanePrivacyDescription* value) {
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *array = g_renew (PublishingFacebookPublishingOptionsPanePrivacyDescription*, *array, (*size) + 1);
+#line 7543 "FacebookPublishing.c"
+ }
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*array)[*length] = NULL;
+#line 7549 "FacebookPublishing.c"
+}
+
+
+static void _vala_array_add9 (PublishingFacebookPublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingFacebookPublishingOptionsPanePrivacyDescription* value) {
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *array = g_renew (PublishingFacebookPublishingOptionsPanePrivacyDescription*, *array, (*size) + 1);
+#line 7560 "FacebookPublishing.c"
+ }
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*array)[*length] = NULL;
+#line 7566 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookPublishingOptionsPanePrivacyDescription** publishing_facebook_publishing_options_pane_create_privacy_descriptions (PublishingFacebookPublishingOptionsPane* self, int* result_length1) {
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** result = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** _result_ = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ const gchar* _tmp2_ = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp3_ = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp5_ = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp6_ = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ const gchar* _tmp8_ = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp9_ = NULL;
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = g_new0 (PublishingFacebookPublishingOptionsPanePrivacyDescription*, 0 + 1);
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _result_ = _tmp0_;
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _result__length1 = 0;
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __result__size_ = _result__length1;
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _result_;
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1__length1 = _result__length1;
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _ ("Just me");
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = publishing_facebook_publishing_options_pane_privacy_description_new (_tmp2_, "{ 'value' : 'SELF' }");
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_array_add7 (&_result_, &_result__length1, &__result__size_, _tmp3_);
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = _result_;
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4__length1 = _result__length1;
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _ ("Friends");
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = publishing_facebook_publishing_options_pane_privacy_description_new (_tmp5_, "{ 'value' : 'ALL_FRIENDS' }");
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_array_add8 (&_result_, &_result__length1, &__result__size_, _tmp6_);
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _result_;
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7__length1 = _result__length1;
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _ ("Everyone");
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = publishing_facebook_publishing_options_pane_privacy_description_new (_tmp8_, "{ 'value' : 'EVERYONE' }");
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_array_add9 (&_result_, &_result__length1, &__result__size_, _tmp9_);
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = _result_;
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10__length1 = _result__length1;
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (result_length1) {
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *result_length1 = _tmp10__length1;
+#line 7638 "FacebookPublishing.c"
+ }
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp10_;
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 7644 "FacebookPublishing.c"
+}
+
+
+static void _vala_array_add10 (PublishingFacebookResolution** array, int* length, int* size, PublishingFacebookResolution value) {
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *array = g_renew (PublishingFacebookResolution, *array, *size);
+#line 7655 "FacebookPublishing.c"
+ }
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 7659 "FacebookPublishing.c"
+}
+
+
+static void _vala_array_add11 (PublishingFacebookResolution** array, int* length, int* size, PublishingFacebookResolution value) {
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *array = g_renew (PublishingFacebookResolution, *array, *size);
+#line 7670 "FacebookPublishing.c"
+ }
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 7674 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookResolution* publishing_facebook_publishing_options_pane_create_resolution_list (PublishingFacebookPublishingOptionsPane* self, int* result_length1) {
+ PublishingFacebookResolution* result = NULL;
+ PublishingFacebookResolution* _result_ = NULL;
+ PublishingFacebookResolution* _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ PublishingFacebookResolution* _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingFacebookResolution* _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ PublishingFacebookResolution* _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = g_new0 (PublishingFacebookResolution, 0);
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _result_ = _tmp0_;
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _result__length1 = 0;
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __result__size_ = _result__length1;
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _result_;
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1__length1 = _result__length1;
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_array_add10 (&_result_, &_result__length1, &__result__size_, PUBLISHING_FACEBOOK_RESOLUTION_STANDARD);
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _result_;
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2__length1 = _result__length1;
+#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_array_add11 (&_result_, &_result__length1, &__result__size_, PUBLISHING_FACEBOOK_RESOLUTION_HIGH);
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = _result_;
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3__length1 = _result__length1;
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (result_length1) {
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *result_length1 = _tmp3__length1;
+#line 7720 "FacebookPublishing.c"
+ }
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp3_;
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 7726 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_publishing_options_pane_installed (PublishingFacebookPublishingOptionsPane* self) {
+ gboolean _tmp0_ = FALSE;
+ GtkButton* _tmp24_ = NULL;
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = publishing_facebook_publishing_options_pane_publishing_photos (self);
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp0_) {
+#line 7739 "FacebookPublishing.c"
+ PublishingFacebookAlbum** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->albums;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1__length1 = self->priv->albums_length1;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp1__length1 == 0) {
+#line 7748 "FacebookPublishing.c"
+ GtkRadioButton* _tmp2_ = NULL;
+ GtkEntry* _tmp3_ = NULL;
+ GtkComboBoxText* _tmp4_ = NULL;
+ GtkRadioButton* _tmp5_ = NULL;
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->create_new_radio;
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->new_album_entry;
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_entry_set_text (_tmp3_, PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME);
+#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->priv->existing_albums_combo;
+#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = self->priv->use_existing_radio;
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 7769 "FacebookPublishing.c"
+ } else {
+ gint default_album_seq_num = 0;
+ gint ticker = 0;
+ PublishingFacebookAlbum** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ gint _tmp15_ = 0;
+#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ default_album_seq_num = -1;
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ticker = 0;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = self->priv->albums;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6__length1 = self->priv->albums_length1;
+#line 7784 "FacebookPublishing.c"
+ {
+ PublishingFacebookAlbum** album_collection = NULL;
+ gint album_collection_length1 = 0;
+ gint _album_collection_size_ = 0;
+ gint album_it = 0;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ album_collection = _tmp6_;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ album_collection_length1 = _tmp6__length1;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ for (album_it = 0; album_it < _tmp6__length1; album_it = album_it + 1) {
+#line 7796 "FacebookPublishing.c"
+ PublishingFacebookAlbum* _tmp7_ = NULL;
+ PublishingFacebookAlbum* album = NULL;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _publishing_facebook_album_ref0 (album_collection[album_it]);
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ album = _tmp7_;
+#line 7803 "FacebookPublishing.c"
+ {
+ GtkComboBoxText* _tmp8_ = NULL;
+ PublishingFacebookAlbum* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ PublishingFacebookAlbum* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ gint _tmp14_ = 0;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = self->priv->existing_albums_combo;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = album;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = _tmp9_->name;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp8_, _tmp10_);
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = album;
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = _tmp11_->name;
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (g_strcmp0 (_tmp12_, PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME) == 0) {
+#line 7825 "FacebookPublishing.c"
+ gint _tmp13_ = 0;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = ticker;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ default_album_seq_num = _tmp13_;
+#line 7831 "FacebookPublishing.c"
+ }
+#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = ticker;
+#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ticker = _tmp14_ + 1;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_album_unref0 (album);
+#line 7839 "FacebookPublishing.c"
+ }
+ }
+ }
+#line 1225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = default_album_seq_num;
+#line 1225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp15_ != -1) {
+#line 7847 "FacebookPublishing.c"
+ GtkComboBoxText* _tmp16_ = NULL;
+ gint _tmp17_ = 0;
+ GtkRadioButton* _tmp18_ = NULL;
+ GtkEntry* _tmp19_ = NULL;
+#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = self->priv->existing_albums_combo;
+#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = default_album_seq_num;
+#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_get_type (), GtkComboBox), _tmp17_);
+#line 1227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = self->priv->use_existing_radio;
+#line 1227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = self->priv->new_album_entry;
+#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 7866 "FacebookPublishing.c"
+ } else {
+ GtkRadioButton* _tmp20_ = NULL;
+ GtkComboBoxText* _tmp21_ = NULL;
+ GtkComboBoxText* _tmp22_ = NULL;
+ GtkEntry* _tmp23_ = NULL;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = self->priv->create_new_radio;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = self->priv->existing_albums_combo;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = self->priv->existing_albums_combo;
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = self->priv->new_album_entry;
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_entry_set_text (_tmp23_, PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME);
+#line 7888 "FacebookPublishing.c"
+ }
+ }
+ }
+#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp24_ = self->priv->publish_button;
+#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget));
+#line 7896 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_notify_logout (PublishingFacebookPublishingOptionsPane* self) {
+#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 7905 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_notify_publish (PublishingFacebookPublishingOptionsPane* self, const gchar* target_album, const gchar* privacy_setting, PublishingFacebookResolution target_resolution) {
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingFacebookResolution _tmp2_ = 0;
+ GtkCheckButton* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (privacy_setting != NULL);
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = target_album;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = privacy_setting;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = target_resolution;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->strip_metadata_check;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (self, "publish", _tmp0_, _tmp1_, _tmp2_, _tmp4_);
+#line 7931 "FacebookPublishing.c"
+}
+
+
+static GtkWidget* publishing_facebook_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingFacebookPublishingOptionsPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane);
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp1_;
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 7950 "FacebookPublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_facebook_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingFacebookPublishingOptionsPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 1254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane);
+#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 7963 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, gpointer self) {
+#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_notify_logout ((PublishingFacebookPublishingOptionsPane*) self);
+#line 7970 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, const gchar* target_album, const gchar* privacy_setting, PublishingFacebookResolution target_resolution, gboolean strip_metadata, gpointer self) {
+#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_notify_publish ((PublishingFacebookPublishingOptionsPane*) self, target_album, privacy_setting, target_resolution);
+#line 7977 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingFacebookPublishingOptionsPane * self;
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane);
+#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (self, "logout", (GCallback) _publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout, self, 0);
+#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect_object (self, "publish", (GCallback) _publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish, self, 0);
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_installed (self);
+#line 7991 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingFacebookPublishingOptionsPane * self;
+ guint _tmp0_ = 0U;
+ guint _tmp1_ = 0U;
+#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane);
+#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE);
+#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout, self);
+#line 1267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE);
+#line 1267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish, self);
+#line 8009 "FacebookPublishing.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__STRING_STRING_ENUM_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__STRING_STRING_ENUM_BOOLEAN) (gpointer data1, const char* arg_1, const char* arg_2, gint arg_3, gboolean arg_4, gpointer data2);
+ register GMarshalFunc_VOID__STRING_STRING_ENUM_BOOLEAN callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (n_param_values == 5);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ data1 = closure->data;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 8028 "FacebookPublishing.c"
+ } else {
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ data2 = closure->data;
+#line 8034 "FacebookPublishing.c"
+ }
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ callback = (GMarshalFunc_VOID__STRING_STRING_ENUM_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_enum (param_values + 3), g_value_get_boolean (param_values + 4), data2);
+#line 8040 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookPublishingOptionsPanePrivacyDescription* publishing_facebook_publishing_options_pane_privacy_description_construct (GType object_type, const gchar* description, const gchar* privacy_setting) {
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (description != NULL, NULL);
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (privacy_setting != NULL, NULL);
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookPublishingOptionsPanePrivacyDescription*) g_type_create_instance (object_type);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = description;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->description);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->description = _tmp1_;
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = privacy_setting;
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->privacy_setting);
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->privacy_setting = _tmp3_;
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 8074 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookPublishingOptionsPanePrivacyDescription* publishing_facebook_publishing_options_pane_privacy_description_new (const gchar* description, const gchar* privacy_setting) {
+#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_publishing_options_pane_privacy_description_construct (PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, description, privacy_setting);
+#line 8081 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_value_privacy_description_init (GValue* value) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8088 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_value_privacy_description_free_value (GValue* value) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_privacy_description_unref (value->data[0].v_pointer);
+#line 8097 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_publishing_options_pane_value_privacy_description_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_facebook_publishing_options_pane_privacy_description_ref (src_value->data[0].v_pointer);
+#line 8107 "FacebookPublishing.c"
+ } else {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 8111 "FacebookPublishing.c"
+ }
+}
+
+
+static gpointer publishing_facebook_publishing_options_pane_value_privacy_description_peek_pointer (const GValue* value) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 8119 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_publishing_options_pane_value_privacy_description_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 8126 "FacebookPublishing.c"
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* object;
+ object = collect_values[0].v_pointer;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 8133 "FacebookPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 8137 "FacebookPublishing.c"
+ }
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = publishing_facebook_publishing_options_pane_privacy_description_ref (object);
+#line 8141 "FacebookPublishing.c"
+ } else {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8145 "FacebookPublishing.c"
+ }
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 8149 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_publishing_options_pane_value_privacy_description_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFacebookPublishingOptionsPanePrivacyDescription** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!object_p) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 8160 "FacebookPublishing.c"
+ }
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = NULL;
+#line 8166 "FacebookPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 8170 "FacebookPublishing.c"
+ } else {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = publishing_facebook_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer);
+#line 8174 "FacebookPublishing.c"
+ }
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 8178 "FacebookPublishing.c"
+}
+
+
+static GParamSpec* publishing_facebook_publishing_options_pane_param_spec_privacy_description (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription* spec;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 8192 "FacebookPublishing.c"
+}
+
+
+static gpointer publishing_facebook_publishing_options_pane_value_get_privacy_description (const GValue* value) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 8201 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_value_set_privacy_description (GValue* value, gpointer v_object) {
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* old;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION));
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION));
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer);
+#line 8221 "FacebookPublishing.c"
+ } else {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8225 "FacebookPublishing.c"
+ }
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_privacy_description_unref (old);
+#line 8231 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_publishing_options_pane_value_take_privacy_description (GValue* value, gpointer v_object) {
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* old;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION));
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION));
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 8250 "FacebookPublishing.c"
+ } else {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8254 "FacebookPublishing.c"
+ }
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_privacy_description_unref (old);
+#line 8260 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_publishing_options_pane_privacy_description_class_init (PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass * klass) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_privacy_description_parent_class = g_type_class_peek_parent (klass);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass *) klass)->finalize = publishing_facebook_publishing_options_pane_privacy_description_finalize;
+#line 8270 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_privacy_description_instance_init (PublishingFacebookPublishingOptionsPanePrivacyDescription * self) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->ref_count = 1;
+#line 8277 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_privacy_description_finalize (PublishingFacebookPublishingOptionsPanePrivacyDescription* obj) {
+ PublishingFacebookPublishingOptionsPanePrivacyDescription * self;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescription);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->description);
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->privacy_setting);
+#line 8291 "FacebookPublishing.c"
+}
+
+
+static GType publishing_facebook_publishing_options_pane_privacy_description_get_type (void) {
+ static volatile gsize publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_facebook_publishing_options_pane_value_privacy_description_init, publishing_facebook_publishing_options_pane_value_privacy_description_free_value, publishing_facebook_publishing_options_pane_value_privacy_description_copy_value, publishing_facebook_publishing_options_pane_value_privacy_description_peek_pointer, "p", publishing_facebook_publishing_options_pane_value_privacy_description_collect_value, "p", publishing_facebook_publishing_options_pane_value_privacy_description_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_publishing_options_pane_privacy_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookPublishingOptionsPanePrivacyDescription), 0, (GInstanceInitFunc) publishing_facebook_publishing_options_pane_privacy_description_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 publishing_facebook_publishing_options_pane_privacy_description_type_id;
+ publishing_facebook_publishing_options_pane_privacy_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookPublishingOptionsPanePrivacyDescription", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile, publishing_facebook_publishing_options_pane_privacy_description_type_id);
+ }
+ return publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile;
+}
+
+
+static gpointer publishing_facebook_publishing_options_pane_privacy_description_ref (gpointer instance) {
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* self;
+ self = instance;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return instance;
+#line 8316 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_privacy_description_unref (gpointer instance) {
+ PublishingFacebookPublishingOptionsPanePrivacyDescription* self;
+ self = instance;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS (self)->finalize (self);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 8329 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_publishing_options_pane_class_init (PublishingFacebookPublishingOptionsPaneClass * klass) {
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_parent_class = g_type_class_peek_parent (klass);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFacebookPublishingOptionsPanePrivate));
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_facebook_publishing_options_pane_finalize;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_new ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_new ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_ENUM_BOOLEAN, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, PUBLISHING_FACEBOOK_TYPE_RESOLUTION, G_TYPE_BOOLEAN);
+#line 8345 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_facebook_publishing_options_pane_real_get_widget;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_facebook_publishing_options_pane_real_get_preferred_geometry;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_facebook_publishing_options_pane_real_on_pane_installed;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_facebook_publishing_options_pane_real_on_pane_uninstalled;
+#line 8360 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_instance_init (PublishingFacebookPublishingOptionsPane * self) {
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv = PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self);
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->use_existing_radio = NULL;
+#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->create_new_radio = NULL;
+#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->existing_albums_combo = NULL;
+#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->visibility_combo = NULL;
+#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->new_album_entry = NULL;
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->strip_metadata_check = NULL;
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publish_button = NULL;
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->logout_button = NULL;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->how_to_label = NULL;
+#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->albums = NULL;
+#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->albums_length1 = 0;
+#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->_albums_size_ = self->priv->albums_length1;
+#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publisher = NULL;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->resolution_combo = NULL;
+#line 8397 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_publishing_options_pane_finalize (GObject* obj) {
+ PublishingFacebookPublishingOptionsPane * self;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane);
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->use_existing_radio);
+#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->create_new_radio);
+#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->existing_albums_combo);
+#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->visibility_combo);
+#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->new_album_entry);
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->strip_metadata_check);
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->how_to_label);
+#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL);
+#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->publisher);
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_facebook_publishing_options_pane_privacy_description_unref), NULL);
+#line 1027 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->possible_resolutions = (g_free (self->priv->possible_resolutions), NULL);
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->resolution_combo);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_OBJECT_CLASS (publishing_facebook_publishing_options_pane_parent_class)->finalize (obj);
+#line 8439 "FacebookPublishing.c"
+}
+
+
+GType publishing_facebook_publishing_options_pane_get_type (void) {
+ static volatile gsize publishing_facebook_publishing_options_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_publishing_options_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_facebook_publishing_options_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_facebook_publishing_options_pane_type_id;
+ publishing_facebook_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFacebookPublishingOptionsPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_facebook_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_facebook_publishing_options_pane_type_id__volatile, publishing_facebook_publishing_options_pane_type_id);
+ }
+ return publishing_facebook_publishing_options_pane_type_id__volatile;
+}
+
+
+gchar* publishing_facebook_endpoint_to_uri (PublishingFacebookEndpoint self) {
+ gchar* result = NULL;
+#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ switch (self) {
+#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT:
+#line 8463 "FacebookPublishing.c"
+ {
+ gchar* _tmp0_ = NULL;
+#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = g_strdup ("https://graph.facebook.com/");
+#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp0_;
+#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 8472 "FacebookPublishing.c"
+ }
+#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case PUBLISHING_FACEBOOK_ENDPOINT_VIDEO:
+#line 8476 "FacebookPublishing.c"
+ {
+ gchar* _tmp1_ = NULL;
+#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = g_strdup ("https://graph-video.facebook.com/");
+#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp1_;
+#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 8485 "FacebookPublishing.c"
+ }
+#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION:
+#line 8489 "FacebookPublishing.c"
+ {
+ gchar* _tmp2_ = NULL;
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = g_strdup ("https://www.facebook.com/");
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp2_;
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 8498 "FacebookPublishing.c"
+ }
+ default:
+ {
+#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_assert_not_reached ();
+#line 8504 "FacebookPublishing.c"
+ }
+ }
+}
+
+
+GType publishing_facebook_endpoint_get_type (void) {
+ static volatile gsize publishing_facebook_endpoint_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_endpoint_type_id__volatile)) {
+ static const GEnumValue values[] = {{PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT, "PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT", "default"}, {PUBLISHING_FACEBOOK_ENDPOINT_VIDEO, "PUBLISHING_FACEBOOK_ENDPOINT_VIDEO", "video"}, {PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION, "PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION", "test-connection"}, {0, NULL, NULL}};
+ GType publishing_facebook_endpoint_type_id;
+ publishing_facebook_endpoint_type_id = g_enum_register_static ("PublishingFacebookEndpoint", values);
+ g_once_init_leave (&publishing_facebook_endpoint_type_id__volatile, publishing_facebook_endpoint_type_id);
+ }
+ return publishing_facebook_endpoint_type_id__volatile;
+}
+
+
+static gchar* publishing_facebook_graph_message_real_get_uri (PublishingFacebookGraphMessage* self) {
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_facebook_graph_message_get_uri'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 8527 "FacebookPublishing.c"
+}
+
+
+gchar* publishing_facebook_graph_message_get_uri (PublishingFacebookGraphMessage* self) {
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (self), NULL);
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS (self)->get_uri (self);
+#line 8536 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_graph_message_real_get_response_body (PublishingFacebookGraphMessage* self) {
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_critical ("Type `%s' does not implement abstract method `publishing_facebook_graph_message_get_response_body'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 8545 "FacebookPublishing.c"
+}
+
+
+gchar* publishing_facebook_graph_message_get_response_body (PublishingFacebookGraphMessage* self) {
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (self), NULL);
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS (self)->get_response_body (self);
+#line 8554 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookGraphMessage* publishing_facebook_graph_message_construct (GType object_type) {
+ PublishingFacebookGraphMessage* self = NULL;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookGraphMessage*) g_type_create_instance (object_type);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 8564 "FacebookPublishing.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1, gint arg_1, gint arg_2, gpointer data2);
+ register GMarshalFunc_VOID__INT_INT callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (n_param_values == 3);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ data1 = closure->data;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 8583 "FacebookPublishing.c"
+ } else {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ data2 = closure->data;
+#line 8589 "FacebookPublishing.c"
+ }
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ callback (data1, g_value_get_int (param_values + 1), g_value_get_int (param_values + 2), data2);
+#line 8595 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_value_graph_message_init (GValue* value) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8602 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_value_graph_message_free_value (GValue* value) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_message_unref (value->data[0].v_pointer);
+#line 8611 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_value_graph_message_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_facebook_graph_message_ref (src_value->data[0].v_pointer);
+#line 8621 "FacebookPublishing.c"
+ } else {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 8625 "FacebookPublishing.c"
+ }
+}
+
+
+static gpointer publishing_facebook_value_graph_message_peek_pointer (const GValue* value) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 8633 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_value_graph_message_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 8640 "FacebookPublishing.c"
+ PublishingFacebookGraphMessage* object;
+ object = collect_values[0].v_pointer;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 8647 "FacebookPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 8651 "FacebookPublishing.c"
+ }
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = publishing_facebook_graph_message_ref (object);
+#line 8655 "FacebookPublishing.c"
+ } else {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8659 "FacebookPublishing.c"
+ }
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 8663 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_value_graph_message_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFacebookGraphMessage** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!object_p) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 8674 "FacebookPublishing.c"
+ }
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = NULL;
+#line 8680 "FacebookPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 8684 "FacebookPublishing.c"
+ } else {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = publishing_facebook_graph_message_ref (value->data[0].v_pointer);
+#line 8688 "FacebookPublishing.c"
+ }
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 8692 "FacebookPublishing.c"
+}
+
+
+GParamSpec* publishing_facebook_param_spec_graph_message (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFacebookParamSpecGraphMessage* spec;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE), NULL);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 8706 "FacebookPublishing.c"
+}
+
+
+gpointer publishing_facebook_value_get_graph_message (const GValue* value) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE), NULL);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 8715 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_value_set_graph_message (GValue* value, gpointer v_object) {
+ PublishingFacebookGraphMessage* old;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE));
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE));
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_message_ref (value->data[0].v_pointer);
+#line 8735 "FacebookPublishing.c"
+ } else {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8739 "FacebookPublishing.c"
+ }
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_message_unref (old);
+#line 8745 "FacebookPublishing.c"
+ }
+}
+
+
+void publishing_facebook_value_take_graph_message (GValue* value, gpointer v_object) {
+ PublishingFacebookGraphMessage* old;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE));
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE));
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 8764 "FacebookPublishing.c"
+ } else {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8768 "FacebookPublishing.c"
+ }
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_message_unref (old);
+#line 8774 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_graph_message_class_init (PublishingFacebookGraphMessageClass * klass) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_message_parent_class = g_type_class_peek_parent (klass);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookGraphMessageClass *) klass)->finalize = publishing_facebook_graph_message_finalize;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookGraphMessageClass *) klass)->get_uri = publishing_facebook_graph_message_real_get_uri;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookGraphMessageClass *) klass)->get_response_body = publishing_facebook_graph_message_real_get_response_body;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_new ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_new ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_new ("data_transmitted", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_INT, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_INT);
+#line 8794 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_message_instance_init (PublishingFacebookGraphMessage * self) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->ref_count = 1;
+#line 8801 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_message_finalize (PublishingFacebookGraphMessage* obj) {
+ PublishingFacebookGraphMessage * self;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 8811 "FacebookPublishing.c"
+}
+
+
+GType publishing_facebook_graph_message_get_type (void) {
+ static volatile gsize publishing_facebook_graph_message_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_graph_message_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_graph_message_init, publishing_facebook_value_graph_message_free_value, publishing_facebook_value_graph_message_copy_value, publishing_facebook_value_graph_message_peek_pointer, "p", publishing_facebook_value_graph_message_collect_value, "p", publishing_facebook_value_graph_message_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_message_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 publishing_facebook_graph_message_type_id;
+ publishing_facebook_graph_message_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookGraphMessage", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
+ g_once_init_leave (&publishing_facebook_graph_message_type_id__volatile, publishing_facebook_graph_message_type_id);
+ }
+ return publishing_facebook_graph_message_type_id__volatile;
+}
+
+
+gpointer publishing_facebook_graph_message_ref (gpointer instance) {
+ PublishingFacebookGraphMessage* self;
+ self = instance;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return instance;
+#line 8836 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_graph_message_unref (gpointer instance) {
+ PublishingFacebookGraphMessage* self;
+ self = instance;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS (self)->finalize (self);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 8849 "FacebookPublishing.c"
+ }
+}
+
+
+static void _publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued (SoupSession* _sender, SoupMessage* msg, gpointer self) {
+#line 1478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_on_request_unqueued ((PublishingFacebookGraphSession*) self, msg);
+#line 8857 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookGraphSession* publishing_facebook_graph_session_construct (GType object_type) {
+ PublishingFacebookGraphSession* self = NULL;
+ SoupSessionAsync* _tmp0_ = NULL;
+ SoupSession* _tmp1_ = NULL;
+ SoupSession* _tmp2_ = NULL;
+ SoupSession* _tmp3_ = NULL;
+#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookGraphSession*) g_type_create_instance (object_type);
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = (SoupSessionAsync*) soup_session_async_new ();
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->soup_session);
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->soup_session = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, soup_session_get_type (), SoupSession);
+#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->soup_session;
+#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect (_tmp1_, "request-unqueued", (GCallback) _publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued, self);
+#line 1471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = self->priv->soup_session;
+#line 1471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_set (_tmp2_, "timeout", (guint) 15, NULL);
+#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->priv->access_token);
+#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->access_token = NULL;
+#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (self->priv->current_message);
+#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->current_message = NULL;
+#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->soup_session;
+#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_set (_tmp3_, "ssl-use-system-ca-file", TRUE, NULL);
+#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 8897 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookGraphSession* publishing_facebook_graph_session_new (void) {
+#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_graph_session_construct (PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION);
+#line 8904 "FacebookPublishing.c"
+}
+
+
+static gpointer _publishing_facebook_graph_message_ref0 (gpointer self) {
+#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self ? publishing_facebook_graph_message_ref (self) : NULL;
+#line 8911 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_manage_message (PublishingFacebookGraphSession* self, PublishingFacebookGraphMessage* msg) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ PublishingFacebookGraphMessage* _tmp1_ = NULL;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self));
+#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (msg));
+#line 1482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->current_message;
+#line 1482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp0_ == NULL, "current_message == null");
+#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = msg;
+#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _publishing_facebook_graph_message_ref0 (_tmp1_);
+#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (self->priv->current_message);
+#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->current_message = _tmp2_;
+#line 8935 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_unmanage_message (PublishingFacebookGraphSession* self, PublishingFacebookGraphMessage* msg) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self));
+#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (msg));
+#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->current_message;
+#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp0_ != NULL, "current_message != null");
+#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (self->priv->current_message);
+#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->current_message = NULL;
+#line 8953 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, SoupBuffer* chunk, gpointer self) {
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data ((PublishingFacebookGraphSessionGraphMessageImpl*) self, chunk);
+#line 8960 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_on_request_unqueued (PublishingFacebookGraphSession* self, SoupMessage* msg) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ PublishingFacebookGraphSessionGraphMessageImpl* real_message = NULL;
+ PublishingFacebookGraphMessage* _tmp1_ = NULL;
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp2_ = NULL;
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp3_ = NULL;
+ SoupMessage* _tmp4_ = NULL;
+ SoupMessage* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ gboolean _tmp7_ = FALSE;
+ SoupMessage* _tmp8_ = NULL;
+ guint _tmp9_ = 0U;
+ guint _tmp10_ = 0U;
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp21_ = NULL;
+ SoupMessage* _tmp22_ = NULL;
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp23_ = NULL;
+ guint _tmp24_ = 0U;
+ GError* _error_ = NULL;
+ SoupMessage* _tmp25_ = NULL;
+ guint _tmp26_ = 0U;
+ guint _tmp27_ = 0U;
+ GError* _tmp68_ = NULL;
+ GError* _tmp80_ = NULL;
+#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self));
+#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (SOUP_IS_MESSAGE (msg));
+#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->current_message;
+#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp0_ != NULL, "current_message != null");
+#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->current_message;
+#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _publishing_facebook_graph_message_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl));
+#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ real_message = _tmp2_;
+#line 1496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = real_message;
+#line 1496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = _tmp3_->soup_message;
+#line 1496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = msg;
+#line 1496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp4_ == _tmp5_, "real_message.soup_message == msg");
+#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = msg;
+#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp8_, "status-code", &_tmp9_, NULL);
+#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp10_ == ((guint) SOUP_STATUS_IO_ERROR)) {
+#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = TRUE;
+#line 9019 "FacebookPublishing.c"
+ } else {
+ SoupMessage* _tmp11_ = NULL;
+ guint _tmp12_ = 0U;
+ guint _tmp13_ = 0U;
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = msg;
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp11_, "status-code", &_tmp12_, NULL);
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp13_ == ((guint) SOUP_STATUS_MALFORMED);
+#line 9032 "FacebookPublishing.c"
+ }
+#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp7_) {
+#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = TRUE;
+#line 9038 "FacebookPublishing.c"
+ } else {
+ SoupMessage* _tmp14_ = NULL;
+ guint _tmp15_ = 0U;
+ guint _tmp16_ = 0U;
+#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = msg;
+#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp14_, "status-code", &_tmp15_, NULL);
+#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = _tmp15_;
+#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _tmp16_ == ((guint) SOUP_STATUS_TRY_AGAIN);
+#line 9051 "FacebookPublishing.c"
+ }
+#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp6_) {
+#line 9055 "FacebookPublishing.c"
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp17_ = NULL;
+ SoupSession* _tmp18_ = NULL;
+ SoupMessage* _tmp19_ = NULL;
+ SoupMessage* _tmp20_ = NULL;
+#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = real_message;
+#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_->bytes_so_far = 0;
+#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = self->priv->soup_session;
+#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = msg;
+#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = _g_object_ref0 (_tmp19_);
+#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_session_queue_message (_tmp18_, _tmp20_, NULL, NULL);
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (real_message);
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 9076 "FacebookPublishing.c"
+ }
+#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = real_message;
+#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_unmanage_message (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage));
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = msg;
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = real_message;
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("wrote-body-data", soup_message_get_type (), &_tmp24_, NULL, FALSE);
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp22_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp24_, 0, NULL, (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, _tmp23_);
+#line 1511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _error_ = NULL;
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp25_ = msg;
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp25_, "status-code", &_tmp26_, NULL);
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp27_ = _tmp26_;
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ switch (_tmp27_) {
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case SOUP_STATUS_OK:
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case SOUP_STATUS_CREATED:
+#line 9104 "FacebookPublishing.c"
+ {
+#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ break;
+#line 9108 "FacebookPublishing.c"
+ }
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case PUBLISHING_FACEBOOK_EXPIRED_SESSION_STATUS_CODE:
+#line 9112 "FacebookPublishing.c"
+ {
+ GError* _tmp28_ = NULL;
+#line 1520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp28_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION, "OAuth Access Token has Expired. Logout user.");
+#line 1520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_error_);
+#line 1520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _error_ = _tmp28_;
+#line 1522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ break;
+#line 9123 "FacebookPublishing.c"
+ }
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case SOUP_STATUS_CANT_RESOLVE:
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case SOUP_STATUS_CANT_RESOLVE_PROXY:
+#line 9129 "FacebookPublishing.c"
+ {
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ SoupMessage* _tmp32_ = NULL;
+ guint _tmp33_ = 0U;
+ guint _tmp34_ = 0U;
+ GError* _tmp35_ = NULL;
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp29_ = real_message;
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp30_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage));
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp31_ = _tmp30_;
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp32_ = msg;
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp32_, "status-code", &_tmp33_, NULL);
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp34_ = _tmp33_;
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp35_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to resolve %s (error code %u)", _tmp31_, _tmp34_);
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_error_);
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _error_ = _tmp35_;
+#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp31_);
+#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ break;
+#line 9160 "FacebookPublishing.c"
+ }
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case SOUP_STATUS_CANT_CONNECT:
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ case SOUP_STATUS_CANT_CONNECT_PROXY:
+#line 9166 "FacebookPublishing.c"
+ {
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+ gchar* _tmp38_ = NULL;
+ SoupMessage* _tmp39_ = NULL;
+ guint _tmp40_ = 0U;
+ guint _tmp41_ = 0U;
+ GError* _tmp42_ = NULL;
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp36_ = real_message;
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp37_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage));
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp38_ = _tmp37_;
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp39_ = msg;
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp39_, "status-code", &_tmp40_, NULL);
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp41_ = _tmp40_;
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp42_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to connect to %s (error code %u)", _tmp38_, _tmp41_);
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_error_);
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _error_ = _tmp42_;
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp38_);
+#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ break;
+#line 9197 "FacebookPublishing.c"
+ }
+ default:
+ {
+ SoupMessage* _tmp43_ = NULL;
+ guint _tmp44_ = 0U;
+ guint _tmp45_ = 0U;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp43_ = msg;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp43_, "status-code", &_tmp44_, NULL);
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_ = _tmp44_;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp45_ >= ((guint) 100)) {
+#line 9212 "FacebookPublishing.c"
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp46_ = NULL;
+ gchar* _tmp47_ = NULL;
+ gchar* _tmp48_ = NULL;
+ SoupMessage* _tmp49_ = NULL;
+ guint _tmp50_ = 0U;
+ guint _tmp51_ = 0U;
+ SoupMessage* _tmp52_ = NULL;
+ gchar* _tmp53_ = NULL;
+ gchar* _tmp54_ = NULL;
+ gchar* _tmp55_ = NULL;
+ GError* _tmp56_ = NULL;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp46_ = real_message;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp47_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage));
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp48_ = _tmp47_;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp49_ = msg;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp49_, "status-code", &_tmp50_, NULL);
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp51_ = _tmp50_;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp52_ = msg;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp52_, "reason-phrase", &_tmp53_, NULL);
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp54_ = _tmp53_;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp55_ = _tmp54_;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp56_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Service %s returned HTTP status code %u %s", _tmp48_, _tmp51_, _tmp55_);
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_error_);
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _error_ = _tmp56_;
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp55_);
+#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp48_);
+#line 9254 "FacebookPublishing.c"
+ } else {
+ SoupMessage* _tmp57_ = NULL;
+ gchar* _tmp58_ = NULL;
+ gchar* _tmp59_ = NULL;
+ gchar* _tmp60_ = NULL;
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp61_ = NULL;
+ gchar* _tmp62_ = NULL;
+ gchar* _tmp63_ = NULL;
+ SoupMessage* _tmp64_ = NULL;
+ guint _tmp65_ = 0U;
+ guint _tmp66_ = 0U;
+ GError* _tmp67_ = NULL;
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp57_ = msg;
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp57_, "reason-phrase", &_tmp58_, NULL);
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp59_ = _tmp58_;
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp60_ = _tmp59_;
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:1544: %s", _tmp60_);
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp60_);
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp61_ = real_message;
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp62_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage));
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp63_ = _tmp62_;
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp64_ = msg;
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_object_get (_tmp64_, "status-code", &_tmp65_, NULL);
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp66_ = _tmp65_;
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp67_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Failure communicating with %s (error code %u)", _tmp63_, _tmp66_);
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_error_);
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _error_ = _tmp67_;
+#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp63_);
+#line 9299 "FacebookPublishing.c"
+ }
+#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ break;
+#line 9303 "FacebookPublishing.c"
+ }
+ }
+#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp68_ = _error_;
+#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp68_ == NULL) {
+#line 9310 "FacebookPublishing.c"
+ gboolean _tmp69_ = FALSE;
+ SoupMessage* _tmp70_ = NULL;
+ SoupMessageBody* _tmp71_ = NULL;
+ guint8* _tmp72_ = NULL;
+ gint _tmp72__length1 = 0;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp70_ = msg;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp71_ = _tmp70_->response_body;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp72_ = _tmp71_->data;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp72__length1 = (gint) _tmp71_->length;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp72_ == NULL) {
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp69_ = TRUE;
+#line 9328 "FacebookPublishing.c"
+ } else {
+ SoupMessage* _tmp73_ = NULL;
+ SoupMessageBody* _tmp74_ = NULL;
+ guint8* _tmp75_ = NULL;
+ gint _tmp75__length1 = 0;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp73_ = msg;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp74_ = _tmp73_->response_body;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp75_ = _tmp74_->data;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp75__length1 = (gint) _tmp74_->length;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp69_ = _tmp75__length1 == 0;
+#line 9344 "FacebookPublishing.c"
+ }
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp69_) {
+#line 9348 "FacebookPublishing.c"
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp76_ = NULL;
+ gchar* _tmp77_ = NULL;
+ gchar* _tmp78_ = NULL;
+ GError* _tmp79_ = NULL;
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp76_ = real_message;
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp77_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage));
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp78_ = _tmp77_;
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp79_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "No response data from %s", _tmp78_);
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_error_);
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _error_ = _tmp79_;
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp78_);
+#line 9367 "FacebookPublishing.c"
+ }
+ }
+#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp80_ = _error_;
+#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp80_ == NULL) {
+#line 9374 "FacebookPublishing.c"
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp81_ = NULL;
+#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp81_ = real_message;
+#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), "completed");
+#line 9380 "FacebookPublishing.c"
+ } else {
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp82_ = NULL;
+ GError* _tmp83_ = NULL;
+#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp82_ = real_message;
+#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp83_ = _error_;
+#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), "failed", _tmp83_);
+#line 9390 "FacebookPublishing.c"
+ }
+#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_error_);
+#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (real_message);
+#line 9396 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_graph_session_authenticate (PublishingFacebookGraphSession* self, const gchar* access_token) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self));
+#line 1564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (access_token != NULL);
+#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = access_token;
+#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->priv->access_token);
+#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->access_token = _tmp1_;
+#line 1566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (self, "authenticated");
+#line 9417 "FacebookPublishing.c"
+}
+
+
+gboolean publishing_facebook_graph_session_is_authenticated (PublishingFacebookGraphSession* self) {
+ gboolean result = FALSE;
+ const gchar* _tmp0_ = NULL;
+#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), FALSE);
+#line 1570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->access_token;
+#line 1570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp0_ != NULL;
+#line 1570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 9432 "FacebookPublishing.c"
+}
+
+
+gchar* publishing_facebook_graph_session_get_access_token (PublishingFacebookGraphSession* self) {
+ gchar* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL);
+#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = publishing_facebook_graph_session_is_authenticated (self);
+#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp0_, "is_authenticated()");
+#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->access_token;
+#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp2_;
+#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 9455 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_endpoint_test (PublishingFacebookGraphSession* self) {
+ PublishingFacebookGraphMessage* result = NULL;
+ PublishingFacebookGraphSessionGraphEndpointProbeMessage* _tmp0_ = NULL;
+#line 1578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL);
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = publishing_facebook_graph_session_graph_endpoint_probe_message_new (self);
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage);
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 9470 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_query (PublishingFacebookGraphSession* self, const gchar* resource_path) {
+ PublishingFacebookGraphMessage* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingFacebookGraphSessionGraphQueryMessage* _tmp2_ = NULL;
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL);
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (resource_path != NULL, NULL);
+#line 1583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = resource_path;
+#line 1583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->access_token;
+#line 1583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = publishing_facebook_graph_session_graph_query_message_new (self, _tmp0_, _tmp1_);
+#line 1583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage);
+#line 1583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 9493 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_upload (PublishingFacebookGraphSession* self, const gchar* resource_path, SpitPublishingPublishable* publishable, gboolean suppress_titling, const gchar* resource_privacy) {
+ PublishingFacebookGraphMessage* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ SpitPublishingPublishable* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ const gchar* _tmp4_ = NULL;
+ PublishingFacebookGraphSessionGraphUploadMessage* _tmp5_ = NULL;
+#line 1586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL);
+#line 1586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (resource_path != NULL, NULL);
+#line 1586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->access_token;
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = resource_path;
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = publishable;
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = suppress_titling;
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = resource_privacy;
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = publishing_facebook_graph_session_graph_upload_message_new (self, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_);
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage);
+#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 9527 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_create_album (PublishingFacebookGraphSession* self, const gchar* album_name, const gchar* privacy) {
+ PublishingFacebookGraphMessage* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingFacebookGraphSessionGraphCreateAlbumMessage* _tmp3_ = NULL;
+#line 1592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL);
+#line 1592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (album_name != NULL, NULL);
+#line 1592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (privacy != NULL, NULL);
+#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->access_token;
+#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = album_name;
+#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = privacy;
+#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = publishing_facebook_graph_session_graph_create_album_message_new (self, _tmp0_, _tmp1_, _tmp2_);
+#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage);
+#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 9555 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_graph_session_send_message (PublishingFacebookGraphSession* self, PublishingFacebookGraphMessage* message) {
+ PublishingFacebookGraphSessionGraphMessageImpl* real_message = NULL;
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp1_ = NULL;
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp2_ = NULL;
+ SoupMessage* _tmp3_ = NULL;
+ SoupURI* _tmp4_ = NULL;
+ SoupURI* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp10_ = NULL;
+ gboolean _tmp11_ = FALSE;
+#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self));
+#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 1597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 1597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _publishing_facebook_graph_message_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl));
+#line 1597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ real_message = _tmp1_;
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = real_message;
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = _tmp2_->soup_message;
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = soup_message_get_uri (_tmp3_);
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = soup_uri_to_string (_tmp5_, FALSE);
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = g_strconcat ("making HTTP request to URI: ", _tmp7_, NULL);
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_debug ("FacebookPublishing.vala:1599: %s", _tmp9_);
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = real_message;
+#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = publishing_facebook_graph_session_graph_message_impl_prepare_for_transmission (_tmp10_);
+#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp11_) {
+#line 9611 "FacebookPublishing.c"
+ PublishingFacebookGraphMessage* _tmp12_ = NULL;
+ SoupSession* _tmp13_ = NULL;
+ PublishingFacebookGraphSessionGraphMessageImpl* _tmp14_ = NULL;
+ SoupMessage* _tmp15_ = NULL;
+ SoupMessage* _tmp16_ = NULL;
+#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = message;
+#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_manage_message (self, _tmp12_);
+#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = self->priv->soup_session;
+#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = real_message;
+#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = _tmp14_->soup_message;
+#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = _g_object_ref0 (_tmp15_);
+#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_session_queue_message (_tmp13_, _tmp16_, NULL, NULL);
+#line 9631 "FacebookPublishing.c"
+ }
+#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (real_message);
+#line 9635 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_graph_session_stop_transactions (PublishingFacebookGraphSession* self) {
+ SoupSession* _tmp0_ = NULL;
+#line 1607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self));
+#line 1608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->soup_session;
+#line 1608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_session_abort (_tmp0_);
+#line 9647 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookGraphSessionGraphMessageImpl* publishing_facebook_graph_session_graph_message_impl_construct (GType object_type, PublishingFacebookGraphSession* host_session, PublishingRESTSupportHttpMethod method, const gchar* relative_uri, const gchar* access_token, PublishingFacebookEndpoint endpoint) {
+ PublishingFacebookGraphSessionGraphMessageImpl* self = NULL;
+ PublishingRESTSupportHttpMethod _tmp0_ = 0;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ PublishingFacebookGraphSession* _tmp3_ = NULL;
+ gchar* endpoint_uri = NULL;
+ PublishingFacebookEndpoint _tmp4_ = 0;
+ gchar* _tmp5_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL);
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (relative_uri != NULL, NULL);
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (access_token != NULL, NULL);
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookGraphSessionGraphMessageImpl*) publishing_facebook_graph_message_construct (object_type);
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = method;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->method = _tmp0_;
+#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = access_token;
+#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->access_token);
+#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->access_token = _tmp2_;
+#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = host_session;
+#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->host_session = _tmp3_;
+#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->bytes_so_far = 0;
+#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = endpoint;
+#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = publishing_facebook_endpoint_to_uri (_tmp4_);
+#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ endpoint_uri = _tmp5_;
+#line 9693 "FacebookPublishing.c"
+ {
+ GRegex* starting_slashes = NULL;
+ GRegex* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GRegex* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = g_regex_new ("^/+", 0, 0, &_inner_error_);
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ starting_slashes = _tmp6_;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_inner_error_->domain == G_REGEX_ERROR) {
+#line 9713 "FacebookPublishing.c"
+ goto __catch5_g_regex_error;
+ }
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (endpoint_uri);
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 9724 "FacebookPublishing.c"
+ }
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = starting_slashes;
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = relative_uri;
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = g_regex_replace (_tmp8_, _tmp9_, (gssize) -1, 0, "", 0, &_inner_error_);
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp10_;
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_regex_unref0 (starting_slashes);
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_inner_error_->domain == G_REGEX_ERROR) {
+#line 9740 "FacebookPublishing.c"
+ goto __catch5_g_regex_error;
+ }
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_regex_unref0 (starting_slashes);
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (endpoint_uri);
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 9753 "FacebookPublishing.c"
+ }
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = endpoint_uri;
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = _tmp7_;
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = NULL;
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = g_strconcat (_tmp11_, _tmp13_, NULL);
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->uri);
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->uri = _tmp14_;
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp13_);
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_regex_unref0 (starting_slashes);
+#line 9775 "FacebookPublishing.c"
+ }
+ goto __finally5;
+ __catch5_g_regex_error:
+ {
+ GError* err = NULL;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ err = _inner_error_;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _inner_error_ = NULL;
+#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_assert_not_reached ();
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (err);
+#line 9789 "FacebookPublishing.c"
+ }
+ __finally5:
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (endpoint_uri);
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 9802 "FacebookPublishing.c"
+ }
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (endpoint_uri);
+#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 9808 "FacebookPublishing.c"
+}
+
+
+static gboolean publishing_facebook_graph_session_graph_message_impl_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self) {
+ gboolean result = FALSE;
+#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = TRUE;
+#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 9818 "FacebookPublishing.c"
+}
+
+
+gboolean publishing_facebook_graph_session_graph_message_impl_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self) {
+#line 1327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL (self), FALSE);
+#line 1327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL_GET_CLASS (self)->prepare_for_transmission (self);
+#line 9827 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_graph_session_graph_message_impl_real_get_uri (PublishingFacebookGraphMessage* base) {
+ PublishingFacebookGraphSessionGraphMessageImpl * self;
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl);
+#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->uri;
+#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp1_;
+#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 9846 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_graph_session_graph_message_impl_real_get_response_body (PublishingFacebookGraphMessage* base) {
+ PublishingFacebookGraphSessionGraphMessageImpl * self;
+ gchar* result = NULL;
+ SoupMessage* _tmp0_ = NULL;
+ SoupMessageBody* _tmp1_ = NULL;
+ guint8* _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ gchar* _tmp3_ = NULL;
+#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl);
+#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->soup_message;
+#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = _tmp0_->response_body;
+#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _tmp1_->data;
+#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2__length1 = (gint) _tmp1_->length;
+#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = g_strdup ((const gchar*) _tmp2_);
+#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = _tmp3_;
+#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 9874 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data (PublishingFacebookGraphSessionGraphMessageImpl* self, SoupBuffer* chunk) {
+ gint _tmp0_ = 0;
+ SoupBuffer* _tmp1_ = NULL;
+ gsize _tmp2_ = 0UL;
+ gint _tmp3_ = 0;
+ SoupMessage* _tmp4_ = NULL;
+ SoupMessageBody* _tmp5_ = NULL;
+ gint64 _tmp6_ = 0LL;
+#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL (self));
+#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (chunk != NULL);
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->bytes_so_far;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = chunk;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _tmp1_->length;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->bytes_so_far = _tmp0_ + ((gint) _tmp2_);
+#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->bytes_so_far;
+#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = self->soup_message;
+#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _tmp4_->request_body;
+#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _tmp5_->length;
+#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), "data-transmitted", _tmp3_, (gint) _tmp6_);
+#line 9908 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_message_impl_class_init (PublishingFacebookGraphSessionGraphMessageImplClass * klass) {
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_graph_message_impl_parent_class = g_type_class_peek_parent (klass);
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookGraphMessageClass *) klass)->finalize = publishing_facebook_graph_session_graph_message_impl_finalize;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookGraphSessionGraphMessageImplClass *) klass)->prepare_for_transmission = publishing_facebook_graph_session_graph_message_impl_real_prepare_for_transmission;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookGraphMessageClass *) klass)->get_uri = publishing_facebook_graph_session_graph_message_impl_real_get_uri;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookGraphMessageClass *) klass)->get_response_body = publishing_facebook_graph_session_graph_message_impl_real_get_response_body;
+#line 9923 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_message_impl_instance_init (PublishingFacebookGraphSessionGraphMessageImpl * self) {
+}
+
+
+static void publishing_facebook_graph_session_graph_message_impl_finalize (PublishingFacebookGraphMessage* obj) {
+ PublishingFacebookGraphSessionGraphMessageImpl * self;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl);
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->uri);
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->access_token);
+#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->soup_message);
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ PUBLISHING_FACEBOOK_GRAPH_MESSAGE_CLASS (publishing_facebook_graph_session_graph_message_impl_parent_class)->finalize (obj);
+#line 9943 "FacebookPublishing.c"
+}
+
+
+static GType publishing_facebook_graph_session_graph_message_impl_get_type (void) {
+ static volatile gsize publishing_facebook_graph_session_graph_message_impl_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_graph_session_graph_message_impl_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphMessageImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_message_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphMessageImpl), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_message_impl_instance_init, NULL };
+ GType publishing_facebook_graph_session_graph_message_impl_type_id;
+ publishing_facebook_graph_session_graph_message_impl_type_id = g_type_register_static (PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, "PublishingFacebookGraphSessionGraphMessageImpl", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
+ g_once_init_leave (&publishing_facebook_graph_session_graph_message_impl_type_id__volatile, publishing_facebook_graph_session_graph_message_impl_type_id);
+ }
+ return publishing_facebook_graph_session_graph_message_impl_type_id__volatile;
+}
+
+
+static void _vala_SoupURI_free (SoupURI* self) {
+#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_boxed_free (soup_uri_get_type (), self);
+#line 9962 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookGraphSessionGraphQueryMessage* publishing_facebook_graph_session_graph_query_message_construct (GType object_type, PublishingFacebookGraphSession* host_session, const gchar* relative_uri, const gchar* access_token) {
+ PublishingFacebookGraphSessionGraphQueryMessage* self = NULL;
+ PublishingFacebookGraphSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ SoupURI* destination_uri = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ SoupURI* _tmp9_ = NULL;
+ SoupURI* _tmp10_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp11_ = 0;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ SoupMessage* _tmp14_ = NULL;
+ SoupMessage* _tmp15_ = NULL;
+#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL);
+#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (relative_uri != NULL, NULL);
+#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (access_token != NULL, NULL);
+#line 1349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = host_session;
+#line 1349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = relative_uri;
+#line 1349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = access_token;
+#line 1349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookGraphSessionGraphQueryMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, _tmp0_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, _tmp1_, _tmp2_, PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT);
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri;
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = g_strconcat (_tmp3_, "?access_token=", NULL);
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = access_token;
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = g_strconcat (_tmp5_, _tmp6_, NULL);
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = soup_uri_new (_tmp8_);
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ destination_uri = _tmp10_;
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method;
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = publishing_rest_support_http_method_to_string (_tmp11_);
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = soup_message_new_from_uri (_tmp13_, destination_uri);
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message);
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp14_;
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp13_);
+#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message;
+#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect (_tmp15_, "wrote-body-data", (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl));
+#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __vala_SoupURI_free0 (destination_uri);
+#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 10043 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookGraphSessionGraphQueryMessage* publishing_facebook_graph_session_graph_query_message_new (PublishingFacebookGraphSession* host_session, const gchar* relative_uri, const gchar* access_token) {
+#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_graph_session_graph_query_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, host_session, relative_uri, access_token);
+#line 10050 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_query_message_class_init (PublishingFacebookGraphSessionGraphQueryMessageClass * klass) {
+#line 1346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_graph_query_message_parent_class = g_type_class_peek_parent (klass);
+#line 10057 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_query_message_instance_init (PublishingFacebookGraphSessionGraphQueryMessage * self) {
+}
+
+
+static GType publishing_facebook_graph_session_graph_query_message_get_type (void) {
+ static volatile gsize publishing_facebook_graph_session_graph_query_message_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_graph_session_graph_query_message_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphQueryMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_query_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphQueryMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_query_message_instance_init, NULL };
+ GType publishing_facebook_graph_session_graph_query_message_type_id;
+ publishing_facebook_graph_session_graph_query_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphQueryMessage", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_facebook_graph_session_graph_query_message_type_id__volatile, publishing_facebook_graph_session_graph_query_message_type_id);
+ }
+ return publishing_facebook_graph_session_graph_query_message_type_id__volatile;
+}
+
+
+static PublishingFacebookGraphSessionGraphEndpointProbeMessage* publishing_facebook_graph_session_graph_endpoint_probe_message_construct (GType object_type, PublishingFacebookGraphSession* host_session) {
+ PublishingFacebookGraphSessionGraphEndpointProbeMessage* self = NULL;
+ PublishingFacebookGraphSession* _tmp0_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp1_ = 0;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ SoupURI* _tmp5_ = NULL;
+ SoupURI* _tmp6_ = NULL;
+ SoupMessage* _tmp7_ = NULL;
+ SoupMessage* _tmp8_ = NULL;
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL);
+#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = host_session;
+#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookGraphSessionGraphEndpointProbeMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, _tmp0_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, "/", "", PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION);
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method;
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = publishing_rest_support_http_method_to_string (_tmp1_);
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri;
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = soup_uri_new (_tmp4_);
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = soup_message_new_from_uri (_tmp3_, _tmp6_);
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message);
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp7_;
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __vala_SoupURI_free0 (_tmp6_);
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message;
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect (_tmp8_, "wrote-body-data", (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl));
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 10122 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookGraphSessionGraphEndpointProbeMessage* publishing_facebook_graph_session_graph_endpoint_probe_message_new (PublishingFacebookGraphSession* host_session) {
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_graph_session_graph_endpoint_probe_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, host_session);
+#line 10129 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_endpoint_probe_message_class_init (PublishingFacebookGraphSessionGraphEndpointProbeMessageClass * klass) {
+#line 1357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_graph_endpoint_probe_message_parent_class = g_type_class_peek_parent (klass);
+#line 10136 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_endpoint_probe_message_instance_init (PublishingFacebookGraphSessionGraphEndpointProbeMessage * self) {
+}
+
+
+static GType publishing_facebook_graph_session_graph_endpoint_probe_message_get_type (void) {
+ static volatile gsize publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphEndpointProbeMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_endpoint_probe_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphEndpointProbeMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_endpoint_probe_message_instance_init, NULL };
+ GType publishing_facebook_graph_session_graph_endpoint_probe_message_type_id;
+ publishing_facebook_graph_session_graph_endpoint_probe_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphEndpointProbeMessage", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile, publishing_facebook_graph_session_graph_endpoint_probe_message_type_id);
+ }
+ return publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile;
+}
+
+
+static gchar* g_date_time_to_string (GDateTime* self) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 2785 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 2786 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = g_date_time_format (self, "%FT%H:%M:%S%z");
+#line 2786 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp0_;
+#line 2786 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 10167 "FacebookPublishing.c"
+}
+
+
+static void _vala_SoupMultipart_free (SoupMultipart* self) {
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_boxed_free (soup_multipart_get_type (), self);
+#line 10174 "FacebookPublishing.c"
+}
+
+
+static void _vala_SoupBuffer_free (SoupBuffer* self) {
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_boxed_free (soup_buffer_get_type (), self);
+#line 10181 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookGraphSessionGraphUploadMessage* publishing_facebook_graph_session_graph_upload_message_construct (GType object_type, PublishingFacebookGraphSession* host_session, const gchar* access_token, const gchar* relative_uri, SpitPublishingPublishable* publishable, gboolean suppress_titling, const gchar* resource_privacy) {
+ PublishingFacebookGraphSessionGraphUploadMessage* self = NULL;
+ PublishingFacebookEndpoint _tmp0_ = 0;
+ SpitPublishingPublishable* _tmp1_ = NULL;
+ SpitPublishingPublisherMediaType _tmp2_ = 0;
+ PublishingFacebookGraphSession* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ SpitPublishingPublishable* _tmp7_ = NULL;
+ SpitPublishingPublisherMediaType _tmp8_ = 0;
+ SpitPublishingPublishable* _tmp10_ = NULL;
+ SpitPublishingPublishable* _tmp11_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp21_ = 0;
+ gchar* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ SoupURI* _tmp25_ = NULL;
+ SoupURI* _tmp26_ = NULL;
+ SoupMessage* _tmp27_ = NULL;
+ SoupMessage* _tmp28_ = NULL;
+ guint8* payload = NULL;
+ GMappedFile* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gint payload_length1 = 0;
+ gint _payload_size_ = 0;
+ GMappedFile* _tmp31_ = NULL;
+ gsize _tmp32_ = 0UL;
+ gint _tmp33_ = 0;
+ SoupBuffer* image_data = NULL;
+ guint8* _tmp34_ = NULL;
+ gint _tmp34__length1 = 0;
+ SoupBuffer* _tmp35_ = NULL;
+ SoupMultipart* mp_envelope = NULL;
+ SoupMultipart* _tmp36_ = NULL;
+ SoupMultipart* _tmp37_ = NULL;
+ const gchar* _tmp38_ = NULL;
+ SpitPublishingPublishable* _tmp39_ = NULL;
+ SpitPublishingPublisherMediaType _tmp40_ = 0;
+ gchar* publishable_title = NULL;
+ SpitPublishingPublishable* _tmp43_ = NULL;
+ gchar* _tmp44_ = NULL;
+ gboolean _tmp45_ = FALSE;
+ gboolean _tmp46_ = FALSE;
+ gchar* publishable_comment = NULL;
+ SpitPublishingPublishable* _tmp50_ = NULL;
+ gchar* _tmp51_ = NULL;
+ gboolean _tmp52_ = FALSE;
+ gboolean _tmp53_ = FALSE;
+ gboolean _tmp57_ = FALSE;
+ const gchar* _tmp64_ = NULL;
+ SpitPublishingPublishable* _tmp65_ = NULL;
+ SpitPublishingPublisherMediaType _tmp66_ = 0;
+ gchar* source_file_mime_type = NULL;
+ gchar* _tmp67_ = NULL;
+ SoupMultipart* _tmp68_ = NULL;
+ SpitPublishingPublishable* _tmp69_ = NULL;
+ GFile* _tmp70_ = NULL;
+ GFile* _tmp71_ = NULL;
+ gchar* _tmp72_ = NULL;
+ gchar* _tmp73_ = NULL;
+ const gchar* _tmp74_ = NULL;
+ SoupBuffer* _tmp75_ = NULL;
+ SoupMultipart* _tmp76_ = NULL;
+ SoupMessage* _tmp77_ = NULL;
+ SoupMessageHeaders* _tmp78_ = NULL;
+ SoupMessage* _tmp79_ = NULL;
+ SoupMessageBody* _tmp80_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL);
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (access_token != NULL, NULL);
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (relative_uri != NULL, NULL);
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = publishable;
+#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = spit_publishing_publishable_get_media_type (_tmp1_);
+#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp2_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = PUBLISHING_FACEBOOK_ENDPOINT_VIDEO;
+#line 10270 "FacebookPublishing.c"
+ } else {
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT;
+#line 10274 "FacebookPublishing.c"
+ }
+#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = host_session;
+#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = relative_uri;
+#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = access_token;
+#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookGraphSessionGraphUploadMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, _tmp3_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, _tmp4_, _tmp5_, _tmp0_);
+#line 1381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = publishable;
+#line 1381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = spit_publishing_publishable_get_media_type (_tmp7_);
+#line 1381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp8_ != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 1381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = TRUE;
+#line 10292 "FacebookPublishing.c"
+ } else {
+ const gchar* _tmp9_ = NULL;
+#line 1382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = resource_privacy;
+#line 1382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _tmp9_ != NULL;
+#line 10299 "FacebookPublishing.c"
+ }
+#line 1381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp6_, "publishable.get_media_type() != Spit.Publishing.Publisher.MediaType.VIDEO || resource_privacy != null");
+#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = publishable;
+#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = _g_object_ref0 (_tmp10_);
+#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->publishable);
+#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publishable = _tmp11_;
+#line 10311 "FacebookPublishing.c"
+ {
+ GMappedFile* _tmp12_ = NULL;
+ SpitPublishingPublishable* _tmp13_ = NULL;
+ GFile* _tmp14_ = NULL;
+ GFile* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ GMappedFile* _tmp18_ = NULL;
+ GMappedFile* _tmp19_ = NULL;
+ GMappedFile* _tmp20_ = NULL;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = publishable;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = spit_publishing_publishable_get_serialized_file (_tmp13_);
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = _tmp14_;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = g_file_get_path (_tmp15_);
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = _tmp16_;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = g_mapped_file_new (_tmp17_, FALSE, &_inner_error_);
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = _tmp18_;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp17_);
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (_tmp15_);
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = _tmp19_;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_inner_error_->domain == G_FILE_ERROR) {
+#line 10346 "FacebookPublishing.c"
+ goto __catch6_g_file_error;
+ }
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 10355 "FacebookPublishing.c"
+ }
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = _tmp12_;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = NULL;
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_mapped_file_unref0 (self->priv->mapped_file);
+#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->mapped_file = _tmp20_;
+#line 1387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_mapped_file_unref0 (_tmp12_);
+#line 10367 "FacebookPublishing.c"
+ }
+ goto __finally6;
+ __catch6_g_file_error:
+ {
+ GError* e = NULL;
+#line 1387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ e = _inner_error_;
+#line 1387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _inner_error_ = NULL;
+#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (e);
+#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 10381 "FacebookPublishing.c"
+ }
+ __finally6:
+#line 1387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 1387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 10392 "FacebookPublishing.c"
+ }
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method;
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = publishing_rest_support_http_method_to_string (_tmp21_);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = _tmp22_;
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp24_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri;
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp25_ = soup_uri_new (_tmp24_);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp26_ = _tmp25_;
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp27_ = soup_message_new_from_uri (_tmp23_, _tmp26_);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp27_;
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __vala_SoupURI_free0 (_tmp26_);
+#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp23_);
+#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp28_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message;
+#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect (_tmp28_, "wrote-body-data", (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl));
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp29_ = self->priv->mapped_file;
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp30_ = g_mapped_file_get_contents (_tmp29_);
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ payload = (guint8*) _tmp30_;
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ payload_length1 = -1;
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _payload_size_ = payload_length1;
+#line 1398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp31_ = self->priv->mapped_file;
+#line 1398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp32_ = g_mapped_file_get_length (_tmp31_);
+#line 1398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ payload_length1 = (gint) _tmp32_;
+#line 1398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp33_ = payload_length1;
+#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp34_ = payload;
+#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp34__length1 = payload_length1;
+#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp35_ = soup_buffer_new (SOUP_MEMORY_TEMPORARY, _tmp34_, _tmp34__length1);
+#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ image_data = _tmp35_;
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp36_ = soup_multipart_new ("multipart/form-data");
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ mp_envelope = _tmp36_;
+#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp37_ = mp_envelope;
+#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp38_ = access_token;
+#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_append_form_string (_tmp37_, "access_token", _tmp38_);
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp39_ = publishable;
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp40_ = spit_publishing_publishable_get_media_type (_tmp39_);
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp40_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 10462 "FacebookPublishing.c"
+ SoupMultipart* _tmp41_ = NULL;
+ const gchar* _tmp42_ = NULL;
+#line 1407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp41_ = mp_envelope;
+#line 1407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp42_ = resource_privacy;
+#line 1407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_append_form_string (_tmp41_, "privacy", _tmp42_);
+#line 10471 "FacebookPublishing.c"
+ }
+#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp43_ = publishable;
+#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp44_ = spit_publishing_publishable_get_param_string (_tmp43_, "title");
+#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishable_title = _tmp44_;
+#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp46_ = suppress_titling;
+#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp46_) {
+#line 10483 "FacebookPublishing.c"
+ const gchar* _tmp47_ = NULL;
+#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp47_ = publishable_title;
+#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_ = _tmp47_ != NULL;
+#line 10489 "FacebookPublishing.c"
+ } else {
+#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp45_ = FALSE;
+#line 10493 "FacebookPublishing.c"
+ }
+#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp45_) {
+#line 10497 "FacebookPublishing.c"
+ SoupMultipart* _tmp48_ = NULL;
+ const gchar* _tmp49_ = NULL;
+#line 1412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp48_ = mp_envelope;
+#line 1412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp49_ = publishable_title;
+#line 1412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_append_form_string (_tmp48_, "name", _tmp49_);
+#line 10506 "FacebookPublishing.c"
+ }
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp50_ = publishable;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp51_ = spit_publishing_publishable_get_param_string (_tmp50_, "comment");
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishable_comment = _tmp51_;
+#line 1416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp53_ = suppress_titling;
+#line 1416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp53_) {
+#line 10518 "FacebookPublishing.c"
+ const gchar* _tmp54_ = NULL;
+#line 1416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp54_ = publishable_comment;
+#line 1416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp52_ = _tmp54_ != NULL;
+#line 10524 "FacebookPublishing.c"
+ } else {
+#line 1416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp52_ = FALSE;
+#line 10528 "FacebookPublishing.c"
+ }
+#line 1416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp52_) {
+#line 10532 "FacebookPublishing.c"
+ SoupMultipart* _tmp55_ = NULL;
+ const gchar* _tmp56_ = NULL;
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp55_ = mp_envelope;
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp56_ = publishable_comment;
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_append_form_string (_tmp55_, "message", _tmp56_);
+#line 10541 "FacebookPublishing.c"
+ }
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp57_ = suppress_titling;
+#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!_tmp57_) {
+#line 10547 "FacebookPublishing.c"
+ SoupMultipart* _tmp58_ = NULL;
+ SpitPublishingPublishable* _tmp59_ = NULL;
+ GDateTime* _tmp60_ = NULL;
+ GDateTime* _tmp61_ = NULL;
+ gchar* _tmp62_ = NULL;
+ gchar* _tmp63_ = NULL;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp58_ = mp_envelope;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp59_ = publishable;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp60_ = spit_publishing_publishable_get_exposure_date_time (_tmp59_);
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp61_ = _tmp60_;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp62_ = g_date_time_to_string (_tmp61_);
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp63_ = _tmp62_;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_append_form_string (_tmp58_, "backdated_time", _tmp63_);
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp63_);
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_date_time_unref0 (_tmp61_);
+#line 10572 "FacebookPublishing.c"
+ }
+#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp65_ = publishable;
+#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp66_ = spit_publishing_publishable_get_media_type (_tmp65_);
+#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp66_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp64_ = "video";
+#line 10582 "FacebookPublishing.c"
+ } else {
+#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp64_ = "image/jpeg";
+#line 10586 "FacebookPublishing.c"
+ }
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp67_ = g_strdup (_tmp64_);
+#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ source_file_mime_type = _tmp67_;
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp68_ = mp_envelope;
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp69_ = publishable;
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp70_ = spit_publishing_publishable_get_serialized_file (_tmp69_);
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp71_ = _tmp70_;
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp72_ = g_file_get_basename (_tmp71_);
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp73_ = _tmp72_;
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp74_ = source_file_mime_type;
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp75_ = image_data;
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_append_form_file (_tmp68_, "source", _tmp73_, _tmp74_, _tmp75_);
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp73_);
+#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (_tmp71_);
+#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp76_ = mp_envelope;
+#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp77_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message;
+#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp78_ = _tmp77_->request_headers;
+#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp79_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message;
+#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp80_ = _tmp79_->request_body;
+#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_to_message (_tmp76_, _tmp78_, _tmp80_);
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (source_file_mime_type);
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (publishable_comment);
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (publishable_title);
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __vala_SoupMultipart_free0 (mp_envelope);
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __vala_SoupBuffer_free0 (image_data);
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 10638 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookGraphSessionGraphUploadMessage* publishing_facebook_graph_session_graph_upload_message_new (PublishingFacebookGraphSession* host_session, const gchar* access_token, const gchar* relative_uri, SpitPublishingPublishable* publishable, gboolean suppress_titling, const gchar* resource_privacy) {
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_graph_session_graph_upload_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, host_session, access_token, relative_uri, publishable, suppress_titling, resource_privacy);
+#line 10645 "FacebookPublishing.c"
+}
+
+
+static gboolean publishing_facebook_graph_session_graph_upload_message_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* base) {
+ PublishingFacebookGraphSessionGraphUploadMessage * self;
+ gboolean result = FALSE;
+ GMappedFile* _tmp0_ = NULL;
+#line 1432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessage);
+#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->mapped_file;
+#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 10659 "FacebookPublishing.c"
+ SpitPublishingPublishable* _tmp1_ = NULL;
+ GFile* _tmp2_ = NULL;
+ GFile* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->publishable;
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = spit_publishing_publishable_get_serialized_file (_tmp1_);
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = g_file_get_path (_tmp3_);
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = g_strdup_printf ("File %s is unavailable.", _tmp5_);
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp7_);
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), "failed", _tmp9_);
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_error_free0 (_tmp9_);
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (_tmp3_);
+#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = FALSE;
+#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 10701 "FacebookPublishing.c"
+ } else {
+#line 1438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = TRUE;
+#line 1438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 10707 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_graph_session_graph_upload_message_class_init (PublishingFacebookGraphSessionGraphUploadMessageClass * klass) {
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_graph_upload_message_parent_class = g_type_class_peek_parent (klass);
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookGraphMessageClass *) klass)->finalize = publishing_facebook_graph_session_graph_upload_message_finalize;
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFacebookGraphSessionGraphUploadMessagePrivate));
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookGraphSessionGraphMessageImplClass *) klass)->prepare_for_transmission = publishing_facebook_graph_session_graph_upload_message_real_prepare_for_transmission;
+#line 10721 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_upload_message_instance_init (PublishingFacebookGraphSessionGraphUploadMessage * self) {
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv = PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_GET_PRIVATE (self);
+#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->mapped_file = NULL;
+#line 10730 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_upload_message_finalize (PublishingFacebookGraphMessage* obj) {
+ PublishingFacebookGraphSessionGraphUploadMessage * self;
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessage);
+#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_mapped_file_unref0 (self->priv->mapped_file);
+#line 1369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->publishable);
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ PUBLISHING_FACEBOOK_GRAPH_MESSAGE_CLASS (publishing_facebook_graph_session_graph_upload_message_parent_class)->finalize (obj);
+#line 10744 "FacebookPublishing.c"
+}
+
+
+static GType publishing_facebook_graph_session_graph_upload_message_get_type (void) {
+ static volatile gsize publishing_facebook_graph_session_graph_upload_message_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_graph_session_graph_upload_message_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphUploadMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_upload_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphUploadMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_upload_message_instance_init, NULL };
+ GType publishing_facebook_graph_session_graph_upload_message_type_id;
+ publishing_facebook_graph_session_graph_upload_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphUploadMessage", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_facebook_graph_session_graph_upload_message_type_id__volatile, publishing_facebook_graph_session_graph_upload_message_type_id);
+ }
+ return publishing_facebook_graph_session_graph_upload_message_type_id__volatile;
+}
+
+
+static PublishingFacebookGraphSessionGraphCreateAlbumMessage* publishing_facebook_graph_session_graph_create_album_message_construct (GType object_type, PublishingFacebookGraphSession* host_session, const gchar* access_token, const gchar* album_name, const gchar* album_privacy) {
+ PublishingFacebookGraphSessionGraphCreateAlbumMessage* self = NULL;
+ PublishingFacebookGraphSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ const gchar* _tmp3_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp5_ = 0;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ SoupURI* _tmp9_ = NULL;
+ SoupURI* _tmp10_ = NULL;
+ SoupMessage* _tmp11_ = NULL;
+ SoupMultipart* mp_envelope = NULL;
+ SoupMultipart* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ SoupMessage* _tmp16_ = NULL;
+ SoupMessageHeaders* _tmp17_ = NULL;
+ SoupMessage* _tmp18_ = NULL;
+ SoupMessageBody* _tmp19_ = NULL;
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL);
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (access_token != NULL, NULL);
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (album_name != NULL, NULL);
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (album_privacy != NULL, NULL);
+#line 1446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = host_session;
+#line 1446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = access_token;
+#line 1446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookGraphSessionGraphCreateAlbumMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, _tmp0_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, "/me/albums", _tmp1_, PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT);
+#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = album_privacy;
+#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp3_ != NULL) {
+#line 10800 "FacebookPublishing.c"
+ const gchar* _tmp4_ = NULL;
+#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = album_privacy;
+#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = g_strcmp0 (_tmp4_, "") != 0;
+#line 10806 "FacebookPublishing.c"
+ } else {
+#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = FALSE;
+#line 10810 "FacebookPublishing.c"
+ }
+#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _vala_assert (_tmp2_, "album_privacy != null && album_privacy != \"\"");
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method;
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = publishing_rest_support_http_method_to_string (_tmp5_);
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri;
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = soup_uri_new (_tmp8_);
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = soup_message_new_from_uri (_tmp7_, _tmp10_);
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message);
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp11_;
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __vala_SoupURI_free0 (_tmp10_);
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = soup_multipart_new ("multipart/form-data");
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ mp_envelope = _tmp12_;
+#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = access_token;
+#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_append_form_string (mp_envelope, "access_token", _tmp13_);
+#line 1455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = album_name;
+#line 1455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_append_form_string (mp_envelope, "name", _tmp14_);
+#line 1456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = album_privacy;
+#line 1456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_append_form_string (mp_envelope, "privacy", _tmp15_);
+#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message;
+#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = _tmp16_->request_headers;
+#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message;
+#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = _tmp18_->request_body;
+#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ soup_multipart_to_message (mp_envelope, _tmp17_, _tmp19_);
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ __vala_SoupMultipart_free0 (mp_envelope);
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 10866 "FacebookPublishing.c"
+}
+
+
+static PublishingFacebookGraphSessionGraphCreateAlbumMessage* publishing_facebook_graph_session_graph_create_album_message_new (PublishingFacebookGraphSession* host_session, const gchar* access_token, const gchar* album_name, const gchar* album_privacy) {
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_graph_session_graph_create_album_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, host_session, access_token, album_name, album_privacy);
+#line 10873 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_create_album_message_class_init (PublishingFacebookGraphSessionGraphCreateAlbumMessageClass * klass) {
+#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_graph_create_album_message_parent_class = g_type_class_peek_parent (klass);
+#line 10880 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_graph_create_album_message_instance_init (PublishingFacebookGraphSessionGraphCreateAlbumMessage * self) {
+}
+
+
+static GType publishing_facebook_graph_session_graph_create_album_message_get_type (void) {
+ static volatile gsize publishing_facebook_graph_session_graph_create_album_message_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_graph_session_graph_create_album_message_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphCreateAlbumMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_create_album_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphCreateAlbumMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_create_album_message_instance_init, NULL };
+ GType publishing_facebook_graph_session_graph_create_album_message_type_id;
+ publishing_facebook_graph_session_graph_create_album_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphCreateAlbumMessage", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_facebook_graph_session_graph_create_album_message_type_id__volatile, publishing_facebook_graph_session_graph_create_album_message_type_id);
+ }
+ return publishing_facebook_graph_session_graph_create_album_message_type_id__volatile;
+}
+
+
+static void publishing_facebook_value_graph_session_init (GValue* value) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 10903 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_value_graph_session_free_value (GValue* value) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_unref (value->data[0].v_pointer);
+#line 10912 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_value_graph_session_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_facebook_graph_session_ref (src_value->data[0].v_pointer);
+#line 10922 "FacebookPublishing.c"
+ } else {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 10926 "FacebookPublishing.c"
+ }
+}
+
+
+static gpointer publishing_facebook_value_graph_session_peek_pointer (const GValue* value) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 10934 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_value_graph_session_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 10941 "FacebookPublishing.c"
+ PublishingFacebookGraphSession* object;
+ object = collect_values[0].v_pointer;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 10948 "FacebookPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 10952 "FacebookPublishing.c"
+ }
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = publishing_facebook_graph_session_ref (object);
+#line 10956 "FacebookPublishing.c"
+ } else {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 10960 "FacebookPublishing.c"
+ }
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 10964 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_value_graph_session_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFacebookGraphSession** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!object_p) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 10975 "FacebookPublishing.c"
+ }
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = NULL;
+#line 10981 "FacebookPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 10985 "FacebookPublishing.c"
+ } else {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = publishing_facebook_graph_session_ref (value->data[0].v_pointer);
+#line 10989 "FacebookPublishing.c"
+ }
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 10993 "FacebookPublishing.c"
+}
+
+
+GParamSpec* publishing_facebook_param_spec_graph_session (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFacebookParamSpecGraphSession* spec;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION), NULL);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 11007 "FacebookPublishing.c"
+}
+
+
+gpointer publishing_facebook_value_get_graph_session (const GValue* value) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION), NULL);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 11016 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_value_set_graph_session (GValue* value, gpointer v_object) {
+ PublishingFacebookGraphSession* old;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION));
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION));
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_ref (value->data[0].v_pointer);
+#line 11036 "FacebookPublishing.c"
+ } else {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 11040 "FacebookPublishing.c"
+ }
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_unref (old);
+#line 11046 "FacebookPublishing.c"
+ }
+}
+
+
+void publishing_facebook_value_take_graph_session (GValue* value, gpointer v_object) {
+ PublishingFacebookGraphSession* old;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION));
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION));
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 11065 "FacebookPublishing.c"
+ } else {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 11069 "FacebookPublishing.c"
+ }
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_unref (old);
+#line 11075 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_graph_session_class_init (PublishingFacebookGraphSessionClass * klass) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_parent_class = g_type_class_peek_parent (klass);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookGraphSessionClass *) klass)->finalize = publishing_facebook_graph_session_finalize;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFacebookGraphSessionPrivate));
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_new ("authenticated", PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 11089 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_instance_init (PublishingFacebookGraphSession * self) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv = PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_PRIVATE (self);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->ref_count = 1;
+#line 11098 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_graph_session_finalize (PublishingFacebookGraphSession* obj) {
+ PublishingFacebookGraphSession * self;
+ SoupSession* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSession);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 1478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->soup_session;
+#line 1478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("request-unqueued", soup_session_get_type (), &_tmp1_, NULL, FALSE);
+#line 1478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued, self);
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (self->priv->soup_session);
+#line 1465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (self->priv->access_token);
+#line 1466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (self->priv->current_message);
+#line 11122 "FacebookPublishing.c"
+}
+
+
+GType publishing_facebook_graph_session_get_type (void) {
+ static volatile gsize publishing_facebook_graph_session_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_graph_session_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_graph_session_init, publishing_facebook_value_graph_session_free_value, publishing_facebook_value_graph_session_copy_value, publishing_facebook_value_graph_session_peek_pointer, "p", publishing_facebook_value_graph_session_collect_value, "p", publishing_facebook_value_graph_session_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSession), 0, (GInstanceInitFunc) publishing_facebook_graph_session_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 publishing_facebook_graph_session_type_id;
+ publishing_facebook_graph_session_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookGraphSession", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_facebook_graph_session_type_id__volatile, publishing_facebook_graph_session_type_id);
+ }
+ return publishing_facebook_graph_session_type_id__volatile;
+}
+
+
+gpointer publishing_facebook_graph_session_ref (gpointer instance) {
+ PublishingFacebookGraphSession* self;
+ self = instance;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return instance;
+#line 11147 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_graph_session_unref (gpointer instance) {
+ PublishingFacebookGraphSession* self;
+ self = instance;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_CLASS (self)->finalize (self);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 11160 "FacebookPublishing.c"
+ }
+}
+
+
+static SpitPublishingPublishable** _vala_array_dup3 (SpitPublishingPublishable** self, int length) {
+ SpitPublishingPublishable** result;
+ int i;
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result = g_new0 (SpitPublishingPublishable*, length + 1);
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 11172 "FacebookPublishing.c"
+ SpitPublishingPublishable* _tmp0_ = NULL;
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ result[i] = _tmp0_;
+#line 11178 "FacebookPublishing.c"
+ }
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return result;
+#line 11182 "FacebookPublishing.c"
+}
+
+
+static gpointer _publishing_facebook_graph_session_ref0 (gpointer self) {
+#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self ? publishing_facebook_graph_session_ref (self) : NULL;
+#line 11189 "FacebookPublishing.c"
+}
+
+
+static gpointer _publishing_facebook_publishing_parameters_ref0 (gpointer self) {
+#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self ? publishing_facebook_publishing_parameters_ref (self) : NULL;
+#line 11196 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookUploader* publishing_facebook_uploader_construct (GType object_type, PublishingFacebookGraphSession* session, PublishingFacebookPublishingParameters* publishing_params, SpitPublishingPublishable** publishables, int publishables_length1) {
+ PublishingFacebookUploader* self = NULL;
+ SpitPublishingPublishable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingFacebookGraphSession* _tmp2_ = NULL;
+ PublishingFacebookGraphSession* _tmp3_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp4_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp5_ = NULL;
+#line 1622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (session), NULL);
+#line 1622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (publishing_params), NULL);
+#line 1622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = (PublishingFacebookUploader*) g_type_create_instance (object_type);
+#line 1624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->current_file = 0;
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = publishables;
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0__length1 = publishables_length1;
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup3 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publishables = _tmp1_;
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publishables_length1 = _tmp1__length1;
+#line 1625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->_publishables_size_ = self->priv->publishables_length1;
+#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = session;
+#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = _publishing_facebook_graph_session_ref0 (_tmp2_);
+#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_session_unref0 (self->priv->session);
+#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->session = _tmp3_;
+#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = publishing_params;
+#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = _publishing_facebook_publishing_parameters_ref0 (_tmp4_);
+#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params);
+#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publishing_params = _tmp5_;
+#line 1622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return self;
+#line 11252 "FacebookPublishing.c"
+}
+
+
+PublishingFacebookUploader* publishing_facebook_uploader_new (PublishingFacebookGraphSession* session, PublishingFacebookPublishingParameters* publishing_params, SpitPublishingPublishable** publishables, int publishables_length1) {
+#line 1622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return publishing_facebook_uploader_construct (PUBLISHING_FACEBOOK_TYPE_UPLOADER, session, publishing_params, publishables, publishables_length1);
+#line 11259 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted (PublishingFacebookGraphMessage* _sender, gint bytes_sent_so_far, gint total_bytes, gpointer self) {
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_on_chunk_transmitted ((PublishingFacebookUploader*) self, bytes_sent_so_far, total_bytes);
+#line 11266 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, gpointer self) {
+#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_on_message_completed ((PublishingFacebookUploader*) self, _sender);
+#line 11273 "FacebookPublishing.c"
+}
+
+
+static void _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, GError* err, gpointer self) {
+#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_on_message_failed ((PublishingFacebookUploader*) self, _sender, err);
+#line 11280 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_uploader_send_current_file (PublishingFacebookUploader* self) {
+ SpitPublishingPublishable* publishable = NULL;
+ SpitPublishingPublishable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gint _tmp1_ = 0;
+ SpitPublishingPublishable* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ GFile* file = NULL;
+ SpitPublishingPublishable* _tmp4_ = NULL;
+ GFile* _tmp5_ = NULL;
+ GFile* _tmp6_ = NULL;
+ gchar* _tmp8_ = NULL;
+ SpitPublishingPublishable* _tmp9_ = NULL;
+ SpitPublishingPublisherMediaType _tmp10_ = 0;
+ gchar* resource_uri = NULL;
+ gchar* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ SpitPublishingPublishable* _tmp18_ = NULL;
+ SpitPublishingPublisherMediaType _tmp19_ = 0;
+ gchar* resource_privacy = NULL;
+ gchar* _tmp22_ = NULL;
+ PublishingFacebookGraphMessage* upload_message = NULL;
+ PublishingFacebookGraphSession* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ SpitPublishingPublishable* _tmp25_ = NULL;
+ PublishingFacebookPublishingParameters* _tmp26_ = NULL;
+ gboolean _tmp27_ = FALSE;
+ const gchar* _tmp28_ = NULL;
+ PublishingFacebookGraphMessage* _tmp29_ = NULL;
+ PublishingFacebookGraphMessage* _tmp30_ = NULL;
+ PublishingFacebookGraphMessage* _tmp31_ = NULL;
+ PublishingFacebookGraphMessage* _tmp32_ = NULL;
+ PublishingFacebookGraphSession* _tmp33_ = NULL;
+ PublishingFacebookGraphMessage* _tmp34_ = NULL;
+#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self));
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->publishables;
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0__length1 = self->priv->publishables_length1;
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->current_file;
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = _tmp0_[_tmp1_];
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishable = _tmp3_;
+#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = publishable;
+#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = spit_publishing_publishable_get_serialized_file (_tmp4_);
+#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ file = _tmp5_;
+#line 1635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = file;
+#line 1635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp6_ == NULL) {
+#line 11342 "FacebookPublishing.c"
+ gint _tmp7_ = 0;
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = self->priv->current_file;
+#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->current_file = _tmp7_ + 1;
+#line 1637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (file);
+#line 1637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (publishable);
+#line 1637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return;
+#line 11354 "FacebookPublishing.c"
+ }
+#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = publishable;
+#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = spit_publishing_publishable_get_media_type (_tmp9_);
+#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp10_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) {
+#line 11362 "FacebookPublishing.c"
+ PublishingFacebookPublishingParameters* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp11_ = self->priv->publishing_params;
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp12_ = publishing_facebook_publishing_parameters_get_target_album_id (_tmp11_);
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp14_ = g_strdup_printf ("/%s/photos", _tmp13_);
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _tmp14_;
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp13_);
+#line 11381 "FacebookPublishing.c"
+ } else {
+ gchar* _tmp15_ = NULL;
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp15_ = g_strdup ("/me/videos");
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = _tmp15_;
+#line 11390 "FacebookPublishing.c"
+ }
+#line 1640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp16_ = g_strdup (_tmp8_);
+#line 1640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ resource_uri = _tmp16_;
+#line 1644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp18_ = publishable;
+#line 1644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp19_ = spit_publishing_publishable_get_media_type (_tmp18_);
+#line 1644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp19_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 11402 "FacebookPublishing.c"
+ PublishingFacebookPublishingParameters* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp20_ = self->priv->publishing_params;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp21_ = _tmp20_->privacy_object;
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = _tmp21_;
+#line 11411 "FacebookPublishing.c"
+ } else {
+#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp17_ = NULL;
+#line 11415 "FacebookPublishing.c"
+ }
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp22_ = g_strdup (_tmp17_);
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ resource_privacy = _tmp22_;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp23_ = self->priv->session;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp24_ = resource_uri;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp25_ = publishable;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp26_ = self->priv->publishing_params;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp27_ = _tmp26_->strip_metadata;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp28_ = resource_privacy;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp29_ = publishing_facebook_graph_session_new_upload (_tmp23_, _tmp24_, _tmp25_, _tmp27_, _tmp28_);
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ upload_message = _tmp29_;
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp30_ = upload_message;
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect (_tmp30_, "data-transmitted", (GCallback) _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted, self);
+#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp31_ = upload_message;
+#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect (_tmp31_, "completed", (GCallback) _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed, self);
+#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp32_ = upload_message;
+#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_connect (_tmp32_, "failed", (GCallback) _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed, self);
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp33_ = self->priv->session;
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp34_ = upload_message;
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_graph_session_send_message (_tmp33_, _tmp34_);
+#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_message_unref0 (upload_message);
+#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (resource_privacy);
+#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (resource_uri);
+#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (file);
+#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _g_object_unref0 (publishable);
+#line 11467 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_uploader_send_files (PublishingFacebookUploader* self) {
+#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self));
+#line 1657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->current_file = 0;
+#line 1658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_send_current_file (self);
+#line 11478 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_uploader_on_chunk_transmitted (PublishingFacebookUploader* self, gint bytes_written_so_far, gint total_bytes) {
+ gdouble file_span = 0.0;
+ SpitPublishingPublishable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gdouble this_file_fraction_complete = 0.0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+ gdouble fraction_complete = 0.0;
+ gint _tmp3_ = 0;
+ gdouble _tmp4_ = 0.0;
+ gdouble _tmp5_ = 0.0;
+ gdouble _tmp6_ = 0.0;
+ SpitPublishingProgressCallback _tmp7_ = NULL;
+ void* _tmp7__target = NULL;
+#line 1661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self));
+#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = self->priv->publishables;
+#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0__length1 = self->priv->publishables_length1;
+#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ file_span = 1.0 / _tmp0__length1;
+#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = bytes_written_so_far;
+#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = total_bytes;
+#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ this_file_fraction_complete = ((gdouble) _tmp1_) / _tmp2_;
+#line 1664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp3_ = self->priv->current_file;
+#line 1664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = file_span;
+#line 1664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp5_ = this_file_fraction_complete;
+#line 1664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = file_span;
+#line 1664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ fraction_complete = (_tmp3_ * _tmp4_) + (_tmp5_ * _tmp6_);
+#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = self->priv->status_updated;
+#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7__target = self->priv->status_updated_target;
+#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp7_ != NULL) {
+#line 11526 "FacebookPublishing.c"
+ SpitPublishingProgressCallback _tmp8_ = NULL;
+ void* _tmp8__target = NULL;
+ gint _tmp9_ = 0;
+ gdouble _tmp10_ = 0.0;
+#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = self->priv->status_updated;
+#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8__target = self->priv->status_updated_target;
+#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = self->priv->current_file;
+#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp10_ = fraction_complete;
+#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ (_tmp9_ + 1, _tmp10_, _tmp8__target);
+#line 11541 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_uploader_on_message_completed (PublishingFacebookUploader* self, PublishingFacebookGraphMessage* message) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingFacebookGraphMessage* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+ gint _tmp6_ = 0;
+ gint _tmp7_ = 0;
+ SpitPublishingPublishable** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+#line 1671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self));
+#line 1671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 1672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 1672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("data-transmitted", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE);
+#line 1672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted, self);
+#line 1673 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = message;
+#line 1673 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp3_, NULL, FALSE);
+#line 1673 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed, self);
+#line 1674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = message;
+#line 1674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp5_, NULL, FALSE);
+#line 1674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed, self);
+#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = self->priv->current_file;
+#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->current_file = _tmp6_ + 1;
+#line 1677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp7_ = self->priv->current_file;
+#line 1677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8_ = self->priv->publishables;
+#line 1677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp8__length1 = self->priv->publishables_length1;
+#line 1677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp7_ < _tmp8__length1) {
+#line 1678 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_send_current_file (self);
+#line 11593 "FacebookPublishing.c"
+ } else {
+ gint _tmp9_ = 0;
+#line 1680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp9_ = self->priv->current_file;
+#line 1680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (self, "upload-complete", _tmp9_);
+#line 11600 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_uploader_on_message_failed (PublishingFacebookUploader* self, PublishingFacebookGraphMessage* message, GError* _error_) {
+ PublishingFacebookGraphMessage* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFacebookGraphMessage* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingFacebookGraphMessage* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+ GError* _tmp6_ = NULL;
+#line 1684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self));
+#line 1684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message));
+#line 1685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = message;
+#line 1685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("data-transmitted", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE);
+#line 1685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted, self);
+#line 1686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp2_ = message;
+#line 1686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp3_, NULL, FALSE);
+#line 1686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed, self);
+#line 1687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp4_ = message;
+#line 1687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp5_, NULL, FALSE);
+#line 1687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed, self);
+#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp6_ = _error_;
+#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_emit_by_name (self, "upload-error", _tmp6_);
+#line 11639 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_uploader_upload (PublishingFacebookUploader* self, SpitPublishingProgressCallback status_updated, void* status_updated_target) {
+ SpitPublishingProgressCallback _tmp0_ = NULL;
+ void* _tmp0__target = NULL;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 1692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self));
+#line 1693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0_ = status_updated;
+#line 1693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp0__target = status_updated_target;
+#line 1693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->status_updated = _tmp0_;
+#line 1693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->status_updated_target = _tmp0__target;
+#line 1695 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1_ = self->priv->publishables;
+#line 1695 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _tmp1__length1 = self->priv->publishables_length1;
+#line 1695 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (_tmp1__length1 > 0) {
+#line 1696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_send_files (self);
+#line 11666 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_value_uploader_init (GValue* value) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 11674 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_value_uploader_free_value (GValue* value) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_unref (value->data[0].v_pointer);
+#line 11683 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_value_uploader_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_facebook_uploader_ref (src_value->data[0].v_pointer);
+#line 11693 "FacebookPublishing.c"
+ } else {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 11697 "FacebookPublishing.c"
+ }
+}
+
+
+static gpointer publishing_facebook_value_uploader_peek_pointer (const GValue* value) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 11705 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_value_uploader_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 11712 "FacebookPublishing.c"
+ PublishingFacebookUploader* object;
+ object = collect_values[0].v_pointer;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 11719 "FacebookPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.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 11723 "FacebookPublishing.c"
+ }
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = publishing_facebook_uploader_ref (object);
+#line 11727 "FacebookPublishing.c"
+ } else {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 11731 "FacebookPublishing.c"
+ }
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 11735 "FacebookPublishing.c"
+}
+
+
+static gchar* publishing_facebook_value_uploader_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFacebookUploader** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!object_p) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 11746 "FacebookPublishing.c"
+ }
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = NULL;
+#line 11752 "FacebookPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 11756 "FacebookPublishing.c"
+ } else {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ *object_p = publishing_facebook_uploader_ref (value->data[0].v_pointer);
+#line 11760 "FacebookPublishing.c"
+ }
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return NULL;
+#line 11764 "FacebookPublishing.c"
+}
+
+
+GParamSpec* publishing_facebook_param_spec_uploader (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFacebookParamSpecUploader* spec;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_UPLOADER), NULL);
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 11778 "FacebookPublishing.c"
+}
+
+
+gpointer publishing_facebook_value_get_uploader (const GValue* value) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_UPLOADER), NULL);
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return value->data[0].v_pointer;
+#line 11787 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_value_set_uploader (GValue* value, gpointer v_object) {
+ PublishingFacebookUploader* old;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_UPLOADER));
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_UPLOADER));
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_ref (value->data[0].v_pointer);
+#line 11807 "FacebookPublishing.c"
+ } else {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 11811 "FacebookPublishing.c"
+ }
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_unref (old);
+#line 11817 "FacebookPublishing.c"
+ }
+}
+
+
+void publishing_facebook_value_take_uploader (GValue* value, gpointer v_object) {
+ PublishingFacebookUploader* old;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_UPLOADER));
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (v_object) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_UPLOADER));
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 11836 "FacebookPublishing.c"
+ } else {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 11840 "FacebookPublishing.c"
+ }
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (old) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_unref (old);
+#line 11846 "FacebookPublishing.c"
+ }
+}
+
+
+static void publishing_facebook_uploader_class_init (PublishingFacebookUploaderClass * klass) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ publishing_facebook_uploader_parent_class = g_type_class_peek_parent (klass);
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ ((PublishingFacebookUploaderClass *) klass)->finalize = publishing_facebook_uploader_finalize;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFacebookUploaderPrivate));
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_new ("upload_complete", PUBLISHING_FACEBOOK_TYPE_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_new ("upload_error", PUBLISHING_FACEBOOK_TYPE_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER);
+#line 11862 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_uploader_instance_init (PublishingFacebookUploader * self) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv = PUBLISHING_FACEBOOK_UPLOADER_GET_PRIVATE (self);
+#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->status_updated = NULL;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->ref_count = 1;
+#line 11873 "FacebookPublishing.c"
+}
+
+
+static void publishing_facebook_uploader_finalize (PublishingFacebookUploader* obj) {
+ PublishingFacebookUploader * self;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploader);
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 1615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_graph_session_unref0 (self->priv->session);
+#line 1616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params);
+#line 11889 "FacebookPublishing.c"
+}
+
+
+GType publishing_facebook_uploader_get_type (void) {
+ static volatile gsize publishing_facebook_uploader_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_facebook_uploader_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_uploader_init, publishing_facebook_value_uploader_free_value, publishing_facebook_value_uploader_copy_value, publishing_facebook_value_uploader_peek_pointer, "p", publishing_facebook_value_uploader_collect_value, "p", publishing_facebook_value_uploader_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookUploader), 0, (GInstanceInitFunc) publishing_facebook_uploader_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 publishing_facebook_uploader_type_id;
+ publishing_facebook_uploader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookUploader", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_facebook_uploader_type_id__volatile, publishing_facebook_uploader_type_id);
+ }
+ return publishing_facebook_uploader_type_id__volatile;
+}
+
+
+gpointer publishing_facebook_uploader_ref (gpointer instance) {
+ PublishingFacebookUploader* self;
+ self = instance;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ return instance;
+#line 11914 "FacebookPublishing.c"
+}
+
+
+void publishing_facebook_uploader_unref (gpointer instance) {
+ PublishingFacebookUploader* self;
+ self = instance;
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ PUBLISHING_FACEBOOK_UPLOADER_GET_CLASS (self)->finalize (self);
+#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 11927 "FacebookPublishing.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/plugins/shotwell-publishing/FacebookPublishing.vala b/plugins/shotwell-publishing/FacebookPublishing.vala
index f6cccb6..608e5c5 100644
--- a/plugins/shotwell-publishing/FacebookPublishing.vala
+++ b/plugins/shotwell-publishing/FacebookPublishing.vala
@@ -11,7 +11,8 @@ public class FacebookService : Object, Spit.Pluggable, Spit.Publishing.Service {
public FacebookService(GLib.File resource_directory) {
if (icon_pixbuf_set == null)
- icon_pixbuf_set = Resources.load_icon_set(resource_directory.get_child(ICON_FILENAME));
+ icon_pixbuf_set = Resources.load_from_resource
+ (Resources.RESOURCE_PATH + "/" + ICON_FILENAME);
}
public int get_pluggable_interface(int min_host_interface, int max_host_interface) {
@@ -364,9 +365,8 @@ public class FacebookPublisher : Spit.Publishing.Publisher, GLib.Object {
try {
// the trailing get_path() is required, since add_from_file can't cope
// with File objects directly and expects a pathname instead.
- builder.add_from_file(
- host.get_module_file().get_parent().
- get_child("facebook_publishing_options_pane.glade").get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH + "/" +
+ "facebook_publishing_options_pane.ui");
} catch (Error e) {
warning("Could not parse UI file! Error: %s.", e.message);
host.post_error(
diff --git a/plugins/shotwell-publishing/FlickrPublishing.c b/plugins/shotwell-publishing/FlickrPublishing.c
new file mode 100644
index 0000000..b4d74aa
--- /dev/null
+++ b/plugins/shotwell-publishing/FlickrPublishing.c
@@ -0,0 +1,10304 @@
+/* FlickrPublishing.c generated by valac 0.32.1, the Vala compiler
+ * generated from FlickrPublishing.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 <shotwell-plugin-dev-1.0.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include "shotwell-plugin-common.h"
+#include <glib/gi18n-lib.h>
+#include <float.h>
+#include <math.h>
+#include <gtk/gtk.h>
+#include <libxml/tree.h>
+#include <gee.h>
+#include <libsoup/soup.h>
+#include <gexiv2/gexiv2.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_FLICKR_SERVICE (flickr_service_get_type ())
+#define FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLICKR_SERVICE, FlickrService))
+#define FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLICKR_SERVICE, FlickrServiceClass))
+#define IS_FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLICKR_SERVICE))
+#define IS_FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLICKR_SERVICE))
+#define FLICKR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLICKR_SERVICE, FlickrServiceClass))
+
+typedef struct _FlickrService FlickrService;
+typedef struct _FlickrServiceClass FlickrServiceClass;
+typedef struct _FlickrServicePrivate FlickrServicePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER (publishing_flickr_flickr_publisher_get_type ())
+#define PUBLISHING_FLICKR_FLICKR_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher))
+#define PUBLISHING_FLICKR_FLICKR_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisherClass))
+#define PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER))
+#define PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER))
+#define PUBLISHING_FLICKR_FLICKR_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisherClass))
+
+typedef struct _PublishingFlickrFlickrPublisher PublishingFlickrFlickrPublisher;
+typedef struct _PublishingFlickrFlickrPublisherClass PublishingFlickrFlickrPublisherClass;
+
+#define PUBLISHING_FLICKR_TYPE_USER_KIND (publishing_flickr_user_kind_get_type ())
+
+#define PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION (publishing_flickr_visibility_specification_get_type ())
+#define PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecification))
+#define PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecificationClass))
+#define PUBLISHING_FLICKR_IS_VISIBILITY_SPECIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION))
+#define PUBLISHING_FLICKR_IS_VISIBILITY_SPECIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION))
+#define PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecificationClass))
+
+typedef struct _PublishingFlickrVisibilitySpecification PublishingFlickrVisibilitySpecification;
+typedef struct _PublishingFlickrVisibilitySpecificationClass PublishingFlickrVisibilitySpecificationClass;
+typedef struct _PublishingFlickrVisibilitySpecificationPrivate PublishingFlickrVisibilitySpecificationPrivate;
+typedef struct _PublishingFlickrParamSpecVisibilitySpecification PublishingFlickrParamSpecVisibilitySpecification;
+
+#define PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS (publishing_flickr_publishing_parameters_get_type ())
+#define PUBLISHING_FLICKR_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParameters))
+#define PUBLISHING_FLICKR_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParametersClass))
+#define PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_FLICKR_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParametersClass))
+
+typedef struct _PublishingFlickrPublishingParameters PublishingFlickrPublishingParameters;
+typedef struct _PublishingFlickrPublishingParametersClass PublishingFlickrPublishingParametersClass;
+typedef struct _PublishingFlickrPublishingParametersPrivate PublishingFlickrPublishingParametersPrivate;
+#define _publishing_flickr_visibility_specification_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_visibility_specification_unref (var), NULL)))
+typedef struct _PublishingFlickrParamSpecPublishingParameters PublishingFlickrParamSpecPublishingParameters;
+typedef struct _PublishingFlickrFlickrPublisherPrivate PublishingFlickrFlickrPublisherPrivate;
+
+#define PUBLISHING_FLICKR_TYPE_SESSION (publishing_flickr_session_get_type ())
+#define PUBLISHING_FLICKR_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_SESSION, PublishingFlickrSession))
+#define PUBLISHING_FLICKR_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_SESSION, PublishingFlickrSessionClass))
+#define PUBLISHING_FLICKR_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_SESSION))
+#define PUBLISHING_FLICKR_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_SESSION))
+#define PUBLISHING_FLICKR_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_SESSION, PublishingFlickrSessionClass))
+
+typedef struct _PublishingFlickrSession PublishingFlickrSession;
+typedef struct _PublishingFlickrSessionClass PublishingFlickrSessionClass;
+
+#define PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE (publishing_flickr_publishing_options_pane_get_type ())
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane))
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPaneClass))
+#define PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPaneClass))
+
+typedef struct _PublishingFlickrPublishingOptionsPane PublishingFlickrPublishingOptionsPane;
+typedef struct _PublishingFlickrPublishingOptionsPaneClass PublishingFlickrPublishingOptionsPaneClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL)))
+#define _publishing_flickr_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_publishing_parameters_unref (var), NULL)))
+
+#define PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE (publishing_flickr_pin_entry_pane_get_type ())
+#define PUBLISHING_FLICKR_PIN_ENTRY_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, PublishingFlickrPinEntryPane))
+#define PUBLISHING_FLICKR_PIN_ENTRY_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, PublishingFlickrPinEntryPaneClass))
+#define PUBLISHING_FLICKR_IS_PIN_ENTRY_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE))
+#define PUBLISHING_FLICKR_IS_PIN_ENTRY_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE))
+#define PUBLISHING_FLICKR_PIN_ENTRY_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, PublishingFlickrPinEntryPaneClass))
+
+typedef struct _PublishingFlickrPinEntryPane PublishingFlickrPinEntryPane;
+typedef struct _PublishingFlickrPinEntryPaneClass PublishingFlickrPinEntryPaneClass;
+
+#define PUBLISHING_FLICKR_TYPE_TRANSACTION (publishing_flickr_transaction_get_type ())
+#define PUBLISHING_FLICKR_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_TRANSACTION, PublishingFlickrTransaction))
+#define PUBLISHING_FLICKR_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_TRANSACTION, PublishingFlickrTransactionClass))
+#define PUBLISHING_FLICKR_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_TRANSACTION))
+#define PUBLISHING_FLICKR_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_TRANSACTION))
+#define PUBLISHING_FLICKR_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_TRANSACTION, PublishingFlickrTransactionClass))
+
+typedef struct _PublishingFlickrTransaction PublishingFlickrTransaction;
+typedef struct _PublishingFlickrTransactionClass PublishingFlickrTransactionClass;
+
+#define PUBLISHING_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION (publishing_flickr_authentication_request_transaction_get_type ())
+#define PUBLISHING_FLICKR_AUTHENTICATION_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, PublishingFlickrAuthenticationRequestTransaction))
+#define PUBLISHING_FLICKR_AUTHENTICATION_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, PublishingFlickrAuthenticationRequestTransactionClass))
+#define PUBLISHING_FLICKR_IS_AUTHENTICATION_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION))
+#define PUBLISHING_FLICKR_IS_AUTHENTICATION_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION))
+#define PUBLISHING_FLICKR_AUTHENTICATION_REQUEST_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, PublishingFlickrAuthenticationRequestTransactionClass))
+
+typedef struct _PublishingFlickrAuthenticationRequestTransaction PublishingFlickrAuthenticationRequestTransaction;
+typedef struct _PublishingFlickrAuthenticationRequestTransactionClass PublishingFlickrAuthenticationRequestTransactionClass;
+#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+
+#define PUBLISHING_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION (publishing_flickr_access_token_fetch_transaction_get_type ())
+#define PUBLISHING_FLICKR_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingFlickrAccessTokenFetchTransaction))
+#define PUBLISHING_FLICKR_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingFlickrAccessTokenFetchTransactionClass))
+#define PUBLISHING_FLICKR_IS_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION))
+#define PUBLISHING_FLICKR_IS_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION))
+#define PUBLISHING_FLICKR_ACCESS_TOKEN_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingFlickrAccessTokenFetchTransactionClass))
+
+typedef struct _PublishingFlickrAccessTokenFetchTransaction PublishingFlickrAccessTokenFetchTransaction;
+typedef struct _PublishingFlickrAccessTokenFetchTransactionClass PublishingFlickrAccessTokenFetchTransactionClass;
+
+#define PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION (publishing_flickr_account_info_fetch_transaction_get_type ())
+#define PUBLISHING_FLICKR_ACCOUNT_INFO_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, PublishingFlickrAccountInfoFetchTransaction))
+#define PUBLISHING_FLICKR_ACCOUNT_INFO_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, PublishingFlickrAccountInfoFetchTransactionClass))
+#define PUBLISHING_FLICKR_IS_ACCOUNT_INFO_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION))
+#define PUBLISHING_FLICKR_IS_ACCOUNT_INFO_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION))
+#define PUBLISHING_FLICKR_ACCOUNT_INFO_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, PublishingFlickrAccountInfoFetchTransactionClass))
+
+typedef struct _PublishingFlickrAccountInfoFetchTransaction PublishingFlickrAccountInfoFetchTransaction;
+typedef struct _PublishingFlickrAccountInfoFetchTransactionClass PublishingFlickrAccountInfoFetchTransactionClass;
+#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL)))
+#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
+
+#define PUBLISHING_FLICKR_TYPE_UPLOADER (publishing_flickr_uploader_get_type ())
+#define PUBLISHING_FLICKR_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploader))
+#define PUBLISHING_FLICKR_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploaderClass))
+#define PUBLISHING_FLICKR_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_UPLOADER))
+#define PUBLISHING_FLICKR_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_UPLOADER))
+#define PUBLISHING_FLICKR_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploaderClass))
+
+typedef struct _PublishingFlickrUploader PublishingFlickrUploader;
+typedef struct _PublishingFlickrUploaderClass PublishingFlickrUploaderClass;
+#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL)))
+typedef struct _PublishingFlickrPinEntryPanePrivate PublishingFlickrPinEntryPanePrivate;
+#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))
+typedef struct _PublishingFlickrTransactionPrivate PublishingFlickrTransactionPrivate;
+typedef struct _PublishingFlickrAuthenticationRequestTransactionPrivate PublishingFlickrAuthenticationRequestTransactionPrivate;
+typedef struct _PublishingFlickrAccessTokenFetchTransactionPrivate PublishingFlickrAccessTokenFetchTransactionPrivate;
+typedef struct _PublishingFlickrAccountInfoFetchTransactionPrivate PublishingFlickrAccountInfoFetchTransactionPrivate;
+
+#define PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION (publishing_flickr_upload_transaction_get_type ())
+#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransaction))
+#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransactionClass))
+#define PUBLISHING_FLICKR_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_FLICKR_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransactionClass))
+
+typedef struct _PublishingFlickrUploadTransaction PublishingFlickrUploadTransaction;
+typedef struct _PublishingFlickrUploadTransactionClass PublishingFlickrUploadTransactionClass;
+typedef struct _PublishingFlickrUploadTransactionPrivate PublishingFlickrUploadTransactionPrivate;
+#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
+typedef struct _PublishingFlickrSessionPrivate PublishingFlickrSessionPrivate;
+#define _publishing_rest_support_argument_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_argument_unref (var), NULL)))
+typedef struct _PublishingFlickrPublishingOptionsPanePrivate PublishingFlickrPublishingOptionsPanePrivate;
+
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY (publishing_flickr_publishing_options_pane_visibility_entry_get_type ())
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntry))
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntryClass))
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_VISIBILITY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY))
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_VISIBILITY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY))
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntryClass))
+
+typedef struct _PublishingFlickrPublishingOptionsPaneVisibilityEntry PublishingFlickrPublishingOptionsPaneVisibilityEntry;
+typedef struct _PublishingFlickrPublishingOptionsPaneVisibilityEntryClass PublishingFlickrPublishingOptionsPaneVisibilityEntryClass;
+
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY (publishing_flickr_publishing_options_pane_size_entry_get_type ())
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntry))
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntryClass))
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY))
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY))
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntryClass))
+
+typedef struct _PublishingFlickrPublishingOptionsPaneSizeEntry PublishingFlickrPublishingOptionsPaneSizeEntry;
+typedef struct _PublishingFlickrPublishingOptionsPaneSizeEntryClass PublishingFlickrPublishingOptionsPaneSizeEntryClass;
+typedef struct _PublishingFlickrPublishingOptionsPaneVisibilityEntryPrivate PublishingFlickrPublishingOptionsPaneVisibilityEntryPrivate;
+typedef struct _PublishingFlickrPublishingOptionsPaneSizeEntryPrivate PublishingFlickrPublishingOptionsPaneSizeEntryPrivate;
+#define _publishing_flickr_publishing_options_pane_visibility_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_publishing_options_pane_visibility_entry_unref (var), NULL)))
+#define _publishing_flickr_publishing_options_pane_size_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_publishing_options_pane_size_entry_unref (var), NULL)))
+typedef struct _PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry;
+typedef struct _PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry;
+typedef struct _PublishingFlickrUploaderPrivate PublishingFlickrUploaderPrivate;
+#define _gexiv2_metadata_free0(var) ((var == NULL) ? NULL : (var = (gexiv2_metadata_free (var), NULL)))
+#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 _FlickrService {
+ GObject parent_instance;
+ FlickrServicePrivate * priv;
+};
+
+struct _FlickrServiceClass {
+ GObjectClass parent_class;
+};
+
+typedef enum {
+ PUBLISHING_FLICKR_USER_KIND_PRO,
+ PUBLISHING_FLICKR_USER_KIND_FREE
+} PublishingFlickrUserKind;
+
+struct _PublishingFlickrVisibilitySpecification {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFlickrVisibilitySpecificationPrivate * priv;
+ gint friends_level;
+ gint family_level;
+ gint everyone_level;
+};
+
+struct _PublishingFlickrVisibilitySpecificationClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFlickrVisibilitySpecification *self);
+};
+
+struct _PublishingFlickrParamSpecVisibilitySpecification {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingFlickrPublishingParameters {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFlickrPublishingParametersPrivate * priv;
+ PublishingFlickrUserKind user_kind;
+ gint quota_free_mb;
+ gint photo_major_axis_size;
+ gchar* username;
+ PublishingFlickrVisibilitySpecification* visibility_specification;
+};
+
+struct _PublishingFlickrPublishingParametersClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFlickrPublishingParameters *self);
+};
+
+struct _PublishingFlickrParamSpecPublishingParameters {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingFlickrFlickrPublisher {
+ GObject parent_instance;
+ PublishingFlickrFlickrPublisherPrivate * priv;
+};
+
+struct _PublishingFlickrFlickrPublisherClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingFlickrFlickrPublisherPrivate {
+ SpitPublishingService* service;
+ SpitPublishingPluginHost* host;
+ SpitPublishingProgressCallback progress_reporter;
+ gpointer progress_reporter_target;
+ GDestroyNotify progress_reporter_target_destroy_notify;
+ gboolean running;
+ gboolean was_started;
+ PublishingFlickrSession* session;
+ PublishingFlickrPublishingOptionsPane* publishing_options_pane;
+ PublishingFlickrPublishingParameters* parameters;
+};
+
+struct _PublishingFlickrPinEntryPane {
+ GObject parent_instance;
+ PublishingFlickrPinEntryPanePrivate * priv;
+};
+
+struct _PublishingFlickrPinEntryPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingFlickrPinEntryPanePrivate {
+ GtkBox* pane_widget;
+ GtkButton* continue_button;
+ GtkEntry* pin_entry;
+ GtkLabel* pin_entry_caption;
+ GtkLabel* explanatory_text;
+ GtkBuilder* builder;
+};
+
+struct _PublishingFlickrTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingFlickrTransactionPrivate * priv;
+};
+
+struct _PublishingFlickrTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingFlickrAuthenticationRequestTransaction {
+ PublishingFlickrTransaction parent_instance;
+ PublishingFlickrAuthenticationRequestTransactionPrivate * priv;
+};
+
+struct _PublishingFlickrAuthenticationRequestTransactionClass {
+ PublishingFlickrTransactionClass parent_class;
+};
+
+struct _PublishingFlickrAccessTokenFetchTransaction {
+ PublishingFlickrTransaction parent_instance;
+ PublishingFlickrAccessTokenFetchTransactionPrivate * priv;
+};
+
+struct _PublishingFlickrAccessTokenFetchTransactionClass {
+ PublishingFlickrTransactionClass parent_class;
+};
+
+struct _PublishingFlickrAccountInfoFetchTransaction {
+ PublishingFlickrTransaction parent_instance;
+ PublishingFlickrAccountInfoFetchTransactionPrivate * priv;
+};
+
+struct _PublishingFlickrAccountInfoFetchTransactionClass {
+ PublishingFlickrTransactionClass parent_class;
+};
+
+struct _PublishingFlickrUploadTransaction {
+ PublishingRESTSupportUploadTransaction parent_instance;
+ PublishingFlickrUploadTransactionPrivate * priv;
+};
+
+struct _PublishingFlickrUploadTransactionClass {
+ PublishingRESTSupportUploadTransactionClass parent_class;
+};
+
+struct _PublishingFlickrUploadTransactionPrivate {
+ PublishingFlickrPublishingParameters* parameters;
+ PublishingFlickrSession* session;
+ PublishingRESTSupportArgument** auth_header_fields;
+ gint auth_header_fields_length1;
+ gint _auth_header_fields_size_;
+};
+
+struct _PublishingFlickrSession {
+ PublishingRESTSupportSession parent_instance;
+ PublishingFlickrSessionPrivate * priv;
+};
+
+struct _PublishingFlickrSessionClass {
+ PublishingRESTSupportSessionClass parent_class;
+};
+
+struct _PublishingFlickrSessionPrivate {
+ gchar* request_phase_token;
+ gchar* request_phase_token_secret;
+ gchar* access_phase_token;
+ gchar* access_phase_token_secret;
+ gchar* username;
+};
+
+struct _PublishingFlickrPublishingOptionsPane {
+ GObject parent_instance;
+ PublishingFlickrPublishingOptionsPanePrivate * priv;
+};
+
+struct _PublishingFlickrPublishingOptionsPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingFlickrPublishingOptionsPanePrivate {
+ GtkBuilder* builder;
+ GtkBox* pane_widget;
+ GtkLabel* visibility_label;
+ GtkLabel* upload_info_label;
+ GtkLabel* size_label;
+ GtkButton* logout_button;
+ GtkButton* publish_button;
+ GtkComboBoxText* visibility_combo;
+ GtkComboBoxText* size_combo;
+ GtkCheckButton* strip_metadata_check;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** visibilities;
+ gint visibilities_length1;
+ gint _visibilities_size_;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** sizes;
+ gint sizes_length1;
+ gint _sizes_size_;
+ PublishingFlickrPublishingParameters* parameters;
+ PublishingFlickrFlickrPublisher* publisher;
+ SpitPublishingPublisherMediaType media_type;
+};
+
+struct _PublishingFlickrPublishingOptionsPaneVisibilityEntry {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntryPrivate * priv;
+ PublishingFlickrVisibilitySpecification* specification;
+ gchar* title;
+};
+
+struct _PublishingFlickrPublishingOptionsPaneVisibilityEntryClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFlickrPublishingOptionsPaneVisibilityEntry *self);
+};
+
+struct _PublishingFlickrPublishingOptionsPaneSizeEntry {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingFlickrPublishingOptionsPaneSizeEntryPrivate * priv;
+ gchar* title;
+ gint size;
+};
+
+struct _PublishingFlickrPublishingOptionsPaneSizeEntryClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingFlickrPublishingOptionsPaneSizeEntry *self);
+};
+
+struct _PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingFlickrUploader {
+ PublishingRESTSupportBatchUploader parent_instance;
+ PublishingFlickrUploaderPrivate * priv;
+};
+
+struct _PublishingFlickrUploaderClass {
+ PublishingRESTSupportBatchUploaderClass parent_class;
+};
+
+struct _PublishingFlickrUploaderPrivate {
+ PublishingFlickrPublishingParameters* parameters;
+ gboolean strip_metadata;
+};
+
+
+static gpointer flickr_service_parent_class = NULL;
+static GdkPixbuf** flickr_service_icon_pixbuf_set;
+static gint flickr_service_icon_pixbuf_set_length1;
+static GdkPixbuf** flickr_service_icon_pixbuf_set = NULL;
+static gint flickr_service_icon_pixbuf_set_length1 = 0;
+static gint _flickr_service_icon_pixbuf_set_size_ = 0;
+static SpitPluggableIface* flickr_service_spit_pluggable_parent_iface = NULL;
+static SpitPublishingServiceIface* flickr_service_spit_publishing_service_parent_iface = NULL;
+static gpointer publishing_flickr_visibility_specification_parent_class = NULL;
+static gpointer publishing_flickr_publishing_parameters_parent_class = NULL;
+static gpointer publishing_flickr_flickr_publisher_parent_class = NULL;
+static SpitPublishingPublisherIface* publishing_flickr_flickr_publisher_spit_publishing_publisher_parent_iface = NULL;
+static gpointer publishing_flickr_pin_entry_pane_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_flickr_pin_entry_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_flickr_transaction_parent_class = NULL;
+static gpointer publishing_flickr_authentication_request_transaction_parent_class = NULL;
+static gpointer publishing_flickr_access_token_fetch_transaction_parent_class = NULL;
+static gpointer publishing_flickr_account_info_fetch_transaction_parent_class = NULL;
+static gpointer publishing_flickr_upload_transaction_parent_class = NULL;
+static gpointer publishing_flickr_session_parent_class = NULL;
+static gpointer publishing_flickr_publishing_options_pane_parent_class = NULL;
+static gpointer publishing_flickr_publishing_options_pane_size_entry_parent_class = NULL;
+static gpointer publishing_flickr_publishing_options_pane_visibility_entry_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_flickr_uploader_parent_class = NULL;
+
+GType flickr_service_get_type (void) G_GNUC_CONST;
+enum {
+ FLICKR_SERVICE_DUMMY_PROPERTY
+};
+#define FLICKR_SERVICE_ICON_FILENAME "flickr.png"
+FlickrService* flickr_service_new (GFile* resource_directory);
+FlickrService* flickr_service_construct (GType object_type, GFile* resource_directory);
+static gint flickr_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+static const gchar* flickr_service_real_get_id (SpitPluggable* base);
+static const gchar* flickr_service_real_get_pluggable_name (SpitPluggable* base);
+static void flickr_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static GdkPixbuf** _vala_array_dup7 (GdkPixbuf** self, int length);
+static void flickr_service_real_activation (SpitPluggable* base, gboolean enabled);
+static SpitPublishingPublisher* flickr_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host);
+PublishingFlickrFlickrPublisher* publishing_flickr_flickr_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host);
+PublishingFlickrFlickrPublisher* publishing_flickr_flickr_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host);
+GType publishing_flickr_flickr_publisher_get_type (void) G_GNUC_CONST;
+static SpitPublishingPublisherMediaType flickr_service_real_get_supported_media (SpitPublishingService* base);
+static void flickr_service_finalize (GObject* obj);
+#define PUBLISHING_FLICKR_SERVICE_NAME "Flickr"
+#define PUBLISHING_FLICKR_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into Flickr.\n" \
+"\n" \
+"Click Login to log into Flickr in your Web browser. You will have to " \
+"authorize Shotwell Connect to link to your Flickr account.")
+#define PUBLISHING_FLICKR_RESTART_ERROR_MESSAGE _ ("You have already logged in and out of Flickr during this Shotwell sess" \
+"ion.\n" \
+"To continue publishing to Flickr, quit and restart Shotwell, then try " \
+"publishing again.")
+#define PUBLISHING_FLICKR_ENDPOINT_URL "https://api.flickr.com/services/rest"
+#define PUBLISHING_FLICKR_API_KEY "60dd96d4a2ad04888b09c9e18d82c26f"
+#define PUBLISHING_FLICKR_API_SECRET "d0960565e03547c1"
+#define PUBLISHING_FLICKR_ORIGINAL_SIZE -1
+#define PUBLISHING_FLICKR_EXPIRED_SESSION_ERROR_CODE "98"
+#define PUBLISHING_FLICKR_ENCODE_RFC_3986_EXTRA "!*'();:@&=+$,/?%#[] \\"
+GType publishing_flickr_user_kind_get_type (void) G_GNUC_CONST;
+gpointer publishing_flickr_visibility_specification_ref (gpointer instance);
+void publishing_flickr_visibility_specification_unref (gpointer instance);
+GParamSpec* publishing_flickr_param_spec_visibility_specification (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_flickr_value_set_visibility_specification (GValue* value, gpointer v_object);
+void publishing_flickr_value_take_visibility_specification (GValue* value, gpointer v_object);
+gpointer publishing_flickr_value_get_visibility_specification (const GValue* value);
+GType publishing_flickr_visibility_specification_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION_DUMMY_PROPERTY
+};
+PublishingFlickrVisibilitySpecification* publishing_flickr_visibility_specification_new (gint friends_level, gint family_level, gint everyone_level);
+PublishingFlickrVisibilitySpecification* publishing_flickr_visibility_specification_construct (GType object_type, gint friends_level, gint family_level, gint everyone_level);
+static void publishing_flickr_visibility_specification_finalize (PublishingFlickrVisibilitySpecification* obj);
+gpointer publishing_flickr_publishing_parameters_ref (gpointer instance);
+void publishing_flickr_publishing_parameters_unref (gpointer instance);
+GParamSpec* publishing_flickr_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_flickr_value_set_publishing_parameters (GValue* value, gpointer v_object);
+void publishing_flickr_value_take_publishing_parameters (GValue* value, gpointer v_object);
+gpointer publishing_flickr_value_get_publishing_parameters (const GValue* value);
+GType publishing_flickr_publishing_parameters_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_FLICKR_PUBLISHING_PARAMETERS_DUMMY_PROPERTY
+};
+PublishingFlickrPublishingParameters* publishing_flickr_publishing_parameters_new (void);
+PublishingFlickrPublishingParameters* publishing_flickr_publishing_parameters_construct (GType object_type);
+static void publishing_flickr_publishing_parameters_finalize (PublishingFlickrPublishingParameters* obj);
+GType publishing_flickr_session_get_type (void) G_GNUC_CONST;
+GType publishing_flickr_publishing_options_pane_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_FLICKR_FLICKR_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisherPrivate))
+enum {
+ PUBLISHING_FLICKR_FLICKR_PUBLISHER_DUMMY_PROPERTY
+};
+static void publishing_flickr_flickr_publisher_on_session_authenticated (PublishingFlickrFlickrPublisher* self);
+static void _publishing_flickr_flickr_publisher_on_session_authenticated_publishing_rest_support_session_authenticated (PublishingRESTSupportSession* _sender, gpointer self);
+PublishingFlickrSession* publishing_flickr_session_new (void);
+PublishingFlickrSession* publishing_flickr_session_construct (GType object_type);
+static void publishing_flickr_flickr_publisher_invalidate_persistent_session (PublishingFlickrFlickrPublisher* self);
+static void publishing_flickr_flickr_publisher_set_persistent_access_phase_token (PublishingFlickrFlickrPublisher* self, const gchar* token);
+static void publishing_flickr_flickr_publisher_set_persistent_access_phase_token_secret (PublishingFlickrFlickrPublisher* self, const gchar* secret);
+static void publishing_flickr_flickr_publisher_set_persistent_access_phase_username (PublishingFlickrFlickrPublisher* self, const gchar* username);
+static gboolean publishing_flickr_flickr_publisher_is_persistent_session_valid (PublishingFlickrFlickrPublisher* self);
+static gchar* publishing_flickr_flickr_publisher_get_persistent_access_phase_username (PublishingFlickrFlickrPublisher* self);
+static gchar* publishing_flickr_flickr_publisher_get_persistent_access_phase_token (PublishingFlickrFlickrPublisher* self);
+static gchar* publishing_flickr_flickr_publisher_get_persistent_access_phase_token_secret (PublishingFlickrFlickrPublisher* self);
+static gboolean publishing_flickr_flickr_publisher_get_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self);
+static void publishing_flickr_flickr_publisher_set_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self, gboolean strip_metadata);
+static void publishing_flickr_flickr_publisher_on_welcome_pane_login_clicked (PublishingFlickrFlickrPublisher* self);
+static void publishing_flickr_flickr_publisher_do_run_authentication_request_transaction (PublishingFlickrFlickrPublisher* self);
+static void publishing_flickr_flickr_publisher_on_auth_request_txn_completed (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_flickr_flickr_publisher_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_flickr_flickr_publisher_on_auth_request_txn_error (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err);
+static void _publishing_flickr_flickr_publisher_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_flickr_flickr_publisher_do_parse_token_info_from_auth_request (PublishingFlickrFlickrPublisher* self, const gchar* response);
+static void publishing_flickr_flickr_publisher_on_authentication_token_available (PublishingFlickrFlickrPublisher* self, const gchar* token, const gchar* token_secret);
+void publishing_flickr_session_set_request_phase_credentials (PublishingFlickrSession* self, const gchar* token, const gchar* secret);
+static void publishing_flickr_flickr_publisher_do_launch_system_browser (PublishingFlickrFlickrPublisher* self, const gchar* token);
+static void publishing_flickr_flickr_publisher_on_system_browser_launched (PublishingFlickrFlickrPublisher* self);
+static void publishing_flickr_flickr_publisher_do_show_pin_entry_pane (PublishingFlickrFlickrPublisher* self);
+GType publishing_flickr_pin_entry_pane_get_type (void) G_GNUC_CONST;
+static void publishing_flickr_flickr_publisher_on_pin_entry_proceed (PublishingFlickrFlickrPublisher* self, PublishingFlickrPinEntryPane* sender, const gchar* pin);
+static void _publishing_flickr_flickr_publisher_on_pin_entry_proceed_publishing_flickr_pin_entry_pane_proceed (PublishingFlickrPinEntryPane* _sender, PublishingFlickrPinEntryPane* sender, const gchar* authorization_pin, gpointer self);
+static void publishing_flickr_flickr_publisher_do_verify_pin (PublishingFlickrFlickrPublisher* self, const gchar* pin);
+static void publishing_flickr_flickr_publisher_on_access_token_fetch_txn_completed (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_flickr_flickr_publisher_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_flickr_flickr_publisher_on_access_token_fetch_error (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err);
+static void _publishing_flickr_flickr_publisher_on_access_token_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_flickr_flickr_publisher_do_extract_access_phase_credentials_from_reponse (PublishingFlickrFlickrPublisher* self, const gchar* response);
+gchar* publishing_flickr_session_get_username (PublishingFlickrSession* self);
+gchar* publishing_flickr_session_get_access_phase_token (PublishingFlickrSession* self);
+gchar* publishing_flickr_session_get_access_phase_token_secret (PublishingFlickrSession* self);
+static void publishing_flickr_flickr_publisher_do_fetch_account_info (PublishingFlickrFlickrPublisher* self);
+static void publishing_flickr_flickr_publisher_on_account_fetch_txn_completed (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_flickr_flickr_publisher_on_account_fetch_txn_error (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err);
+static void _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_flickr_flickr_publisher_do_parse_account_info_from_xml (PublishingFlickrFlickrPublisher* self, const gchar* xml);
+static void publishing_flickr_flickr_publisher_on_account_info_available (PublishingFlickrFlickrPublisher* self);
+static void publishing_flickr_flickr_publisher_do_show_publishing_options_pane (PublishingFlickrFlickrPublisher* self);
+static void publishing_flickr_flickr_publisher_on_publishing_options_pane_publish (PublishingFlickrFlickrPublisher* self, gboolean strip_metadata);
+static void _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, gboolean strip_metadata, gpointer self);
+static void publishing_flickr_flickr_publisher_on_publishing_options_pane_logout (PublishingFlickrFlickrPublisher* self);
+static void _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, gpointer self);
+static void publishing_flickr_flickr_publisher_do_publish (PublishingFlickrFlickrPublisher* self, gboolean strip_metadata);
+static void publishing_flickr_flickr_publisher_do_logout (PublishingFlickrFlickrPublisher* self);
+static void publishing_flickr_flickr_publisher_on_upload_status_updated (PublishingFlickrFlickrPublisher* self, gint file_number, gdouble completed_fraction);
+static void publishing_flickr_flickr_publisher_on_upload_complete (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published);
+static void _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self);
+static void publishing_flickr_flickr_publisher_on_upload_error (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err);
+static void _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self);
+static void publishing_flickr_flickr_publisher_do_show_success_pane (PublishingFlickrFlickrPublisher* self);
+static void publishing_flickr_flickr_publisher_do_show_login_welcome_pane (PublishingFlickrFlickrPublisher* self);
+static void _publishing_flickr_flickr_publisher_on_welcome_pane_login_clicked_spit_publishing_login_callback (gpointer self);
+GType publishing_flickr_transaction_get_type (void) G_GNUC_CONST;
+GType publishing_flickr_authentication_request_transaction_get_type (void) G_GNUC_CONST;
+PublishingFlickrAuthenticationRequestTransaction* publishing_flickr_authentication_request_transaction_new (PublishingFlickrSession* session);
+PublishingFlickrAuthenticationRequestTransaction* publishing_flickr_authentication_request_transaction_construct (GType object_type, PublishingFlickrSession* session);
+PublishingFlickrPinEntryPane* publishing_flickr_pin_entry_pane_new (GtkBuilder* builder);
+PublishingFlickrPinEntryPane* publishing_flickr_pin_entry_pane_construct (GType object_type, GtkBuilder* builder);
+GType publishing_flickr_access_token_fetch_transaction_get_type (void) G_GNUC_CONST;
+PublishingFlickrAccessTokenFetchTransaction* publishing_flickr_access_token_fetch_transaction_new (PublishingFlickrSession* session, const gchar* user_verifier);
+PublishingFlickrAccessTokenFetchTransaction* publishing_flickr_access_token_fetch_transaction_construct (GType object_type, PublishingFlickrSession* session, const gchar* user_verifier);
+void publishing_flickr_session_set_access_phase_credentials (PublishingFlickrSession* self, const gchar* token, const gchar* secret, const gchar* username);
+GType publishing_flickr_account_info_fetch_transaction_get_type (void) G_GNUC_CONST;
+PublishingFlickrAccountInfoFetchTransaction* publishing_flickr_account_info_fetch_transaction_new (PublishingFlickrSession* session);
+PublishingFlickrAccountInfoFetchTransaction* publishing_flickr_account_info_fetch_transaction_construct (GType object_type, PublishingFlickrSession* session);
+PublishingRESTSupportXmlDocument* publishing_flickr_transaction_parse_flickr_response (const gchar* xml, GError** error);
+void publishing_flickr_session_deauthenticate (PublishingFlickrSession* self);
+static void publishing_flickr_flickr_publisher_attempt_start (PublishingFlickrFlickrPublisher* self);
+PublishingFlickrPublishingOptionsPane* publishing_flickr_publishing_options_pane_new (PublishingFlickrFlickrPublisher* publisher, PublishingFlickrPublishingParameters* parameters, SpitPublishingPublisherMediaType media_type, GtkBuilder* builder, gboolean strip_metadata);
+PublishingFlickrPublishingOptionsPane* publishing_flickr_publishing_options_pane_construct (GType object_type, PublishingFlickrFlickrPublisher* publisher, PublishingFlickrPublishingParameters* parameters, SpitPublishingPublisherMediaType media_type, GtkBuilder* builder, gboolean strip_metadata);
+gint publishing_flickr_flickr_publisher_flickr_date_time_compare_func (SpitPublishingPublishable* a, SpitPublishingPublishable* b);
+static gint _publishing_flickr_flickr_publisher_flickr_date_time_compare_func_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
+GType publishing_flickr_uploader_get_type (void) G_GNUC_CONST;
+PublishingFlickrUploader* publishing_flickr_uploader_new (PublishingFlickrSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingFlickrPublishingParameters* parameters, gboolean strip_metadata);
+PublishingFlickrUploader* publishing_flickr_uploader_construct (GType object_type, PublishingFlickrSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingFlickrPublishingParameters* parameters, gboolean strip_metadata);
+static void _publishing_flickr_flickr_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self);
+gint publishing_flickr_flickr_publisher_get_persistent_visibility (PublishingFlickrFlickrPublisher* self);
+void publishing_flickr_flickr_publisher_set_persistent_visibility (PublishingFlickrFlickrPublisher* self, gint vis);
+gint publishing_flickr_flickr_publisher_get_persistent_default_size (PublishingFlickrFlickrPublisher* self);
+void publishing_flickr_flickr_publisher_set_persistent_default_size (PublishingFlickrFlickrPublisher* self, gint size);
+static SpitPublishingService* publishing_flickr_flickr_publisher_real_get_service (SpitPublishingPublisher* base);
+static gboolean publishing_flickr_flickr_publisher_real_is_running (SpitPublishingPublisher* base);
+void publishing_flickr_session_authenticate_from_persistent_credentials (PublishingFlickrSession* self, const gchar* token, const gchar* secret, const gchar* username);
+static void publishing_flickr_flickr_publisher_real_start (SpitPublishingPublisher* base);
+static void publishing_flickr_flickr_publisher_real_stop (SpitPublishingPublisher* base);
+static void publishing_flickr_flickr_publisher_finalize (GObject* obj);
+#define PUBLISHING_FLICKR_PIN_ENTRY_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, PublishingFlickrPinEntryPanePrivate))
+enum {
+ PUBLISHING_FLICKR_PIN_ENTRY_PANE_DUMMY_PROPERTY
+};
+static void publishing_flickr_pin_entry_pane_on_pin_entry_contents_changed (PublishingFlickrPinEntryPane* self);
+static void publishing_flickr_pin_entry_pane_on_continue_clicked (PublishingFlickrPinEntryPane* self);
+static GtkWidget* publishing_flickr_pin_entry_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_flickr_pin_entry_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_flickr_pin_entry_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void _publishing_flickr_pin_entry_pane_on_continue_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void _publishing_flickr_pin_entry_pane_on_pin_entry_contents_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_flickr_pin_entry_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void g_cclosure_user_marshal_VOID__OBJECT_STRING (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void publishing_flickr_pin_entry_pane_finalize (GObject* obj);
+enum {
+ PUBLISHING_FLICKR_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingFlickrTransaction* publishing_flickr_transaction_new (PublishingFlickrSession* session, PublishingRESTSupportHttpMethod method);
+PublishingFlickrTransaction* publishing_flickr_transaction_construct (GType object_type, PublishingFlickrSession* session, PublishingRESTSupportHttpMethod method);
+gchar* publishing_flickr_session_get_oauth_nonce (PublishingFlickrSession* self);
+gchar* publishing_flickr_session_get_oauth_timestamp (PublishingFlickrSession* self);
+PublishingFlickrTransaction* publishing_flickr_transaction_new_with_uri (PublishingFlickrSession* session, const gchar* uri, PublishingRESTSupportHttpMethod method);
+PublishingFlickrTransaction* publishing_flickr_transaction_construct_with_uri (GType object_type, PublishingFlickrSession* session, const gchar* uri, PublishingRESTSupportHttpMethod method);
+static void publishing_flickr_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error);
+void publishing_flickr_session_sign_transaction (PublishingFlickrSession* self, PublishingRESTSupportTransaction* txn);
+gchar* publishing_flickr_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc);
+static gchar* _publishing_flickr_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self);
+enum {
+ PUBLISHING_FLICKR_AUTHENTICATION_REQUEST_TRANSACTION_DUMMY_PROPERTY
+};
+enum {
+ PUBLISHING_FLICKR_ACCESS_TOKEN_FETCH_TRANSACTION_DUMMY_PROPERTY
+};
+gchar* publishing_flickr_session_get_request_phase_token (PublishingFlickrSession* self);
+enum {
+ PUBLISHING_FLICKR_ACCOUNT_INFO_FETCH_TRANSACTION_DUMMY_PROPERTY
+};
+GType publishing_flickr_upload_transaction_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransactionPrivate))
+enum {
+ PUBLISHING_FLICKR_UPLOAD_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingFlickrUploadTransaction* publishing_flickr_upload_transaction_new (PublishingFlickrSession* session, PublishingFlickrPublishingParameters* parameters, SpitPublishingPublishable* publishable);
+PublishingFlickrUploadTransaction* publishing_flickr_upload_transaction_construct (GType object_type, PublishingFlickrSession* session, PublishingFlickrPublishingParameters* parameters, SpitPublishingPublishable* publishable);
+void publishing_flickr_upload_transaction_add_authorization_header_field (PublishingFlickrUploadTransaction* self, const gchar* key, const gchar* value);
+static void _g_free0_ (gpointer var);
+static void _vala_array_add18 (PublishingRESTSupportArgument*** array, int* length, int* size, PublishingRESTSupportArgument* value);
+PublishingRESTSupportArgument** publishing_flickr_upload_transaction_get_authorization_header_fields (PublishingFlickrUploadTransaction* self, int* result_length1);
+static PublishingRESTSupportArgument** _vala_array_dup8 (PublishingRESTSupportArgument** self, int length);
+gchar* publishing_flickr_upload_transaction_get_authorization_header_string (PublishingFlickrUploadTransaction* self);
+static void publishing_flickr_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error);
+static void publishing_flickr_upload_transaction_finalize (PublishingRESTSupportTransaction* obj);
+#define PUBLISHING_FLICKR_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_SESSION, PublishingFlickrSessionPrivate))
+enum {
+ PUBLISHING_FLICKR_SESSION_DUMMY_PROPERTY
+};
+static gboolean publishing_flickr_session_real_is_authenticated (PublishingRESTSupportSession* base);
+static void _vala_array_add19 (PublishingRESTSupportArgument*** array, int* length, int* size, PublishingRESTSupportArgument* value);
+static void publishing_flickr_session_finalize (PublishingRESTSupportSession* obj);
+static gpointer publishing_flickr_publishing_options_pane_visibility_entry_ref (gpointer instance);
+static void publishing_flickr_publishing_options_pane_visibility_entry_unref (gpointer instance);
+static GParamSpec* publishing_flickr_publishing_options_pane_param_spec_visibility_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
+static void publishing_flickr_publishing_options_pane_value_set_visibility_entry (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static void publishing_flickr_publishing_options_pane_value_take_visibility_entry (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static gpointer publishing_flickr_publishing_options_pane_value_get_visibility_entry (const GValue* value) G_GNUC_UNUSED;
+static GType publishing_flickr_publishing_options_pane_visibility_entry_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+static gpointer publishing_flickr_publishing_options_pane_size_entry_ref (gpointer instance);
+static void publishing_flickr_publishing_options_pane_size_entry_unref (gpointer instance);
+static GParamSpec* publishing_flickr_publishing_options_pane_param_spec_size_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
+static void publishing_flickr_publishing_options_pane_value_set_size_entry (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static void publishing_flickr_publishing_options_pane_value_take_size_entry (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static gpointer publishing_flickr_publishing_options_pane_value_get_size_entry (const GValue* value) G_GNUC_UNUSED;
+static GType publishing_flickr_publishing_options_pane_size_entry_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPanePrivate))
+enum {
+ PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_DUMMY_PROPERTY
+};
+static PublishingFlickrPublishingOptionsPaneVisibilityEntry** publishing_flickr_publishing_options_pane_create_visibilities (PublishingFlickrPublishingOptionsPane* self, int* result_length1);
+static PublishingFlickrPublishingOptionsPaneSizeEntry** publishing_flickr_publishing_options_pane_create_sizes (PublishingFlickrPublishingOptionsPane* self, int* result_length1);
+static void publishing_flickr_publishing_options_pane_populate_visibility_combo (PublishingFlickrPublishingOptionsPane* self);
+static void publishing_flickr_publishing_options_pane_on_visibility_changed (PublishingFlickrPublishingOptionsPane* self);
+static void _publishing_flickr_publishing_options_pane_on_visibility_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
+static void publishing_flickr_publishing_options_pane_populate_size_combo (PublishingFlickrPublishingOptionsPane* self);
+static void publishing_flickr_publishing_options_pane_on_size_changed (PublishingFlickrPublishingOptionsPane* self);
+static void _publishing_flickr_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
+static void publishing_flickr_publishing_options_pane_on_logout_clicked (PublishingFlickrPublishingOptionsPane* self);
+static void _publishing_flickr_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_flickr_publishing_options_pane_on_publish_clicked (PublishingFlickrPublishingOptionsPane* self);
+static void _publishing_flickr_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static PublishingFlickrPublishingOptionsPaneVisibilityEntry* publishing_flickr_publishing_options_pane_visibility_entry_new (const gchar* creator_title, PublishingFlickrVisibilitySpecification* creator_specification);
+static PublishingFlickrPublishingOptionsPaneVisibilityEntry* publishing_flickr_publishing_options_pane_visibility_entry_construct (GType object_type, const gchar* creator_title, PublishingFlickrVisibilitySpecification* creator_specification);
+static void _vala_array_add20 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneVisibilityEntry* value);
+static void _vala_array_add21 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneVisibilityEntry* value);
+static void _vala_array_add22 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneVisibilityEntry* value);
+static void _vala_array_add23 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneVisibilityEntry* value);
+static void _vala_array_add24 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneVisibilityEntry* value);
+static PublishingFlickrPublishingOptionsPaneSizeEntry* publishing_flickr_publishing_options_pane_size_entry_new (const gchar* creator_title, gint creator_size);
+static PublishingFlickrPublishingOptionsPaneSizeEntry* publishing_flickr_publishing_options_pane_size_entry_construct (GType object_type, const gchar* creator_title, gint creator_size);
+static void _vala_array_add25 (PublishingFlickrPublishingOptionsPaneSizeEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneSizeEntry* value);
+static void _vala_array_add26 (PublishingFlickrPublishingOptionsPaneSizeEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneSizeEntry* value);
+static void _vala_array_add27 (PublishingFlickrPublishingOptionsPaneSizeEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneSizeEntry* value);
+static void _vala_array_add28 (PublishingFlickrPublishingOptionsPaneSizeEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneSizeEntry* value);
+static void _vala_array_add29 (PublishingFlickrPublishingOptionsPaneSizeEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneSizeEntry* value);
+void publishing_flickr_publishing_options_pane_notify_publish (PublishingFlickrPublishingOptionsPane* self);
+void publishing_flickr_publishing_options_pane_notify_logout (PublishingFlickrPublishingOptionsPane* self);
+static GtkWidget* publishing_flickr_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_flickr_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_flickr_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void _publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, gboolean strip_metadata, gpointer self);
+static void _publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, gpointer self);
+static void publishing_flickr_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+enum {
+ PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY_DUMMY_PROPERTY
+};
+static void publishing_flickr_publishing_options_pane_size_entry_finalize (PublishingFlickrPublishingOptionsPaneSizeEntry* obj);
+enum {
+ PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY_DUMMY_PROPERTY
+};
+static void publishing_flickr_publishing_options_pane_visibility_entry_finalize (PublishingFlickrPublishingOptionsPaneVisibilityEntry* obj);
+static void publishing_flickr_publishing_options_pane_finalize (GObject* obj);
+#define PUBLISHING_FLICKR_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploaderPrivate))
+enum {
+ PUBLISHING_FLICKR_UPLOADER_DUMMY_PROPERTY
+};
+static void publishing_flickr_uploader_preprocess_publishable (PublishingFlickrUploader* self, SpitPublishingPublishable* publishable);
+static void _vala_array_add30 (gchar*** array, int* length, int* size, gchar* value);
+static PublishingRESTSupportTransaction* publishing_flickr_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable);
+static void publishing_flickr_uploader_finalize (PublishingRESTSupportBatchUploader* 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);
+
+
+FlickrService* flickr_service_construct (GType object_type, GFile* resource_directory) {
+ FlickrService * self = NULL;
+ GdkPixbuf** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (FlickrService*) g_object_new (object_type, NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = flickr_service_icon_pixbuf_set;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0__length1 = flickr_service_icon_pixbuf_set_length1;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 791 "FlickrPublishing.c"
+ gint _tmp1_ = 0;
+ GdkPixbuf** _tmp2_ = NULL;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" FLICKR_SERVICE_ICON_FILENAME, &_tmp1_);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ flickr_service_icon_pixbuf_set = (_vala_array_free (flickr_service_icon_pixbuf_set, flickr_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ flickr_service_icon_pixbuf_set = _tmp2_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ flickr_service_icon_pixbuf_set_length1 = _tmp1_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _flickr_service_icon_pixbuf_set_size_ = flickr_service_icon_pixbuf_set_length1;
+#line 804 "FlickrPublishing.c"
+ }
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 808 "FlickrPublishing.c"
+}
+
+
+FlickrService* flickr_service_new (GFile* resource_directory) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return flickr_service_construct (TYPE_FLICKR_SERVICE, resource_directory);
+#line 815 "FlickrPublishing.c"
+}
+
+
+static gint flickr_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ FlickrService * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = min_host_interface;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = max_host_interface;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp2_;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 837 "FlickrPublishing.c"
+}
+
+
+static const gchar* flickr_service_real_get_id (SpitPluggable* base) {
+ FlickrService * self;
+ const gchar* result = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = "org.yorba.shotwell.publishing.flickr";
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 850 "FlickrPublishing.c"
+}
+
+
+static const gchar* flickr_service_real_get_pluggable_name (SpitPluggable* base) {
+ FlickrService * self;
+ const gchar* result = NULL;
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = "Flickr";
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 863 "FlickrPublishing.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 870 "FlickrPublishing.c"
+}
+
+
+static GdkPixbuf** _vala_array_dup7 (GdkPixbuf** self, int length) {
+ GdkPixbuf** result;
+ int i;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = g_new0 (GdkPixbuf*, length + 1);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 881 "FlickrPublishing.c"
+ GdkPixbuf* _tmp0_ = NULL;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result[i] = _tmp0_;
+#line 887 "FlickrPublishing.c"
+ }
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 891 "FlickrPublishing.c"
+}
+
+
+static void flickr_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ FlickrService * self;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GdkPixbuf** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GdkPixbuf** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (info != NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = g_strdup ("Lucas Beeler");
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 ((*info).authors);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).authors = _tmp0_;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _ ("Copyright 2016 Software Freedom Conservancy Inc.");
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 ((*info).copyright);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).copyright = _tmp2_;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 ((*info).translators);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).translators = _tmp3_;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = g_strdup (_VERSION);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 ((*info).version);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).version = _tmp4_;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 ((*info).website_name);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).website_name = _tmp5_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 ((*info).website_url);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).website_url = _tmp6_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = g_strdup (RESOURCES_LICENSE);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 ((*info).license);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).license = _tmp7_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = flickr_service_icon_pixbuf_set;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8__length1 = flickr_service_icon_pixbuf_set_length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup7 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9__length1 = _tmp8__length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).icons = _tmp9_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*info).icons_length1 = _tmp9__length1;
+#line 973 "FlickrPublishing.c"
+}
+
+
+static void flickr_service_real_activation (SpitPluggable* base, gboolean enabled) {
+ FlickrService * self;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService);
+#line 981 "FlickrPublishing.c"
+}
+
+
+static SpitPublishingPublisher* flickr_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) {
+ FlickrService * self;
+ SpitPublishingPublisher* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingFlickrFlickrPublisher* _tmp1_ = NULL;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = host;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = publishing_flickr_flickr_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 1002 "FlickrPublishing.c"
+}
+
+
+static SpitPublishingPublisherMediaType flickr_service_real_get_supported_media (SpitPublishingService* base) {
+ FlickrService * self;
+ SpitPublishingPublisherMediaType result = 0;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService);
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 1015 "FlickrPublishing.c"
+}
+
+
+static void flickr_service_class_init (FlickrServiceClass * klass) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ flickr_service_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = flickr_service_finalize;
+#line 1024 "FlickrPublishing.c"
+}
+
+
+static void flickr_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ flickr_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) flickr_service_real_get_pluggable_interface;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) flickr_service_real_get_id;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) flickr_service_real_get_pluggable_name;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) flickr_service_real_get_info;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) flickr_service_real_activation;
+#line 1041 "FlickrPublishing.c"
+}
+
+
+static void flickr_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ flickr_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->create_publisher = (SpitPublishingPublisher* (*)(SpitPublishingService*, SpitPublishingPluginHost*)) flickr_service_real_create_publisher;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->get_supported_media = (SpitPublishingPublisherMediaType (*)(SpitPublishingService*)) flickr_service_real_get_supported_media;
+#line 1052 "FlickrPublishing.c"
+}
+
+
+static void flickr_service_instance_init (FlickrService * self) {
+}
+
+
+static void flickr_service_finalize (GObject* obj) {
+ FlickrService * self;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FLICKR_SERVICE, FlickrService);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_OBJECT_CLASS (flickr_service_parent_class)->finalize (obj);
+#line 1066 "FlickrPublishing.c"
+}
+
+
+GType flickr_service_get_type (void) {
+ static volatile gsize flickr_service_type_id__volatile = 0;
+ if (g_once_init_enter (&flickr_service_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (FlickrServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flickr_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlickrService), 0, (GInstanceInitFunc) flickr_service_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) flickr_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) flickr_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType flickr_service_type_id;
+ flickr_service_type_id = g_type_register_static (G_TYPE_OBJECT, "FlickrService", &g_define_type_info, 0);
+ g_type_add_interface_static (flickr_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (flickr_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info);
+ g_once_init_leave (&flickr_service_type_id__volatile, flickr_service_type_id);
+ }
+ return flickr_service_type_id__volatile;
+}
+
+
+GType publishing_flickr_user_kind_get_type (void) {
+ static volatile gsize publishing_flickr_user_kind_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_user_kind_type_id__volatile)) {
+ static const GEnumValue values[] = {{PUBLISHING_FLICKR_USER_KIND_PRO, "PUBLISHING_FLICKR_USER_KIND_PRO", "pro"}, {PUBLISHING_FLICKR_USER_KIND_FREE, "PUBLISHING_FLICKR_USER_KIND_FREE", "free"}, {0, NULL, NULL}};
+ GType publishing_flickr_user_kind_type_id;
+ publishing_flickr_user_kind_type_id = g_enum_register_static ("PublishingFlickrUserKind", values);
+ g_once_init_leave (&publishing_flickr_user_kind_type_id__volatile, publishing_flickr_user_kind_type_id);
+ }
+ return publishing_flickr_user_kind_type_id__volatile;
+}
+
+
+PublishingFlickrVisibilitySpecification* publishing_flickr_visibility_specification_construct (GType object_type, gint friends_level, gint family_level, gint everyone_level) {
+ PublishingFlickrVisibilitySpecification* self = NULL;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrVisibilitySpecification*) g_type_create_instance (object_type);
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = friends_level;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->friends_level = _tmp0_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = family_level;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->family_level = _tmp1_;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = everyone_level;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->everyone_level = _tmp2_;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 1119 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrVisibilitySpecification* publishing_flickr_visibility_specification_new (gint friends_level, gint family_level, gint everyone_level) {
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_visibility_specification_construct (PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, friends_level, family_level, everyone_level);
+#line 1126 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_value_visibility_specification_init (GValue* value) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1133 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_value_visibility_specification_free_value (GValue* value) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_visibility_specification_unref (value->data[0].v_pointer);
+#line 1142 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_value_visibility_specification_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_flickr_visibility_specification_ref (src_value->data[0].v_pointer);
+#line 1152 "FlickrPublishing.c"
+ } else {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1156 "FlickrPublishing.c"
+ }
+}
+
+
+static gpointer publishing_flickr_value_visibility_specification_peek_pointer (const GValue* value) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1164 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_value_visibility_specification_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 1171 "FlickrPublishing.c"
+ PublishingFlickrVisibilitySpecification* object;
+ object = collect_values[0].v_pointer;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1178 "FlickrPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 1182 "FlickrPublishing.c"
+ }
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = publishing_flickr_visibility_specification_ref (object);
+#line 1186 "FlickrPublishing.c"
+ } else {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1190 "FlickrPublishing.c"
+ }
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 1194 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_value_visibility_specification_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFlickrVisibilitySpecification** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!object_p) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1205 "FlickrPublishing.c"
+ }
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = NULL;
+#line 1211 "FlickrPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1215 "FlickrPublishing.c"
+ } else {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = publishing_flickr_visibility_specification_ref (value->data[0].v_pointer);
+#line 1219 "FlickrPublishing.c"
+ }
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 1223 "FlickrPublishing.c"
+}
+
+
+GParamSpec* publishing_flickr_param_spec_visibility_specification (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFlickrParamSpecVisibilitySpecification* spec;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION), NULL);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 1237 "FlickrPublishing.c"
+}
+
+
+gpointer publishing_flickr_value_get_visibility_specification (const GValue* value) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION), NULL);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1246 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_value_set_visibility_specification (GValue* value, gpointer v_object) {
+ PublishingFlickrVisibilitySpecification* old;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION));
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (v_object) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION));
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_visibility_specification_ref (value->data[0].v_pointer);
+#line 1266 "FlickrPublishing.c"
+ } else {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1270 "FlickrPublishing.c"
+ }
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (old) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_visibility_specification_unref (old);
+#line 1276 "FlickrPublishing.c"
+ }
+}
+
+
+void publishing_flickr_value_take_visibility_specification (GValue* value, gpointer v_object) {
+ PublishingFlickrVisibilitySpecification* old;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION));
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (v_object) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION));
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1295 "FlickrPublishing.c"
+ } else {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1299 "FlickrPublishing.c"
+ }
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (old) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_visibility_specification_unref (old);
+#line 1305 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_visibility_specification_class_init (PublishingFlickrVisibilitySpecificationClass * klass) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_visibility_specification_parent_class = g_type_class_peek_parent (klass);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingFlickrVisibilitySpecificationClass *) klass)->finalize = publishing_flickr_visibility_specification_finalize;
+#line 1315 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_visibility_specification_instance_init (PublishingFlickrVisibilitySpecification * self) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->ref_count = 1;
+#line 1322 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_visibility_specification_finalize (PublishingFlickrVisibilitySpecification* obj) {
+ PublishingFlickrVisibilitySpecification * self;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecification);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 1332 "FlickrPublishing.c"
+}
+
+
+GType publishing_flickr_visibility_specification_get_type (void) {
+ static volatile gsize publishing_flickr_visibility_specification_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_visibility_specification_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_flickr_value_visibility_specification_init, publishing_flickr_value_visibility_specification_free_value, publishing_flickr_value_visibility_specification_copy_value, publishing_flickr_value_visibility_specification_peek_pointer, "p", publishing_flickr_value_visibility_specification_collect_value, "p", publishing_flickr_value_visibility_specification_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrVisibilitySpecificationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_visibility_specification_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrVisibilitySpecification), 0, (GInstanceInitFunc) publishing_flickr_visibility_specification_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 publishing_flickr_visibility_specification_type_id;
+ publishing_flickr_visibility_specification_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrVisibilitySpecification", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_flickr_visibility_specification_type_id__volatile, publishing_flickr_visibility_specification_type_id);
+ }
+ return publishing_flickr_visibility_specification_type_id__volatile;
+}
+
+
+gpointer publishing_flickr_visibility_specification_ref (gpointer instance) {
+ PublishingFlickrVisibilitySpecification* self;
+ self = instance;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return instance;
+#line 1357 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_visibility_specification_unref (gpointer instance) {
+ PublishingFlickrVisibilitySpecification* self;
+ self = instance;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION_GET_CLASS (self)->finalize (self);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1370 "FlickrPublishing.c"
+ }
+}
+
+
+PublishingFlickrPublishingParameters* publishing_flickr_publishing_parameters_construct (GType object_type) {
+ PublishingFlickrPublishingParameters* self = NULL;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrPublishingParameters*) g_type_create_instance (object_type);
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 1381 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrPublishingParameters* publishing_flickr_publishing_parameters_new (void) {
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_publishing_parameters_construct (PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS);
+#line 1388 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_value_publishing_parameters_init (GValue* value) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1395 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_value_publishing_parameters_free_value (GValue* value) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_parameters_unref (value->data[0].v_pointer);
+#line 1404 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_value_publishing_parameters_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_flickr_publishing_parameters_ref (src_value->data[0].v_pointer);
+#line 1414 "FlickrPublishing.c"
+ } else {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1418 "FlickrPublishing.c"
+ }
+}
+
+
+static gpointer publishing_flickr_value_publishing_parameters_peek_pointer (const GValue* value) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1426 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_value_publishing_parameters_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 1433 "FlickrPublishing.c"
+ PublishingFlickrPublishingParameters* object;
+ object = collect_values[0].v_pointer;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1440 "FlickrPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 1444 "FlickrPublishing.c"
+ }
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = publishing_flickr_publishing_parameters_ref (object);
+#line 1448 "FlickrPublishing.c"
+ } else {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1452 "FlickrPublishing.c"
+ }
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 1456 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_value_publishing_parameters_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFlickrPublishingParameters** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!object_p) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1467 "FlickrPublishing.c"
+ }
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = NULL;
+#line 1473 "FlickrPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1477 "FlickrPublishing.c"
+ } else {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = publishing_flickr_publishing_parameters_ref (value->data[0].v_pointer);
+#line 1481 "FlickrPublishing.c"
+ }
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 1485 "FlickrPublishing.c"
+}
+
+
+GParamSpec* publishing_flickr_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFlickrParamSpecPublishingParameters* spec;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 1499 "FlickrPublishing.c"
+}
+
+
+gpointer publishing_flickr_value_get_publishing_parameters (const GValue* value) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1508 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_value_set_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingFlickrPublishingParameters* old;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS));
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (v_object) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS));
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_parameters_ref (value->data[0].v_pointer);
+#line 1528 "FlickrPublishing.c"
+ } else {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1532 "FlickrPublishing.c"
+ }
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (old) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_parameters_unref (old);
+#line 1538 "FlickrPublishing.c"
+ }
+}
+
+
+void publishing_flickr_value_take_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingFlickrPublishingParameters* old;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS));
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (v_object) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS));
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1557 "FlickrPublishing.c"
+ } else {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1561 "FlickrPublishing.c"
+ }
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (old) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_parameters_unref (old);
+#line 1567 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_publishing_parameters_class_init (PublishingFlickrPublishingParametersClass * klass) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_parameters_parent_class = g_type_class_peek_parent (klass);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingFlickrPublishingParametersClass *) klass)->finalize = publishing_flickr_publishing_parameters_finalize;
+#line 1577 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_parameters_instance_init (PublishingFlickrPublishingParameters * self) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->ref_count = 1;
+#line 1584 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_parameters_finalize (PublishingFlickrPublishingParameters* obj) {
+ PublishingFlickrPublishingParameters * self;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParameters);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->username);
+#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_visibility_specification_unref0 (self->visibility_specification);
+#line 1598 "FlickrPublishing.c"
+}
+
+
+GType publishing_flickr_publishing_parameters_get_type (void) {
+ static volatile gsize publishing_flickr_publishing_parameters_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_publishing_parameters_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_flickr_value_publishing_parameters_init, publishing_flickr_value_publishing_parameters_free_value, publishing_flickr_value_publishing_parameters_copy_value, publishing_flickr_value_publishing_parameters_peek_pointer, "p", publishing_flickr_value_publishing_parameters_collect_value, "p", publishing_flickr_value_publishing_parameters_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingParameters), 0, (GInstanceInitFunc) publishing_flickr_publishing_parameters_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 publishing_flickr_publishing_parameters_type_id;
+ publishing_flickr_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_flickr_publishing_parameters_type_id__volatile, publishing_flickr_publishing_parameters_type_id);
+ }
+ return publishing_flickr_publishing_parameters_type_id__volatile;
+}
+
+
+gpointer publishing_flickr_publishing_parameters_ref (gpointer instance) {
+ PublishingFlickrPublishingParameters* self;
+ self = instance;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return instance;
+#line 1623 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_publishing_parameters_unref (gpointer instance) {
+ PublishingFlickrPublishingParameters* self;
+ self = instance;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ PUBLISHING_FLICKR_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1636 "FlickrPublishing.c"
+ }
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_session_authenticated_publishing_rest_support_session_authenticated (PublishingRESTSupportSession* _sender, gpointer self) {
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_session_authenticated ((PublishingFlickrFlickrPublisher*) self);
+#line 1644 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrFlickrPublisher* publishing_flickr_flickr_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) {
+ PublishingFlickrFlickrPublisher * self = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ PublishingFlickrSession* _tmp4_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp5_ = NULL;
+ PublishingFlickrSession* _tmp6_ = NULL;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrFlickrPublisher*) g_object_new (object_type, NULL);
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:112: FlickrPublisher instantiated.");
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = service;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->service);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->service = _tmp1_;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = host;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->host);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->host = _tmp3_;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = publishing_flickr_session_new ();
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->session = _tmp4_;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = publishing_flickr_publishing_parameters_new ();
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters);
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->parameters = _tmp5_;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = self->priv->session;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated", (GCallback) _publishing_flickr_flickr_publisher_on_session_authenticated_publishing_rest_support_session_authenticated, self, 0);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 1699 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrFlickrPublisher* publishing_flickr_flickr_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_flickr_publisher_construct (PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, service, host);
+#line 1706 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_invalidate_persistent_session (PublishingFlickrFlickrPublisher* self) {
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_set_persistent_access_phase_token (self, "");
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_set_persistent_access_phase_token_secret (self, "");
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_set_persistent_access_phase_username (self, "");
+#line 1719 "FlickrPublishing.c"
+}
+
+
+static gboolean publishing_flickr_flickr_publisher_is_persistent_session_valid (PublishingFlickrFlickrPublisher* self) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), FALSE);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = publishing_flickr_flickr_publisher_get_persistent_access_phase_username (self);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _tmp3_ != NULL;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp4_) {
+#line 1742 "FlickrPublishing.c"
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = publishing_flickr_flickr_publisher_get_persistent_access_phase_token (self);
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _tmp6_ != NULL;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 1753 "FlickrPublishing.c"
+ } else {
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = FALSE;
+#line 1757 "FlickrPublishing.c"
+ }
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp1_) {
+#line 1761 "FlickrPublishing.c"
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = publishing_flickr_flickr_publisher_get_persistent_access_phase_token_secret (self);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = _tmp8_ != NULL;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 1772 "FlickrPublishing.c"
+ } else {
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = FALSE;
+#line 1776 "FlickrPublishing.c"
+ }
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp0_;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 1782 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_flickr_publisher_get_persistent_access_phase_username (PublishingFlickrFlickrPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), NULL);
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_username", NULL);
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp1_;
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 1800 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_set_persistent_access_phase_username (PublishingFlickrFlickrPublisher* self, const gchar* username) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = username;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_username", _tmp1_);
+#line 1817 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_flickr_publisher_get_persistent_access_phase_token (PublishingFlickrFlickrPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), NULL);
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token", NULL);
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp1_;
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 1835 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_set_persistent_access_phase_token (PublishingFlickrFlickrPublisher* self, const gchar* token) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = token;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token", _tmp1_);
+#line 1852 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_flickr_publisher_get_persistent_access_phase_token_secret (PublishingFlickrFlickrPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), NULL);
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token_secret", NULL);
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp1_;
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 1870 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_set_persistent_access_phase_token_secret (PublishingFlickrFlickrPublisher* self, const gchar* secret) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (secret != NULL);
+#line 158 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 158 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = secret;
+#line 158 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token_secret", _tmp1_);
+#line 1887 "FlickrPublishing.c"
+}
+
+
+static gboolean publishing_flickr_flickr_publisher_get_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self) {
+ gboolean result = FALSE;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), FALSE);
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", FALSE);
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp1_;
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 1905 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_set_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self, gboolean strip_metadata) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = strip_metadata;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", _tmp1_);
+#line 1920 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_welcome_pane_login_clicked (PublishingFlickrFlickrPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp0_) {
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 1934 "FlickrPublishing.c"
+ }
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:173: EVENT: user clicked 'Login' button in the w" \
+"elcome pane");
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_run_authentication_request_transaction (self);
+#line 1940 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_auth_request_txn_completed ((PublishingFlickrFlickrPublisher*) self, _sender);
+#line 1947 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_auth_request_txn_error ((PublishingFlickrFlickrPublisher*) self, _sender, err);
+#line 1954 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_auth_request_txn_completed (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ PublishingRESTSupportTransaction* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = txn;
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self);
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = txn;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self);
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp4_) {
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 1992 "FlickrPublishing.c"
+ }
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = txn;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:185: EVENT: OAuth authentication request transac" \
+"tion completed; response = '%s'", _tmp7_);
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = txn;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = publishing_rest_support_transaction_get_response (_tmp8_);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_parse_token_info_from_auth_request (self, _tmp10_);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp10_);
+#line 2014 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_auth_request_txn_error (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = txn;
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self);
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = txn;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self);
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp4_) {
+#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2048 "FlickrPublishing.c"
+ }
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:199: EVENT: OAuth authentication request transac" \
+"tion caused a network error");
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = self->priv->host;
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = err;
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp5_, _tmp6_);
+#line 2058 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_authentication_token_available (PublishingFlickrFlickrPublisher* self, const gchar* token, const gchar* token_secret) {
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingFlickrSession* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (token_secret != NULL);
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = token;
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = token_secret;
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:204: EVENT: OAuth authentication token (%s) and " \
+"token secret (%s) available", _tmp0_, _tmp1_);
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = token;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = token_secret;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_session_set_request_phase_credentials (_tmp2_, _tmp3_, _tmp4_);
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = token;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_launch_system_browser (self, _tmp5_);
+#line 2093 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_system_browser_launched (PublishingFlickrFlickrPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp0_) {
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2107 "FlickrPublishing.c"
+ }
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:216: EVENT: system browser launched.");
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_show_pin_entry_pane (self);
+#line 2113 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_pin_entry_proceed_publishing_flickr_pin_entry_pane_proceed (PublishingFlickrPinEntryPane* _sender, PublishingFlickrPinEntryPane* sender, const gchar* authorization_pin, gpointer self) {
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_pin_entry_proceed ((PublishingFlickrFlickrPublisher*) self, sender, authorization_pin);
+#line 2120 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_pin_entry_proceed (PublishingFlickrFlickrPublisher* self, PublishingFlickrPinEntryPane* sender, const gchar* pin) {
+ PublishingFlickrPinEntryPane* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ gboolean _tmp2_ = FALSE;
+ const gchar* _tmp3_ = NULL;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PIN_ENTRY_PANE (sender));
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (pin != NULL);
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = sender;
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("proceed", PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, &_tmp1_, NULL, FALSE);
+#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_pin_entry_proceed_publishing_flickr_pin_entry_pane_proceed, self);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp2_) {
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2147 "FlickrPublishing.c"
+ }
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:227: EVENT: user clicked 'Continue' in PIN entry" \
+" pane.");
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = pin;
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_verify_pin (self, _tmp3_);
+#line 2155 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_access_token_fetch_txn_completed ((PublishingFlickrFlickrPublisher*) self, _sender);
+#line 2162 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_access_token_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_access_token_fetch_error ((PublishingFlickrFlickrPublisher*) self, _sender, err);
+#line 2169 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_access_token_fetch_txn_completed (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = txn;
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed, self);
+#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = txn;
+#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_access_token_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp4_) {
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2204 "FlickrPublishing.c"
+ }
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:239: EVENT: fetching OAuth access token over the" \
+" network succeeded");
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = txn;
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_);
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_extract_access_phase_credentials_from_reponse (self, _tmp7_);
+#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 2218 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_access_token_fetch_error (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = txn;
+#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed, self);
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = txn;
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_access_token_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp4_) {
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2252 "FlickrPublishing.c"
+ }
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:252: EVENT: fetching OAuth access token over the" \
+" network caused an error.");
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = self->priv->host;
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = err;
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp5_, _tmp6_);
+#line 2262 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_session_authenticated (PublishingFlickrFlickrPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+ PublishingFlickrPublishingParameters* _tmp1_ = NULL;
+ PublishingFlickrSession* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingFlickrSession* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ PublishingFlickrSession* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingFlickrSession* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp0_) {
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2288 "FlickrPublishing.c"
+ }
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:261: EVENT: a fully authenticated session has be" \
+"come available");
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->parameters;
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = publishing_flickr_session_get_username (_tmp2_);
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp1_->username);
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_->username = _tmp3_;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = self->priv->session;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = publishing_flickr_session_get_access_phase_token (_tmp4_);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_set_persistent_access_phase_token (self, _tmp6_);
+#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = self->priv->session;
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = publishing_flickr_session_get_access_phase_token_secret (_tmp7_);
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_set_persistent_access_phase_token_secret (self, _tmp9_);
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = self->priv->session;
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = publishing_flickr_session_get_username (_tmp10_);
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = _tmp11_;
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_set_persistent_access_phase_username (self, _tmp12_);
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp12_);
+#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_fetch_account_info (self);
+#line 2334 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_account_fetch_txn_completed ((PublishingFlickrFlickrPublisher*) self, _sender);
+#line 2341 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_account_fetch_txn_error ((PublishingFlickrFlickrPublisher*) self, _sender, err);
+#line 2348 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_account_fetch_txn_completed (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = txn;
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed, self);
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = txn;
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error, self);
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp4_) {
+#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2383 "FlickrPublishing.c"
+ }
+#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:279: EVENT: account fetch transaction response r" \
+"eceived over the network");
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = txn;
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_parse_account_info_from_xml (self, _tmp7_);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 2397 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_account_fetch_txn_error (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = txn;
+#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed, self);
+#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = txn;
+#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error, self);
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp4_) {
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2431 "FlickrPublishing.c"
+ }
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:291: EVENT: account fetch transaction caused a n" \
+"etwork error");
+#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = self->priv->host;
+#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = err;
+#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp5_, _tmp6_);
+#line 2441 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_account_info_available (PublishingFlickrFlickrPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp0_) {
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2455 "FlickrPublishing.c"
+ }
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:299: EVENT: account information has become avail" \
+"able");
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_show_publishing_options_pane (self);
+#line 2461 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, gboolean strip_metadata, gpointer self) {
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_publishing_options_pane_publish ((PublishingFlickrFlickrPublisher*) self, strip_metadata);
+#line 2468 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, gpointer self) {
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_publishing_options_pane_logout ((PublishingFlickrFlickrPublisher*) self);
+#line 2475 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_publishing_options_pane_publish (PublishingFlickrFlickrPublisher* self, gboolean strip_metadata) {
+ PublishingFlickrPublishingOptionsPane* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFlickrPublishingOptionsPane* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ gboolean _tmp5_ = FALSE;
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->publishing_options_pane;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE);
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish, self);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->publishing_options_pane;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE);
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout, self);
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp4_) {
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2506 "FlickrPublishing.c"
+ }
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:310: EVENT: user clicked the 'Publish' button in" \
+" the publishing options pane");
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = strip_metadata;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_publish (self, _tmp5_);
+#line 2514 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_publishing_options_pane_logout (PublishingFlickrFlickrPublisher* self) {
+ PublishingFlickrPublishingOptionsPane* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingFlickrPublishingOptionsPane* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->publishing_options_pane;
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE);
+#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish, self);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->publishing_options_pane;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout, self);
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp4_) {
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2544 "FlickrPublishing.c"
+ }
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:321: EVENT: user clicked the 'Logout' button in " \
+"the publishing options pane");
+#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_logout (self);
+#line 2550 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_upload_status_updated (PublishingFlickrFlickrPublisher* self, gint file_number, gdouble completed_fraction) {
+ gboolean _tmp0_ = FALSE;
+ gdouble _tmp1_ = 0.0;
+ SpitPublishingProgressCallback _tmp2_ = NULL;
+ void* _tmp2__target = NULL;
+ SpitPublishingProgressCallback _tmp3_ = NULL;
+ void* _tmp3__target = NULL;
+ gint _tmp4_ = 0;
+ gdouble _tmp5_ = 0.0;
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp0_) {
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2571 "FlickrPublishing.c"
+ }
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = completed_fraction;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:330: EVENT: uploader reports upload %.2f percent" \
+" complete.", 100.0 * _tmp1_);
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->progress_reporter;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2__target = self->priv->progress_reporter_target;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_assert (_tmp2_ != NULL, "progress_reporter != null");
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = self->priv->progress_reporter;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3__target = self->priv->progress_reporter_target;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = file_number;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = completed_fraction;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ (_tmp4_, _tmp5_, _tmp3__target);
+#line 2593 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self) {
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_upload_complete ((PublishingFlickrFlickrPublisher*) self, _sender, num_photos_published);
+#line 2600 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self) {
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_upload_error ((PublishingFlickrFlickrPublisher*) self, _sender, err);
+#line 2607 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_upload_complete (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) {
+ gboolean _tmp0_ = FALSE;
+ gint _tmp1_ = 0;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp0_) {
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2628 "FlickrPublishing.c"
+ }
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = num_published;
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:342: EVENT: uploader reports upload complete; %d" \
+" items published.", _tmp1_);
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = uploader;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = uploader;
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp5_, NULL, FALSE);
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_show_success_pane (self);
+#line 2648 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_on_upload_error (PublishingFlickrFlickrPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err) {
+ gboolean _tmp0_ = FALSE;
+ GError* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRESTSupportBatchUploader* _tmp3_ = NULL;
+ guint _tmp4_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp5_ = NULL;
+ guint _tmp6_ = 0U;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp0_) {
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2672 "FlickrPublishing.c"
+ }
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = err;
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = _tmp1_->message;
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:355: EVENT: uploader reports upload error = '%s'" \
+".", _tmp2_);
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = uploader;
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp4_, NULL, FALSE);
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = uploader;
+#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp6_, NULL, FALSE);
+#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = err;
+#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
+#line 2698 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_welcome_pane_login_clicked_spit_publishing_login_callback (gpointer self) {
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_welcome_pane_login_clicked ((PublishingFlickrFlickrPublisher*) self);
+#line 2705 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_show_login_welcome_pane (PublishingFlickrFlickrPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:364: ACTION: installing login welcome pane");
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_install_welcome_pane (_tmp1_, PUBLISHING_FLICKR_SERVICE_WELCOME_MESSAGE, _publishing_flickr_flickr_publisher_on_welcome_pane_login_clicked_spit_publishing_login_callback, self);
+#line 2724 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_run_authentication_request_transaction (PublishingFlickrFlickrPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingFlickrAuthenticationRequestTransaction* txn = NULL;
+ PublishingFlickrSession* _tmp3_ = NULL;
+ PublishingFlickrAuthenticationRequestTransaction* _tmp4_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:371: ACTION: running authentication request tran" \
+"saction");
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = _ ("Preparing for login...");
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_install_static_message_pane (_tmp1_, _tmp2_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = self->priv->session;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = publishing_flickr_authentication_request_transaction_new (_tmp3_);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ txn = _tmp4_;
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_flickr_flickr_publisher_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self, 0);
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_flickr_flickr_publisher_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 2760 "FlickrPublishing.c"
+ {
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2768 "FlickrPublishing.c"
+ goto __catch16_spit_publishing_publishing_error;
+ }
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2779 "FlickrPublishing.c"
+ }
+ }
+ goto __finally16;
+ __catch16_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ err = _inner_error_;
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = self->priv->host;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = err;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp5_, _tmp6_);
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (err);
+#line 2800 "FlickrPublishing.c"
+ }
+ __finally16:
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 2813 "FlickrPublishing.c"
+ }
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 2817 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_parse_token_info_from_auth_request (PublishingFlickrFlickrPublisher* self, const gchar* response) {
+ const gchar* _tmp0_ = NULL;
+ gchar* oauth_token = NULL;
+ gchar* oauth_token_secret = NULL;
+ gchar** key_value_pairs = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar** _tmp2_ = NULL;
+ gchar** _tmp3_ = NULL;
+ gint key_value_pairs_length1 = 0;
+ gint _key_value_pairs_size_ = 0;
+ gchar** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ gboolean _tmp24_ = FALSE;
+ const gchar* _tmp25_ = NULL;
+ const gchar* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (response != NULL);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = response;
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:388: ACTION: parsing authorization request respo" \
+"nse '%s' into token and secret", _tmp0_);
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ oauth_token = NULL;
+#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ oauth_token_secret = NULL;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = response;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _tmp2_ = g_strsplit (_tmp1_, "&", 0);
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ key_value_pairs = _tmp3_;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ key_value_pairs_length1 = _vala_array_length (_tmp2_);
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _key_value_pairs_size_ = key_value_pairs_length1;
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = key_value_pairs;
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4__length1 = key_value_pairs_length1;
+#line 2863 "FlickrPublishing.c"
+ {
+ gchar** pair_collection = NULL;
+ gint pair_collection_length1 = 0;
+ gint _pair_collection_size_ = 0;
+ gint pair_it = 0;
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ pair_collection = _tmp4_;
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ pair_collection_length1 = _tmp4__length1;
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ for (pair_it = 0; pair_it < _tmp4__length1; pair_it = pair_it + 1) {
+#line 2875 "FlickrPublishing.c"
+ gchar* _tmp5_ = NULL;
+ gchar* pair = NULL;
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = g_strdup (pair_collection[pair_it]);
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ pair = _tmp5_;
+#line 2882 "FlickrPublishing.c"
+ {
+ gchar** split_pair = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gchar** _tmp8_ = NULL;
+ gint split_pair_length1 = 0;
+ gint _split_pair_size_ = 0;
+ gchar** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ gchar** _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ const gchar* _tmp15_ = NULL;
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = pair;
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = _tmp7_ = g_strsplit (_tmp6_, "=", 0);
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ split_pair = _tmp8_;
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ split_pair_length1 = _vala_array_length (_tmp7_);
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _split_pair_size_ = split_pair_length1;
+#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = split_pair;
+#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9__length1 = split_pair_length1;
+#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp9__length1 != 2) {
+#line 2911 "FlickrPublishing.c"
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ GError* _tmp12_ = NULL;
+ GError* _tmp13_ = NULL;
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = self->priv->host;
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = response;
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "'%s' isn't a valid response to an OAuth authentication request", _tmp11_);
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp10_, _tmp13_);
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (_tmp13_);
+#line 2928 "FlickrPublishing.c"
+ }
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = split_pair;
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14__length1 = split_pair_length1;
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = _tmp14_[0];
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_strcmp0 (_tmp15_, "oauth_token") == 0) {
+#line 2938 "FlickrPublishing.c"
+ gchar** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+ const gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = split_pair;
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16__length1 = split_pair_length1;
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = _tmp16_[1];
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = g_strdup (_tmp17_);
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (oauth_token);
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ oauth_token = _tmp18_;
+#line 2955 "FlickrPublishing.c"
+ } else {
+ gchar** _tmp19_ = NULL;
+ gint _tmp19__length1 = 0;
+ const gchar* _tmp20_ = NULL;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = split_pair;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19__length1 = split_pair_length1;
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = _tmp19_[0];
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_strcmp0 (_tmp20_, "oauth_token_secret") == 0) {
+#line 2968 "FlickrPublishing.c"
+ gchar** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+ const gchar* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21_ = split_pair;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21__length1 = split_pair_length1;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = _tmp21_[1];
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = g_strdup (_tmp22_);
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (oauth_token_secret);
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ oauth_token_secret = _tmp23_;
+#line 2985 "FlickrPublishing.c"
+ }
+ }
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ split_pair = (_vala_array_free (split_pair, split_pair_length1, (GDestroyNotify) g_free), NULL);
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (pair);
+#line 2992 "FlickrPublishing.c"
+ }
+ }
+ }
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp25_ = oauth_token;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp25_ == NULL) {
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = TRUE;
+#line 3002 "FlickrPublishing.c"
+ } else {
+ const gchar* _tmp26_ = NULL;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26_ = oauth_token_secret;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = _tmp26_ == NULL;
+#line 3009 "FlickrPublishing.c"
+ }
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp24_) {
+#line 3013 "FlickrPublishing.c"
+ SpitPublishingPluginHost* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+ GError* _tmp29_ = NULL;
+ GError* _tmp30_ = NULL;
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp27_ = self->priv->host;
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp28_ = response;
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp29_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "'%s' isn't a valid response to an OAuth authentication request", _tmp28_);
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp30_ = _tmp29_;
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp27_, _tmp30_);
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (_tmp30_);
+#line 3030 "FlickrPublishing.c"
+ }
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp31_ = oauth_token;
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp32_ = oauth_token_secret;
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_authentication_token_available (self, _tmp31_, _tmp32_);
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ key_value_pairs = (_vala_array_free (key_value_pairs, key_value_pairs_length1, (GDestroyNotify) g_free), NULL);
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (oauth_token_secret);
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (oauth_token);
+#line 3044 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_launch_system_browser (PublishingFlickrFlickrPublisher* self, const gchar* token) {
+ gchar* login_uri = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = token;
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = g_strconcat ("https://www.flickr.com/services/oauth/authorize?oauth_token=", _tmp0_, NULL);
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = g_strconcat (_tmp2_, "&perms=write", NULL);
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp2_);
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ login_uri = _tmp4_;
+#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = login_uri;
+#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:419: ACTION: launching system browser with uri =" \
+" '%s'", _tmp5_);
+#line 3079 "FlickrPublishing.c"
+ {
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = login_uri;
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = g_strconcat ("xdg-open ", _tmp6_, NULL);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_spawn_command_line_async (_tmp8_, &_inner_error_);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == G_SPAWN_ERROR) {
+#line 3098 "FlickrPublishing.c"
+ goto __catch17_g_spawn_error;
+ }
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (login_uri);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3109 "FlickrPublishing.c"
+ }
+ }
+ goto __finally17;
+ __catch17_g_spawn_error:
+ {
+ GError* e = NULL;
+ SpitPublishingPluginHost* _tmp9_ = NULL;
+ GError* _tmp10_ = NULL;
+ GError* _tmp11_ = NULL;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ e = _inner_error_;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = self->priv->host;
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, "couldn't launch system web browser to complete Flickr login");
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp9_, _tmp11_);
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (_tmp11_);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (e);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (login_uri);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3139 "FlickrPublishing.c"
+ }
+ __finally17:
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (login_uri);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3152 "FlickrPublishing.c"
+ }
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_system_browser_launched (self);
+#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (login_uri);
+#line 3158 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_show_pin_entry_pane (PublishingFlickrFlickrPublisher* self) {
+ GtkBuilder* builder = NULL;
+ GtkBuilder* _tmp0_ = NULL;
+ PublishingFlickrPinEntryPane* pin_entry_pane = NULL;
+ GtkBuilder* _tmp8_ = NULL;
+ PublishingFlickrPinEntryPane* _tmp9_ = NULL;
+ PublishingFlickrPinEntryPane* _tmp10_ = NULL;
+ SpitPublishingPluginHost* _tmp11_ = NULL;
+ PublishingFlickrPinEntryPane* _tmp12_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:433: ACTION: showing PIN entry pane");
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = gtk_builder_new ();
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ builder = _tmp0_;
+#line 3180 "FlickrPublishing.c"
+ {
+ GtkBuilder* _tmp1_ = NULL;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = builder;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/" "flickr_pin_entry_pane.ui", &_inner_error_);
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 3189 "FlickrPublishing.c"
+ goto __catch18_g_error;
+ }
+ }
+ goto __finally18;
+ __catch18_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ e = _inner_error_;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = e;
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _tmp2_->message;
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_warning ("FlickrPublishing.vala:441: Could not parse UI file! Error: %s.", _tmp3_);
+#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = self->priv->host;
+#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _ ("A file required for publishing is unavailable. Publishing to Flickr ca" \
+"n't continue.");
+#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp5_);
+#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp4_, _tmp7_);
+#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (_tmp7_);
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (e);
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (builder);
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3231 "FlickrPublishing.c"
+ }
+ __finally18:
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (builder);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3244 "FlickrPublishing.c"
+ }
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = builder;
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = publishing_flickr_pin_entry_pane_new (_tmp8_);
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ pin_entry_pane = _tmp9_;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = pin_entry_pane;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (_tmp10_, "proceed", (GCallback) _publishing_flickr_flickr_publisher_on_pin_entry_proceed_publishing_flickr_pin_entry_pane_proceed, self, 0);
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = self->priv->host;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = pin_entry_pane;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (pin_entry_pane);
+#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (builder);
+#line 3266 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_verify_pin (PublishingFlickrFlickrPublisher* self, const gchar* pin) {
+ const gchar* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ PublishingFlickrAccessTokenFetchTransaction* txn = NULL;
+ PublishingFlickrSession* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ PublishingFlickrAccessTokenFetchTransaction* _tmp6_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (pin != NULL);
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = pin;
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:454: ACTION: validating authorization PIN %s", _tmp0_);
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE);
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->host;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _ ("Verifying authorization...");
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_install_static_message_pane (_tmp2_, _tmp3_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = self->priv->session;
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = pin;
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = publishing_flickr_access_token_fetch_transaction_new (_tmp4_, _tmp5_);
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ txn = _tmp6_;
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_flickr_flickr_publisher_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed, self, 0);
+#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_flickr_flickr_publisher_on_access_token_fetch_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 3310 "FlickrPublishing.c"
+ {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3318 "FlickrPublishing.c"
+ goto __catch19_spit_publishing_publishing_error;
+ }
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3329 "FlickrPublishing.c"
+ }
+ }
+ goto __finally19;
+ __catch19_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ err = _inner_error_;
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = err;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (err);
+#line 3350 "FlickrPublishing.c"
+ }
+ __finally19:
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3363 "FlickrPublishing.c"
+ }
+#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 3367 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_extract_access_phase_credentials_from_reponse (PublishingFlickrFlickrPublisher* self, const gchar* response) {
+ const gchar* _tmp0_ = NULL;
+ gchar** key_value_pairs = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar** _tmp2_ = NULL;
+ gchar** _tmp3_ = NULL;
+ gint key_value_pairs_length1 = 0;
+ gint _key_value_pairs_size_ = 0;
+ gchar* token = NULL;
+ gchar* token_secret = NULL;
+ gchar* username = NULL;
+ gchar** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp25_ = NULL;
+ const gchar* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+ gboolean _tmp28_ = FALSE;
+ gboolean _tmp29_ = FALSE;
+ const gchar* _tmp30_ = NULL;
+ PublishingFlickrSession* _tmp36_ = NULL;
+ const gchar* _tmp37_ = NULL;
+ const gchar* _tmp38_ = NULL;
+ const gchar* _tmp39_ = NULL;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (response != NULL);
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = response;
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:471: ACTION: extracting access phase credentials" \
+" from '%s'", _tmp0_);
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = response;
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _tmp2_ = g_strsplit (_tmp1_, "&", 0);
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ key_value_pairs = _tmp3_;
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ key_value_pairs_length1 = _vala_array_length (_tmp2_);
+#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _key_value_pairs_size_ = key_value_pairs_length1;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ token = NULL;
+#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ token_secret = NULL;
+#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ username = NULL;
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = key_value_pairs;
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4__length1 = key_value_pairs_length1;
+#line 3422 "FlickrPublishing.c"
+ {
+ gchar** key_value_pair_collection = NULL;
+ gint key_value_pair_collection_length1 = 0;
+ gint _key_value_pair_collection_size_ = 0;
+ gint key_value_pair_it = 0;
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ key_value_pair_collection = _tmp4_;
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ key_value_pair_collection_length1 = _tmp4__length1;
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ for (key_value_pair_it = 0; key_value_pair_it < _tmp4__length1; key_value_pair_it = key_value_pair_it + 1) {
+#line 3434 "FlickrPublishing.c"
+ gchar* _tmp5_ = NULL;
+ gchar* key_value_pair = NULL;
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = g_strdup (key_value_pair_collection[key_value_pair_it]);
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ key_value_pair = _tmp5_;
+#line 3441 "FlickrPublishing.c"
+ {
+ gchar** split_pair = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gchar** _tmp8_ = NULL;
+ gint split_pair_length1 = 0;
+ gint _split_pair_size_ = 0;
+ gchar** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ gchar* key = NULL;
+ gchar** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* value = NULL;
+ gchar** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ const gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = key_value_pair;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = _tmp7_ = g_strsplit (_tmp6_, "=", 0);
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ split_pair = _tmp8_;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ split_pair_length1 = _vala_array_length (_tmp7_);
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _split_pair_size_ = split_pair_length1;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = split_pair;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9__length1 = split_pair_length1;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp9__length1 != 2) {
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ split_pair = (_vala_array_free (split_pair, split_pair_length1, (GDestroyNotify) g_free), NULL);
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (key_value_pair);
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ continue;
+#line 3484 "FlickrPublishing.c"
+ }
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = split_pair;
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10__length1 = split_pair_length1;
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = _tmp10_[0];
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = g_strdup (_tmp11_);
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ key = _tmp12_;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = split_pair;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13__length1 = split_pair_length1;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = _tmp13_[1];
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = g_strdup (_tmp14_);
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value = _tmp15_;
+#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = key;
+#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_strcmp0 (_tmp16_, "oauth_token") == 0) {
+#line 3510 "FlickrPublishing.c"
+ const gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = value;
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = g_strdup (_tmp17_);
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (token);
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ token = _tmp18_;
+#line 3521 "FlickrPublishing.c"
+ } else {
+ const gchar* _tmp19_ = NULL;
+#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = key;
+#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_strcmp0 (_tmp19_, "oauth_token_secret") == 0) {
+#line 3528 "FlickrPublishing.c"
+ const gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = value;
+#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21_ = g_strdup (_tmp20_);
+#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (token_secret);
+#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ token_secret = _tmp21_;
+#line 3539 "FlickrPublishing.c"
+ } else {
+ const gchar* _tmp22_ = NULL;
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = key;
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_strcmp0 (_tmp22_, "username") == 0) {
+#line 3546 "FlickrPublishing.c"
+ const gchar* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = value;
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = g_strdup (_tmp23_);
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (username);
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ username = _tmp24_;
+#line 3557 "FlickrPublishing.c"
+ }
+ }
+ }
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (value);
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (key);
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ split_pair = (_vala_array_free (split_pair, split_pair_length1, (GDestroyNotify) g_free), NULL);
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (key_value_pair);
+#line 3569 "FlickrPublishing.c"
+ }
+ }
+ }
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp25_ = token;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26_ = token_secret;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp27_ = username;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:495: access phase credentials: { token = '%s'; t" \
+"oken_secret = '%s'; username = '%s' }", _tmp25_, _tmp26_, _tmp27_);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp30_ = token;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp30_ == NULL) {
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp29_ = TRUE;
+#line 3587 "FlickrPublishing.c"
+ } else {
+ const gchar* _tmp31_ = NULL;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp31_ = token_secret;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp29_ = _tmp31_ == NULL;
+#line 3594 "FlickrPublishing.c"
+ }
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp29_) {
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp28_ = TRUE;
+#line 3600 "FlickrPublishing.c"
+ } else {
+ const gchar* _tmp32_ = NULL;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp32_ = username;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp28_ = _tmp32_ == NULL;
+#line 3607 "FlickrPublishing.c"
+ }
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp28_) {
+#line 3611 "FlickrPublishing.c"
+ SpitPublishingPluginHost* _tmp33_ = NULL;
+ GError* _tmp34_ = NULL;
+ GError* _tmp35_ = NULL;
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp33_ = self->priv->host;
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp34_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "expected " "access phase credentials to contain token, token secret, and username " \
+"but at " "least one of these is absent");
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp35_ = _tmp34_;
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp33_, _tmp35_);
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (_tmp35_);
+#line 3625 "FlickrPublishing.c"
+ }
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp36_ = self->priv->session;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp37_ = token;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp38_ = token_secret;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp39_ = username;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_session_set_access_phase_credentials (_tmp36_, _tmp37_, _tmp38_, _tmp39_);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (username);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (token_secret);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (token);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ key_value_pairs = (_vala_array_free (key_value_pairs, key_value_pairs_length1, (GDestroyNotify) g_free), NULL);
+#line 3645 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_fetch_account_info (PublishingFlickrFlickrPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingFlickrAccountInfoFetchTransaction* txn = NULL;
+ PublishingFlickrSession* _tmp2_ = NULL;
+ PublishingFlickrAccountInfoFetchTransaction* _tmp3_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:507: ACTION: running network transaction to fetc" \
+"h account information");
+#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_);
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = publishing_flickr_account_info_fetch_transaction_new (_tmp2_);
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ txn = _tmp3_;
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed, self, 0);
+#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 3678 "FlickrPublishing.c"
+ {
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3686 "FlickrPublishing.c"
+ goto __catch20_spit_publishing_publishing_error;
+ }
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3697 "FlickrPublishing.c"
+ }
+ }
+ goto __finally20;
+ __catch20_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ err = _inner_error_;
+#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = self->priv->host;
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = err;
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_);
+#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (err);
+#line 3718 "FlickrPublishing.c"
+ }
+ __finally20:
+#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3731 "FlickrPublishing.c"
+ }
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (txn);
+#line 3735 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_parse_account_info_from_xml (PublishingFlickrFlickrPublisher* self, const gchar* xml) {
+ const gchar* _tmp0_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (xml != NULL);
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = xml;
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:524: ACTION: parsing account information from xm" \
+"l = '%s'", _tmp0_);
+#line 3750 "FlickrPublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* response_doc = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp2_ = NULL;
+ xmlNode* root_node = NULL;
+ PublishingRESTSupportXmlDocument* _tmp3_ = NULL;
+ xmlNode* _tmp4_ = NULL;
+ xmlNode* user_node = NULL;
+ PublishingRESTSupportXmlDocument* _tmp5_ = NULL;
+ xmlNode* _tmp6_ = NULL;
+ xmlNode* _tmp7_ = NULL;
+ gchar* is_pro_str = NULL;
+ PublishingRESTSupportXmlDocument* _tmp8_ = NULL;
+ xmlNode* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ xmlNode* bandwidth_node = NULL;
+ PublishingRESTSupportXmlDocument* _tmp11_ = NULL;
+ xmlNode* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+ gchar* remaining_kb_str = NULL;
+ PublishingRESTSupportXmlDocument* _tmp14_ = NULL;
+ xmlNode* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ PublishingFlickrUserKind user_kind = 0;
+ const gchar* _tmp17_ = NULL;
+ gint quota_mb_left = 0;
+ const gchar* _tmp20_ = NULL;
+ gint _tmp21_ = 0;
+ PublishingFlickrPublishingParameters* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ PublishingFlickrPublishingParameters* _tmp24_ = NULL;
+ PublishingFlickrUserKind _tmp25_ = 0;
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = xml;
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = publishing_flickr_transaction_parse_flickr_response (_tmp1_, &_inner_error_);
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ response_doc = _tmp2_;
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3793 "FlickrPublishing.c"
+ goto __catch21_spit_publishing_publishing_error;
+ }
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3802 "FlickrPublishing.c"
+ }
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = response_doc;
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = publishing_rest_support_xml_document_get_root_node (_tmp3_);
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ root_node = _tmp4_;
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = response_doc;
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = root_node;
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = publishing_rest_support_xml_document_get_named_child (_tmp5_, _tmp6_, "user", &_inner_error_);
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ user_node = _tmp7_;
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3824 "FlickrPublishing.c"
+ goto __catch21_spit_publishing_publishing_error;
+ }
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3835 "FlickrPublishing.c"
+ }
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = response_doc;
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = user_node;
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = publishing_rest_support_xml_document_get_property_value (_tmp8_, _tmp9_, "ispro", &_inner_error_);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ is_pro_str = _tmp10_;
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3851 "FlickrPublishing.c"
+ goto __catch21_spit_publishing_publishing_error;
+ }
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3862 "FlickrPublishing.c"
+ }
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = response_doc;
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = user_node;
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "bandwidth", &_inner_error_);
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ bandwidth_node = _tmp13_;
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (is_pro_str);
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3880 "FlickrPublishing.c"
+ goto __catch21_spit_publishing_publishing_error;
+ }
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (is_pro_str);
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3893 "FlickrPublishing.c"
+ }
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = response_doc;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = bandwidth_node;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = publishing_rest_support_xml_document_get_property_value (_tmp14_, _tmp15_, "remainingkb", &_inner_error_);
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ remaining_kb_str = _tmp16_;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (is_pro_str);
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3911 "FlickrPublishing.c"
+ goto __catch21_spit_publishing_publishing_error;
+ }
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (is_pro_str);
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3924 "FlickrPublishing.c"
+ }
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = is_pro_str;
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_strcmp0 (_tmp17_, "0") == 0) {
+#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ user_kind = PUBLISHING_FLICKR_USER_KIND_FREE;
+#line 3932 "FlickrPublishing.c"
+ } else {
+ const gchar* _tmp18_ = NULL;
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = is_pro_str;
+#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_strcmp0 (_tmp18_, "1") == 0) {
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ user_kind = PUBLISHING_FLICKR_USER_KIND_PRO;
+#line 3941 "FlickrPublishing.c"
+ } else {
+ GError* _tmp19_ = NULL;
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to determine if user has free or pro account");
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = _tmp19_;
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (remaining_kb_str);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (is_pro_str);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3956 "FlickrPublishing.c"
+ goto __catch21_spit_publishing_publishing_error;
+ }
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (remaining_kb_str);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (is_pro_str);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 3971 "FlickrPublishing.c"
+ }
+ }
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = remaining_kb_str;
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21_ = atoi (_tmp20_);
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ quota_mb_left = _tmp21_ / 1024;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = self->priv->parameters;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = quota_mb_left;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_->quota_free_mb = _tmp23_;
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = self->priv->parameters;
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp25_ = user_kind;
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_->user_kind = _tmp25_;
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (remaining_kb_str);
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (is_pro_str);
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 3998 "FlickrPublishing.c"
+ }
+ goto __finally21;
+ __catch21_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp26_ = NULL;
+ SpitPublishingPluginHost* _tmp27_ = NULL;
+ GError* _tmp28_ = NULL;
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ err = _inner_error_;
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26_ = err;
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_error_matches (_tmp26_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) {
+#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_logout (self);
+#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (err);
+#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 4021 "FlickrPublishing.c"
+ }
+#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp27_ = self->priv->host;
+#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp28_ = err;
+#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp27_, _tmp28_);
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (err);
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 4033 "FlickrPublishing.c"
+ }
+ __finally21:
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 4044 "FlickrPublishing.c"
+ }
+#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_account_info_available (self);
+#line 4048 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_logout (PublishingFlickrFlickrPublisher* self) {
+ PublishingFlickrSession* _tmp0_ = NULL;
+#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:568: ACTION: logging user out, deauthenticating " \
+"session, and erasing stored credentials");
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_session_deauthenticate (_tmp0_);
+#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_invalidate_persistent_session (self);
+#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->running = FALSE;
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_attempt_start (self);
+#line 4068 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_show_publishing_options_pane (PublishingFlickrFlickrPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ GtkBuilder* builder = NULL;
+ GtkBuilder* _tmp1_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp9_ = NULL;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ SpitPublishingPublisherMediaType _tmp11_ = 0;
+ GtkBuilder* _tmp12_ = NULL;
+ gboolean _tmp13_ = FALSE;
+ PublishingFlickrPublishingOptionsPane* _tmp14_ = NULL;
+ PublishingFlickrPublishingOptionsPane* _tmp15_ = NULL;
+ PublishingFlickrPublishingOptionsPane* _tmp16_ = NULL;
+ SpitPublishingPluginHost* _tmp17_ = NULL;
+ PublishingFlickrPublishingOptionsPane* _tmp18_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:579: ACTION: displaying publishing options pane");
+#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = gtk_builder_new ();
+#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ builder = _tmp1_;
+#line 4099 "FlickrPublishing.c"
+ {
+ GtkBuilder* _tmp2_ = NULL;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = builder;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/" "flickr_publishing_options_pane.ui", &_inner_error_);
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 4108 "FlickrPublishing.c"
+ goto __catch22_g_error;
+ }
+ }
+ goto __finally22;
+ __catch22_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ e = _inner_error_;
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = e;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _tmp3_->message;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_warning ("FlickrPublishing.vala:591: Could not parse UI file! Error: %s.", _tmp4_);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = self->priv->host;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = _ ("A file required for publishing is unavailable. Publishing to Flickr ca" \
+"n't continue.");
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp6_);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp5_, _tmp8_);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (_tmp8_);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (e);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (builder);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 4150 "FlickrPublishing.c"
+ }
+ __finally22:
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (builder);
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 4163 "FlickrPublishing.c"
+ }
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = self->priv->parameters;
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = self->priv->host;
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = spit_publishing_plugin_host_get_publishable_media_type (_tmp10_);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = builder;
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = publishing_flickr_flickr_publisher_get_persistent_strip_metadata (self);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = publishing_flickr_publishing_options_pane_new (self, _tmp9_, _tmp11_, _tmp12_, _tmp13_);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->publishing_options_pane);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->publishing_options_pane = _tmp14_;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = self->priv->publishing_options_pane;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (_tmp15_, "publish", (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish, self, 0);
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = self->priv->publishing_options_pane;
+#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (_tmp16_, "logout", (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout, self, 0);
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = self->priv->host;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = self->priv->publishing_options_pane;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (builder);
+#line 4197 "FlickrPublishing.c"
+}
+
+
+gint publishing_flickr_flickr_publisher_flickr_date_time_compare_func (SpitPublishingPublishable* a, SpitPublishingPublishable* b) {
+ gint result = 0;
+ SpitPublishingPublishable* _tmp0_ = NULL;
+ GDateTime* _tmp1_ = NULL;
+ GDateTime* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ GDateTime* _tmp4_ = NULL;
+ GDateTime* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ gint _tmp7_ = 0;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (a), 0);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (b), 0);
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = a;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = spit_publishing_publishable_get_exposure_date_time (_tmp0_);
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = b;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = spit_publishing_publishable_get_exposure_date_time (_tmp3_);
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = g_date_time_compare (_tmp2_, _tmp5_);
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_date_time_unref0 (_tmp5_);
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_date_time_unref0 (_tmp2_);
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp7_;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 4239 "FlickrPublishing.c"
+}
+
+
+static gint _publishing_flickr_flickr_publisher_flickr_date_time_compare_func_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
+ gint result;
+ result = publishing_flickr_flickr_publisher_flickr_date_time_compare_func ((SpitPublishingPublishable*) a, (SpitPublishingPublishable*) b);
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 4248 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_flickr_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self) {
+#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_on_upload_status_updated ((PublishingFlickrFlickrPublisher*) self, file_number, fraction_complete);
+#line 4255 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_publish (PublishingFlickrFlickrPublisher* self, gboolean strip_metadata) {
+ gboolean _tmp0_ = FALSE;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gboolean _tmp5_ = FALSE;
+ void* _tmp6_ = NULL;
+ GDestroyNotify _tmp7_ = NULL;
+ SpitPublishingProgressCallback _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+ SpitPublishingPublishable** publishables = NULL;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ SpitPublishingPublishable** _tmp12_ = NULL;
+ gint publishables_length1 = 0;
+ gint _publishables_size_ = 0;
+ GeeArrayList* sorted_list = NULL;
+ GeeArrayList* _tmp13_ = NULL;
+ SpitPublishingPublishable** _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ GeeArrayList* _tmp18_ = NULL;
+ PublishingFlickrUploader* uploader = NULL;
+ PublishingFlickrSession* _tmp19_ = NULL;
+ GeeArrayList* _tmp20_ = NULL;
+ gint _tmp21_ = 0;
+ gpointer* _tmp22_ = NULL;
+ SpitPublishingPublishable** _tmp23_ = NULL;
+ gint _tmp23__length1 = 0;
+ PublishingFlickrPublishingParameters* _tmp24_ = NULL;
+ gboolean _tmp25_ = FALSE;
+ PublishingFlickrUploader* _tmp26_ = NULL;
+ PublishingFlickrUploader* _tmp27_ = NULL;
+ PublishingFlickrUploader* _tmp28_ = NULL;
+ PublishingFlickrUploader* _tmp29_ = NULL;
+ PublishingFlickrUploader* _tmp30_ = NULL;
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = strip_metadata;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_set_persistent_strip_metadata (self, _tmp0_);
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:612: ACTION: uploading media items to remote ser" \
+"ver.");
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE);
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->host;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = self->priv->parameters;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _tmp3_->photo_major_axis_size;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = strip_metadata;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = spit_publishing_plugin_host_serialize_publishables (_tmp2_, _tmp4_, _tmp5_, &_tmp6_, &_tmp7_);
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->progress_reporter = _tmp8_;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->progress_reporter_target = _tmp6_;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = _tmp7_;
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp9_) {
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 4337 "FlickrPublishing.c"
+ }
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = self->priv->host;
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = spit_publishing_plugin_host_get_publishables (_tmp10_, &_tmp11_);
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishables = _tmp12_;
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishables_length1 = _tmp11_;
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishables_size_ = publishables_length1;
+#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = gee_array_list_new (SPIT_PUBLISHING_TYPE_PUBLISHABLE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ sorted_list = _tmp13_;
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = publishables;
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14__length1 = publishables_length1;
+#line 4357 "FlickrPublishing.c"
+ {
+ SpitPublishingPublishable** p_collection = NULL;
+ gint p_collection_length1 = 0;
+ gint _p_collection_size_ = 0;
+ gint p_it = 0;
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ p_collection = _tmp14_;
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ p_collection_length1 = _tmp14__length1;
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ for (p_it = 0; p_it < _tmp14__length1; p_it = p_it + 1) {
+#line 4369 "FlickrPublishing.c"
+ SpitPublishingPublishable* _tmp15_ = NULL;
+ SpitPublishingPublishable* p = NULL;
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = _g_object_ref0 (p_collection[p_it]);
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ p = _tmp15_;
+#line 4376 "FlickrPublishing.c"
+ {
+ GeeArrayList* _tmp16_ = NULL;
+ SpitPublishingPublishable* _tmp17_ = NULL;
+#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = sorted_list;
+#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = p;
+#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_);
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (p);
+#line 4388 "FlickrPublishing.c"
+ }
+ }
+ }
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = sorted_list;
+#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_LIST, GeeList), _publishing_flickr_flickr_publisher_flickr_date_time_compare_func_gcompare_data_func, NULL, NULL);
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = self->priv->session;
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = sorted_list;
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp21_);
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = _tmp22_;
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23__length1 = _tmp21_;
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = self->priv->parameters;
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp25_ = strip_metadata;
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26_ = publishing_flickr_uploader_new (_tmp19_, _tmp23_, _tmp21_, _tmp24_, _tmp25_);
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp27_ = _tmp26_;
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = (_vala_array_free (_tmp23_, _tmp23__length1, (GDestroyNotify) g_object_unref), NULL);
+#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ uploader = _tmp27_;
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp28_ = uploader;
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0);
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp29_ = uploader;
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0);
+#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp30_ = uploader;
+#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_flickr_flickr_publisher_on_upload_status_updated_spit_publishing_progress_callback, self);
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_batch_uploader_unref0 (uploader);
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (sorted_list);
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 4436 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_do_show_success_pane (PublishingFlickrFlickrPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:640: ACTION: showing success pane.");
+#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_publishing_plugin_host_install_success_pane (_tmp1_);
+#line 4455 "FlickrPublishing.c"
+}
+
+
+gint publishing_flickr_flickr_publisher_get_persistent_visibility (PublishingFlickrFlickrPublisher* self) {
+ gint result = 0;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), 0);
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "visibility", 0);
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp1_;
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 4473 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_flickr_publisher_set_persistent_visibility (PublishingFlickrFlickrPublisher* self, gint vis) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = vis;
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "visibility", _tmp1_);
+#line 4488 "FlickrPublishing.c"
+}
+
+
+gint publishing_flickr_flickr_publisher_get_persistent_default_size (PublishingFlickrFlickrPublisher* self) {
+ gint result = 0;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), 0);
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 1);
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp1_;
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 4506 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_flickr_publisher_set_persistent_default_size (PublishingFlickrFlickrPublisher* self, gint size) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = size;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", _tmp1_);
+#line 4521 "FlickrPublishing.c"
+}
+
+
+static SpitPublishingService* publishing_flickr_flickr_publisher_real_get_service (SpitPublishingPublisher* base) {
+ PublishingFlickrFlickrPublisher * self;
+ SpitPublishingService* result = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher);
+#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->service;
+#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp1_;
+#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 4540 "FlickrPublishing.c"
+}
+
+
+static gboolean publishing_flickr_flickr_publisher_real_is_running (SpitPublishingPublisher* base) {
+ PublishingFlickrFlickrPublisher * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher);
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp0_;
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 4556 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_attempt_start (PublishingFlickrFlickrPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self));
+#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->running = TRUE;
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->was_started = TRUE;
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = publishing_flickr_flickr_publisher_is_persistent_session_valid (self);
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp0_) {
+#line 4572 "FlickrPublishing.c"
+ PublishingFlickrSession* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:677: attempt start: a persistent session is avai" \
+"lable; using it");
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->session;
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = publishing_flickr_flickr_publisher_get_persistent_access_phase_token (self);
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = publishing_flickr_flickr_publisher_get_persistent_access_phase_token_secret (self);
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = publishing_flickr_flickr_publisher_get_persistent_access_phase_username (self);
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_session_authenticate_from_persistent_credentials (_tmp1_, _tmp3_, _tmp5_, _tmp7_);
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 4604 "FlickrPublishing.c"
+ } else {
+#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:682: attempt start: no persistent session availa" \
+"ble; showing login welcome pane");
+#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_do_show_login_welcome_pane (self);
+#line 4610 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_flickr_publisher_real_start (SpitPublishingPublisher* base) {
+ PublishingFlickrFlickrPublisher * self;
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
+#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher);
+#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp0_) {
+#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 4627 "FlickrPublishing.c"
+ }
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->was_started;
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp1_) {
+#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_error ("FlickrPublishing.vala:693: FlickrPublisher: start( ): can't start; thi" \
+"s publisher is not restartable.");
+#line 4635 "FlickrPublishing.c"
+ }
+#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:695: FlickrPublisher: starting interaction.");
+#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_attempt_start (self);
+#line 4641 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_real_stop (SpitPublishingPublisher* base) {
+ PublishingFlickrFlickrPublisher * self;
+ PublishingFlickrSession* _tmp0_ = NULL;
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher);
+#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:701: FlickrPublisher: stop( ) invoked.");
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp0_ != NULL) {
+#line 4656 "FlickrPublishing.c"
+ PublishingFlickrSession* _tmp1_ = NULL;
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->session;
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_session_stop_transactions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 4662 "FlickrPublishing.c"
+ }
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->running = FALSE;
+#line 4666 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_class_init (PublishingFlickrFlickrPublisherClass * klass) {
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_parent_class = g_type_class_peek_parent (klass);
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFlickrFlickrPublisherPrivate));
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_flickr_flickr_publisher_finalize;
+#line 4677 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) {
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface);
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->get_service = (SpitPublishingService* (*)(SpitPublishingPublisher*)) publishing_flickr_flickr_publisher_real_get_service;
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->is_running = (gboolean (*)(SpitPublishingPublisher*)) publishing_flickr_flickr_publisher_real_is_running;
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->start = (void (*)(SpitPublishingPublisher*)) publishing_flickr_flickr_publisher_real_start;
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->stop = (void (*)(SpitPublishingPublisher*)) publishing_flickr_flickr_publisher_real_stop;
+#line 4692 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_instance_init (PublishingFlickrFlickrPublisher * self) {
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv = PUBLISHING_FLICKR_FLICKR_PUBLISHER_GET_PRIVATE (self);
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->running = FALSE;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->was_started = FALSE;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->session = NULL;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->publishing_options_pane = NULL;
+#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->parameters = NULL;
+#line 4711 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_flickr_publisher_finalize (GObject* obj) {
+ PublishingFlickrFlickrPublisher * self;
+ PublishingFlickrSession* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher);
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("authenticated", PUBLISHING_REST_SUPPORT_TYPE_SESSION, &_tmp1_, NULL, FALSE);
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_session_authenticated_publishing_rest_support_session_authenticated, self);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->service);
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->host);
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->publishing_options_pane);
+#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters);
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_OBJECT_CLASS (publishing_flickr_flickr_publisher_parent_class)->finalize (obj);
+#line 4747 "FlickrPublishing.c"
+}
+
+
+GType publishing_flickr_flickr_publisher_get_type (void) {
+ static volatile gsize publishing_flickr_flickr_publisher_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_flickr_publisher_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrFlickrPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_flickr_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrFlickrPublisher), 0, (GInstanceInitFunc) publishing_flickr_flickr_publisher_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_flickr_flickr_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_flickr_flickr_publisher_type_id;
+ publishing_flickr_flickr_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFlickrFlickrPublisher", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_flickr_flickr_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info);
+ g_once_init_leave (&publishing_flickr_flickr_publisher_type_id__volatile, publishing_flickr_flickr_publisher_type_id);
+ }
+ return publishing_flickr_flickr_publisher_type_id__volatile;
+}
+
+
+PublishingFlickrPinEntryPane* publishing_flickr_pin_entry_pane_construct (GType object_type, GtkBuilder* builder) {
+ PublishingFlickrPinEntryPane * self = NULL;
+ GtkBuilder* _tmp0_ = NULL;
+ GtkBuilder* _tmp1_ = NULL;
+ GtkBuilder* _tmp2_ = NULL;
+ GtkBuilder* _tmp3_ = NULL;
+ GSList* _tmp4_ = NULL;
+ GSList* _tmp5_ = NULL;
+ guint _tmp6_ = 0U;
+ GtkBuilder* _tmp7_ = NULL;
+ GObject* _tmp8_ = NULL;
+ GtkLabel* _tmp9_ = NULL;
+ GtkBuilder* _tmp10_ = NULL;
+ GObject* _tmp11_ = NULL;
+ GtkLabel* _tmp12_ = NULL;
+ GtkBuilder* _tmp13_ = NULL;
+ GObject* _tmp14_ = NULL;
+ GtkEntry* _tmp15_ = NULL;
+ GtkBuilder* _tmp16_ = NULL;
+ GObject* _tmp17_ = NULL;
+ GtkButton* _tmp18_ = NULL;
+ GtkBuilder* _tmp19_ = NULL;
+ GObject* _tmp20_ = NULL;
+ GtkBox* _tmp21_ = NULL;
+ GtkBox* _tmp22_ = NULL;
+#line 720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL);
+#line 720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrPinEntryPane*) g_object_new (object_type, NULL);
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = builder;
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->builder = _tmp1_;
+#line 722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = builder;
+#line 722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_assert (_tmp2_ != NULL, "builder != null");
+#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = builder;
+#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = gtk_builder_get_objects (_tmp3_);
+#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = g_slist_length (_tmp5_);
+#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_assert (_tmp6_ > ((guint) 0), "builder.get_objects().length() > 0");
+#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_slist_free0 (_tmp5_);
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = builder;
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = gtk_builder_get_object (_tmp7_, "explanatory_text");
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp8_) : NULL);
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->explanatory_text);
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->explanatory_text = _tmp9_;
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = builder;
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = gtk_builder_get_object (_tmp10_, "pin_entry_caption");
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp11_) : NULL);
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->pin_entry_caption);
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->pin_entry_caption = _tmp12_;
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = builder;
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = gtk_builder_get_object (_tmp13_, "pin_entry");
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp14_) : NULL);
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->pin_entry);
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->pin_entry = _tmp15_;
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = builder;
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = gtk_builder_get_object (_tmp16_, "continue_button");
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, gtk_button_get_type ()) ? ((GtkButton*) _tmp17_) : NULL);
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->continue_button);
+#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->continue_button = _tmp18_;
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = builder;
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = gtk_builder_get_object (_tmp19_, "pane_widget");
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, gtk_box_get_type ()) ? ((GtkBox*) _tmp20_) : NULL);
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->pane_widget = _tmp21_;
+#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = self->priv->pane_widget;
+#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget));
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_pin_entry_pane_on_pin_entry_contents_changed (self);
+#line 720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 4876 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrPinEntryPane* publishing_flickr_pin_entry_pane_new (GtkBuilder* builder) {
+#line 720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_pin_entry_pane_construct (PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, builder);
+#line 4883 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_pin_entry_pane_on_continue_clicked (PublishingFlickrPinEntryPane* self) {
+ GtkEntry* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PIN_ENTRY_PANE (self));
+#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->pin_entry;
+#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = gtk_entry_get_text (_tmp0_);
+#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_emit_by_name (self, "proceed", self, _tmp1_);
+#line 4898 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_pin_entry_pane_on_pin_entry_contents_changed (PublishingFlickrPinEntryPane* self) {
+ GtkButton* _tmp0_ = NULL;
+ GtkEntry* _tmp1_ = NULL;
+ guint _tmp2_ = 0U;
+ guint _tmp3_ = 0U;
+#line 741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PIN_ENTRY_PANE (self));
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->continue_button;
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->pin_entry;
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = gtk_entry_get_text_length (_tmp1_);
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), _tmp3_ > ((guint) 0));
+#line 4919 "FlickrPublishing.c"
+}
+
+
+static GtkWidget* publishing_flickr_pin_entry_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingFlickrPinEntryPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, PublishingFlickrPinEntryPane);
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp1_;
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 4938 "FlickrPublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_flickr_pin_entry_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingFlickrPinEntryPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, PublishingFlickrPinEntryPane);
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 4951 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_pin_entry_pane_on_continue_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_pin_entry_pane_on_continue_clicked ((PublishingFlickrPinEntryPane*) self);
+#line 4958 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_pin_entry_pane_on_pin_entry_contents_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_pin_entry_pane_on_pin_entry_contents_changed ((PublishingFlickrPinEntryPane*) self);
+#line 4965 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_pin_entry_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingFlickrPinEntryPane * self;
+ GtkButton* _tmp0_ = NULL;
+ GtkEntry* _tmp1_ = NULL;
+#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, PublishingFlickrPinEntryPane);
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->continue_button;
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (_tmp0_, "clicked", (GCallback) _publishing_flickr_pin_entry_pane_on_continue_clicked_gtk_button_clicked, self, 0);
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->pin_entry;
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_flickr_pin_entry_pane_on_pin_entry_contents_changed_gtk_editable_changed, self, 0);
+#line 4983 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_pin_entry_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingFlickrPinEntryPane * self;
+ GtkButton* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ GtkEntry* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, PublishingFlickrPinEntryPane);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->continue_button;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp1_, NULL, FALSE);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_pin_entry_pane_on_continue_clicked_gtk_button_clicked, self);
+#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->pin_entry;
+#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("changed", GTK_TYPE_EDITABLE, &_tmp3_, NULL, FALSE);
+#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GTK_TYPE_EDITABLE, GtkEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_pin_entry_pane_on_pin_entry_contents_changed_gtk_editable_changed, self);
+#line 5007 "FlickrPublishing.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__OBJECT_STRING (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__OBJECT_STRING) (gpointer data1, gpointer arg_1, const char* arg_2, gpointer data2);
+ register GMarshalFunc_VOID__OBJECT_STRING callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (n_param_values == 3);
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ data1 = closure->data;
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 5026 "FlickrPublishing.c"
+ } else {
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ data2 = closure->data;
+#line 5032 "FlickrPublishing.c"
+ }
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ callback = (GMarshalFunc_VOID__OBJECT_STRING) (marshal_data ? marshal_data : cc->callback);
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ callback (data1, g_value_get_object (param_values + 1), g_value_get_string (param_values + 2), data2);
+#line 5038 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_pin_entry_pane_class_init (PublishingFlickrPinEntryPaneClass * klass) {
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_pin_entry_pane_parent_class = g_type_class_peek_parent (klass);
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFlickrPinEntryPanePrivate));
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_flickr_pin_entry_pane_finalize;
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_new ("proceed", PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_STRING, G_TYPE_NONE, 2, PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, G_TYPE_STRING);
+#line 5051 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_pin_entry_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_pin_entry_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_flickr_pin_entry_pane_real_get_widget;
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_flickr_pin_entry_pane_real_get_preferred_geometry;
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_flickr_pin_entry_pane_real_on_pane_installed;
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_flickr_pin_entry_pane_real_on_pane_uninstalled;
+#line 5066 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_pin_entry_pane_instance_init (PublishingFlickrPinEntryPane * self) {
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv = PUBLISHING_FLICKR_PIN_ENTRY_PANE_GET_PRIVATE (self);
+#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->continue_button = NULL;
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->pin_entry = NULL;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->pin_entry_caption = NULL;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->explanatory_text = NULL;
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->builder = NULL;
+#line 5085 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_pin_entry_pane_finalize (GObject* obj) {
+ PublishingFlickrPinEntryPane * self;
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_PIN_ENTRY_PANE, PublishingFlickrPinEntryPane);
+#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->continue_button);
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->pin_entry);
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->pin_entry_caption);
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->explanatory_text);
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_OBJECT_CLASS (publishing_flickr_pin_entry_pane_parent_class)->finalize (obj);
+#line 5107 "FlickrPublishing.c"
+}
+
+
+GType publishing_flickr_pin_entry_pane_get_type (void) {
+ static volatile gsize publishing_flickr_pin_entry_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_pin_entry_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPinEntryPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_pin_entry_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPinEntryPane), 0, (GInstanceInitFunc) publishing_flickr_pin_entry_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_flickr_pin_entry_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_flickr_pin_entry_pane_type_id;
+ publishing_flickr_pin_entry_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFlickrPinEntryPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_flickr_pin_entry_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_flickr_pin_entry_pane_type_id__volatile, publishing_flickr_pin_entry_pane_type_id);
+ }
+ return publishing_flickr_pin_entry_pane_type_id__volatile;
+}
+
+
+PublishingFlickrTransaction* publishing_flickr_transaction_construct (GType object_type, PublishingFlickrSession* session, PublishingRESTSupportHttpMethod method) {
+ PublishingFlickrTransaction* self = NULL;
+ PublishingFlickrSession* _tmp0_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp1_ = 0;
+ PublishingFlickrSession* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ PublishingFlickrSession* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (session), NULL);
+#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = session;
+#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = method;
+#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_);
+#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = session;
+#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = publishing_flickr_session_get_oauth_nonce (_tmp2_);
+#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_nonce", _tmp4_);
+#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp4_);
+#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_signature_method", "HMAC-SHA1");
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_version", "1.0");
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_callback", "oob");
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = session;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = publishing_flickr_session_get_oauth_timestamp (_tmp5_);
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_timestamp", _tmp7_);
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_consumer_key", PUBLISHING_FLICKR_API_KEY);
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 5173 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrTransaction* publishing_flickr_transaction_new (PublishingFlickrSession* session, PublishingRESTSupportHttpMethod method) {
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_transaction_construct (PUBLISHING_FLICKR_TYPE_TRANSACTION, session, method);
+#line 5180 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrTransaction* publishing_flickr_transaction_construct_with_uri (GType object_type, PublishingFlickrSession* session, const gchar* uri, PublishingRESTSupportHttpMethod method) {
+ PublishingFlickrTransaction* self = NULL;
+ PublishingFlickrSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp2_ = 0;
+ PublishingFlickrSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ PublishingFlickrSession* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (session), NULL);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (uri != NULL, NULL);
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = session;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = uri;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = method;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp2_);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = session;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = publishing_flickr_session_get_oauth_nonce (_tmp3_);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_nonce", _tmp5_);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_signature_method", "HMAC-SHA1");
+#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_version", "1.0");
+#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_callback", "oob");
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = session;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = publishing_flickr_session_get_oauth_timestamp (_tmp6_);
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_timestamp", _tmp8_);
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_consumer_key", PUBLISHING_FLICKR_API_KEY);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 5237 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrTransaction* publishing_flickr_transaction_new_with_uri (PublishingFlickrSession* session, const gchar* uri, PublishingRESTSupportHttpMethod method) {
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_transaction_construct_with_uri (PUBLISHING_FLICKR_TYPE_TRANSACTION, session, uri, method);
+#line 5244 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) {
+ PublishingFlickrTransaction * self;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingFlickrSession* _tmp1_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_TRANSACTION, PublishingFlickrTransaction);
+#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_FLICKR_TYPE_SESSION, PublishingFlickrSession);
+#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_session_sign_transaction (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_flickr_transaction_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 5273 "FlickrPublishing.c"
+ } else {
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 5281 "FlickrPublishing.c"
+ }
+ }
+}
+
+
+gchar* publishing_flickr_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) {
+ gchar* result = NULL;
+ xmlNode* root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp0_ = NULL;
+ xmlNode* _tmp1_ = NULL;
+ gchar* status = NULL;
+ xmlNode* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ xmlNode* errcode = NULL;
+ xmlNode* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ xmlNode* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL);
+#line 796 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = doc;
+#line 796 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = publishing_rest_support_xml_document_get_root_node (_tmp0_);
+#line 796 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ root = _tmp1_;
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = root;
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = (gchar*) xmlGetProp (_tmp2_, (xmlChar*) "stat");
+#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ status = _tmp3_;
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = status;
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp4_ == NULL) {
+#line 5325 "FlickrPublishing.c"
+ gchar* _tmp5_ = NULL;
+#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = g_strdup ("No status property in root node");
+#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp5_;
+#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (status);
+#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 5335 "FlickrPublishing.c"
+ }
+#line 803 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = status;
+#line 803 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_strcmp0 (_tmp6_, "ok") == 0) {
+#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = NULL;
+#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (status);
+#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 5347 "FlickrPublishing.c"
+ }
+ {
+ xmlNode* _tmp7_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp8_ = NULL;
+ xmlNode* _tmp9_ = NULL;
+ xmlNode* _tmp10_ = NULL;
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = doc;
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = root;
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = publishing_rest_support_xml_document_get_named_child (_tmp8_, _tmp9_, "err", &_inner_error_);
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp10_;
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5366 "FlickrPublishing.c"
+ goto __catch23_spit_publishing_publishing_error;
+ }
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (status);
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 5377 "FlickrPublishing.c"
+ }
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ errcode = _tmp7_;
+#line 5381 "FlickrPublishing.c"
+ }
+ goto __finally23;
+ __catch23_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ gchar* _tmp11_ = NULL;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ err = _inner_error_;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = g_strdup ("No error code specified");
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp11_;
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (err);
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (status);
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 5402 "FlickrPublishing.c"
+ }
+ __finally23:
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (status);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 5415 "FlickrPublishing.c"
+ }
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = errcode;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = (gchar*) xmlGetProp (_tmp12_, (xmlChar*) "msg");
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = _tmp13_;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = errcode;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = (gchar*) xmlGetProp (_tmp15_, (xmlChar*) "code");
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = _tmp16_;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = g_strdup_printf ("%s (error code %s)", _tmp14_, _tmp17_);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = _tmp18_;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp17_);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp14_);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp19_;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (status);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 5443 "FlickrPublishing.c"
+}
+
+
+static gchar* _publishing_flickr_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self) {
+ gchar* result;
+ result = publishing_flickr_transaction_validate_xml (doc);
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 5452 "FlickrPublishing.c"
+}
+
+
+static gboolean string_contains (const gchar* self, const gchar* needle) {
+ gboolean result = FALSE;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, FALSE);
+#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (needle != NULL, FALSE);
+#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = needle;
+#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
+#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp1_ != NULL;
+#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 5472 "FlickrPublishing.c"
+}
+
+
+static gpointer _g_error_copy0 (gpointer self) {
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self ? g_error_copy (self) : NULL;
+#line 5479 "FlickrPublishing.c"
+}
+
+
+PublishingRESTSupportXmlDocument* publishing_flickr_transaction_parse_flickr_response (const gchar* xml, GError** error) {
+ PublishingRESTSupportXmlDocument* result = NULL;
+ PublishingRESTSupportXmlDocument* _result_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (xml != NULL, NULL);
+#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result_ = NULL;
+#line 5491 "FlickrPublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp2_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp3_ = NULL;
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = xml;
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = publishing_rest_support_xml_document_parse_string (_tmp1_, _publishing_flickr_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = _tmp2_;
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5507 "FlickrPublishing.c"
+ goto __catch24_spit_publishing_publishing_error;
+ }
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (_result_);
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 5518 "FlickrPublishing.c"
+ }
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _tmp0_;
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = NULL;
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (_result_);
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result_ = _tmp3_;
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (_tmp0_);
+#line 5530 "FlickrPublishing.c"
+ }
+ goto __finally24;
+ __catch24_spit_publishing_publishing_error:
+ {
+ GError* e = NULL;
+ GError* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gboolean _tmp8_ = FALSE;
+ gboolean _tmp9_ = FALSE;
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ e = _inner_error_;
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = e;
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _tmp4_->message;
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = g_strdup_printf ("(error code %s)", PUBLISHING_FLICKR_EXPIRED_SESSION_ERROR_CODE);
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = string_contains (_tmp5_, _tmp7_);
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp9_) {
+#line 5562 "FlickrPublishing.c"
+ GError* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ GError* _tmp12_ = NULL;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = e;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = _tmp10_->message;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION, _tmp11_);
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = _tmp12_;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (e);
+#line 5576 "FlickrPublishing.c"
+ goto __finally24;
+ } else {
+ GError* _tmp13_ = NULL;
+ GError* _tmp14_ = NULL;
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = e;
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = _g_error_copy0 (_tmp13_);
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = _tmp14_;
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (e);
+#line 5589 "FlickrPublishing.c"
+ goto __finally24;
+ }
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (e);
+#line 5594 "FlickrPublishing.c"
+ }
+ __finally24:
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (_result_);
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 5607 "FlickrPublishing.c"
+ } else {
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (_result_);
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 5617 "FlickrPublishing.c"
+ }
+ }
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _result_;
+#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 5624 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_transaction_class_init (PublishingFlickrTransactionClass * klass) {
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->execute = publishing_flickr_transaction_real_execute;
+#line 5633 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_transaction_instance_init (PublishingFlickrTransaction * self) {
+}
+
+
+GType publishing_flickr_transaction_get_type (void) {
+ static volatile gsize publishing_flickr_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrTransaction), 0, (GInstanceInitFunc) publishing_flickr_transaction_instance_init, NULL };
+ GType publishing_flickr_transaction_type_id;
+ publishing_flickr_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingFlickrTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_flickr_transaction_type_id__volatile, publishing_flickr_transaction_type_id);
+ }
+ return publishing_flickr_transaction_type_id__volatile;
+}
+
+
+PublishingFlickrAuthenticationRequestTransaction* publishing_flickr_authentication_request_transaction_construct (GType object_type, PublishingFlickrSession* session) {
+ PublishingFlickrAuthenticationRequestTransaction* self = NULL;
+ PublishingFlickrSession* _tmp0_ = NULL;
+#line 845 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (session), NULL);
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = session;
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrAuthenticationRequestTransaction*) publishing_flickr_transaction_construct_with_uri (object_type, _tmp0_, "https://www.flickr.com/services/oauth/request_token", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 845 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 5664 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrAuthenticationRequestTransaction* publishing_flickr_authentication_request_transaction_new (PublishingFlickrSession* session) {
+#line 845 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_authentication_request_transaction_construct (PUBLISHING_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, session);
+#line 5671 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_authentication_request_transaction_class_init (PublishingFlickrAuthenticationRequestTransactionClass * klass) {
+#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_authentication_request_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 5678 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_authentication_request_transaction_instance_init (PublishingFlickrAuthenticationRequestTransaction * self) {
+}
+
+
+GType publishing_flickr_authentication_request_transaction_get_type (void) {
+ static volatile gsize publishing_flickr_authentication_request_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_authentication_request_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrAuthenticationRequestTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_authentication_request_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrAuthenticationRequestTransaction), 0, (GInstanceInitFunc) publishing_flickr_authentication_request_transaction_instance_init, NULL };
+ GType publishing_flickr_authentication_request_transaction_type_id;
+ publishing_flickr_authentication_request_transaction_type_id = g_type_register_static (PUBLISHING_FLICKR_TYPE_TRANSACTION, "PublishingFlickrAuthenticationRequestTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_flickr_authentication_request_transaction_type_id__volatile, publishing_flickr_authentication_request_transaction_type_id);
+ }
+ return publishing_flickr_authentication_request_transaction_type_id__volatile;
+}
+
+
+PublishingFlickrAccessTokenFetchTransaction* publishing_flickr_access_token_fetch_transaction_construct (GType object_type, PublishingFlickrSession* session, const gchar* user_verifier) {
+ PublishingFlickrAccessTokenFetchTransaction* self = NULL;
+ PublishingFlickrSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingFlickrSession* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (session), NULL);
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (user_verifier != NULL, NULL);
+#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = session;
+#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrAccessTokenFetchTransaction*) publishing_flickr_transaction_construct_with_uri (object_type, _tmp0_, "https://www.flickr.com/services/oauth/access_token", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = user_verifier;
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_verifier", _tmp1_);
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = session;
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = publishing_flickr_session_get_request_phase_token (_tmp2_);
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_token", _tmp4_);
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp4_);
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 5729 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrAccessTokenFetchTransaction* publishing_flickr_access_token_fetch_transaction_new (PublishingFlickrSession* session, const gchar* user_verifier) {
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_access_token_fetch_transaction_construct (PUBLISHING_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, session, user_verifier);
+#line 5736 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_access_token_fetch_transaction_class_init (PublishingFlickrAccessTokenFetchTransactionClass * klass) {
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_access_token_fetch_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 5743 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_access_token_fetch_transaction_instance_init (PublishingFlickrAccessTokenFetchTransaction * self) {
+}
+
+
+GType publishing_flickr_access_token_fetch_transaction_get_type (void) {
+ static volatile gsize publishing_flickr_access_token_fetch_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_access_token_fetch_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrAccessTokenFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_access_token_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrAccessTokenFetchTransaction), 0, (GInstanceInitFunc) publishing_flickr_access_token_fetch_transaction_instance_init, NULL };
+ GType publishing_flickr_access_token_fetch_transaction_type_id;
+ publishing_flickr_access_token_fetch_transaction_type_id = g_type_register_static (PUBLISHING_FLICKR_TYPE_TRANSACTION, "PublishingFlickrAccessTokenFetchTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_flickr_access_token_fetch_transaction_type_id__volatile, publishing_flickr_access_token_fetch_transaction_type_id);
+ }
+ return publishing_flickr_access_token_fetch_transaction_type_id__volatile;
+}
+
+
+PublishingFlickrAccountInfoFetchTransaction* publishing_flickr_account_info_fetch_transaction_construct (GType object_type, PublishingFlickrSession* session) {
+ PublishingFlickrAccountInfoFetchTransaction* self = NULL;
+ PublishingFlickrSession* _tmp0_ = NULL;
+ PublishingFlickrSession* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (session), NULL);
+#line 862 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = session;
+#line 862 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrAccountInfoFetchTransaction*) publishing_flickr_transaction_construct (object_type, _tmp0_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "flickr.people.getUploadStatus");
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = session;
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = publishing_flickr_session_get_access_phase_token (_tmp1_);
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_token", _tmp3_);
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 5789 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrAccountInfoFetchTransaction* publishing_flickr_account_info_fetch_transaction_new (PublishingFlickrSession* session) {
+#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_account_info_fetch_transaction_construct (PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, session);
+#line 5796 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_account_info_fetch_transaction_class_init (PublishingFlickrAccountInfoFetchTransactionClass * klass) {
+#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_account_info_fetch_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 5803 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_account_info_fetch_transaction_instance_init (PublishingFlickrAccountInfoFetchTransaction * self) {
+}
+
+
+GType publishing_flickr_account_info_fetch_transaction_get_type (void) {
+ static volatile gsize publishing_flickr_account_info_fetch_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_account_info_fetch_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrAccountInfoFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_account_info_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrAccountInfoFetchTransaction), 0, (GInstanceInitFunc) publishing_flickr_account_info_fetch_transaction_instance_init, NULL };
+ GType publishing_flickr_account_info_fetch_transaction_type_id;
+ publishing_flickr_account_info_fetch_transaction_type_id = g_type_register_static (PUBLISHING_FLICKR_TYPE_TRANSACTION, "PublishingFlickrAccountInfoFetchTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_flickr_account_info_fetch_transaction_type_id__volatile, publishing_flickr_account_info_fetch_transaction_type_id);
+ }
+ return publishing_flickr_account_info_fetch_transaction_type_id__volatile;
+}
+
+
+static gpointer _publishing_flickr_publishing_parameters_ref0 (gpointer self) {
+#line 877 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self ? publishing_flickr_publishing_parameters_ref (self) : NULL;
+#line 5826 "FlickrPublishing.c"
+}
+
+
+static gpointer _publishing_rest_support_session_ref0 (gpointer self) {
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self ? publishing_rest_support_session_ref (self) : NULL;
+#line 5833 "FlickrPublishing.c"
+}
+
+
+static void _g_free0_ (gpointer var) {
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ var = (g_free (var), NULL);
+#line 5840 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrUploadTransaction* publishing_flickr_upload_transaction_construct (GType object_type, PublishingFlickrSession* session, PublishingFlickrPublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+ PublishingFlickrUploadTransaction* self = NULL;
+ PublishingFlickrSession* _tmp0_ = NULL;
+ SpitPublishingPublishable* _tmp1_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp2_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp3_ = NULL;
+ PublishingFlickrSession* _tmp4_ = NULL;
+ PublishingFlickrSession* _tmp5_ = NULL;
+ PublishingRESTSupportArgument** _tmp6_ = NULL;
+ PublishingFlickrSession* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ PublishingFlickrSession* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ PublishingFlickrSession* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp16_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+ gchar* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp21_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp26_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp27_ = NULL;
+ gint _tmp28_ = 0;
+ gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ GHashTable* disposition_table = NULL;
+ GHashFunc _tmp31_ = NULL;
+ GEqualFunc _tmp32_ = NULL;
+ GHashTable* _tmp33_ = NULL;
+ gchar* filename = NULL;
+ SpitPublishingPublishable* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+ gboolean _tmp36_ = FALSE;
+ const gchar* _tmp37_ = NULL;
+ GHashTable* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+ SpitPublishingPublishable* _tmp43_ = NULL;
+ gchar* _tmp44_ = NULL;
+ gchar* _tmp45_ = NULL;
+ gchar* _tmp46_ = NULL;
+ GHashTable* _tmp47_ = NULL;
+ gchar* _tmp48_ = NULL;
+ gchar* _tmp49_ = NULL;
+ GHashTable* _tmp50_ = NULL;
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (session), NULL);
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = session;
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = publishable;
+#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrUploadTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, "https://api.flickr.com/services/upload");
+#line 877 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = parameters;
+#line 877 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _publishing_flickr_publishing_parameters_ref0 (_tmp2_);
+#line 877 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters);
+#line 877 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->parameters = _tmp3_;
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = session;
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _publishing_rest_support_session_ref0 (_tmp4_);
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->session = _tmp5_;
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = g_new0 (PublishingRESTSupportArgument*, 0 + 1);
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->auth_header_fields = (_vala_array_free (self->priv->auth_header_fields, self->priv->auth_header_fields_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->auth_header_fields = _tmp6_;
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->auth_header_fields_length1 = 0;
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->_auth_header_fields_size_ = self->priv->auth_header_fields_length1;
+#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = session;
+#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = publishing_flickr_session_get_oauth_nonce (_tmp7_);
+#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_upload_transaction_add_authorization_header_field (self, "oauth_nonce", _tmp9_);
+#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_upload_transaction_add_authorization_header_field (self, "oauth_signature_method", "HMAC-SHA1");
+#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_upload_transaction_add_authorization_header_field (self, "oauth_version", "1.0");
+#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_upload_transaction_add_authorization_header_field (self, "oauth_callback", "oob");
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = session;
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = publishing_flickr_session_get_oauth_timestamp (_tmp10_);
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = _tmp11_;
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_upload_transaction_add_authorization_header_field (self, "oauth_timestamp", _tmp12_);
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp12_);
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_upload_transaction_add_authorization_header_field (self, "oauth_consumer_key", PUBLISHING_FLICKR_API_KEY);
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = session;
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = publishing_flickr_session_get_access_phase_token (_tmp13_);
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = _tmp14_;
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_upload_transaction_add_authorization_header_field (self, "oauth_token", _tmp15_);
+#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp15_);
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = parameters;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = _tmp16_->visibility_specification;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = _tmp17_->everyone_level;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = g_strdup_printf ("%d", _tmp18_);
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = _tmp19_;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "is_public", _tmp20_);
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp20_);
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21_ = parameters;
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = _tmp21_->visibility_specification;
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = _tmp22_->friends_level;
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = g_strdup_printf ("%d", _tmp23_);
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp25_ = _tmp24_;
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "is_friend", _tmp25_);
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp25_);
+#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26_ = parameters;
+#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp27_ = _tmp26_->visibility_specification;
+#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp28_ = _tmp27_->family_level;
+#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp29_ = g_strdup_printf ("%d", _tmp28_);
+#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp30_ = _tmp29_;
+#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "is_family", _tmp30_);
+#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp30_);
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp31_ = g_str_hash;
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp32_ = g_str_equal;
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp33_ = g_hash_table_new_full (_tmp31_, _tmp32_, _g_free0_, _g_free0_);
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ disposition_table = _tmp33_;
+#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp34_ = publishable;
+#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp35_ = spit_publishing_publishable_get_publishing_name (_tmp34_);
+#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ filename = _tmp35_;
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp37_ = filename;
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp37_ == NULL) {
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp36_ = TRUE;
+#line 6034 "FlickrPublishing.c"
+ } else {
+ const gchar* _tmp38_ = NULL;
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp38_ = filename;
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp36_ = g_strcmp0 (_tmp38_, "") == 0;
+#line 6041 "FlickrPublishing.c"
+ }
+#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp36_) {
+#line 6045 "FlickrPublishing.c"
+ SpitPublishingPublishable* _tmp39_ = NULL;
+ gchar* _tmp40_ = NULL;
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp39_ = publishable;
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp40_ = spit_publishing_publishable_get_param_string (_tmp39_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME);
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (filename);
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ filename = _tmp40_;
+#line 6056 "FlickrPublishing.c"
+ }
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp41_ = disposition_table;
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp42_ = g_strdup ("filename");
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp43_ = publishable;
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp44_ = spit_publishing_publishable_get_param_string (_tmp43_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME);
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp45_ = _tmp44_;
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp46_ = soup_uri_encode (_tmp45_, NULL);
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_hash_table_insert (_tmp41_, _tmp42_, _tmp46_);
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp45_);
+#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp47_ = disposition_table;
+#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp48_ = g_strdup ("name");
+#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp49_ = g_strdup ("photo");
+#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_hash_table_insert (_tmp47_, _tmp48_, _tmp49_);
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp50_ = disposition_table;
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), _tmp50_);
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (filename);
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_hash_table_unref0 (disposition_table);
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 6092 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrUploadTransaction* publishing_flickr_upload_transaction_new (PublishingFlickrSession* session, PublishingFlickrPublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_upload_transaction_construct (PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, session, parameters, publishable);
+#line 6099 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add18 (PublishingRESTSupportArgument*** array, int* length, int* size, PublishingRESTSupportArgument* value) {
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1);
+#line 6110 "FlickrPublishing.c"
+ }
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 6116 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_upload_transaction_add_authorization_header_field (PublishingFlickrUploadTransaction* self, const gchar* key, const gchar* value) {
+ PublishingRESTSupportArgument** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRESTSupportArgument* _tmp3_ = NULL;
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_UPLOAD_TRANSACTION (self));
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (key != NULL);
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (value != NULL);
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->auth_header_fields;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0__length1 = self->priv->auth_header_fields_length1;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = key;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = value;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = publishing_rest_support_argument_new (_tmp1_, _tmp2_);
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add18 (&self->priv->auth_header_fields, &self->priv->auth_header_fields_length1, &self->priv->_auth_header_fields_size_, _tmp3_);
+#line 6144 "FlickrPublishing.c"
+}
+
+
+static gpointer _publishing_rest_support_argument_ref0 (gpointer self) {
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self ? publishing_rest_support_argument_ref (self) : NULL;
+#line 6151 "FlickrPublishing.c"
+}
+
+
+static PublishingRESTSupportArgument** _vala_array_dup8 (PublishingRESTSupportArgument** self, int length) {
+ PublishingRESTSupportArgument** result;
+ int i;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = g_new0 (PublishingRESTSupportArgument*, length + 1);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 6162 "FlickrPublishing.c"
+ PublishingRESTSupportArgument* _tmp0_ = NULL;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = _publishing_rest_support_argument_ref0 (self[i]);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result[i] = _tmp0_;
+#line 6168 "FlickrPublishing.c"
+ }
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 6172 "FlickrPublishing.c"
+}
+
+
+PublishingRESTSupportArgument** publishing_flickr_upload_transaction_get_authorization_header_fields (PublishingFlickrUploadTransaction* self, int* result_length1) {
+ PublishingRESTSupportArgument** result = NULL;
+ PublishingRESTSupportArgument** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingRESTSupportArgument** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingRESTSupportArgument** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_UPLOAD_TRANSACTION (self), NULL);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->auth_header_fields;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0__length1 = self->priv->auth_header_fields_length1;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup8 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2__length1 = _tmp1__length1;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (result_length1) {
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *result_length1 = _tmp2__length1;
+#line 6202 "FlickrPublishing.c"
+ }
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp2_;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 6208 "FlickrPublishing.c"
+}
+
+
+gchar* publishing_flickr_upload_transaction_get_authorization_header_string (PublishingFlickrUploadTransaction* self) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ gchar* _tmp0_ = NULL;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_UPLOAD_TRANSACTION (self), NULL);
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = g_strdup ("OAuth ");
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result_ = _tmp0_;
+#line 6222 "FlickrPublishing.c"
+ {
+ gint i = 0;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ i = 0;
+#line 6227 "FlickrPublishing.c"
+ {
+ gboolean _tmp1_ = FALSE;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = TRUE;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ while (TRUE) {
+#line 6234 "FlickrPublishing.c"
+ gint _tmp3_ = 0;
+ PublishingRESTSupportArgument** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp5_ = NULL;
+ PublishingRESTSupportArgument** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ gint _tmp7_ = 0;
+ PublishingRESTSupportArgument* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ PublishingRESTSupportArgument** _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ gint _tmp15_ = 0;
+ PublishingRESTSupportArgument* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ PublishingRESTSupportArgument** _tmp24_ = NULL;
+ gint _tmp24__length1 = 0;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp1_) {
+#line 6263 "FlickrPublishing.c"
+ gint _tmp2_ = 0;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = i;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ i = _tmp2_ + 1;
+#line 6269 "FlickrPublishing.c"
+ }
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = FALSE;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = i;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = self->priv->auth_header_fields;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4__length1 = self->priv->auth_header_fields_length1;
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!(_tmp3_ < _tmp4__length1)) {
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ break;
+#line 6283 "FlickrPublishing.c"
+ }
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _result_;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = self->priv->auth_header_fields;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6__length1 = self->priv->auth_header_fields_length1;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = i;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = _tmp6_[_tmp7_];
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = _tmp8_->key;
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = g_strconcat (_tmp5_, _tmp9_, NULL);
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_result_);
+#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result_ = _tmp10_;
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = _result_;
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = g_strconcat (_tmp11_, "=", NULL);
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_result_);
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result_ = _tmp12_;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = _result_;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = self->priv->auth_header_fields;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14__length1 = self->priv->auth_header_fields_length1;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = i;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = _tmp14_[_tmp15_];
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = _tmp16_->value;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = g_strconcat ("\"", _tmp17_, NULL);
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = _tmp18_;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = g_strconcat (_tmp19_, "\"", NULL);
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21_ = _tmp20_;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = g_strconcat (_tmp13_, _tmp21_, NULL);
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_result_);
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result_ = _tmp22_;
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp21_);
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp19_);
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = i;
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = self->priv->auth_header_fields;
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24__length1 = self->priv->auth_header_fields_length1;
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp23_ < (_tmp24__length1 - 1)) {
+#line 6349 "FlickrPublishing.c"
+ const gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp25_ = _result_;
+#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26_ = g_strconcat (_tmp25_, ", ", NULL);
+#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_result_);
+#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result_ = _tmp26_;
+#line 6360 "FlickrPublishing.c"
+ }
+ }
+ }
+ }
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _result_;
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 6369 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) {
+ PublishingFlickrUploadTransaction * self;
+ PublishingFlickrSession* _tmp0_ = NULL;
+ gchar* authorization_header = NULL;
+ gchar* _tmp1_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransaction);
+#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_session_sign_transaction (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 935 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = publishing_flickr_upload_transaction_get_authorization_header_string (self);
+#line 935 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ authorization_header = _tmp1_;
+#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:937: executing upload transaction: authorization" \
+" header string = '%s'", authorization_header);
+#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", authorization_header);
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_flickr_upload_transaction_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (authorization_header);
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 6405 "FlickrPublishing.c"
+ } else {
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (authorization_header);
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 6415 "FlickrPublishing.c"
+ }
+ }
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (authorization_header);
+#line 6420 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_upload_transaction_class_init (PublishingFlickrUploadTransactionClass * klass) {
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_upload_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_flickr_upload_transaction_finalize;
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFlickrUploadTransactionPrivate));
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->execute = publishing_flickr_upload_transaction_real_execute;
+#line 6433 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_upload_transaction_instance_init (PublishingFlickrUploadTransaction * self) {
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv = PUBLISHING_FLICKR_UPLOAD_TRANSACTION_GET_PRIVATE (self);
+#line 6440 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_upload_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingFlickrUploadTransaction * self;
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransaction);
+#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters);
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 871 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->auth_header_fields = (_vala_array_free (self->priv->auth_header_fields, self->priv->auth_header_fields_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_flickr_upload_transaction_parent_class)->finalize (obj);
+#line 6456 "FlickrPublishing.c"
+}
+
+
+GType publishing_flickr_upload_transaction_get_type (void) {
+ static volatile gsize publishing_flickr_upload_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_upload_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrUploadTransaction), 0, (GInstanceInitFunc) publishing_flickr_upload_transaction_instance_init, NULL };
+ GType publishing_flickr_upload_transaction_type_id;
+ publishing_flickr_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingFlickrUploadTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_flickr_upload_transaction_type_id__volatile, publishing_flickr_upload_transaction_type_id);
+ }
+ return publishing_flickr_upload_transaction_type_id__volatile;
+}
+
+
+PublishingFlickrSession* publishing_flickr_session_construct (GType object_type) {
+ PublishingFlickrSession* self = NULL;
+#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrSession*) publishing_rest_support_session_construct (object_type, PUBLISHING_FLICKR_ENDPOINT_URL);
+#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 6478 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrSession* publishing_flickr_session_new (void) {
+#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_session_construct (PUBLISHING_FLICKR_TYPE_SESSION);
+#line 6485 "FlickrPublishing.c"
+}
+
+
+static gboolean publishing_flickr_session_real_is_authenticated (PublishingRESTSupportSession* base) {
+ PublishingFlickrSession * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
+ const gchar* _tmp2_ = NULL;
+#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_SESSION, PublishingFlickrSession);
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->access_phase_token;
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp2_ != NULL) {
+#line 6501 "FlickrPublishing.c"
+ const gchar* _tmp3_ = NULL;
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = self->priv->access_phase_token_secret;
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _tmp3_ != NULL;
+#line 6507 "FlickrPublishing.c"
+ } else {
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = FALSE;
+#line 6511 "FlickrPublishing.c"
+ }
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp1_) {
+#line 6515 "FlickrPublishing.c"
+ const gchar* _tmp4_ = NULL;
+#line 958 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = self->priv->username;
+#line 958 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = _tmp4_ != NULL;
+#line 6521 "FlickrPublishing.c"
+ } else {
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = FALSE;
+#line 6525 "FlickrPublishing.c"
+ }
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp0_;
+#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 6531 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_session_authenticate_from_persistent_credentials (PublishingFlickrSession* self, const gchar* token, const gchar* secret, const gchar* username) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_SESSION (self));
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (secret != NULL);
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = token;
+#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token);
+#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->access_phase_token = _tmp1_;
+#line 964 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = secret;
+#line 964 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 964 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token_secret);
+#line 964 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->access_phase_token_secret = _tmp3_;
+#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = username;
+#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->username = _tmp5_;
+#line 967 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated");
+#line 6576 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_session_deauthenticate (PublishingFlickrSession* self) {
+#line 970 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_SESSION (self));
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token);
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->access_phase_token = NULL;
+#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token_secret);
+#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->access_phase_token_secret = NULL;
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->username = NULL;
+#line 6595 "FlickrPublishing.c"
+}
+
+
+static gpointer _publishing_rest_support_transaction_ref0 (gpointer self) {
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self ? publishing_rest_support_transaction_ref (self) : NULL;
+#line 6602 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add19 (PublishingRESTSupportArgument*** array, int* length, int* size, PublishingRESTSupportArgument* value) {
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1);
+#line 6613 "FlickrPublishing.c"
+ }
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 6619 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_session_sign_transaction (PublishingFlickrSession* self, PublishingRESTSupportTransaction* txn) {
+ gchar* http_method = NULL;
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ PublishingRESTSupportHttpMethod _tmp1_ = 0;
+ gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ PublishingRESTSupportArgument** base_string_arguments = NULL;
+ PublishingRESTSupportTransaction* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ PublishingRESTSupportArgument** _tmp8_ = NULL;
+ gint base_string_arguments_length1 = 0;
+ gint _base_string_arguments_size_ = 0;
+ PublishingFlickrUploadTransaction* upload_txn = NULL;
+ PublishingRESTSupportTransaction* _tmp9_ = NULL;
+ PublishingFlickrUploadTransaction* _tmp10_ = NULL;
+ PublishingFlickrUploadTransaction* _tmp11_ = NULL;
+ PublishingRESTSupportArgument** sorted_args = NULL;
+ PublishingRESTSupportArgument** _tmp20_ = NULL;
+ gint _tmp20__length1 = 0;
+ gint _tmp21_ = 0;
+ PublishingRESTSupportArgument** _tmp22_ = NULL;
+ gint sorted_args_length1 = 0;
+ gint _sorted_args_size_ = 0;
+ gchar* arguments_string = NULL;
+ gchar* _tmp23_ = NULL;
+ gchar* signing_key = NULL;
+ const gchar* _tmp46_ = NULL;
+ gchar* signature_base_string = NULL;
+ const gchar* _tmp53_ = NULL;
+ gchar* _tmp54_ = NULL;
+ gchar* _tmp55_ = NULL;
+ PublishingRESTSupportTransaction* _tmp56_ = NULL;
+ gchar* _tmp57_ = NULL;
+ gchar* _tmp58_ = NULL;
+ gchar* _tmp59_ = NULL;
+ gchar* _tmp60_ = NULL;
+ gchar* _tmp61_ = NULL;
+ gchar* _tmp62_ = NULL;
+ gchar* _tmp63_ = NULL;
+ gchar* _tmp64_ = NULL;
+ const gchar* _tmp65_ = NULL;
+ gchar* _tmp66_ = NULL;
+ gchar* _tmp67_ = NULL;
+ gchar* _tmp68_ = NULL;
+ gchar* _tmp69_ = NULL;
+ const gchar* _tmp70_ = NULL;
+ const gchar* _tmp71_ = NULL;
+ gchar* signature = NULL;
+ const gchar* _tmp72_ = NULL;
+ const gchar* _tmp73_ = NULL;
+ gchar* _tmp74_ = NULL;
+ const gchar* _tmp75_ = NULL;
+ gchar* _tmp76_ = NULL;
+ const gchar* _tmp77_ = NULL;
+ PublishingFlickrUploadTransaction* _tmp78_ = NULL;
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_SESSION (self));
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = txn;
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = publishing_rest_support_transaction_get_method (_tmp0_);
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = publishing_rest_support_http_method_to_string (_tmp1_);
+#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ http_method = _tmp2_;
+#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:979: signing transaction with parameters:");
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = http_method;
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = g_strconcat ("HTTP method = ", _tmp3_, NULL);
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:980: %s", _tmp5_);
+#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 982 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = txn;
+#line 982 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = publishing_rest_support_transaction_get_arguments (_tmp6_, &_tmp7_);
+#line 982 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ base_string_arguments = _tmp8_;
+#line 982 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ base_string_arguments_length1 = _tmp7_;
+#line 982 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _base_string_arguments_size_ = base_string_arguments_length1;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = txn;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = _publishing_rest_support_transaction_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION) ? ((PublishingFlickrUploadTransaction*) _tmp9_) : NULL);
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ upload_txn = _tmp10_;
+#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = upload_txn;
+#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp11_ != NULL) {
+#line 6724 "FlickrPublishing.c"
+ PublishingRESTSupportArgument** auth_header_args = NULL;
+ PublishingFlickrUploadTransaction* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ PublishingRESTSupportArgument** _tmp14_ = NULL;
+ gint auth_header_args_length1 = 0;
+ gint _auth_header_args_size_ = 0;
+ PublishingRESTSupportArgument** _tmp15_ = NULL;
+ gint _tmp15__length1 = 0;
+#line 986 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:986: %s", "this transaction is an UploadTransaction; including Authorization head" \
+"er " "fields in signature base string");
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = upload_txn;
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = publishing_flickr_upload_transaction_get_authorization_header_fields (_tmp12_, &_tmp13_);
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ auth_header_args = _tmp14_;
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ auth_header_args_length1 = _tmp13_;
+#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _auth_header_args_size_ = auth_header_args_length1;
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = auth_header_args;
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15__length1 = auth_header_args_length1;
+#line 6749 "FlickrPublishing.c"
+ {
+ PublishingRESTSupportArgument** arg_collection = NULL;
+ gint arg_collection_length1 = 0;
+ gint _arg_collection_size_ = 0;
+ gint arg_it = 0;
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ arg_collection = _tmp15_;
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ arg_collection_length1 = _tmp15__length1;
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ for (arg_it = 0; arg_it < _tmp15__length1; arg_it = arg_it + 1) {
+#line 6761 "FlickrPublishing.c"
+ PublishingRESTSupportArgument* _tmp16_ = NULL;
+ PublishingRESTSupportArgument* arg = NULL;
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]);
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ arg = _tmp16_;
+#line 6768 "FlickrPublishing.c"
+ {
+ PublishingRESTSupportArgument** _tmp17_ = NULL;
+ gint _tmp17__length1 = 0;
+ PublishingRESTSupportArgument* _tmp18_ = NULL;
+ PublishingRESTSupportArgument* _tmp19_ = NULL;
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = base_string_arguments;
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17__length1 = base_string_arguments_length1;
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = arg;
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = _publishing_rest_support_argument_ref0 (_tmp18_);
+#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add19 (&base_string_arguments, &base_string_arguments_length1, &_base_string_arguments_size_, _tmp19_);
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_argument_unref0 (arg);
+#line 6786 "FlickrPublishing.c"
+ }
+ }
+ }
+#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ auth_header_args = (_vala_array_free (auth_header_args, auth_header_args_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 6792 "FlickrPublishing.c"
+ }
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = base_string_arguments;
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20__length1 = base_string_arguments_length1;
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = publishing_rest_support_argument_sort (_tmp20_, _tmp20__length1, &_tmp21_);
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ sorted_args = _tmp22_;
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ sorted_args_length1 = _tmp21_;
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _sorted_args_size_ = sorted_args_length1;
+#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = g_strdup ("");
+#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ arguments_string = _tmp23_;
+#line 6810 "FlickrPublishing.c"
+ {
+ gint i = 0;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ i = 0;
+#line 6815 "FlickrPublishing.c"
+ {
+ gboolean _tmp24_ = FALSE;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = TRUE;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ while (TRUE) {
+#line 6822 "FlickrPublishing.c"
+ gint _tmp26_ = 0;
+ PublishingRESTSupportArgument** _tmp27_ = NULL;
+ gint _tmp27__length1 = 0;
+ const gchar* _tmp28_ = NULL;
+ PublishingRESTSupportArgument** _tmp29_ = NULL;
+ gint _tmp29__length1 = 0;
+ gint _tmp30_ = 0;
+ PublishingRESTSupportArgument* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ gchar* _tmp33_ = NULL;
+ gchar* _tmp34_ = NULL;
+ PublishingRESTSupportArgument** _tmp35_ = NULL;
+ gint _tmp35__length1 = 0;
+ gint _tmp36_ = 0;
+ PublishingRESTSupportArgument* _tmp37_ = NULL;
+ const gchar* _tmp38_ = NULL;
+ gchar* _tmp39_ = NULL;
+ gchar* _tmp40_ = NULL;
+ gchar* _tmp41_ = NULL;
+ gint _tmp42_ = 0;
+ PublishingRESTSupportArgument** _tmp43_ = NULL;
+ gint _tmp43__length1 = 0;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp24_) {
+#line 6847 "FlickrPublishing.c"
+ gint _tmp25_ = 0;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp25_ = i;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ i = _tmp25_ + 1;
+#line 6853 "FlickrPublishing.c"
+ }
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = FALSE;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26_ = i;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp27_ = sorted_args;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp27__length1 = sorted_args_length1;
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!(_tmp26_ < _tmp27__length1)) {
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ break;
+#line 6867 "FlickrPublishing.c"
+ }
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp28_ = arguments_string;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp29_ = sorted_args;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp29__length1 = sorted_args_length1;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp30_ = i;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp31_ = _tmp29_[_tmp30_];
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp32_ = _tmp31_->key;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp33_ = g_strconcat (_tmp32_, "=", NULL);
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp34_ = _tmp33_;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp35_ = sorted_args;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp35__length1 = sorted_args_length1;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp36_ = i;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp37_ = _tmp35_[_tmp36_];
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp38_ = _tmp37_->value;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp39_ = g_strconcat (_tmp34_, _tmp38_, NULL);
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp40_ = _tmp39_;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp41_ = g_strconcat (_tmp28_, _tmp40_, NULL);
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (arguments_string);
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ arguments_string = _tmp41_;
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp40_);
+#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp34_);
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp42_ = i;
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp43_ = sorted_args;
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp43__length1 = sorted_args_length1;
+#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp42_ < (_tmp43__length1 - 1)) {
+#line 6917 "FlickrPublishing.c"
+ const gchar* _tmp44_ = NULL;
+ gchar* _tmp45_ = NULL;
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp44_ = arguments_string;
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp45_ = g_strconcat (_tmp44_, "&", NULL);
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (arguments_string);
+#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ arguments_string = _tmp45_;
+#line 6928 "FlickrPublishing.c"
+ }
+ }
+ }
+ }
+#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ signing_key = NULL;
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp46_ = self->priv->access_phase_token_secret;
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp46_ != NULL) {
+#line 6939 "FlickrPublishing.c"
+ const gchar* _tmp47_ = NULL;
+ gchar* _tmp48_ = NULL;
+#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:1008: access phase token secret available; using" \
+" it as signing key");
+#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp47_ = self->priv->access_phase_token_secret;
+#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp48_ = g_strconcat (PUBLISHING_FLICKR_API_SECRET "&", _tmp47_, NULL);
+#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (signing_key);
+#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ signing_key = _tmp48_;
+#line 6952 "FlickrPublishing.c"
+ } else {
+ const gchar* _tmp49_ = NULL;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp49_ = self->priv->request_phase_token_secret;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp49_ != NULL) {
+#line 6959 "FlickrPublishing.c"
+ const gchar* _tmp50_ = NULL;
+ gchar* _tmp51_ = NULL;
+#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:1012: request phase token secret available; usin" \
+"g it as signing key");
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp50_ = self->priv->request_phase_token_secret;
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp51_ = g_strconcat (PUBLISHING_FLICKR_API_SECRET "&", _tmp50_, NULL);
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (signing_key);
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ signing_key = _tmp51_;
+#line 6972 "FlickrPublishing.c"
+ } else {
+ gchar* _tmp52_ = NULL;
+#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:1016: %s", "neither access phase nor request phase token secrets available; using " \
+"API " "key as signing key");
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp52_ = g_strdup (PUBLISHING_FLICKR_API_SECRET "&");
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (signing_key);
+#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ signing_key = _tmp52_;
+#line 6983 "FlickrPublishing.c"
+ }
+ }
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp53_ = http_method;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp54_ = g_strconcat (_tmp53_, "&", NULL);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp55_ = _tmp54_;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp56_ = txn;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp57_ = publishing_rest_support_transaction_get_endpoint_url (_tmp56_);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp58_ = _tmp57_;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp59_ = soup_uri_encode (_tmp58_, PUBLISHING_FLICKR_ENCODE_RFC_3986_EXTRA);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp60_ = _tmp59_;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp61_ = g_strconcat (_tmp55_, _tmp60_, NULL);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp62_ = _tmp61_;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp63_ = g_strconcat (_tmp62_, "&", NULL);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp64_ = _tmp63_;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp65_ = arguments_string;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp66_ = soup_uri_encode (_tmp65_, PUBLISHING_FLICKR_ENCODE_RFC_3986_EXTRA);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp67_ = _tmp66_;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp68_ = g_strconcat (_tmp64_, _tmp67_, NULL);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp69_ = _tmp68_;
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp67_);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp64_);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp62_);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp60_);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp58_);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp55_);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ signature_base_string = _tmp69_;
+#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp70_ = signature_base_string;
+#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:1026: signature base string = '%s'", _tmp70_);
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp71_ = signing_key;
+#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:1028: signing key = '%s'", _tmp71_);
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp72_ = signing_key;
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp73_ = signature_base_string;
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp74_ = publishing_rest_support_hmac_sha1 (_tmp72_, _tmp73_);
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ signature = _tmp74_;
+#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp75_ = signature;
+#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp76_ = soup_uri_encode (_tmp75_, PUBLISHING_FLICKR_ENCODE_RFC_3986_EXTRA);
+#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (signature);
+#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ signature = _tmp76_;
+#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp77_ = signature;
+#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_debug ("FlickrPublishing.vala:1034: signature = '%s'", _tmp77_);
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp78_ = upload_txn;
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp78_ != NULL) {
+#line 7066 "FlickrPublishing.c"
+ PublishingFlickrUploadTransaction* _tmp79_ = NULL;
+ const gchar* _tmp80_ = NULL;
+#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp79_ = upload_txn;
+#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp80_ = signature;
+#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_upload_transaction_add_authorization_header_field (_tmp79_, "oauth_signature", _tmp80_);
+#line 7075 "FlickrPublishing.c"
+ } else {
+ PublishingRESTSupportTransaction* _tmp81_ = NULL;
+ const gchar* _tmp82_ = NULL;
+#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp81_ = txn;
+#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp82_ = signature;
+#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_rest_support_transaction_add_argument (_tmp81_, "oauth_signature", _tmp82_);
+#line 7085 "FlickrPublishing.c"
+ }
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (signature);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (signature_base_string);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (signing_key);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (arguments_string);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ sorted_args = (_vala_array_free (sorted_args, sorted_args_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (upload_txn);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ base_string_arguments = (_vala_array_free (base_string_arguments, base_string_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL);
+#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (http_method);
+#line 7103 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_session_set_request_phase_credentials (PublishingFlickrSession* self, const gchar* token, const gchar* secret) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_SESSION (self));
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (secret != NULL);
+#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = token;
+#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->request_phase_token);
+#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->request_phase_token = _tmp1_;
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = secret;
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->request_phase_token_secret);
+#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->request_phase_token_secret = _tmp3_;
+#line 7134 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_session_set_access_phase_credentials (PublishingFlickrSession* self, const gchar* token, const gchar* secret, const gchar* username) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_SESSION (self));
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (token != NULL);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (secret != NULL);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = token;
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token);
+#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->access_phase_token = _tmp1_;
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = secret;
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token_secret);
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->access_phase_token_secret = _tmp3_;
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = username;
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->username = _tmp5_;
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated");
+#line 7179 "FlickrPublishing.c"
+}
+
+
+gchar* publishing_flickr_session_get_oauth_nonce (PublishingFlickrSession* self) {
+ gchar* result = NULL;
+ GTimeVal currtime = {0};
+ GTimeVal _tmp0_ = {0};
+ glong _tmp1_ = 0L;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ GTimeVal _tmp4_ = {0};
+ glong _tmp5_ = 0L;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+#line 1055 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (self), NULL);
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_get_current_time (&currtime);
+#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_get_current_time (&currtime);
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = currtime;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _tmp0_.tv_sec;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = g_strdup_printf ("%li", _tmp1_);
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = currtime;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _tmp4_.tv_usec;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = g_strdup_printf ("%li", _tmp5_);
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = g_strconcat (_tmp3_, _tmp7_, NULL);
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp9_, (gsize) -1);
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp11_;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 7238 "FlickrPublishing.c"
+}
+
+
+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 7261 "FlickrPublishing.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 7269 "FlickrPublishing.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 7281 "FlickrPublishing.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 7305 "FlickrPublishing.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 7311 "FlickrPublishing.c"
+ } else {
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = FALSE;
+#line 7315 "FlickrPublishing.c"
+ }
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp0_) {
+#line 7319 "FlickrPublishing.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 7331 "FlickrPublishing.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 7341 "FlickrPublishing.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 7347 "FlickrPublishing.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 7361 "FlickrPublishing.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 7371 "FlickrPublishing.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 7377 "FlickrPublishing.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 7386 "FlickrPublishing.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 7406 "FlickrPublishing.c"
+}
+
+
+gchar* publishing_flickr_session_get_oauth_timestamp (PublishingFlickrSession* self) {
+ gchar* result = NULL;
+ gint64 _tmp0_ = 0LL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (self), NULL);
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = g_get_real_time ();
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp0_);
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = string_substring (_tmp2_, (glong) 0, (glong) 10);
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp2_);
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp4_;
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 7435 "FlickrPublishing.c"
+}
+
+
+gchar* publishing_flickr_session_get_request_phase_token (PublishingFlickrSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (self), NULL);
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->request_phase_token;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_assert (_tmp0_ != NULL, "request_phase_token != null");
+#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->request_phase_token;
+#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp2_;
+#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 7458 "FlickrPublishing.c"
+}
+
+
+gchar* publishing_flickr_session_get_access_phase_token (PublishingFlickrSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (self), NULL);
+#line 1073 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->access_phase_token;
+#line 1073 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_assert (_tmp0_ != NULL, "access_phase_token != null");
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->access_phase_token;
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp2_;
+#line 1074 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 7481 "FlickrPublishing.c"
+}
+
+
+gchar* publishing_flickr_session_get_access_phase_token_secret (PublishingFlickrSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (self), NULL);
+#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->access_phase_token_secret;
+#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_assert (_tmp0_ != NULL, "access_phase_token_secret != null");
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->access_phase_token_secret;
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp2_;
+#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 7504 "FlickrPublishing.c"
+}
+
+
+gchar* publishing_flickr_session_get_username (PublishingFlickrSession* self) {
+ gchar* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (self), NULL);
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_assert (_tmp0_, "is_authenticated()");
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->username;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp2_;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 7527 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_session_class_init (PublishingFlickrSessionClass * klass) {
+#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_session_parent_class = g_type_class_peek_parent (klass);
+#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_flickr_session_finalize;
+#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFlickrSessionPrivate));
+#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = publishing_flickr_session_real_is_authenticated;
+#line 7540 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_session_instance_init (PublishingFlickrSession * self) {
+#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv = PUBLISHING_FLICKR_SESSION_GET_PRIVATE (self);
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->request_phase_token = NULL;
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->request_phase_token_secret = NULL;
+#line 948 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->access_phase_token = NULL;
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->access_phase_token_secret = NULL;
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->username = NULL;
+#line 7557 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_session_finalize (PublishingRESTSupportSession* obj) {
+ PublishingFlickrSession * self;
+#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_SESSION, PublishingFlickrSession);
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->request_phase_token);
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->request_phase_token_secret);
+#line 948 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token);
+#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->access_phase_token_secret);
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_flickr_session_parent_class)->finalize (obj);
+#line 7577 "FlickrPublishing.c"
+}
+
+
+GType publishing_flickr_session_get_type (void) {
+ static volatile gsize publishing_flickr_session_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_session_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrSession), 0, (GInstanceInitFunc) publishing_flickr_session_instance_init, NULL };
+ GType publishing_flickr_session_type_id;
+ publishing_flickr_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingFlickrSession", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_flickr_session_type_id__volatile, publishing_flickr_session_type_id);
+ }
+ return publishing_flickr_session_type_id__volatile;
+}
+
+
+static void _publishing_flickr_publishing_options_pane_on_visibility_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
+#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_on_visibility_changed ((PublishingFlickrPublishingOptionsPane*) self);
+#line 7596 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
+#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_on_size_changed ((PublishingFlickrPublishingOptionsPane*) self);
+#line 7603 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_on_logout_clicked ((PublishingFlickrPublishingOptionsPane*) self);
+#line 7610 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_on_publish_clicked ((PublishingFlickrPublishingOptionsPane*) self);
+#line 7617 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrPublishingOptionsPane* publishing_flickr_publishing_options_pane_construct (GType object_type, PublishingFlickrFlickrPublisher* publisher, PublishingFlickrPublishingParameters* parameters, SpitPublishingPublisherMediaType media_type, GtkBuilder* builder, gboolean strip_metadata) {
+ PublishingFlickrPublishingOptionsPane * self = NULL;
+ GtkBuilder* _tmp0_ = NULL;
+ GtkBuilder* _tmp1_ = NULL;
+ GtkBuilder* _tmp2_ = NULL;
+ GtkBuilder* _tmp3_ = NULL;
+ GSList* _tmp4_ = NULL;
+ GSList* _tmp5_ = NULL;
+ guint _tmp6_ = 0U;
+ GtkBuilder* _tmp7_ = NULL;
+ GObject* _tmp8_ = NULL;
+ GtkBox* _tmp9_ = NULL;
+ GtkBuilder* _tmp10_ = NULL;
+ GObject* _tmp11_ = NULL;
+ GtkLabel* _tmp12_ = NULL;
+ GtkBuilder* _tmp13_ = NULL;
+ GObject* _tmp14_ = NULL;
+ GtkLabel* _tmp15_ = NULL;
+ GtkBuilder* _tmp16_ = NULL;
+ GObject* _tmp17_ = NULL;
+ GtkButton* _tmp18_ = NULL;
+ GtkBuilder* _tmp19_ = NULL;
+ GObject* _tmp20_ = NULL;
+ GtkButton* _tmp21_ = NULL;
+ GtkBuilder* _tmp22_ = NULL;
+ GObject* _tmp23_ = NULL;
+ GtkComboBoxText* _tmp24_ = NULL;
+ GtkBuilder* _tmp25_ = NULL;
+ GObject* _tmp26_ = NULL;
+ GtkComboBoxText* _tmp27_ = NULL;
+ GtkBuilder* _tmp28_ = NULL;
+ GObject* _tmp29_ = NULL;
+ GtkLabel* _tmp30_ = NULL;
+ GtkBuilder* _tmp31_ = NULL;
+ GObject* _tmp32_ = NULL;
+ GtkCheckButton* _tmp33_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp34_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp35_ = NULL;
+ PublishingFlickrFlickrPublisher* _tmp36_ = NULL;
+ PublishingFlickrFlickrPublisher* _tmp37_ = NULL;
+ SpitPublishingPublisherMediaType _tmp38_ = 0;
+ gint _tmp39_ = 0;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp40_ = NULL;
+ gint _tmp41_ = 0;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp42_ = NULL;
+ gchar* upload_label_text = NULL;
+ const gchar* _tmp43_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp44_ = NULL;
+ const gchar* _tmp45_ = NULL;
+ gchar* _tmp46_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp47_ = NULL;
+ PublishingFlickrUserKind _tmp48_ = 0;
+ GtkLabel* _tmp61_ = NULL;
+ const gchar* _tmp62_ = NULL;
+ gchar* visibility_label_text = NULL;
+ const gchar* _tmp63_ = NULL;
+ gchar* _tmp64_ = NULL;
+ SpitPublishingPublisherMediaType _tmp65_ = 0;
+ GtkLabel* _tmp71_ = NULL;
+ const gchar* _tmp72_ = NULL;
+ GtkComboBoxText* _tmp73_ = NULL;
+ SpitPublishingPublisherMediaType _tmp74_ = 0;
+ GtkCheckButton* _tmp78_ = NULL;
+ gboolean _tmp79_ = FALSE;
+ GtkButton* _tmp80_ = NULL;
+ GtkButton* _tmp81_ = NULL;
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (publisher), NULL);
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL);
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrPublishingOptionsPane*) g_object_new (object_type, NULL);
+#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = builder;
+#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->builder = _tmp1_;
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = builder;
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_assert (_tmp2_ != NULL, "builder != null");
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = builder;
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = gtk_builder_get_objects (_tmp3_);
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = g_slist_length (_tmp5_);
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_assert (_tmp6_ > ((guint) 0), "builder.get_objects().length() > 0");
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_slist_free0 (_tmp5_);
+#line 1135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = self->priv->builder;
+#line 1135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = gtk_builder_get_object (_tmp7_, "flickr_pane");
+#line 1135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_box_get_type (), GtkBox));
+#line 1135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 1135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->pane_widget = _tmp9_;
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = self->priv->builder;
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = gtk_builder_get_object (_tmp10_, "visibility_label");
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_label_get_type (), GtkLabel));
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->visibility_label);
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibility_label = _tmp12_;
+#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = self->priv->builder;
+#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = gtk_builder_get_object (_tmp13_, "upload_info_label");
+#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_label_get_type (), GtkLabel));
+#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->upload_info_label);
+#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->upload_info_label = _tmp15_;
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = self->priv->builder;
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = gtk_builder_get_object (_tmp16_, "logout_button");
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_button_get_type (), GtkButton));
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->logout_button = _tmp18_;
+#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = self->priv->builder;
+#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = gtk_builder_get_object (_tmp19_, "publish_button");
+#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_button_get_type (), GtkButton));
+#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->publish_button = _tmp21_;
+#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = self->priv->builder;
+#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = gtk_builder_get_object (_tmp22_, "visibility_combo");
+#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_combo_box_text_get_type (), GtkComboBoxText));
+#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->visibility_combo);
+#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibility_combo = _tmp24_;
+#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp25_ = self->priv->builder;
+#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26_ = gtk_builder_get_object (_tmp25_, "size_combo");
+#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_combo_box_text_get_type (), GtkComboBoxText));
+#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->size_combo);
+#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->size_combo = _tmp27_;
+#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp28_ = self->priv->builder;
+#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp29_ = gtk_builder_get_object (_tmp28_, "size_label");
+#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_label_get_type (), GtkLabel));
+#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->size_label);
+#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->size_label = _tmp30_;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp31_ = self->priv->builder;
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp32_ = gtk_builder_get_object (_tmp31_, "strip_metadata_check");
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_check_button_get_type (), GtkCheckButton));
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->strip_metadata_check);
+#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->strip_metadata_check = _tmp33_;
+#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp34_ = parameters;
+#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp35_ = _publishing_flickr_publishing_parameters_ref0 (_tmp34_);
+#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters);
+#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->parameters = _tmp35_;
+#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp36_ = publisher;
+#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp37_ = _g_object_ref0 (_tmp36_);
+#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->publisher);
+#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->publisher = _tmp37_;
+#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp38_ = media_type;
+#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->media_type = _tmp38_;
+#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp40_ = publishing_flickr_publishing_options_pane_create_visibilities (self, &_tmp39_);
+#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibilities = (_vala_array_free (self->priv->visibilities, self->priv->visibilities_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_visibility_entry_unref), NULL);
+#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibilities = _tmp40_;
+#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibilities_length1 = _tmp39_;
+#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->_visibilities_size_ = self->priv->visibilities_length1;
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp42_ = publishing_flickr_publishing_options_pane_create_sizes (self, &_tmp41_);
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_size_entry_unref), NULL);
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->sizes = _tmp42_;
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->sizes_length1 = _tmp41_;
+#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->_sizes_size_ = self->priv->sizes_length1;
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp43_ = _ ("You are logged into Flickr as %s.\n\n");
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp44_ = parameters;
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp45_ = _tmp44_->username;
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp46_ = g_strdup_printf (_tmp43_, _tmp45_);
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ upload_label_text = _tmp46_;
+#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp47_ = parameters;
+#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp48_ = _tmp47_->user_kind;
+#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp48_ == PUBLISHING_FLICKR_USER_KIND_FREE) {
+#line 7865 "FlickrPublishing.c"
+ const gchar* _tmp49_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp50_ = NULL;
+ gint _tmp51_ = 0;
+ const gchar* _tmp52_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp53_ = NULL;
+ gint _tmp54_ = 0;
+ gchar* _tmp55_ = NULL;
+ gchar* _tmp56_ = NULL;
+ gchar* _tmp57_ = NULL;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp49_ = upload_label_text;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp50_ = parameters;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp51_ = _tmp50_->quota_free_mb;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp52_ = ngettext ("Your free Flickr account limits how much data you can upload per month" \
+".\n" \
+"This month you have %d megabyte remaining in your upload quota.", "Your free Flickr account limits how much data you can upload per month" \
+".\n" \
+"This month you have %d megabytes remaining in your upload quota.", (gulong) _tmp51_);
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp53_ = parameters;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp54_ = _tmp53_->quota_free_mb;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp55_ = g_strdup_printf (_tmp52_, _tmp54_);
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp56_ = _tmp55_;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp57_ = g_strconcat (_tmp49_, _tmp56_, NULL);
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (upload_label_text);
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ upload_label_text = _tmp57_;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp56_);
+#line 7899 "FlickrPublishing.c"
+ } else {
+ const gchar* _tmp58_ = NULL;
+ const gchar* _tmp59_ = NULL;
+ gchar* _tmp60_ = NULL;
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp58_ = upload_label_text;
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp59_ = _ ("Your Flickr Pro account entitles you to unlimited uploads.");
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp60_ = g_strconcat (_tmp58_, _tmp59_, NULL);
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (upload_label_text);
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ upload_label_text = _tmp60_;
+#line 7914 "FlickrPublishing.c"
+ }
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp61_ = self->priv->upload_info_label;
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp62_ = upload_label_text;
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_label_set_label (_tmp61_, _tmp62_);
+#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp63_ = _ ("Photos _visible to:");
+#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp64_ = g_strdup (_tmp63_);
+#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ visibility_label_text = _tmp64_;
+#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp65_ = media_type;
+#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp65_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 7932 "FlickrPublishing.c"
+ const gchar* _tmp66_ = NULL;
+ gchar* _tmp67_ = NULL;
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp66_ = _ ("Videos _visible to:");
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp67_ = g_strdup (_tmp66_);
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (visibility_label_text);
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ visibility_label_text = _tmp67_;
+#line 7943 "FlickrPublishing.c"
+ } else {
+ SpitPublishingPublisherMediaType _tmp68_ = 0;
+#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp68_ = media_type;
+#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp68_ == (SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO)) {
+#line 7950 "FlickrPublishing.c"
+ const gchar* _tmp69_ = NULL;
+ gchar* _tmp70_ = NULL;
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp69_ = _ ("Photos and videos _visible to:");
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp70_ = g_strdup (_tmp69_);
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (visibility_label_text);
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ visibility_label_text = _tmp70_;
+#line 7961 "FlickrPublishing.c"
+ }
+ }
+#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp71_ = self->priv->visibility_label;
+#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp72_ = visibility_label_text;
+#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_label_set_label (_tmp71_, _tmp72_);
+#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_populate_visibility_combo (self);
+#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp73_ = self->priv->visibility_combo;
+#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_flickr_publishing_options_pane_on_visibility_changed_gtk_combo_box_changed, self, 0);
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp74_ = media_type;
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp74_ != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 7980 "FlickrPublishing.c"
+ GtkComboBoxText* _tmp75_ = NULL;
+#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_populate_size_combo (self);
+#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp75_ = self->priv->size_combo;
+#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_flickr_publishing_options_pane_on_size_changed_gtk_combo_box_changed, self, 0);
+#line 7988 "FlickrPublishing.c"
+ } else {
+ GtkComboBoxText* _tmp76_ = NULL;
+ GtkLabel* _tmp77_ = NULL;
+#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp76_ = self->priv->size_combo;
+#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp77_ = self->priv->size_label;
+#line 1183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 8000 "FlickrPublishing.c"
+ }
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp78_ = self->priv->strip_metadata_check;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp79_ = strip_metadata;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp79_);
+#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp80_ = self->priv->logout_button;
+#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (_tmp80_, "clicked", (GCallback) _publishing_flickr_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0);
+#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp81_ = self->priv->publish_button;
+#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (_tmp81_, "clicked", (GCallback) _publishing_flickr_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0);
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (visibility_label_text);
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (upload_label_text);
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 8022 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrPublishingOptionsPane* publishing_flickr_publishing_options_pane_new (PublishingFlickrFlickrPublisher* publisher, PublishingFlickrPublishingParameters* parameters, SpitPublishingPublisherMediaType media_type, GtkBuilder* builder, gboolean strip_metadata) {
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_publishing_options_pane_construct (PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, publisher, parameters, media_type, builder, strip_metadata);
+#line 8029 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_on_logout_clicked (PublishingFlickrPublishingOptionsPane* self) {
+#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 8038 "FlickrPublishing.c"
+}
+
+
+static gpointer _publishing_flickr_visibility_specification_ref0 (gpointer self) {
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self ? publishing_flickr_visibility_specification_ref (self) : NULL;
+#line 8045 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_on_publish_clicked (PublishingFlickrPublishingOptionsPane* self) {
+ PublishingFlickrPublishingParameters* _tmp0_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ GtkComboBoxText* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp4_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp5_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp6_ = NULL;
+ SpitPublishingPublisherMediaType _tmp7_ = 0;
+ GtkCheckButton* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->parameters;
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->visibilities;
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1__length1 = self->priv->visibilities_length1;
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = self->priv->visibility_combo;
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _tmp1_[_tmp3_];
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _tmp4_->specification;
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = _publishing_flickr_visibility_specification_ref0 (_tmp5_);
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_visibility_specification_unref0 (_tmp0_->visibility_specification);
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_->visibility_specification = _tmp6_;
+#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = self->priv->media_type;
+#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((_tmp7_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0) {
+#line 8087 "FlickrPublishing.c"
+ PublishingFlickrPublishingParameters* _tmp8_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ GtkComboBoxText* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = self->priv->parameters;
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = self->priv->sizes;
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9__length1 = self->priv->sizes_length1;
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = self->priv->size_combo;
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = _tmp9_[_tmp11_];
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = _tmp12_->size;
+#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_->photo_major_axis_size = _tmp13_;
+#line 8111 "FlickrPublishing.c"
+ }
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = self->priv->strip_metadata_check;
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_emit_by_name (self, "publish", _tmp15_);
+#line 8119 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add20 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) {
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1);
+#line 8130 "FlickrPublishing.c"
+ }
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8136 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add21 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) {
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1);
+#line 8147 "FlickrPublishing.c"
+ }
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8153 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add22 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) {
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1);
+#line 8164 "FlickrPublishing.c"
+ }
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8170 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add23 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) {
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1);
+#line 8181 "FlickrPublishing.c"
+ }
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8187 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add24 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) {
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1);
+#line 8198 "FlickrPublishing.c"
+ }
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8204 "FlickrPublishing.c"
+}
+
+
+static PublishingFlickrPublishingOptionsPaneVisibilityEntry** publishing_flickr_publishing_options_pane_create_visibilities (PublishingFlickrPublishingOptionsPane* self, int* result_length1) {
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** result = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _result_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ const gchar* _tmp2_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp3_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp4_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp5_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ const gchar* _tmp7_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp8_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp9_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp10_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp11_ = NULL;
+ gint _tmp11__length1 = 0;
+ const gchar* _tmp12_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp13_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp14_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp15_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+ const gchar* _tmp17_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp18_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp19_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp20_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+ const gchar* _tmp22_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp23_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp24_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp25_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp26_ = NULL;
+ gint _tmp26__length1 = 0;
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = g_new0 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, 0 + 1);
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result_ = _tmp0_;
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result__length1 = 0;
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ __result__size_ = _result__length1;
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _result_;
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1__length1 = _result__length1;
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = _ ("Everyone");
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = publishing_flickr_visibility_specification_new (1, 1, 1);
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_tmp2_, _tmp4_);
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add20 (&_result_, &_result__length1, &__result__size_, _tmp5_);
+#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_visibility_specification_unref0 (_tmp4_);
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = _result_;
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6__length1 = _result__length1;
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _ ("Friends & family only");
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = publishing_flickr_visibility_specification_new (1, 1, 0);
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_tmp7_, _tmp9_);
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add21 (&_result_, &_result__length1, &__result__size_, _tmp10_);
+#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_visibility_specification_unref0 (_tmp9_);
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = _result_;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11__length1 = _result__length1;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = _ ("Family only");
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = publishing_flickr_visibility_specification_new (0, 1, 0);
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = _tmp13_;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_tmp12_, _tmp14_);
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add22 (&_result_, &_result__length1, &__result__size_, _tmp15_);
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_visibility_specification_unref0 (_tmp14_);
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = _result_;
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16__length1 = _result__length1;
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = _ ("Friends only");
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = publishing_flickr_visibility_specification_new (1, 0, 0);
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = _tmp18_;
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_tmp17_, _tmp19_);
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add23 (&_result_, &_result__length1, &__result__size_, _tmp20_);
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_visibility_specification_unref0 (_tmp19_);
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21_ = _result_;
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21__length1 = _result__length1;
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = _ ("Just me");
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = publishing_flickr_visibility_specification_new (0, 0, 0);
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = _tmp23_;
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp25_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_tmp22_, _tmp24_);
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add24 (&_result_, &_result__length1, &__result__size_, _tmp25_);
+#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_visibility_specification_unref0 (_tmp24_);
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26_ = _result_;
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26__length1 = _result__length1;
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (result_length1) {
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *result_length1 = _tmp26__length1;
+#line 8344 "FlickrPublishing.c"
+ }
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp26_;
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 8350 "FlickrPublishing.c"
+}
+
+
+static gpointer _publishing_flickr_publishing_options_pane_visibility_entry_ref0 (gpointer self) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self ? publishing_flickr_publishing_options_pane_visibility_entry_ref (self) : NULL;
+#line 8357 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_populate_visibility_combo (PublishingFlickrPublishingOptionsPane* self) {
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ GtkComboBoxText* _tmp8_ = NULL;
+ PublishingFlickrFlickrPublisher* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->visibilities;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0__length1 = self->priv->visibilities_length1;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 8377 "FlickrPublishing.c"
+ gint _tmp1_ = 0;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp2_ = NULL;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = publishing_flickr_publishing_options_pane_create_visibilities (self, &_tmp1_);
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibilities = (_vala_array_free (self->priv->visibilities, self->priv->visibilities_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_visibility_entry_unref), NULL);
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibilities = _tmp2_;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibilities_length1 = _tmp1_;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->_visibilities_size_ = self->priv->visibilities_length1;
+#line 8390 "FlickrPublishing.c"
+ }
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = self->priv->visibilities;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3__length1 = self->priv->visibilities_length1;
+#line 8396 "FlickrPublishing.c"
+ {
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** v_collection = NULL;
+ gint v_collection_length1 = 0;
+ gint _v_collection_size_ = 0;
+ gint v_it = 0;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ v_collection = _tmp3_;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ v_collection_length1 = _tmp3__length1;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ for (v_it = 0; v_it < _tmp3__length1; v_it = v_it + 1) {
+#line 8408 "FlickrPublishing.c"
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp4_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* v = NULL;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _publishing_flickr_publishing_options_pane_visibility_entry_ref0 (v_collection[v_it]);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ v = _tmp4_;
+#line 8415 "FlickrPublishing.c"
+ {
+ GtkComboBoxText* _tmp5_ = NULL;
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = self->priv->visibility_combo;
+#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = v;
+#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_->title;
+#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp5_, _tmp7_);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_publishing_options_pane_visibility_entry_unref0 (v);
+#line 8430 "FlickrPublishing.c"
+ }
+ }
+ }
+#line 1225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = self->priv->visibility_combo;
+#line 1225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = self->priv->publisher;
+#line 1225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = publishing_flickr_flickr_publisher_get_persistent_visibility (_tmp9_);
+#line 1225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), _tmp10_);
+#line 8442 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add25 (PublishingFlickrPublishingOptionsPaneSizeEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneSizeEntry* value) {
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1);
+#line 8453 "FlickrPublishing.c"
+ }
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8459 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add26 (PublishingFlickrPublishingOptionsPaneSizeEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneSizeEntry* value) {
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1);
+#line 8470 "FlickrPublishing.c"
+ }
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8476 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add27 (PublishingFlickrPublishingOptionsPaneSizeEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneSizeEntry* value) {
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1);
+#line 8487 "FlickrPublishing.c"
+ }
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8493 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add28 (PublishingFlickrPublishingOptionsPaneSizeEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneSizeEntry* value) {
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1);
+#line 8504 "FlickrPublishing.c"
+ }
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8510 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add29 (PublishingFlickrPublishingOptionsPaneSizeEntry*** array, int* length, int* size, PublishingFlickrPublishingOptionsPaneSizeEntry* value) {
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1);
+#line 8521 "FlickrPublishing.c"
+ }
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8527 "FlickrPublishing.c"
+}
+
+
+static PublishingFlickrPublishingOptionsPaneSizeEntry** publishing_flickr_publishing_options_pane_create_sizes (PublishingFlickrPublishingOptionsPane* self, int* result_length1) {
+ PublishingFlickrPublishingOptionsPaneSizeEntry** result = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _result_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ const gchar* _tmp2_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp3_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp5_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp6_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ const gchar* _tmp8_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp9_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+ const gchar* _tmp11_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp12_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ const gchar* _tmp14_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp15_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = g_new0 (PublishingFlickrPublishingOptionsPaneSizeEntry*, 0 + 1);
+#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result_ = _tmp0_;
+#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _result__length1 = 0;
+#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ __result__size_ = _result__length1;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _result_;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1__length1 = _result__length1;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = _ ("500 x 375 pixels");
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = publishing_flickr_publishing_options_pane_size_entry_new (_tmp2_, 500);
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add25 (&_result_, &_result__length1, &__result__size_, _tmp3_);
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _result_;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4__length1 = _result__length1;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = _ ("1024 x 768 pixels");
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = publishing_flickr_publishing_options_pane_size_entry_new (_tmp5_, 1024);
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add26 (&_result_, &_result__length1, &__result__size_, _tmp6_);
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _result_;
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7__length1 = _result__length1;
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = _ ("2048 x 1536 pixels");
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = publishing_flickr_publishing_options_pane_size_entry_new (_tmp8_, 2048);
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add27 (&_result_, &_result__length1, &__result__size_, _tmp9_);
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = _result_;
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10__length1 = _result__length1;
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = _ ("4096 x 3072 pixels");
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = publishing_flickr_publishing_options_pane_size_entry_new (_tmp11_, 4096);
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add28 (&_result_, &_result__length1, &__result__size_, _tmp12_);
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = _result_;
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13__length1 = _result__length1;
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = _ ("Original size");
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = publishing_flickr_publishing_options_pane_size_entry_new (_tmp14_, PUBLISHING_FLICKR_ORIGINAL_SIZE);
+#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add29 (&_result_, &_result__length1, &__result__size_, _tmp15_);
+#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = _result_;
+#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16__length1 = _result__length1;
+#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (result_length1) {
+#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *result_length1 = _tmp16__length1;
+#line 8627 "FlickrPublishing.c"
+ }
+#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp16_;
+#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 8633 "FlickrPublishing.c"
+}
+
+
+static gpointer _publishing_flickr_publishing_options_pane_size_entry_ref0 (gpointer self) {
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self ? publishing_flickr_publishing_options_pane_size_entry_ref (self) : NULL;
+#line 8640 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_populate_size_combo (PublishingFlickrPublishingOptionsPane* self) {
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ GtkComboBoxText* _tmp8_ = NULL;
+ PublishingFlickrFlickrPublisher* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->sizes;
+#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0__length1 = self->priv->sizes_length1;
+#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 8660 "FlickrPublishing.c"
+ gint _tmp1_ = 0;
+ PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp2_ = NULL;
+#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = publishing_flickr_publishing_options_pane_create_sizes (self, &_tmp1_);
+#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_size_entry_unref), NULL);
+#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->sizes = _tmp2_;
+#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->sizes_length1 = _tmp1_;
+#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->_sizes_size_ = self->priv->sizes_length1;
+#line 8673 "FlickrPublishing.c"
+ }
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = self->priv->sizes;
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3__length1 = self->priv->sizes_length1;
+#line 8679 "FlickrPublishing.c"
+ {
+ PublishingFlickrPublishingOptionsPaneSizeEntry** e_collection = NULL;
+ gint e_collection_length1 = 0;
+ gint _e_collection_size_ = 0;
+ gint e_it = 0;
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ e_collection = _tmp3_;
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ e_collection_length1 = _tmp3__length1;
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ for (e_it = 0; e_it < _tmp3__length1; e_it = e_it + 1) {
+#line 8691 "FlickrPublishing.c"
+ PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp4_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry* e = NULL;
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = _publishing_flickr_publishing_options_pane_size_entry_ref0 (e_collection[e_it]);
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ e = _tmp4_;
+#line 8698 "FlickrPublishing.c"
+ {
+ GtkComboBoxText* _tmp5_ = NULL;
+ PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = self->priv->size_combo;
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = e;
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = _tmp6_->title;
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp5_, _tmp7_);
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_publishing_options_pane_size_entry_unref0 (e);
+#line 8713 "FlickrPublishing.c"
+ }
+ }
+ }
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = self->priv->size_combo;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = self->priv->publisher;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = publishing_flickr_flickr_publisher_get_persistent_default_size (_tmp9_);
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), _tmp10_);
+#line 8725 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_on_size_changed (PublishingFlickrPublishingOptionsPane* self) {
+ PublishingFlickrFlickrPublisher* _tmp0_ = NULL;
+ GtkComboBoxText* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->publisher;
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->size_combo;
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_set_persistent_default_size (_tmp0_, _tmp2_);
+#line 8743 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_on_visibility_changed (PublishingFlickrPublishingOptionsPane* self) {
+ PublishingFlickrFlickrPublisher* _tmp0_ = NULL;
+ GtkComboBoxText* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+#line 1254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->publisher;
+#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = self->priv->visibility_combo;
+#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_flickr_publisher_set_persistent_visibility (_tmp0_, _tmp2_);
+#line 8761 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_publishing_options_pane_notify_publish (PublishingFlickrPublishingOptionsPane* self) {
+ GtkCheckButton* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->strip_metadata_check;
+#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_emit_by_name (self, "publish", _tmp1_);
+#line 8776 "FlickrPublishing.c"
+}
+
+
+void publishing_flickr_publishing_options_pane_notify_logout (PublishingFlickrPublishingOptionsPane* self) {
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 8785 "FlickrPublishing.c"
+}
+
+
+static GtkWidget* publishing_flickr_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingFlickrPublishingOptionsPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane);
+#line 1267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 1267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 1267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp1_;
+#line 1267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 8804 "FlickrPublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_flickr_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingFlickrPublishingOptionsPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane);
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 8817 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, gboolean strip_metadata, gpointer self) {
+#line 1275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_notify_publish ((PublishingFlickrPublishingOptionsPane*) self);
+#line 8824 "FlickrPublishing.c"
+}
+
+
+static void _publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, gpointer self) {
+#line 1276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_notify_logout ((PublishingFlickrPublishingOptionsPane*) self);
+#line 8831 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingFlickrPublishingOptionsPane * self;
+#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane);
+#line 1275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (self, "publish", (GCallback) _publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish, self, 0);
+#line 1276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_connect_object (self, "logout", (GCallback) _publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout, self, 0);
+#line 8843 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingFlickrPublishingOptionsPane * self;
+ guint _tmp0_ = 0U;
+ guint _tmp1_ = 0U;
+#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane);
+#line 1280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE);
+#line 1280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish, self);
+#line 1281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_parse_name ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE);
+#line 1281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout, self);
+#line 8861 "FlickrPublishing.c"
+}
+
+
+static PublishingFlickrPublishingOptionsPaneSizeEntry* publishing_flickr_publishing_options_pane_size_entry_construct (GType object_type, const gchar* creator_title, gint creator_size) {
+ PublishingFlickrPublishingOptionsPaneSizeEntry* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (creator_title != NULL, NULL);
+#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrPublishingOptionsPaneSizeEntry*) g_type_create_instance (object_type);
+#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = creator_title;
+#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->title);
+#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->title = _tmp1_;
+#line 1095 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = creator_size;
+#line 1095 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->size = _tmp2_;
+#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 8888 "FlickrPublishing.c"
+}
+
+
+static PublishingFlickrPublishingOptionsPaneSizeEntry* publishing_flickr_publishing_options_pane_size_entry_new (const gchar* creator_title, gint creator_size) {
+#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_publishing_options_pane_size_entry_construct (PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, creator_title, creator_size);
+#line 8895 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_value_size_entry_init (GValue* value) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8902 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_value_size_entry_free_value (GValue* value) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_size_entry_unref (value->data[0].v_pointer);
+#line 8911 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_publishing_options_pane_value_size_entry_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_flickr_publishing_options_pane_size_entry_ref (src_value->data[0].v_pointer);
+#line 8921 "FlickrPublishing.c"
+ } else {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 8925 "FlickrPublishing.c"
+ }
+}
+
+
+static gpointer publishing_flickr_publishing_options_pane_value_size_entry_peek_pointer (const GValue* value) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 8933 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_publishing_options_pane_value_size_entry_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 8940 "FlickrPublishing.c"
+ PublishingFlickrPublishingOptionsPaneSizeEntry* object;
+ object = collect_values[0].v_pointer;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 8947 "FlickrPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 8951 "FlickrPublishing.c"
+ }
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = publishing_flickr_publishing_options_pane_size_entry_ref (object);
+#line 8955 "FlickrPublishing.c"
+ } else {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 8959 "FlickrPublishing.c"
+ }
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 8963 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_publishing_options_pane_value_size_entry_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFlickrPublishingOptionsPaneSizeEntry** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!object_p) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 8974 "FlickrPublishing.c"
+ }
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = NULL;
+#line 8980 "FlickrPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 8984 "FlickrPublishing.c"
+ } else {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = publishing_flickr_publishing_options_pane_size_entry_ref (value->data[0].v_pointer);
+#line 8988 "FlickrPublishing.c"
+ }
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 8992 "FlickrPublishing.c"
+}
+
+
+static GParamSpec* publishing_flickr_publishing_options_pane_param_spec_size_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry* spec;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY), NULL);
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 9006 "FlickrPublishing.c"
+}
+
+
+static gpointer publishing_flickr_publishing_options_pane_value_get_size_entry (const GValue* value) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY), NULL);
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 9015 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_value_set_size_entry (GValue* value, gpointer v_object) {
+ PublishingFlickrPublishingOptionsPaneSizeEntry* old;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY));
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (v_object) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY));
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_size_entry_ref (value->data[0].v_pointer);
+#line 9035 "FlickrPublishing.c"
+ } else {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9039 "FlickrPublishing.c"
+ }
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (old) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_size_entry_unref (old);
+#line 9045 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_publishing_options_pane_value_take_size_entry (GValue* value, gpointer v_object) {
+ PublishingFlickrPublishingOptionsPaneSizeEntry* old;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY));
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (v_object) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY));
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 9064 "FlickrPublishing.c"
+ } else {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9068 "FlickrPublishing.c"
+ }
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (old) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_size_entry_unref (old);
+#line 9074 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_publishing_options_pane_size_entry_class_init (PublishingFlickrPublishingOptionsPaneSizeEntryClass * klass) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_size_entry_parent_class = g_type_class_peek_parent (klass);
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingFlickrPublishingOptionsPaneSizeEntryClass *) klass)->finalize = publishing_flickr_publishing_options_pane_size_entry_finalize;
+#line 9084 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_size_entry_instance_init (PublishingFlickrPublishingOptionsPaneSizeEntry * self) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->ref_count = 1;
+#line 9091 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_size_entry_finalize (PublishingFlickrPublishingOptionsPaneSizeEntry* obj) {
+ PublishingFlickrPublishingOptionsPaneSizeEntry * self;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntry);
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->title);
+#line 9103 "FlickrPublishing.c"
+}
+
+
+static GType publishing_flickr_publishing_options_pane_size_entry_get_type (void) {
+ static volatile gsize publishing_flickr_publishing_options_pane_size_entry_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_publishing_options_pane_size_entry_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_flickr_publishing_options_pane_value_size_entry_init, publishing_flickr_publishing_options_pane_value_size_entry_free_value, publishing_flickr_publishing_options_pane_value_size_entry_copy_value, publishing_flickr_publishing_options_pane_value_size_entry_peek_pointer, "p", publishing_flickr_publishing_options_pane_value_size_entry_collect_value, "p", publishing_flickr_publishing_options_pane_value_size_entry_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingOptionsPaneSizeEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_options_pane_size_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingOptionsPaneSizeEntry), 0, (GInstanceInitFunc) publishing_flickr_publishing_options_pane_size_entry_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 publishing_flickr_publishing_options_pane_size_entry_type_id;
+ publishing_flickr_publishing_options_pane_size_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrPublishingOptionsPaneSizeEntry", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_flickr_publishing_options_pane_size_entry_type_id__volatile, publishing_flickr_publishing_options_pane_size_entry_type_id);
+ }
+ return publishing_flickr_publishing_options_pane_size_entry_type_id__volatile;
+}
+
+
+static gpointer publishing_flickr_publishing_options_pane_size_entry_ref (gpointer instance) {
+ PublishingFlickrPublishingOptionsPaneSizeEntry* self;
+ self = instance;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return instance;
+#line 9128 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_size_entry_unref (gpointer instance) {
+ PublishingFlickrPublishingOptionsPaneSizeEntry* self;
+ self = instance;
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY_GET_CLASS (self)->finalize (self);
+#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 9141 "FlickrPublishing.c"
+ }
+}
+
+
+static PublishingFlickrPublishingOptionsPaneVisibilityEntry* publishing_flickr_publishing_options_pane_visibility_entry_construct (GType object_type, const gchar* creator_title, PublishingFlickrVisibilitySpecification* creator_specification) {
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* self = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp0_ = NULL;
+ PublishingFlickrVisibilitySpecification* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (creator_title != NULL, NULL);
+#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_VISIBILITY_SPECIFICATION (creator_specification), NULL);
+#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrPublishingOptionsPaneVisibilityEntry*) g_type_create_instance (object_type);
+#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = creator_specification;
+#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _publishing_flickr_visibility_specification_ref0 (_tmp0_);
+#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_visibility_specification_unref0 (self->specification);
+#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->specification = _tmp1_;
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = creator_title;
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->title);
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->title = _tmp3_;
+#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 9176 "FlickrPublishing.c"
+}
+
+
+static PublishingFlickrPublishingOptionsPaneVisibilityEntry* publishing_flickr_publishing_options_pane_visibility_entry_new (const gchar* creator_title, PublishingFlickrVisibilitySpecification* creator_specification) {
+#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_publishing_options_pane_visibility_entry_construct (PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, creator_title, creator_specification);
+#line 9183 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_value_visibility_entry_init (GValue* value) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9190 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_value_visibility_entry_free_value (GValue* value) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_visibility_entry_unref (value->data[0].v_pointer);
+#line 9199 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_publishing_options_pane_value_visibility_entry_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_flickr_publishing_options_pane_visibility_entry_ref (src_value->data[0].v_pointer);
+#line 9209 "FlickrPublishing.c"
+ } else {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 9213 "FlickrPublishing.c"
+ }
+}
+
+
+static gpointer publishing_flickr_publishing_options_pane_value_visibility_entry_peek_pointer (const GValue* value) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 9221 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_publishing_options_pane_value_visibility_entry_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 9228 "FlickrPublishing.c"
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* object;
+ object = collect_values[0].v_pointer;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 9235 "FlickrPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 9239 "FlickrPublishing.c"
+ }
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = publishing_flickr_publishing_options_pane_visibility_entry_ref (object);
+#line 9243 "FlickrPublishing.c"
+ } else {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9247 "FlickrPublishing.c"
+ }
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 9251 "FlickrPublishing.c"
+}
+
+
+static gchar* publishing_flickr_publishing_options_pane_value_visibility_entry_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!object_p) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 9262 "FlickrPublishing.c"
+ }
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = NULL;
+#line 9268 "FlickrPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 9272 "FlickrPublishing.c"
+ } else {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *object_p = publishing_flickr_publishing_options_pane_visibility_entry_ref (value->data[0].v_pointer);
+#line 9276 "FlickrPublishing.c"
+ }
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return NULL;
+#line 9280 "FlickrPublishing.c"
+}
+
+
+static GParamSpec* publishing_flickr_publishing_options_pane_param_spec_visibility_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry* spec;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY), NULL);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 9294 "FlickrPublishing.c"
+}
+
+
+static gpointer publishing_flickr_publishing_options_pane_value_get_visibility_entry (const GValue* value) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY), NULL);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return value->data[0].v_pointer;
+#line 9303 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_value_set_visibility_entry (GValue* value, gpointer v_object) {
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* old;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY));
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (v_object) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY));
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_visibility_entry_ref (value->data[0].v_pointer);
+#line 9323 "FlickrPublishing.c"
+ } else {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9327 "FlickrPublishing.c"
+ }
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (old) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_visibility_entry_unref (old);
+#line 9333 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_publishing_options_pane_value_take_visibility_entry (GValue* value, gpointer v_object) {
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* old;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY));
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (v_object) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY));
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 9352 "FlickrPublishing.c"
+ } else {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 9356 "FlickrPublishing.c"
+ }
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (old) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_visibility_entry_unref (old);
+#line 9362 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_publishing_options_pane_visibility_entry_class_init (PublishingFlickrPublishingOptionsPaneVisibilityEntryClass * klass) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_visibility_entry_parent_class = g_type_class_peek_parent (klass);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingFlickrPublishingOptionsPaneVisibilityEntryClass *) klass)->finalize = publishing_flickr_publishing_options_pane_visibility_entry_finalize;
+#line 9372 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_visibility_entry_instance_init (PublishingFlickrPublishingOptionsPaneVisibilityEntry * self) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->ref_count = 1;
+#line 9379 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_visibility_entry_finalize (PublishingFlickrPublishingOptionsPaneVisibilityEntry* obj) {
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry * self;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntry);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_visibility_specification_unref0 (self->specification);
+#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (self->title);
+#line 9393 "FlickrPublishing.c"
+}
+
+
+static GType publishing_flickr_publishing_options_pane_visibility_entry_get_type (void) {
+ static volatile gsize publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_flickr_publishing_options_pane_value_visibility_entry_init, publishing_flickr_publishing_options_pane_value_visibility_entry_free_value, publishing_flickr_publishing_options_pane_value_visibility_entry_copy_value, publishing_flickr_publishing_options_pane_value_visibility_entry_peek_pointer, "p", publishing_flickr_publishing_options_pane_value_visibility_entry_collect_value, "p", publishing_flickr_publishing_options_pane_value_visibility_entry_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingOptionsPaneVisibilityEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_options_pane_visibility_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingOptionsPaneVisibilityEntry), 0, (GInstanceInitFunc) publishing_flickr_publishing_options_pane_visibility_entry_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 publishing_flickr_publishing_options_pane_visibility_entry_type_id;
+ publishing_flickr_publishing_options_pane_visibility_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrPublishingOptionsPaneVisibilityEntry", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile, publishing_flickr_publishing_options_pane_visibility_entry_type_id);
+ }
+ return publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile;
+}
+
+
+static gpointer publishing_flickr_publishing_options_pane_visibility_entry_ref (gpointer instance) {
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* self;
+ self = instance;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return instance;
+#line 9418 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_visibility_entry_unref (gpointer instance) {
+ PublishingFlickrPublishingOptionsPaneVisibilityEntry* self;
+ self = instance;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY_GET_CLASS (self)->finalize (self);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 9431 "FlickrPublishing.c"
+ }
+}
+
+
+static void publishing_flickr_publishing_options_pane_class_init (PublishingFlickrPublishingOptionsPaneClass * klass) {
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_parent_class = g_type_class_peek_parent (klass);
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFlickrPublishingOptionsPanePrivate));
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_flickr_publishing_options_pane_finalize;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_new ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_signal_new ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 9447 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_flickr_publishing_options_pane_real_get_widget;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_flickr_publishing_options_pane_real_get_preferred_geometry;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_flickr_publishing_options_pane_real_on_pane_installed;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_flickr_publishing_options_pane_real_on_pane_uninstalled;
+#line 9462 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_instance_init (PublishingFlickrPublishingOptionsPane * self) {
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv = PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self);
+#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibility_label = NULL;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->upload_info_label = NULL;
+#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->size_label = NULL;
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->logout_button = NULL;
+#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->publish_button = NULL;
+#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibility_combo = NULL;
+#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->size_combo = NULL;
+#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->strip_metadata_check = NULL;
+#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibilities = NULL;
+#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibilities_length1 = 0;
+#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->_visibilities_size_ = self->priv->visibilities_length1;
+#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->sizes = NULL;
+#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->sizes_length1 = 0;
+#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->_sizes_size_ = self->priv->sizes_length1;
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->parameters = NULL;
+#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->publisher = NULL;
+#line 9503 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_publishing_options_pane_finalize (GObject* obj) {
+ PublishingFlickrPublishingOptionsPane * self;
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane);
+#line 1109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->visibility_label);
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->upload_info_label);
+#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->size_label);
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->visibility_combo);
+#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->size_combo);
+#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->strip_metadata_check);
+#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->visibilities = (_vala_array_free (self->priv->visibilities, self->priv->visibilities_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_visibility_entry_unref), NULL);
+#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_size_entry_unref), NULL);
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters);
+#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (self->priv->publisher);
+#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ G_OBJECT_CLASS (publishing_flickr_publishing_options_pane_parent_class)->finalize (obj);
+#line 9541 "FlickrPublishing.c"
+}
+
+
+GType publishing_flickr_publishing_options_pane_get_type (void) {
+ static volatile gsize publishing_flickr_publishing_options_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_publishing_options_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_flickr_publishing_options_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_flickr_publishing_options_pane_type_id;
+ publishing_flickr_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFlickrPublishingOptionsPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_flickr_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_flickr_publishing_options_pane_type_id__volatile, publishing_flickr_publishing_options_pane_type_id);
+ }
+ return publishing_flickr_publishing_options_pane_type_id__volatile;
+}
+
+
+PublishingFlickrUploader* publishing_flickr_uploader_construct (GType object_type, PublishingFlickrSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingFlickrPublishingParameters* parameters, gboolean strip_metadata) {
+ PublishingFlickrUploader* self = NULL;
+ PublishingFlickrSession* _tmp0_ = NULL;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingFlickrPublishingParameters* _tmp2_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+#line 1289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_SESSION (session), NULL);
+#line 1289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = session;
+#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = publishables;
+#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1__length1 = publishables_length1;
+#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = (PublishingFlickrUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp1__length1);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = parameters;
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = _publishing_flickr_publishing_parameters_ref0 (_tmp2_);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters);
+#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->parameters = _tmp3_;
+#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = strip_metadata;
+#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv->strip_metadata = _tmp4_;
+#line 1289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return self;
+#line 9593 "FlickrPublishing.c"
+}
+
+
+PublishingFlickrUploader* publishing_flickr_uploader_new (PublishingFlickrSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingFlickrPublishingParameters* parameters, gboolean strip_metadata) {
+#line 1289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return publishing_flickr_uploader_construct (PUBLISHING_FLICKR_TYPE_UPLOADER, session, publishables, publishables_length1, parameters, strip_metadata);
+#line 9600 "FlickrPublishing.c"
+}
+
+
+static void _vala_array_add30 (gchar*** array, int* length, int* size, gchar* value) {
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ *array = g_renew (gchar*, *array, (*size) + 1);
+#line 9611 "FlickrPublishing.c"
+ }
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ (*array)[*length] = NULL;
+#line 9617 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_uploader_preprocess_publishable (PublishingFlickrUploader* self, SpitPublishingPublishable* publishable) {
+ SpitPublishingPublishable* _tmp0_ = NULL;
+ SpitPublishingPublisherMediaType _tmp1_ = 0;
+ GExiv2Metadata* publishable_metadata = NULL;
+ GExiv2Metadata* _tmp2_ = NULL;
+ GExiv2Metadata* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+ GExiv2Metadata* _tmp16_ = NULL;
+ gboolean _tmp17_ = FALSE;
+ GExiv2Metadata* _tmp24_ = NULL;
+ gboolean _tmp25_ = FALSE;
+ GExiv2Metadata* _tmp32_ = NULL;
+ gboolean _tmp33_ = FALSE;
+ GError * _inner_error_ = NULL;
+#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (PUBLISHING_FLICKR_IS_UPLOADER (self));
+#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable));
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = publishable;
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = spit_publishing_publishable_get_media_type (_tmp0_);
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp1_ != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) {
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 9647 "FlickrPublishing.c"
+ }
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = gexiv2_metadata_new ();
+#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishable_metadata = _tmp2_;
+#line 9653 "FlickrPublishing.c"
+ {
+ GExiv2Metadata* _tmp3_ = NULL;
+ SpitPublishingPublishable* _tmp4_ = NULL;
+ GFile* _tmp5_ = NULL;
+ GFile* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = publishable_metadata;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = publishable;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = spit_publishing_publishable_get_serialized_file (_tmp4_);
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = g_file_get_path (_tmp6_);
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gexiv2_metadata_open_path (_tmp3_, _tmp8_, &_inner_error_);
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (_tmp6_);
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 9681 "FlickrPublishing.c"
+ goto __catch25_g_error;
+ }
+ }
+ goto __finally25;
+ __catch25_g_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPublishable* _tmp9_ = NULL;
+ GFile* _tmp10_ = NULL;
+ GFile* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ err = _inner_error_;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp9_ = publishable;
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp10_ = spit_publishing_publishable_get_serialized_file (_tmp9_);
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp12_ = g_file_get_path (_tmp11_);
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_warning ("FlickrPublishing.vala:1305: couldn't read metadata from file '%s' for " \
+"upload preprocessing.", _tmp13_);
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp13_);
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (_tmp11_);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (err);
+#line 9716 "FlickrPublishing.c"
+ }
+ __finally25:
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _gexiv2_metadata_free0 (publishable_metadata);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 9729 "FlickrPublishing.c"
+ }
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp14_ = publishable_metadata;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp15_ = gexiv2_metadata_has_iptc (_tmp14_);
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (!_tmp15_) {
+#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _gexiv2_metadata_free0 (publishable_metadata);
+#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 9741 "FlickrPublishing.c"
+ }
+#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp16_ = publishable_metadata;
+#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp17_ = gexiv2_metadata_has_tag (_tmp16_, "Iptc.Application2.Caption");
+#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp17_) {
+#line 9749 "FlickrPublishing.c"
+ GExiv2Metadata* _tmp18_ = NULL;
+ GExiv2Metadata* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp18_ = publishable_metadata;
+#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp19_ = publishable_metadata;
+#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp20_ = gexiv2_metadata_get_tag_string (_tmp19_, "Iptc.Application2.Caption");
+#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp21_ = _tmp20_;
+#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp22_ = publishing_rest_support_asciify_string (_tmp21_);
+#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp23_ = _tmp22_;
+#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gexiv2_metadata_set_tag_string (_tmp18_, "Iptc.Application2.Caption", _tmp23_);
+#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp23_);
+#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp21_);
+#line 9774 "FlickrPublishing.c"
+ }
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp24_ = publishable_metadata;
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp25_ = gexiv2_metadata_has_tag (_tmp24_, "Iptc.Application2.Headline");
+#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp25_) {
+#line 9782 "FlickrPublishing.c"
+ GExiv2Metadata* _tmp26_ = NULL;
+ GExiv2Metadata* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp26_ = publishable_metadata;
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp27_ = publishable_metadata;
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp28_ = gexiv2_metadata_get_tag_string (_tmp27_, "Iptc.Application2.Headline");
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp29_ = _tmp28_;
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp30_ = publishing_rest_support_asciify_string (_tmp29_);
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp31_ = _tmp30_;
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gexiv2_metadata_set_tag_string (_tmp26_, "Iptc.Application2.Headline", _tmp31_);
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp31_);
+#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp29_);
+#line 9807 "FlickrPublishing.c"
+ }
+#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp32_ = publishable_metadata;
+#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp33_ = gexiv2_metadata_has_tag (_tmp32_, "Iptc.Application2.Keywords");
+#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp33_) {
+#line 9815 "FlickrPublishing.c"
+ GeeSet* keyword_set = NULL;
+ GeeHashSet* _tmp34_ = NULL;
+ gchar** iptc_keywords = NULL;
+ GExiv2Metadata* _tmp35_ = NULL;
+ gchar** _tmp36_ = NULL;
+ gchar** _tmp37_ = NULL;
+ gint iptc_keywords_length1 = 0;
+ gint _iptc_keywords_size_ = 0;
+ gchar** _tmp38_ = NULL;
+ gint _tmp38__length1 = 0;
+ gchar** xmp_keywords = NULL;
+ GExiv2Metadata* _tmp43_ = NULL;
+ gchar** _tmp44_ = NULL;
+ gchar** _tmp45_ = NULL;
+ gint xmp_keywords_length1 = 0;
+ gint _xmp_keywords_size_ = 0;
+ gchar** _tmp46_ = NULL;
+ gint _tmp46__length1 = 0;
+ gchar** all_keywords = NULL;
+ GeeSet* _tmp51_ = NULL;
+ gint _tmp52_ = 0;
+ gpointer* _tmp53_ = NULL;
+ gint all_keywords_length1 = 0;
+ gint _all_keywords_size_ = 0;
+ gchar** _tmp54_ = NULL;
+ gint _tmp54__length1 = 0;
+ gchar** no_keywords = NULL;
+ gchar** _tmp55_ = NULL;
+ gint no_keywords_length1 = 0;
+ gint _no_keywords_size_ = 0;
+ gchar** _tmp56_ = NULL;
+ gint _tmp56__length1 = 0;
+ gchar* _tmp57_ = NULL;
+ GExiv2Metadata* _tmp58_ = NULL;
+ gchar** _tmp59_ = NULL;
+ gint _tmp59__length1 = 0;
+ GExiv2Metadata* _tmp60_ = NULL;
+ gchar** _tmp61_ = NULL;
+ gint _tmp61__length1 = 0;
+#line 1327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp34_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 1327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ keyword_set = G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_SET, GeeSet);
+#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp35_ = publishable_metadata;
+#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp37_ = _tmp36_ = gexiv2_metadata_get_tag_multiple (_tmp35_, "Iptc.Application2.Keywords");
+#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iptc_keywords = _tmp37_;
+#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iptc_keywords_length1 = _vala_array_length (_tmp36_);
+#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _iptc_keywords_size_ = iptc_keywords_length1;
+#line 1329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp38_ = iptc_keywords;
+#line 1329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp38__length1 = iptc_keywords_length1;
+#line 1329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp38_ != NULL) {
+#line 9875 "FlickrPublishing.c"
+ gchar** _tmp39_ = NULL;
+ gint _tmp39__length1 = 0;
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp39_ = iptc_keywords;
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp39__length1 = iptc_keywords_length1;
+#line 9882 "FlickrPublishing.c"
+ {
+ gchar** keyword_collection = NULL;
+ gint keyword_collection_length1 = 0;
+ gint _keyword_collection_size_ = 0;
+ gint keyword_it = 0;
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ keyword_collection = _tmp39_;
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ keyword_collection_length1 = _tmp39__length1;
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ for (keyword_it = 0; keyword_it < _tmp39__length1; keyword_it = keyword_it + 1) {
+#line 9894 "FlickrPublishing.c"
+ gchar* _tmp40_ = NULL;
+ gchar* keyword = NULL;
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp40_ = g_strdup (keyword_collection[keyword_it]);
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ keyword = _tmp40_;
+#line 9901 "FlickrPublishing.c"
+ {
+ GeeSet* _tmp41_ = NULL;
+ const gchar* _tmp42_ = NULL;
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp41_ = keyword_set;
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp42_ = keyword;
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_COLLECTION, GeeCollection), _tmp42_);
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (keyword);
+#line 9913 "FlickrPublishing.c"
+ }
+ }
+ }
+ }
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp43_ = publishable_metadata;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp45_ = _tmp44_ = gexiv2_metadata_get_tag_multiple (_tmp43_, "Xmp.dc.subject");
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ xmp_keywords = _tmp45_;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ xmp_keywords_length1 = _vala_array_length (_tmp44_);
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _xmp_keywords_size_ = xmp_keywords_length1;
+#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp46_ = xmp_keywords;
+#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp46__length1 = xmp_keywords_length1;
+#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (_tmp46_ != NULL) {
+#line 9934 "FlickrPublishing.c"
+ gchar** _tmp47_ = NULL;
+ gint _tmp47__length1 = 0;
+#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp47_ = xmp_keywords;
+#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp47__length1 = xmp_keywords_length1;
+#line 9941 "FlickrPublishing.c"
+ {
+ gchar** keyword_collection = NULL;
+ gint keyword_collection_length1 = 0;
+ gint _keyword_collection_size_ = 0;
+ gint keyword_it = 0;
+#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ keyword_collection = _tmp47_;
+#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ keyword_collection_length1 = _tmp47__length1;
+#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ for (keyword_it = 0; keyword_it < _tmp47__length1; keyword_it = keyword_it + 1) {
+#line 9953 "FlickrPublishing.c"
+ gchar* _tmp48_ = NULL;
+ gchar* keyword = NULL;
+#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp48_ = g_strdup (keyword_collection[keyword_it]);
+#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ keyword = _tmp48_;
+#line 9960 "FlickrPublishing.c"
+ {
+ GeeSet* _tmp49_ = NULL;
+ const gchar* _tmp50_ = NULL;
+#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp49_ = keyword_set;
+#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp50_ = keyword;
+#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_COLLECTION, GeeCollection), _tmp50_);
+#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (keyword);
+#line 9972 "FlickrPublishing.c"
+ }
+ }
+ }
+ }
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp51_ = keyword_set;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp53_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp52_);
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ all_keywords = _tmp53_;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ all_keywords_length1 = _tmp52_;
+#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _all_keywords_size_ = all_keywords_length1;
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp54_ = all_keywords;
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp54__length1 = all_keywords_length1;
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _vala_array_add30 (&all_keywords, &all_keywords_length1, &_all_keywords_size_, NULL);
+#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp55_ = g_new0 (gchar*, 1 + 1);
+#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ no_keywords = _tmp55_;
+#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ no_keywords_length1 = 1;
+#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _no_keywords_size_ = no_keywords_length1;
+#line 1350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp56_ = no_keywords;
+#line 1350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp56__length1 = no_keywords_length1;
+#line 1350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp56_[0]);
+#line 1350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp56_[0] = NULL;
+#line 1350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp57_ = _tmp56_[0];
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp58_ = publishable_metadata;
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp59_ = all_keywords;
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp59__length1 = all_keywords_length1;
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gexiv2_metadata_set_tag_multiple (_tmp58_, "Xmp.dc.subject", _tmp59_);
+#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp60_ = publishable_metadata;
+#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp61_ = no_keywords;
+#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp61__length1 = no_keywords_length1;
+#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gexiv2_metadata_set_tag_multiple (_tmp60_, "Iptc.Application2.Keywords", _tmp61_);
+#line 10027 "FlickrPublishing.c"
+ {
+ GExiv2Metadata* _tmp62_ = NULL;
+ SpitPublishingPublishable* _tmp63_ = NULL;
+ GFile* _tmp64_ = NULL;
+ GFile* _tmp65_ = NULL;
+ gchar* _tmp66_ = NULL;
+ gchar* _tmp67_ = NULL;
+#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp62_ = publishable_metadata;
+#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp63_ = publishable;
+#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp64_ = spit_publishing_publishable_get_serialized_file (_tmp63_);
+#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp65_ = _tmp64_;
+#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp66_ = g_file_get_path (_tmp65_);
+#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp67_ = _tmp66_;
+#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ gexiv2_metadata_save_file (_tmp62_, _tmp67_, &_inner_error_);
+#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp67_);
+#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (_tmp65_);
+#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 10055 "FlickrPublishing.c"
+ goto __catch26_g_error;
+ }
+ }
+ goto __finally26;
+ __catch26_g_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPublishable* _tmp68_ = NULL;
+ GFile* _tmp69_ = NULL;
+ GFile* _tmp70_ = NULL;
+ gchar* _tmp71_ = NULL;
+ gchar* _tmp72_ = NULL;
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ err = _inner_error_;
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _inner_error_ = NULL;
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp68_ = publishable;
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp69_ = spit_publishing_publishable_get_serialized_file (_tmp68_);
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp70_ = _tmp69_;
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp71_ = g_file_get_path (_tmp70_);
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp72_ = _tmp71_;
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_warning ("FlickrPublishing.vala:1358: couldn't write metadata to file '%s' for u" \
+"pload preprocessing.", _tmp72_);
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_free0 (_tmp72_);
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (_tmp70_);
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_error_free0 (err);
+#line 10090 "FlickrPublishing.c"
+ }
+ __finally26:
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ no_keywords = (_vala_array_free (no_keywords, no_keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ all_keywords = (_vala_array_free (all_keywords, all_keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ xmp_keywords = (_vala_array_free (xmp_keywords, xmp_keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iptc_keywords = (_vala_array_free (iptc_keywords, iptc_keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (keyword_set);
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _gexiv2_metadata_free0 (publishable_metadata);
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.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 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return;
+#line 10113 "FlickrPublishing.c"
+ }
+#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ no_keywords = (_vala_array_free (no_keywords, no_keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ all_keywords = (_vala_array_free (all_keywords, all_keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ xmp_keywords = (_vala_array_free (xmp_keywords, xmp_keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ iptc_keywords = (_vala_array_free (iptc_keywords, iptc_keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (keyword_set);
+#line 10125 "FlickrPublishing.c"
+ }
+#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _gexiv2_metadata_free0 (publishable_metadata);
+#line 10129 "FlickrPublishing.c"
+}
+
+
+static PublishingRESTSupportTransaction* publishing_flickr_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) {
+ PublishingFlickrUploader * self;
+ PublishingRESTSupportTransaction* result = NULL;
+ SpitPublishingPublishable* _tmp0_ = NULL;
+ SpitPublishingPublishable* _tmp1_ = NULL;
+ PublishingRESTSupportSession* _tmp2_ = NULL;
+ PublishingFlickrSession* _tmp3_ = NULL;
+ PublishingFlickrPublishingParameters* _tmp4_ = NULL;
+ SpitPublishingPublishable* _tmp5_ = NULL;
+ SpitPublishingPublishable* _tmp6_ = NULL;
+ PublishingFlickrUploadTransaction* _tmp7_ = NULL;
+ PublishingRESTSupportTransaction* _tmp8_ = NULL;
+#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploader);
+#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp0_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp1_ = _tmp0_;
+#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_uploader_preprocess_publishable (self, _tmp1_);
+#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (_tmp1_);
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp2_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_FLICKR_TYPE_SESSION, PublishingFlickrSession);
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp4_ = self->priv->parameters;
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp5_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp7_ = publishing_flickr_upload_transaction_new (_tmp3_, _tmp4_, _tmp6_);
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction);
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _g_object_unref0 (_tmp6_);
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp3_);
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ result = _tmp8_;
+#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ return result;
+#line 10179 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_uploader_class_init (PublishingFlickrUploaderClass * klass) {
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ publishing_flickr_uploader_parent_class = g_type_class_peek_parent (klass);
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_flickr_uploader_finalize;
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingFlickrUploaderPrivate));
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = publishing_flickr_uploader_real_create_transaction;
+#line 10192 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_uploader_instance_init (PublishingFlickrUploader * self) {
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self->priv = PUBLISHING_FLICKR_UPLOADER_GET_PRIVATE (self);
+#line 10199 "FlickrPublishing.c"
+}
+
+
+static void publishing_flickr_uploader_finalize (PublishingRESTSupportBatchUploader* obj) {
+ PublishingFlickrUploader * self;
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploader);
+#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters);
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala"
+ PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_flickr_uploader_parent_class)->finalize (obj);
+#line 10211 "FlickrPublishing.c"
+}
+
+
+GType publishing_flickr_uploader_get_type (void) {
+ static volatile gsize publishing_flickr_uploader_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_flickr_uploader_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrUploader), 0, (GInstanceInitFunc) publishing_flickr_uploader_instance_init, NULL };
+ GType publishing_flickr_uploader_type_id;
+ publishing_flickr_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingFlickrUploader", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_flickr_uploader_type_id__volatile, publishing_flickr_uploader_type_id);
+ }
+ return publishing_flickr_uploader_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);
+}
+
+
+static gint _vala_array_length (gpointer array) {
+ int length;
+ length = 0;
+ if (array) {
+ while (((gpointer*) array)[length]) {
+ length++;
+ }
+ }
+ return length;
+}
+
+
+
diff --git a/plugins/shotwell-publishing/FlickrPublishing.vala b/plugins/shotwell-publishing/FlickrPublishing.vala
index e6c1104..415e36a 100644
--- a/plugins/shotwell-publishing/FlickrPublishing.vala
+++ b/plugins/shotwell-publishing/FlickrPublishing.vala
@@ -4,8 +4,6 @@
* (version 2.1 or later). See the COPYING file in this distribution.
*/
-extern string hmac_sha1(string key, string message);
-
public class FlickrService : Object, Spit.Pluggable, Spit.Publishing.Service {
private const string ICON_FILENAME = "flickr.png";
@@ -13,7 +11,8 @@ public class FlickrService : Object, Spit.Pluggable, Spit.Publishing.Service {
public FlickrService(GLib.File resource_directory) {
if (icon_pixbuf_set == null)
- icon_pixbuf_set = Resources.load_icon_set(resource_directory.get_child(ICON_FILENAME));
+ icon_pixbuf_set = Resources.load_from_resource
+ (Resources.RESOURCE_PATH + "/" + ICON_FILENAME);
}
public int get_pluggable_interface(int min_host_interface, int max_host_interface) {
@@ -436,7 +435,8 @@ public class FlickrPublisher : Spit.Publishing.Publisher, GLib.Object {
Gtk.Builder builder = new Gtk.Builder();
try {
- builder.add_from_file(host.get_module_file().get_parent().get_child("flickr_pin_entry_pane.glade").get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH + "/" +
+ "flickr_pin_entry_pane.ui");
} catch (Error e) {
warning("Could not parse UI file! Error: %s.", e.message);
host.post_error(
@@ -585,9 +585,8 @@ public class FlickrPublisher : Spit.Publishing.Publisher, GLib.Object {
try {
// the trailing get_path() is required, since add_from_file can't cope
// with File objects directly and expects a pathname instead.
- builder.add_from_file(
- host.get_module_file().get_parent().
- get_child("flickr_publishing_options_pane.glade").get_path());
+ builder.add_from_resource(Resources.RESOURCE_PATH + "/" +
+ "flickr_publishing_options_pane.ui");
} catch (Error e) {
warning("Could not parse UI file! Error: %s.", e.message);
host.post_error(
@@ -1029,7 +1028,7 @@ internal class Session : Publishing.RESTSupport.Session {
debug("signing key = '%s'", signing_key);
// compute the signature
- string signature = hmac_sha1(signing_key, signature_base_string);
+ string signature = RESTSupport.hmac_sha1(signing_key, signature_base_string);
signature = Soup.URI.encode(signature, ENCODE_RFC_3986_EXTRA);
debug("signature = '%s'", signature);
diff --git a/plugins/shotwell-publishing/Makefile b/plugins/shotwell-publishing/Makefile
deleted file mode 100644
index 607bc6b..0000000
--- a/plugins/shotwell-publishing/Makefile
+++ /dev/null
@@ -1,37 +0,0 @@
-
-PLUGIN := shotwell-publishing
-
-PLUGIN_PKGS := \
- gtk+-3.0 \
- libsoup-2.4 \
- libxml-2.0 \
- webkit2gtk-4.0 \
- gexiv2 \
- rest-0.7 \
- gee-0.8 \
- json-glib-1.0
-
-SRC_FILES := \
- shotwell-publishing.vala \
- FacebookPublishing.vala \
- PicasaPublishing.vala \
- FlickrPublishing.vala \
- YouTubePublishing.vala \
- PiwigoPublishing.vala
-
-RC_FILES := \
- facebook.png \
- facebook_publishing_options_pane.glade \
- flickr.png \
- flickr_publishing_options_pane.glade \
- flickr_pin_entry_pane.glade \
- picasa.png \
- picasa_publishing_options_pane.glade \
- piwigo.png \
- piwigo_authentication_pane.glade \
- piwigo_publishing_options_pane.glade \
- youtube.png \
- youtube_publishing_options_pane.glade
-
-include ../Makefile.plugin.mk
-
diff --git a/plugins/shotwell-publishing/PicasaPublishing.c b/plugins/shotwell-publishing/PicasaPublishing.c
new file mode 100644
index 0000000..cda058e
--- /dev/null
+++ b/plugins/shotwell-publishing/PicasaPublishing.c
@@ -0,0 +1,7773 @@
+/* PicasaPublishing.c generated by valac 0.32.1, the Vala compiler
+ * generated from PicasaPublishing.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 <shotwell-plugin-dev-1.0.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include "shotwell-plugin-common.h"
+#include <glib/gi18n-lib.h>
+#include <libxml/tree.h>
+#include <float.h>
+#include <math.h>
+#include <gtk/gtk.h>
+#include <libsoup/soup.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_PICASA_SERVICE (picasa_service_get_type ())
+#define PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PICASA_SERVICE, PicasaService))
+#define PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PICASA_SERVICE, PicasaServiceClass))
+#define IS_PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PICASA_SERVICE))
+#define IS_PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PICASA_SERVICE))
+#define PICASA_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PICASA_SERVICE, PicasaServiceClass))
+
+typedef struct _PicasaService PicasaService;
+typedef struct _PicasaServiceClass PicasaServiceClass;
+typedef struct _PicasaServicePrivate PicasaServicePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER (publishing_picasa_picasa_publisher_get_type ())
+#define PUBLISHING_PICASA_PICASA_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher))
+#define PUBLISHING_PICASA_PICASA_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisherClass))
+#define PUBLISHING_PICASA_IS_PICASA_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER))
+#define PUBLISHING_PICASA_IS_PICASA_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER))
+#define PUBLISHING_PICASA_PICASA_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisherClass))
+
+typedef struct _PublishingPicasaPicasaPublisher PublishingPicasaPicasaPublisher;
+typedef struct _PublishingPicasaPicasaPublisherClass PublishingPicasaPicasaPublisherClass;
+typedef struct _PublishingPicasaPicasaPublisherPrivate PublishingPicasaPicasaPublisherPrivate;
+
+#define PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS (publishing_picasa_publishing_parameters_get_type ())
+#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParameters))
+#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParametersClass))
+#define PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParametersClass))
+
+typedef struct _PublishingPicasaPublishingParameters PublishingPicasaPublishingParameters;
+typedef struct _PublishingPicasaPublishingParametersClass PublishingPicasaPublishingParametersClass;
+#define _publishing_picasa_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_picasa_publishing_parameters_unref (var), NULL)))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define PUBLISHING_PICASA_TYPE_ALBUM (publishing_picasa_album_get_type ())
+#define PUBLISHING_PICASA_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbum))
+#define PUBLISHING_PICASA_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbumClass))
+#define PUBLISHING_PICASA_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_ALBUM))
+#define PUBLISHING_PICASA_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_ALBUM))
+#define PUBLISHING_PICASA_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbumClass))
+
+typedef struct _PublishingPicasaAlbum PublishingPicasaAlbum;
+typedef struct _PublishingPicasaAlbumClass PublishingPicasaAlbumClass;
+#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL)))
+
+#define PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION (publishing_picasa_album_directory_transaction_get_type ())
+#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransaction))
+#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransactionClass))
+#define PUBLISHING_PICASA_IS_ALBUM_DIRECTORY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION))
+#define PUBLISHING_PICASA_IS_ALBUM_DIRECTORY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION))
+#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransactionClass))
+
+typedef struct _PublishingPicasaAlbumDirectoryTransaction PublishingPicasaAlbumDirectoryTransaction;
+typedef struct _PublishingPicasaAlbumDirectoryTransactionClass PublishingPicasaAlbumDirectoryTransactionClass;
+
+#define PUBLISHING_PICASA_TYPE_ALBUM_CREATION_TRANSACTION (publishing_picasa_album_creation_transaction_get_type ())
+#define PUBLISHING_PICASA_ALBUM_CREATION_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_ALBUM_CREATION_TRANSACTION, PublishingPicasaAlbumCreationTransaction))
+#define PUBLISHING_PICASA_ALBUM_CREATION_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_ALBUM_CREATION_TRANSACTION, PublishingPicasaAlbumCreationTransactionClass))
+#define PUBLISHING_PICASA_IS_ALBUM_CREATION_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_ALBUM_CREATION_TRANSACTION))
+#define PUBLISHING_PICASA_IS_ALBUM_CREATION_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_ALBUM_CREATION_TRANSACTION))
+#define PUBLISHING_PICASA_ALBUM_CREATION_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_ALBUM_CREATION_TRANSACTION, PublishingPicasaAlbumCreationTransactionClass))
+
+typedef struct _PublishingPicasaAlbumCreationTransaction PublishingPicasaAlbumCreationTransaction;
+typedef struct _PublishingPicasaAlbumCreationTransactionClass PublishingPicasaAlbumCreationTransactionClass;
+#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL)))
+#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+typedef struct _PublishingPicasaAlbumPrivate PublishingPicasaAlbumPrivate;
+
+#define PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE (publishing_picasa_publishing_options_pane_get_type ())
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane))
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPaneClass))
+#define PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPaneClass))
+
+typedef struct _PublishingPicasaPublishingOptionsPane PublishingPicasaPublishingOptionsPane;
+typedef struct _PublishingPicasaPublishingOptionsPaneClass PublishingPicasaPublishingOptionsPaneClass;
+
+#define PUBLISHING_PICASA_TYPE_UPLOADER (publishing_picasa_uploader_get_type ())
+#define PUBLISHING_PICASA_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploader))
+#define PUBLISHING_PICASA_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploaderClass))
+#define PUBLISHING_PICASA_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_UPLOADER))
+#define PUBLISHING_PICASA_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_UPLOADER))
+#define PUBLISHING_PICASA_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploaderClass))
+
+typedef struct _PublishingPicasaUploader PublishingPicasaUploader;
+typedef struct _PublishingPicasaUploaderClass PublishingPicasaUploaderClass;
+#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL)))
+typedef struct _PublishingPicasaParamSpecAlbum PublishingPicasaParamSpecAlbum;
+typedef struct _PublishingPicasaAlbumDirectoryTransactionPrivate PublishingPicasaAlbumDirectoryTransactionPrivate;
+typedef struct _PublishingPicasaAlbumCreationTransactionPrivate PublishingPicasaAlbumCreationTransactionPrivate;
+
+#define PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION (publishing_picasa_upload_transaction_get_type ())
+#define PUBLISHING_PICASA_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransaction))
+#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransactionClass))
+#define PUBLISHING_PICASA_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_PICASA_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransactionClass))
+
+typedef struct _PublishingPicasaUploadTransaction PublishingPicasaUploadTransaction;
+typedef struct _PublishingPicasaUploadTransactionClass PublishingPicasaUploadTransactionClass;
+typedef struct _PublishingPicasaUploadTransactionPrivate PublishingPicasaUploadTransactionPrivate;
+#define _g_mapped_file_unref0(var) ((var == NULL) ? NULL : (var = (g_mapped_file_unref (var), NULL)))
+#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL)))
+#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL)))
+typedef struct _PublishingPicasaPublishingOptionsPanePrivate PublishingPicasaPublishingOptionsPanePrivate;
+
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION (publishing_picasa_publishing_options_pane_size_description_get_type ())
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescription))
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescriptionClass))
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_IS_SIZE_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION))
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_IS_SIZE_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION))
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescriptionClass))
+
+typedef struct _PublishingPicasaPublishingOptionsPaneSizeDescription PublishingPicasaPublishingOptionsPaneSizeDescription;
+typedef struct _PublishingPicasaPublishingOptionsPaneSizeDescriptionClass PublishingPicasaPublishingOptionsPaneSizeDescriptionClass;
+#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))
+typedef struct _PublishingPicasaPublishingOptionsPaneSizeDescriptionPrivate PublishingPicasaPublishingOptionsPaneSizeDescriptionPrivate;
+#define _publishing_picasa_publishing_options_pane_size_description_unref0(var) ((var == NULL) ? NULL : (var = (publishing_picasa_publishing_options_pane_size_description_unref (var), NULL)))
+typedef struct _PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription;
+typedef struct _PublishingPicasaPublishingParametersPrivate PublishingPicasaPublishingParametersPrivate;
+#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
+typedef struct _PublishingPicasaParamSpecPublishingParameters PublishingPicasaParamSpecPublishingParameters;
+typedef struct _PublishingPicasaUploaderPrivate PublishingPicasaUploaderPrivate;
+#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 _PicasaService {
+ GObject parent_instance;
+ PicasaServicePrivate * priv;
+};
+
+struct _PicasaServiceClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingPicasaPicasaPublisher {
+ PublishingRESTSupportGooglePublisher parent_instance;
+ PublishingPicasaPicasaPublisherPrivate * priv;
+};
+
+struct _PublishingPicasaPicasaPublisherClass {
+ PublishingRESTSupportGooglePublisherClass parent_class;
+};
+
+struct _PublishingPicasaPicasaPublisherPrivate {
+ gboolean running;
+ SpitPublishingProgressCallback progress_reporter;
+ gpointer progress_reporter_target;
+ GDestroyNotify progress_reporter_target_destroy_notify;
+ PublishingPicasaPublishingParameters* publishing_parameters;
+ gchar* refresh_token;
+};
+
+struct _PublishingPicasaAlbum {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingPicasaAlbumPrivate * priv;
+ gchar* name;
+ gchar* url;
+};
+
+struct _PublishingPicasaAlbumClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingPicasaAlbum *self);
+};
+
+struct _PublishingPicasaParamSpecAlbum {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingPicasaAlbumDirectoryTransaction {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance;
+ PublishingPicasaAlbumDirectoryTransactionPrivate * priv;
+};
+
+struct _PublishingPicasaAlbumDirectoryTransactionClass {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class;
+};
+
+struct _PublishingPicasaAlbumCreationTransaction {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance;
+ PublishingPicasaAlbumCreationTransactionPrivate * priv;
+};
+
+struct _PublishingPicasaAlbumCreationTransactionClass {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class;
+};
+
+struct _PublishingPicasaUploadTransaction {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance;
+ PublishingPicasaUploadTransactionPrivate * priv;
+};
+
+struct _PublishingPicasaUploadTransactionClass {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class;
+};
+
+struct _PublishingPicasaUploadTransactionPrivate {
+ PublishingPicasaPublishingParameters* parameters;
+ PublishingRESTSupportGoogleSession* session;
+ gchar* mime_type;
+ SpitPublishingPublishable* publishable;
+ GMappedFile* mapped_file;
+};
+
+struct _PublishingPicasaPublishingOptionsPane {
+ GObject parent_instance;
+ PublishingPicasaPublishingOptionsPanePrivate * priv;
+};
+
+struct _PublishingPicasaPublishingOptionsPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingPicasaPublishingOptionsPanePrivate {
+ GtkBuilder* builder;
+ GtkBox* pane_widget;
+ GtkLabel* login_identity_label;
+ GtkLabel* publish_to_label;
+ GtkRadioButton* use_existing_radio;
+ GtkComboBoxText* existing_albums_combo;
+ GtkRadioButton* create_new_radio;
+ GtkEntry* new_album_entry;
+ GtkCheckButton* public_check;
+ GtkComboBoxText* size_combo;
+ GtkCheckButton* strip_metadata_check;
+ GtkButton* publish_button;
+ GtkButton* logout_button;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** size_descriptions;
+ gint size_descriptions_length1;
+ gint _size_descriptions_size_;
+ PublishingPicasaPublishingParameters* parameters;
+};
+
+struct _PublishingPicasaPublishingOptionsPaneSizeDescription {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingPicasaPublishingOptionsPaneSizeDescriptionPrivate * priv;
+ gchar* name;
+ gint major_axis_pixels;
+};
+
+struct _PublishingPicasaPublishingOptionsPaneSizeDescriptionClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingPicasaPublishingOptionsPaneSizeDescription *self);
+};
+
+struct _PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingPicasaPublishingParameters {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingPicasaPublishingParametersPrivate * priv;
+};
+
+struct _PublishingPicasaPublishingParametersClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingPicasaPublishingParameters *self);
+};
+
+struct _PublishingPicasaPublishingParametersPrivate {
+ gchar* target_album_name;
+ gchar* target_album_url;
+ gboolean album_public;
+ gboolean strip_metadata;
+ gint major_axis_size_pixels;
+ gint major_axis_size_selection_id;
+ gchar* user_name;
+ PublishingPicasaAlbum** albums;
+ gint albums_length1;
+ gint _albums_size_;
+ SpitPublishingPublisherMediaType media_type;
+ gboolean to_new_album;
+};
+
+struct _PublishingPicasaParamSpecPublishingParameters {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingPicasaUploader {
+ PublishingRESTSupportBatchUploader parent_instance;
+ PublishingPicasaUploaderPrivate * priv;
+};
+
+struct _PublishingPicasaUploaderClass {
+ PublishingRESTSupportBatchUploaderClass parent_class;
+};
+
+struct _PublishingPicasaUploaderPrivate {
+ PublishingPicasaPublishingParameters* parameters;
+};
+
+
+static gpointer picasa_service_parent_class = NULL;
+static GdkPixbuf** picasa_service_icon_pixbuf_set;
+static gint picasa_service_icon_pixbuf_set_length1;
+static GdkPixbuf** picasa_service_icon_pixbuf_set = NULL;
+static gint picasa_service_icon_pixbuf_set_length1 = 0;
+static gint _picasa_service_icon_pixbuf_set_size_ = 0;
+static SpitPluggableIface* picasa_service_spit_pluggable_parent_iface = NULL;
+static SpitPublishingServiceIface* picasa_service_spit_publishing_service_parent_iface = NULL;
+static gpointer publishing_picasa_picasa_publisher_parent_class = NULL;
+static gpointer publishing_picasa_album_parent_class = NULL;
+static gpointer publishing_picasa_album_directory_transaction_parent_class = NULL;
+static gpointer publishing_picasa_album_creation_transaction_parent_class = NULL;
+static gpointer publishing_picasa_upload_transaction_parent_class = NULL;
+static gpointer publishing_picasa_publishing_options_pane_parent_class = NULL;
+static gpointer publishing_picasa_publishing_options_pane_size_description_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_picasa_publishing_parameters_parent_class = NULL;
+static gpointer publishing_picasa_uploader_parent_class = NULL;
+
+GType picasa_service_get_type (void) G_GNUC_CONST;
+enum {
+ PICASA_SERVICE_DUMMY_PROPERTY
+};
+#define PICASA_SERVICE_ICON_FILENAME "picasa.png"
+PicasaService* picasa_service_new (GFile* resource_directory);
+PicasaService* picasa_service_construct (GType object_type, GFile* resource_directory);
+static gint picasa_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+static const gchar* picasa_service_real_get_id (SpitPluggable* base);
+static const gchar* picasa_service_real_get_pluggable_name (SpitPluggable* base);
+static void picasa_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static GdkPixbuf** _vala_array_dup4 (GdkPixbuf** self, int length);
+static SpitPublishingPublisher* picasa_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host);
+PublishingPicasaPicasaPublisher* publishing_picasa_picasa_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host);
+PublishingPicasaPicasaPublisher* publishing_picasa_picasa_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host);
+GType publishing_picasa_picasa_publisher_get_type (void) G_GNUC_CONST;
+static SpitPublishingPublisherMediaType picasa_service_real_get_supported_media (SpitPublishingService* base);
+static void picasa_service_real_activation (SpitPluggable* base, gboolean enabled);
+static void picasa_service_finalize (GObject* obj);
+#define PUBLISHING_PICASA_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into Picasa Web Albums.\n" \
+"\n" \
+"Click Login to log into Picasa Web Albums in your Web browser. You wil" \
+"l have to authorize Shotwell Connect to link to your Picasa Web Albums" \
+" account.")
+#define PUBLISHING_PICASA_DEFAULT_ALBUM_NAME _ ("Shotwell Connect")
+gpointer publishing_picasa_publishing_parameters_ref (gpointer instance);
+void publishing_picasa_publishing_parameters_unref (gpointer instance);
+GParamSpec* publishing_picasa_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_picasa_value_set_publishing_parameters (GValue* value, gpointer v_object);
+void publishing_picasa_value_take_publishing_parameters (GValue* value, gpointer v_object);
+gpointer publishing_picasa_value_get_publishing_parameters (const GValue* value);
+GType publishing_picasa_publishing_parameters_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_PICASA_PICASA_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisherPrivate))
+enum {
+ PUBLISHING_PICASA_PICASA_PUBLISHER_DUMMY_PROPERTY
+};
+PublishingPicasaPublishingParameters* publishing_picasa_publishing_parameters_new (void);
+PublishingPicasaPublishingParameters* publishing_picasa_publishing_parameters_construct (GType object_type);
+static void publishing_picasa_picasa_publisher_load_parameters_from_configuration_system (PublishingPicasaPicasaPublisher* self, PublishingPicasaPublishingParameters* parameters);
+void publishing_picasa_publishing_parameters_set_media_type (PublishingPicasaPublishingParameters* self, SpitPublishingPublisherMediaType media_type);
+gpointer publishing_picasa_album_ref (gpointer instance);
+void publishing_picasa_album_unref (gpointer instance);
+GParamSpec* publishing_picasa_param_spec_album (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_picasa_value_set_album (GValue* value, gpointer v_object);
+void publishing_picasa_value_take_album (GValue* value, gpointer v_object);
+gpointer publishing_picasa_value_get_album (const GValue* value);
+GType publishing_picasa_album_get_type (void) G_GNUC_CONST;
+static PublishingPicasaAlbum** publishing_picasa_picasa_publisher_extract_albums_helper (PublishingPicasaPicasaPublisher* self, xmlNode* document_root, int* result_length1, GError** error);
+PublishingPicasaAlbum* publishing_picasa_album_new (const gchar* name, const gchar* url);
+PublishingPicasaAlbum* publishing_picasa_album_construct (GType object_type, const gchar* name, const gchar* url);
+static void _vala_array_add12 (PublishingPicasaAlbum*** array, int* length, int* size, PublishingPicasaAlbum* value);
+void publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self, gint selection_id);
+void publishing_picasa_publishing_parameters_set_strip_metadata (PublishingPicasaPublishingParameters* self, gboolean strip_metadata);
+void publishing_picasa_publishing_parameters_set_target_album_name (PublishingPicasaPublishingParameters* self, const gchar* target_album_name);
+static void publishing_picasa_picasa_publisher_save_parameters_to_configuration_system (PublishingPicasaPicasaPublisher* self, PublishingPicasaPublishingParameters* parameters);
+gint publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self);
+gboolean publishing_picasa_publishing_parameters_get_strip_metadata (PublishingPicasaPublishingParameters* self);
+gchar* publishing_picasa_publishing_parameters_get_target_album_name (PublishingPicasaPublishingParameters* self);
+static void publishing_picasa_picasa_publisher_on_service_welcome_login (PublishingPicasaPicasaPublisher* self);
+static void publishing_picasa_picasa_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base);
+void publishing_picasa_publishing_parameters_set_user_name (PublishingPicasaPublishingParameters* self, const gchar* user_name);
+static void publishing_picasa_picasa_publisher_do_fetch_account_information (PublishingPicasaPicasaPublisher* self);
+static void publishing_picasa_picasa_publisher_on_initial_album_fetch_complete (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_picasa_picasa_publisher_on_initial_album_fetch_error (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+GType publishing_picasa_album_directory_transaction_get_type (void) G_GNUC_CONST;
+static void publishing_picasa_picasa_publisher_do_parse_and_display_account_information (PublishingPicasaPicasaPublisher* self, PublishingPicasaAlbumDirectoryTransaction* transaction);
+static void publishing_picasa_picasa_publisher_on_publishing_options_logout (PublishingPicasaPicasaPublisher* self);
+static void publishing_picasa_picasa_publisher_on_publishing_options_publish (PublishingPicasaPicasaPublisher* self);
+gboolean publishing_picasa_publishing_parameters_is_to_new_album (PublishingPicasaPublishingParameters* self);
+static void publishing_picasa_picasa_publisher_do_create_album (PublishingPicasaPicasaPublisher* self);
+static void publishing_picasa_picasa_publisher_do_upload (PublishingPicasaPicasaPublisher* self);
+static void publishing_picasa_picasa_publisher_on_album_creation_complete (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_picasa_picasa_publisher_on_album_creation_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_picasa_picasa_publisher_on_album_creation_error (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_picasa_picasa_publisher_on_album_creation_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+GType publishing_picasa_album_creation_transaction_get_type (void) G_GNUC_CONST;
+gchar* publishing_picasa_album_directory_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc);
+static gchar* _publishing_picasa_album_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self);
+void publishing_picasa_publishing_parameters_set_target_album_entry_url (PublishingPicasaPublishingParameters* self, const gchar* target_album_url);
+static void publishing_picasa_picasa_publisher_on_upload_status_updated (PublishingPicasaPicasaPublisher* self, gint file_number, gdouble completed_fraction);
+static void publishing_picasa_picasa_publisher_on_upload_complete (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published);
+static void _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self);
+static void publishing_picasa_picasa_publisher_on_upload_error (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err);
+static void _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self);
+static void publishing_picasa_picasa_publisher_do_show_success_pane (PublishingPicasaPicasaPublisher* self);
+static void publishing_picasa_picasa_publisher_do_show_service_welcome_pane (PublishingPicasaPicasaPublisher* self);
+static void _publishing_picasa_picasa_publisher_on_service_welcome_login_spit_publishing_login_callback (gpointer self);
+PublishingPicasaAlbumDirectoryTransaction* publishing_picasa_album_directory_transaction_new (PublishingRESTSupportGoogleSession* session);
+PublishingPicasaAlbumDirectoryTransaction* publishing_picasa_album_directory_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session);
+void publishing_picasa_publishing_parameters_set_albums (PublishingPicasaPublishingParameters* self, PublishingPicasaAlbum** albums, int albums_length1);
+static void publishing_picasa_picasa_publisher_do_show_publishing_options_pane (PublishingPicasaPicasaPublisher* self);
+GType publishing_picasa_publishing_options_pane_get_type (void) G_GNUC_CONST;
+PublishingPicasaPublishingOptionsPane* publishing_picasa_publishing_options_pane_new (GtkBuilder* builder, PublishingPicasaPublishingParameters* parameters);
+PublishingPicasaPublishingOptionsPane* publishing_picasa_publishing_options_pane_construct (GType object_type, GtkBuilder* builder, PublishingPicasaPublishingParameters* parameters);
+static void _publishing_picasa_picasa_publisher_on_publishing_options_publish_publishing_picasa_publishing_options_pane_publish (PublishingPicasaPublishingOptionsPane* _sender, gpointer self);
+static void _publishing_picasa_picasa_publisher_on_publishing_options_logout_publishing_picasa_publishing_options_pane_logout (PublishingPicasaPublishingOptionsPane* _sender, gpointer self);
+PublishingPicasaAlbumCreationTransaction* publishing_picasa_album_creation_transaction_new (PublishingRESTSupportGoogleSession* session, PublishingPicasaPublishingParameters* parameters);
+PublishingPicasaAlbumCreationTransaction* publishing_picasa_album_creation_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session, PublishingPicasaPublishingParameters* parameters);
+gint publishing_picasa_publishing_parameters_get_major_axis_size_pixels (PublishingPicasaPublishingParameters* self);
+GType publishing_picasa_uploader_get_type (void) G_GNUC_CONST;
+PublishingPicasaUploader* publishing_picasa_uploader_new (PublishingRESTSupportGoogleSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingPicasaPublishingParameters* parameters);
+PublishingPicasaUploader* publishing_picasa_uploader_construct (GType object_type, PublishingRESTSupportGoogleSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingPicasaPublishingParameters* parameters);
+static void _publishing_picasa_picasa_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self);
+static void publishing_picasa_picasa_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base);
+static gboolean publishing_picasa_picasa_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base);
+static void publishing_picasa_picasa_publisher_real_start (PublishingRESTSupportGooglePublisher* base);
+static void publishing_picasa_picasa_publisher_real_stop (PublishingRESTSupportGooglePublisher* base);
+static void publishing_picasa_picasa_publisher_finalize (GObject* obj);
+enum {
+ PUBLISHING_PICASA_ALBUM_DUMMY_PROPERTY
+};
+static void publishing_picasa_album_finalize (PublishingPicasaAlbum* obj);
+enum {
+ PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_DUMMY_PROPERTY
+};
+#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_ENDPOINT_URL "http://picasaweb.google.com/data/feed/api/user/" "default"
+enum {
+ PUBLISHING_PICASA_ALBUM_CREATION_TRANSACTION_DUMMY_PROPERTY
+};
+#define PUBLISHING_PICASA_ALBUM_CREATION_TRANSACTION_ENDPOINT_URL "http://picasaweb.google.com/data/feed/api/user/" "default"
+#define PUBLISHING_PICASA_ALBUM_CREATION_TRANSACTION_ALBUM_ENTRY_TEMPLATE "<?xml version='1.0' encoding='utf-8'?><entry xmlns='http://www.w3.org/" \
+"2005/Atom' xmlns:gphoto='http://schemas.google.com/photos/2007'><title" \
+" type='text'>%s</title><gphoto:access>%s</gphoto:access><category sche" \
+"me='http://schemas.google.com/g/2005#kind' term='http://schemas.google" \
+".com/photos/2007#album'></category></entry>"
+gboolean publishing_picasa_publishing_parameters_is_new_album_public (PublishingPicasaPublishingParameters* self);
+GType publishing_picasa_upload_transaction_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransactionPrivate))
+enum {
+ PUBLISHING_PICASA_UPLOAD_TRANSACTION_DUMMY_PROPERTY
+};
+#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_METADATA_TEMPLATE "<?xml version=\"1.0\" ?><atom:entry xmlns:atom='http://www.w3.org/2005" \
+"/Atom' xmlns:mrss='http://search.yahoo.com/mrss/'> <atom:title>%s</ato" \
+"m:title> %s <atom:category scheme='http://schemas.google.com/g/2005#ki" \
+"nd' term='http://schemas.google.com/photos/2007#photo'/> %s </atom:ent" \
+"ry>"
+PublishingPicasaUploadTransaction* publishing_picasa_upload_transaction_new (PublishingRESTSupportGoogleSession* session, PublishingPicasaPublishingParameters* parameters, SpitPublishingPublishable* publishable);
+PublishingPicasaUploadTransaction* publishing_picasa_upload_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session, PublishingPicasaPublishingParameters* parameters, SpitPublishingPublishable* publishable);
+gchar* publishing_picasa_publishing_parameters_get_target_album_feed_url (PublishingPicasaPublishingParameters* self);
+static void publishing_picasa_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error);
+static void _vala_SoupBuffer_free (SoupBuffer* self);
+static void _vala_SoupMultipart_free (SoupMultipart* self);
+static void publishing_picasa_upload_transaction_finalize (PublishingRESTSupportTransaction* obj);
+static gpointer publishing_picasa_publishing_options_pane_size_description_ref (gpointer instance);
+static void publishing_picasa_publishing_options_pane_size_description_unref (gpointer instance);
+static GParamSpec* publishing_picasa_publishing_options_pane_param_spec_size_description (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
+static void publishing_picasa_publishing_options_pane_value_set_size_description (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static void publishing_picasa_publishing_options_pane_value_take_size_description (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static gpointer publishing_picasa_publishing_options_pane_value_get_size_description (const GValue* value) G_GNUC_UNUSED;
+static GType publishing_picasa_publishing_options_pane_size_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPanePrivate))
+enum {
+ PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_DUMMY_PROPERTY
+};
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_DEFAULT_SIZE_CONFIG_KEY "default_size"
+#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY "last_album"
+static PublishingPicasaPublishingOptionsPaneSizeDescription** publishing_picasa_publishing_options_pane_create_size_descriptions (PublishingPicasaPublishingOptionsPane* self, int* result_length1);
+gchar* publishing_picasa_publishing_parameters_get_user_name (PublishingPicasaPublishingParameters* self);
+SpitPublishingPublisherMediaType publishing_picasa_publishing_parameters_get_media_type (PublishingPicasaPublishingParameters* self);
+static void publishing_picasa_publishing_options_pane_on_use_existing_radio_clicked (PublishingPicasaPublishingOptionsPane* self);
+static void _publishing_picasa_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_picasa_publishing_options_pane_on_create_new_radio_clicked (PublishingPicasaPublishingOptionsPane* self);
+static void _publishing_picasa_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_picasa_publishing_options_pane_on_new_album_entry_changed (PublishingPicasaPublishingOptionsPane* self);
+static void _publishing_picasa_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_picasa_publishing_options_pane_on_logout_clicked (PublishingPicasaPublishingOptionsPane* self);
+static void _publishing_picasa_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_picasa_publishing_options_pane_on_publish_clicked (PublishingPicasaPublishingOptionsPane* self);
+static void _publishing_picasa_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+void publishing_picasa_publishing_parameters_set_major_axis_size_pixels (PublishingPicasaPublishingParameters* self, gint pixels);
+PublishingPicasaAlbum** publishing_picasa_publishing_parameters_get_albums (PublishingPicasaPublishingParameters* self, int* result_length1);
+void publishing_picasa_publishing_parameters_set_is_to_new_album (PublishingPicasaPublishingParameters* self, gboolean to_new_album);
+void publishing_picasa_publishing_parameters_set_is_new_album_public (PublishingPicasaPublishingParameters* self, gboolean album_public);
+static void publishing_picasa_publishing_options_pane_update_publish_button_sensitivity (PublishingPicasaPublishingOptionsPane* self);
+static PublishingPicasaPublishingOptionsPaneSizeDescription* publishing_picasa_publishing_options_pane_size_description_new (const gchar* name, gint major_axis_pixels);
+static PublishingPicasaPublishingOptionsPaneSizeDescription* publishing_picasa_publishing_options_pane_size_description_construct (GType object_type, const gchar* name, gint major_axis_pixels);
+static void _vala_array_add13 (PublishingPicasaPublishingOptionsPaneSizeDescription*** array, int* length, int* size, PublishingPicasaPublishingOptionsPaneSizeDescription* value);
+static void _vala_array_add14 (PublishingPicasaPublishingOptionsPaneSizeDescription*** array, int* length, int* size, PublishingPicasaPublishingOptionsPaneSizeDescription* value);
+static void _vala_array_add15 (PublishingPicasaPublishingOptionsPaneSizeDescription*** array, int* length, int* size, PublishingPicasaPublishingOptionsPaneSizeDescription* value);
+static void _vala_array_add16 (PublishingPicasaPublishingOptionsPaneSizeDescription*** array, int* length, int* size, PublishingPicasaPublishingOptionsPaneSizeDescription* value);
+#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_ORIGINAL_SIZE -1
+static void _vala_array_add17 (PublishingPicasaPublishingOptionsPaneSizeDescription*** array, int* length, int* size, PublishingPicasaPublishingOptionsPaneSizeDescription* value);
+void publishing_picasa_publishing_options_pane_installed (PublishingPicasaPublishingOptionsPane* self);
+static GtkWidget* publishing_picasa_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_picasa_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_picasa_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_picasa_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+enum {
+ PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION_DUMMY_PROPERTY
+};
+static void publishing_picasa_publishing_options_pane_size_description_finalize (PublishingPicasaPublishingOptionsPaneSizeDescription* obj);
+static void publishing_picasa_publishing_options_pane_finalize (GObject* obj);
+#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParametersPrivate))
+enum {
+ PUBLISHING_PICASA_PUBLISHING_PARAMETERS_DUMMY_PROPERTY
+};
+gchar* publishing_picasa_publishing_parameters_get_target_album_entry_url (PublishingPicasaPublishingParameters* self);
+static PublishingPicasaAlbum** _vala_array_dup5 (PublishingPicasaAlbum** self, int length);
+static PublishingPicasaAlbum** _vala_array_dup6 (PublishingPicasaAlbum** self, int length);
+static void publishing_picasa_publishing_parameters_finalize (PublishingPicasaPublishingParameters* obj);
+#define PUBLISHING_PICASA_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploaderPrivate))
+enum {
+ PUBLISHING_PICASA_UPLOADER_DUMMY_PROPERTY
+};
+static PublishingRESTSupportTransaction* publishing_picasa_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable);
+static void publishing_picasa_uploader_finalize (PublishingRESTSupportBatchUploader* 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);
+
+
+PicasaService* picasa_service_construct (GType object_type, GFile* resource_directory) {
+ PicasaService * self = NULL;
+ GdkPixbuf** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = (PicasaService*) g_object_new (object_type, NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = picasa_service_icon_pixbuf_set;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0__length1 = picasa_service_icon_pixbuf_set_length1;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 562 "PicasaPublishing.c"
+ gint _tmp1_ = 0;
+ GdkPixbuf** _tmp2_ = NULL;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" PICASA_SERVICE_ICON_FILENAME, &_tmp1_);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ picasa_service_icon_pixbuf_set = (_vala_array_free (picasa_service_icon_pixbuf_set, picasa_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ picasa_service_icon_pixbuf_set = _tmp2_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ picasa_service_icon_pixbuf_set_length1 = _tmp1_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _picasa_service_icon_pixbuf_set_size_ = picasa_service_icon_pixbuf_set_length1;
+#line 575 "PicasaPublishing.c"
+ }
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self;
+#line 579 "PicasaPublishing.c"
+}
+
+
+PicasaService* picasa_service_new (GFile* resource_directory) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return picasa_service_construct (TYPE_PICASA_SERVICE, resource_directory);
+#line 586 "PicasaPublishing.c"
+}
+
+
+static gint picasa_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ PicasaService * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = min_host_interface;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = max_host_interface;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp2_;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 608 "PicasaPublishing.c"
+}
+
+
+static const gchar* picasa_service_real_get_id (SpitPluggable* base) {
+ PicasaService * self;
+ const gchar* result = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = "org.yorba.shotwell.publishing.picasa";
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 621 "PicasaPublishing.c"
+}
+
+
+static const gchar* picasa_service_real_get_pluggable_name (SpitPluggable* base) {
+ PicasaService * self;
+ const gchar* result = NULL;
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = "Picasa Web Albums";
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 634 "PicasaPublishing.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 641 "PicasaPublishing.c"
+}
+
+
+static GdkPixbuf** _vala_array_dup4 (GdkPixbuf** self, int length) {
+ GdkPixbuf** result;
+ int i;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = g_new0 (GdkPixbuf*, length + 1);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 652 "PicasaPublishing.c"
+ GdkPixbuf* _tmp0_ = NULL;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result[i] = _tmp0_;
+#line 658 "PicasaPublishing.c"
+ }
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 662 "PicasaPublishing.c"
+}
+
+
+static void picasa_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ PicasaService * self;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GdkPixbuf** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GdkPixbuf** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (info != NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = g_strdup ("Lucas Beeler");
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 ((*info).authors);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).authors = _tmp0_;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = _ ("Copyright 2016 Software Freedom Conservancy Inc.");
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 ((*info).copyright);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).copyright = _tmp2_;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 ((*info).translators);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).translators = _tmp3_;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = g_strdup (_VERSION);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 ((*info).version);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).version = _tmp4_;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 ((*info).website_name);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).website_name = _tmp5_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 ((*info).website_url);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).website_url = _tmp6_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = g_strdup (RESOURCES_LICENSE);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 ((*info).license);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).license = _tmp7_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = picasa_service_icon_pixbuf_set;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8__length1 = picasa_service_icon_pixbuf_set_length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup4 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9__length1 = _tmp8__length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).icons = _tmp9_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*info).icons_length1 = _tmp9__length1;
+#line 744 "PicasaPublishing.c"
+}
+
+
+static SpitPublishingPublisher* picasa_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) {
+ PicasaService * self;
+ SpitPublishingPublisher* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingPicasaPicasaPublisher* _tmp1_ = NULL;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = host;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishing_picasa_picasa_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 765 "PicasaPublishing.c"
+}
+
+
+static SpitPublishingPublisherMediaType picasa_service_real_get_supported_media (SpitPublishingService* base) {
+ PicasaService * self;
+ SpitPublishingPublisherMediaType result = 0;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 778 "PicasaPublishing.c"
+}
+
+
+static void picasa_service_real_activation (SpitPluggable* base, gboolean enabled) {
+ PicasaService * self;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService);
+#line 786 "PicasaPublishing.c"
+}
+
+
+static void picasa_service_class_init (PicasaServiceClass * klass) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ picasa_service_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = picasa_service_finalize;
+#line 795 "PicasaPublishing.c"
+}
+
+
+static void picasa_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ picasa_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) picasa_service_real_get_pluggable_interface;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) picasa_service_real_get_id;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) picasa_service_real_get_pluggable_name;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) picasa_service_real_get_info;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) picasa_service_real_activation;
+#line 812 "PicasaPublishing.c"
+}
+
+
+static void picasa_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ picasa_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->create_publisher = (SpitPublishingPublisher* (*)(SpitPublishingService*, SpitPublishingPluginHost*)) picasa_service_real_create_publisher;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->get_supported_media = (SpitPublishingPublisherMediaType (*)(SpitPublishingService*)) picasa_service_real_get_supported_media;
+#line 823 "PicasaPublishing.c"
+}
+
+
+static void picasa_service_instance_init (PicasaService * self) {
+}
+
+
+static void picasa_service_finalize (GObject* obj) {
+ PicasaService * self;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PICASA_SERVICE, PicasaService);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ G_OBJECT_CLASS (picasa_service_parent_class)->finalize (obj);
+#line 837 "PicasaPublishing.c"
+}
+
+
+GType picasa_service_get_type (void) {
+ static volatile gsize picasa_service_type_id__volatile = 0;
+ if (g_once_init_enter (&picasa_service_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PicasaServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) picasa_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PicasaService), 0, (GInstanceInitFunc) picasa_service_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) picasa_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) picasa_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType picasa_service_type_id;
+ picasa_service_type_id = g_type_register_static (G_TYPE_OBJECT, "PicasaService", &g_define_type_info, 0);
+ g_type_add_interface_static (picasa_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (picasa_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info);
+ g_once_init_leave (&picasa_service_type_id__volatile, picasa_service_type_id);
+ }
+ return picasa_service_type_id__volatile;
+}
+
+
+PublishingPicasaPicasaPublisher* publishing_picasa_picasa_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) {
+ PublishingPicasaPicasaPublisher * self = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp2_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp3_ = NULL;
+ SpitPublishingPublisherMediaType media_type = 0;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ SpitPublishingPublishable** _tmp6_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp11_ = NULL;
+ SpitPublishingPublisherMediaType _tmp12_ = 0;
+ SpitPublishingPluginHost* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = service;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = host;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = (PublishingPicasaPicasaPublisher*) publishing_rest_support_google_publisher_construct (object_type, _tmp0_, _tmp1_, "http://picasaweb.google.com/data/");
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = publishing_picasa_publishing_parameters_new ();
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_picasa_publishing_parameters_unref0 (self->priv->publishing_parameters);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->publishing_parameters = _tmp2_;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = self->priv->publishing_parameters;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_load_parameters_from_configuration_system (self, _tmp3_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = host;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = spit_publishing_plugin_host_get_publishables (_tmp4_, &_tmp5_);
+#line 897 "PicasaPublishing.c"
+ {
+ SpitPublishingPublishable** p_collection = NULL;
+ gint p_collection_length1 = 0;
+ gint _p_collection_size_ = 0;
+ gint p_it = 0;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ p_collection = _tmp6_;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ p_collection_length1 = _tmp5_;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ for (p_it = 0; p_it < _tmp5_; p_it = p_it + 1) {
+#line 909 "PicasaPublishing.c"
+ SpitPublishingPublishable* _tmp7_ = NULL;
+ SpitPublishingPublishable* p = NULL;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = _g_object_ref0 (p_collection[p_it]);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ p = _tmp7_;
+#line 916 "PicasaPublishing.c"
+ {
+ SpitPublishingPublisherMediaType _tmp8_ = 0;
+ SpitPublishingPublishable* _tmp9_ = NULL;
+ SpitPublishingPublisherMediaType _tmp10_ = 0;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = media_type;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = p;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = spit_publishing_publishable_get_media_type (_tmp9_);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ media_type = _tmp8_ | _tmp10_;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (p);
+#line 931 "PicasaPublishing.c"
+ }
+ }
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ p_collection = (_vala_array_free (p_collection, p_collection_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 936 "PicasaPublishing.c"
+ }
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = self->priv->publishing_parameters;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = media_type;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_media_type (_tmp11_, _tmp12_);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = host;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", NULL);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->refresh_token);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->refresh_token = _tmp14_;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self;
+#line 968 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaPicasaPublisher* publishing_picasa_picasa_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return publishing_picasa_picasa_publisher_construct (PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, service, host);
+#line 975 "PicasaPublishing.c"
+}
+
+
+static void _vala_array_add12 (PublishingPicasaAlbum*** array, int* length, int* size, PublishingPicasaAlbum* value) {
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if ((*length) == (*size)) {
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *array = g_renew (PublishingPicasaAlbum*, *array, (*size) + 1);
+#line 986 "PicasaPublishing.c"
+ }
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[*length] = NULL;
+#line 992 "PicasaPublishing.c"
+}
+
+
+static PublishingPicasaAlbum** publishing_picasa_picasa_publisher_extract_albums_helper (PublishingPicasaPicasaPublisher* self, xmlNode* document_root, int* result_length1, GError** error) {
+ PublishingPicasaAlbum** result = NULL;
+ PublishingPicasaAlbum** _result_ = NULL;
+ PublishingPicasaAlbum** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ xmlNode* doc_node_iter = NULL;
+ xmlNode* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingPicasaAlbum** _tmp36_ = NULL;
+ gint _tmp36__length1 = 0;
+ GError * _inner_error_ = NULL;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self), NULL);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = g_new0 (PublishingPicasaAlbum*, 0 + 1);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _result_ = _tmp0_;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _result__length1 = 0;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __result__size_ = _result__length1;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ doc_node_iter = NULL;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = document_root;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = _tmp1_->name;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_strcmp0 (_tmp2_, "feed") == 0) {
+#line 1026 "PicasaPublishing.c"
+ xmlNode* _tmp3_ = NULL;
+ xmlNode* _tmp4_ = NULL;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = document_root;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = _tmp3_->children;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ doc_node_iter = _tmp4_;
+#line 1035 "PicasaPublishing.c"
+ } else {
+ xmlNode* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = document_root;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = _tmp5_->name;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_strcmp0 (_tmp6_, "entry") == 0) {
+#line 1045 "PicasaPublishing.c"
+ xmlNode* _tmp7_ = NULL;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = document_root;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ doc_node_iter = _tmp7_;
+#line 1051 "PicasaPublishing.c"
+ } else {
+ GError* _tmp8_ = NULL;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "response root node " "isn't a <feed> or <entry>");
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _inner_error_ = _tmp8_;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _result_ = (_vala_array_free (_result_, _result__length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return NULL;
+#line 1066 "PicasaPublishing.c"
+ } else {
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _result_ = (_vala_array_free (_result_, _result__length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return NULL;
+#line 1076 "PicasaPublishing.c"
+ }
+ }
+ }
+ {
+ gboolean _tmp9_ = FALSE;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = TRUE;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ while (TRUE) {
+#line 1086 "PicasaPublishing.c"
+ xmlNode* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ gchar* name_val = NULL;
+ gchar* url_val = NULL;
+ xmlNode* album_node_iter = NULL;
+ xmlNode* _tmp15_ = NULL;
+ xmlNode* _tmp16_ = NULL;
+ PublishingPicasaAlbum** _tmp32_ = NULL;
+ gint _tmp32__length1 = 0;
+ const gchar* _tmp33_ = NULL;
+ const gchar* _tmp34_ = NULL;
+ PublishingPicasaAlbum* _tmp35_ = NULL;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp9_) {
+#line 1102 "PicasaPublishing.c"
+ xmlNode* _tmp10_ = NULL;
+ xmlNode* _tmp11_ = NULL;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = doc_node_iter;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = _tmp10_->next;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ doc_node_iter = _tmp11_;
+#line 1111 "PicasaPublishing.c"
+ }
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = FALSE;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = doc_node_iter;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!(_tmp12_ != NULL)) {
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ break;
+#line 1121 "PicasaPublishing.c"
+ }
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = doc_node_iter;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = _tmp13_->name;
+#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_strcmp0 (_tmp14_, "entry") != 0) {
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ continue;
+#line 1131 "PicasaPublishing.c"
+ }
+#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ name_val = NULL;
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ url_val = NULL;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = doc_node_iter;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16_ = _tmp15_->children;
+#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ album_node_iter = _tmp16_;
+#line 1143 "PicasaPublishing.c"
+ {
+ gboolean _tmp17_ = FALSE;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp17_ = TRUE;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ while (TRUE) {
+#line 1150 "PicasaPublishing.c"
+ xmlNode* _tmp20_ = NULL;
+ xmlNode* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp17_) {
+#line 1156 "PicasaPublishing.c"
+ xmlNode* _tmp18_ = NULL;
+ xmlNode* _tmp19_ = NULL;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp18_ = album_node_iter;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp19_ = _tmp18_->next;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ album_node_iter = _tmp19_;
+#line 1165 "PicasaPublishing.c"
+ }
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp17_ = FALSE;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp20_ = album_node_iter;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!(_tmp20_ != NULL)) {
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ break;
+#line 1175 "PicasaPublishing.c"
+ }
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp21_ = album_node_iter;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp22_ = _tmp21_->name;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_strcmp0 (_tmp22_, "title") == 0) {
+#line 1183 "PicasaPublishing.c"
+ xmlNode* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp23_ = album_node_iter;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp24_ = (gchar*) xmlNodeGetContent (_tmp23_);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (name_val);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ name_val = _tmp24_;
+#line 1194 "PicasaPublishing.c"
+ } else {
+ xmlNode* _tmp25_ = NULL;
+ const gchar* _tmp26_ = NULL;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp25_ = album_node_iter;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp26_ = _tmp25_->name;
+#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_strcmp0 (_tmp26_, "id") == 0) {
+#line 1204 "PicasaPublishing.c"
+ xmlNode* _tmp27_ = NULL;
+ xmlNs* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+ xmlNode* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp27_ = album_node_iter;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp28_ = _tmp27_->ns;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp29_ = _tmp28_->prefix;
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp29_ != NULL) {
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ continue;
+#line 1220 "PicasaPublishing.c"
+ }
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp30_ = album_node_iter;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp31_ = (gchar*) xmlNodeGetContent (_tmp30_);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (url_val);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ url_val = _tmp31_;
+#line 1230 "PicasaPublishing.c"
+ }
+ }
+ }
+ }
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp32_ = _result_;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp32__length1 = _result__length1;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp33_ = name_val;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp34_ = url_val;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp35_ = publishing_picasa_album_new (_tmp33_, _tmp34_);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_array_add12 (&_result_, &_result__length1, &__result__size_, _tmp35_);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (url_val);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (name_val);
+#line 1251 "PicasaPublishing.c"
+ }
+ }
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp36_ = _result_;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp36__length1 = _result__length1;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (result_length1) {
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *result_length1 = _tmp36__length1;
+#line 1262 "PicasaPublishing.c"
+ }
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp36_;
+#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 1268 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_load_parameters_from_configuration_system (PublishingPicasaPicasaPublisher* self, PublishingPicasaPublishingParameters* parameters) {
+ PublishingPicasaPublishingParameters* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ PublishingPicasaPublishingParameters* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ PublishingPicasaPublishingParameters* _tmp6_ = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters));
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = parameters;
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default-size", 0);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (_tmp0_, _tmp2_);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = parameters;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip-metadata", FALSE);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_strip_metadata (_tmp3_, _tmp5_);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = parameters;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-album", NULL);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_target_album_name (_tmp6_, _tmp9_);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 1315 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_save_parameters_to_configuration_system (PublishingPicasaPicasaPublisher* self, PublishingPicasaPublishingParameters* parameters) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ SpitPublishingPluginHost* _tmp6_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters));
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = parameters;
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (_tmp1_);
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default-size", _tmp2_);
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = parameters;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = publishing_picasa_publishing_parameters_get_strip_metadata (_tmp4_);
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", _tmp5_);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = parameters;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = publishing_picasa_publishing_parameters_get_target_album_name (_tmp7_);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-album", _tmp9_);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 1362 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_on_service_welcome_login (PublishingPicasaPicasaPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:136: EVENT: user clicked 'Login' in welcome pane" \
+".");
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp0_) {
+#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1379 "PicasaPublishing.c"
+ }
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = self->priv->refresh_token;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_google_publisher_start_oauth_flow (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher), _tmp1_);
+#line 1385 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base) {
+ PublishingPicasaPicasaPublisher * self;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp5_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp6_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher);
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:145: EVENT: OAuth login flow complete.");
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = publishing_rest_support_google_session_get_refresh_token (_tmp2_);
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", _tmp4_);
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp4_);
+#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp2_);
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = self->priv->publishing_parameters;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = publishing_rest_support_google_session_get_user_name (_tmp7_);
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_user_name (_tmp5_, _tmp9_);
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp7_);
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_do_fetch_account_information (self);
+#line 1439 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_initial_album_fetch_complete ((PublishingPicasaPicasaPublisher*) self, _sender);
+#line 1446 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_initial_album_fetch_error ((PublishingPicasaPicasaPublisher*) self, _sender, err);
+#line 1453 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_on_initial_album_fetch_complete (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = txn;
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = txn;
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 158 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 158 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp4_) {
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1486 "PicasaPublishing.c"
+ }
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:161: EVENT: finished fetching account and album " \
+"information.");
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = txn;
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_do_parse_and_display_account_information (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransaction));
+#line 1494 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_on_initial_album_fetch_error (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gboolean _tmp8_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp9_ = NULL;
+ guint _tmp10_ = 0U;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = bad_txn;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = bad_txn;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp4_) {
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1532 "PicasaPublishing.c"
+ }
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = bad_txn;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_);
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:174: EVENT: fetching account and album informati" \
+"on failed; response = '%s'.", _tmp7_);
+#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = bad_txn;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = publishing_rest_support_transaction_get_status_code (_tmp9_);
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp10_ == ((guint) 403)) {
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = TRUE;
+#line 1552 "PicasaPublishing.c"
+ } else {
+ PublishingRESTSupportTransaction* _tmp11_ = NULL;
+ guint _tmp12_ = 0U;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = bad_txn;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = publishing_rest_support_transaction_get_status_code (_tmp11_);
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = _tmp12_ == ((guint) 404);
+#line 1562 "PicasaPublishing.c"
+ }
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp8_) {
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_google_publisher_do_logout (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 1568 "PicasaPublishing.c"
+ } else {
+ SpitPublishingPluginHost* _tmp13_ = NULL;
+ GError* _tmp14_ = NULL;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = err;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp13_, _tmp14_);
+#line 1578 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_picasa_publisher_on_publishing_options_logout (PublishingPicasaPicasaPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp0_) {
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1593 "PicasaPublishing.c"
+ }
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:189: EVENT: user clicked 'Logout' in the publish" \
+"ing options pane.");
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_google_publisher_do_logout (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 1599 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_on_publishing_options_publish (PublishingPicasaPicasaPublisher* self) {
+ gboolean _tmp0_ = FALSE;
+ PublishingPicasaPublishingParameters* _tmp1_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp0_) {
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1616 "PicasaPublishing.c"
+ }
+#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:198: EVENT: user clicked 'Publish' in the publis" \
+"hing options pane.");
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = self->priv->publishing_parameters;
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_save_parameters_to_configuration_system (self, _tmp1_);
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = self->priv->publishing_parameters;
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = publishing_picasa_publishing_parameters_is_to_new_album (_tmp2_);
+#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp3_) {
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_do_create_album (self);
+#line 1632 "PicasaPublishing.c"
+ } else {
+#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_do_upload (self);
+#line 1636 "PicasaPublishing.c"
+ }
+}
+
+
+static void _publishing_picasa_picasa_publisher_on_album_creation_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_album_creation_complete ((PublishingPicasaPicasaPublisher*) self, _sender);
+#line 1644 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_picasa_publisher_on_album_creation_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_album_creation_error ((PublishingPicasaPicasaPublisher*) self, _sender, err);
+#line 1651 "PicasaPublishing.c"
+}
+
+
+static gpointer _publishing_rest_support_transaction_ref0 (gpointer self) {
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self ? publishing_rest_support_transaction_ref (self) : NULL;
+#line 1658 "PicasaPublishing.c"
+}
+
+
+static gchar* _publishing_picasa_album_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self) {
+ gchar* result;
+ result = publishing_picasa_album_directory_transaction_validate_xml (doc);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 1667 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_on_album_creation_complete (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingPicasaAlbumCreationTransaction* downcast_txn = NULL;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+ PublishingPicasaAlbumCreationTransaction* _tmp6_ = NULL;
+ PublishingRESTSupportXmlDocument* response_doc = NULL;
+ PublishingPicasaAlbum** response_albums = NULL;
+ gint response_albums_length1 = 0;
+ gint _response_albums_size_ = 0;
+ PublishingPicasaAlbum** _tmp24_ = NULL;
+ gint _tmp24__length1 = 0;
+ PublishingPicasaPublishingParameters* _tmp28_ = NULL;
+ PublishingPicasaAlbum** _tmp29_ = NULL;
+ gint _tmp29__length1 = 0;
+ PublishingPicasaAlbum* _tmp30_ = NULL;
+ const gchar* _tmp31_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = txn;
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_album_creation_complete_publishing_rest_support_transaction_completed, self);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = txn;
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_album_creation_error_publishing_rest_support_transaction_network_error, self);
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp4_) {
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1714 "PicasaPublishing.c"
+ }
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:216: EVENT: finished creating album on remote se" \
+"rver.");
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = txn;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = _publishing_rest_support_transaction_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_PICASA_TYPE_ALBUM_CREATION_TRANSACTION, PublishingPicasaAlbumCreationTransaction));
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ downcast_txn = _tmp6_;
+#line 1724 "PicasaPublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* _tmp7_ = NULL;
+ PublishingPicasaAlbumCreationTransaction* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp11_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp13_ = NULL;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = downcast_txn;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = publishing_rest_support_xml_document_parse_string (_tmp10_, _publishing_picasa_album_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = _tmp11_;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp10_);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = _tmp12_;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 1751 "PicasaPublishing.c"
+ goto __catch7_spit_publishing_publishing_error;
+ }
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (downcast_txn);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1764 "PicasaPublishing.c"
+ }
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = _tmp7_;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = NULL;
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ response_doc = _tmp13_;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (_tmp7_);
+#line 1776 "PicasaPublishing.c"
+ }
+ goto __finally7;
+ __catch7_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp14_ = NULL;
+ GError* _tmp15_ = NULL;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ err = _inner_error_;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _inner_error_ = NULL;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = err;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp14_, _tmp15_);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_error_free0 (err);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (downcast_txn);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1802 "PicasaPublishing.c"
+ }
+ __finally7:
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (downcast_txn);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1817 "PicasaPublishing.c"
+ }
+ {
+ PublishingPicasaAlbum** _tmp16_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp17_ = NULL;
+ xmlNode* _tmp18_ = NULL;
+ gint _tmp19_ = 0;
+ PublishingPicasaAlbum** _tmp20_ = NULL;
+ gint _tmp16__length1 = 0;
+ gint __tmp16__size_ = 0;
+ PublishingPicasaAlbum** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp17_ = response_doc;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp18_ = publishing_rest_support_xml_document_get_root_node (_tmp17_);
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp20_ = publishing_picasa_picasa_publisher_extract_albums_helper (self, _tmp18_, &_tmp19_, &_inner_error_);
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16_ = _tmp20_;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16__length1 = _tmp19_;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __tmp16__size_ = _tmp16__length1;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 1845 "PicasaPublishing.c"
+ goto __catch8_spit_publishing_publishing_error;
+ }
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ response_albums = (_vala_array_free (response_albums, response_albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (downcast_txn);
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1860 "PicasaPublishing.c"
+ }
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp21_ = _tmp16_;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp21__length1 = _tmp16__length1;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16_ = NULL;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16__length1 = 0;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ response_albums = (_vala_array_free (response_albums, response_albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ response_albums = _tmp21_;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ response_albums_length1 = _tmp21__length1;
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _response_albums_size_ = response_albums_length1;
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16_ = (_vala_array_free (_tmp16_, _tmp16__length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 1880 "PicasaPublishing.c"
+ }
+ goto __finally8;
+ __catch8_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp22_ = NULL;
+ GError* _tmp23_ = NULL;
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ err = _inner_error_;
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _inner_error_ = NULL;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp22_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp23_ = err;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp22_, _tmp23_);
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_error_free0 (err);
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ response_albums = (_vala_array_free (response_albums, response_albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (downcast_txn);
+#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1908 "PicasaPublishing.c"
+ }
+ __finally8:
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ response_albums = (_vala_array_free (response_albums, response_albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (downcast_txn);
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1925 "PicasaPublishing.c"
+ }
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp24_ = response_albums;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp24__length1 = response_albums_length1;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp24__length1 != 1) {
+#line 1933 "PicasaPublishing.c"
+ SpitPublishingPluginHost* _tmp25_ = NULL;
+ GError* _tmp26_ = NULL;
+ GError* _tmp27_ = NULL;
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp25_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp26_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "album " "creation transaction responses must contain one and only one album dir" \
+"ectory " "entry");
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp27_ = _tmp26_;
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp25_, _tmp27_);
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_error_free0 (_tmp27_);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ response_albums = (_vala_array_free (response_albums, response_albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (downcast_txn);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 1955 "PicasaPublishing.c"
+ }
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp28_ = self->priv->publishing_parameters;
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp29_ = response_albums;
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp29__length1 = response_albums_length1;
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp30_ = _tmp29_[0];
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp31_ = _tmp30_->url;
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_target_album_entry_url (_tmp28_, _tmp31_);
+#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_do_upload (self);
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ response_albums = (_vala_array_free (response_albums, response_albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (downcast_txn);
+#line 1977 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_on_album_creation_error (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ SpitPublishingPluginHost* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = bad_txn;
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_album_creation_complete_publishing_rest_support_transaction_completed, self);
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = bad_txn;
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_album_creation_error_publishing_rest_support_transaction_network_error, self);
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp4_) {
+#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2014 "PicasaPublishing.c"
+ }
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = bad_txn;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:256: EVENT: creating album on remote server fail" \
+"ed; response = '%s'.", _tmp7_);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = err;
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp8_, _tmp9_);
+#line 2032 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_on_upload_status_updated (PublishingPicasaPicasaPublisher* self, gint file_number, gdouble completed_fraction) {
+ gboolean _tmp0_ = FALSE;
+ gdouble _tmp1_ = 0.0;
+ SpitPublishingProgressCallback _tmp2_ = NULL;
+ void* _tmp2__target = NULL;
+ SpitPublishingProgressCallback _tmp3_ = NULL;
+ void* _tmp3__target = NULL;
+ gint _tmp4_ = 0;
+ gdouble _tmp5_ = 0.0;
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp0_) {
+#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2053 "PicasaPublishing.c"
+ }
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = completed_fraction;
+#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:266: EVENT: uploader reports upload %.2f percent" \
+" complete.", 100.0 * _tmp1_);
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = self->priv->progress_reporter;
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2__target = self->priv->progress_reporter_target;
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_assert (_tmp2_ != NULL, "progress_reporter != null");
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = self->priv->progress_reporter;
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3__target = self->priv->progress_reporter_target;
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = file_number;
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = completed_fraction;
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ (_tmp4_, _tmp5_, _tmp3__target);
+#line 2075 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self) {
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_upload_complete ((PublishingPicasaPicasaPublisher*) self, _sender, num_photos_published);
+#line 2082 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self) {
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_upload_error ((PublishingPicasaPicasaPublisher*) self, _sender, err);
+#line 2089 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_on_upload_complete (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) {
+ gboolean _tmp0_ = FALSE;
+ gint _tmp1_ = 0;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp0_) {
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2110 "PicasaPublishing.c"
+ }
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = num_published;
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:278: EVENT: uploader reports upload complete; %d" \
+" items published.", _tmp1_);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = uploader;
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = uploader;
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp5_, NULL, FALSE);
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_do_show_success_pane (self);
+#line 2130 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_on_upload_error (PublishingPicasaPicasaPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err) {
+ gboolean _tmp0_ = FALSE;
+ GError* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ PublishingRESTSupportBatchUploader* _tmp3_ = NULL;
+ guint _tmp4_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp5_ = NULL;
+ guint _tmp6_ = 0U;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp0_) {
+#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2154 "PicasaPublishing.c"
+ }
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = err;
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = _tmp1_->message;
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:291: EVENT: uploader reports upload error = '%s'" \
+".", _tmp2_);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = uploader;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp4_, NULL, FALSE);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = uploader;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp6_, NULL, FALSE);
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = err;
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
+#line 2180 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_picasa_publisher_on_service_welcome_login_spit_publishing_login_callback (gpointer self) {
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_service_welcome_login ((PublishingPicasaPicasaPublisher*) self);
+#line 2187 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_do_show_service_welcome_pane (PublishingPicasaPicasaPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:300: ACTION: showing service welcome pane.");
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_install_welcome_pane (_tmp0_, PUBLISHING_PICASA_SERVICE_WELCOME_MESSAGE, _publishing_picasa_picasa_publisher_on_service_welcome_login_spit_publishing_login_callback, self);
+#line 2201 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_do_fetch_account_information (PublishingPicasaPicasaPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingPicasaAlbumDirectoryTransaction* directory_trans = NULL;
+ PublishingRESTSupportGoogleSession* _tmp2_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp3_ = NULL;
+ PublishingPicasaAlbumDirectoryTransaction* _tmp4_ = NULL;
+ PublishingPicasaAlbumDirectoryTransaction* _tmp5_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:306: ACTION: fetching account and album informat" \
+"ion.");
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp0_);
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = publishing_picasa_album_directory_transaction_new (_tmp3_);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp3_);
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ directory_trans = _tmp5_;
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 2242 "PicasaPublishing.c"
+ {
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2250 "PicasaPublishing.c"
+ goto __catch9_spit_publishing_publishing_error;
+ }
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (directory_trans);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2261 "PicasaPublishing.c"
+ }
+ }
+ goto __finally9;
+ __catch9_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp6_ = NULL;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ err = _inner_error_;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _inner_error_ = NULL;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = err;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_initial_album_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp6_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_error_free0 (err);
+#line 2279 "PicasaPublishing.c"
+ }
+ __finally9:
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (directory_trans);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2292 "PicasaPublishing.c"
+ }
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (directory_trans);
+#line 2296 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_do_parse_and_display_account_information (PublishingPicasaPicasaPublisher* self, PublishingPicasaAlbumDirectoryTransaction* transaction) {
+ PublishingRESTSupportXmlDocument* response_doc = NULL;
+ GError * _inner_error_ = NULL;
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_ALBUM_DIRECTORY_TRANSACTION (transaction));
+#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:327: ACTION: parsing account and album informati" \
+"on from server response XML");
+#line 2309 "PicasaPublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* _tmp0_ = NULL;
+ PublishingPicasaAlbumDirectoryTransaction* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp4_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp5_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp6_ = NULL;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = transaction;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = publishing_rest_support_xml_document_parse_string (_tmp3_, _publishing_picasa_album_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = _tmp5_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2336 "PicasaPublishing.c"
+ goto __catch10_spit_publishing_publishing_error;
+ }
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2347 "PicasaPublishing.c"
+ }
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = _tmp0_;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = NULL;
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ response_doc = _tmp6_;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (_tmp0_);
+#line 2359 "PicasaPublishing.c"
+ }
+ goto __finally10;
+ __catch10_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ err = _inner_error_;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _inner_error_ = NULL;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = err;
+#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_error_free0 (err);
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2383 "PicasaPublishing.c"
+ }
+ __finally10:
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2396 "PicasaPublishing.c"
+ }
+ {
+ PublishingPicasaAlbum** _tmp9_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp10_ = NULL;
+ xmlNode* _tmp11_ = NULL;
+ gint _tmp12_ = 0;
+ PublishingPicasaAlbum** _tmp13_ = NULL;
+ gint _tmp9__length1 = 0;
+ gint __tmp9__size_ = 0;
+ PublishingPicasaPublishingParameters* _tmp14_ = NULL;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = response_doc;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = publishing_rest_support_xml_document_get_root_node (_tmp10_);
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = publishing_picasa_picasa_publisher_extract_albums_helper (self, _tmp11_, &_tmp12_, &_inner_error_);
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = _tmp13_;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9__length1 = _tmp12_;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __tmp9__size_ = _tmp9__length1;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2423 "PicasaPublishing.c"
+ goto __catch11_spit_publishing_publishing_error;
+ }
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2434 "PicasaPublishing.c"
+ }
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = self->priv->publishing_parameters;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_albums (_tmp14_, _tmp9_, _tmp9__length1);
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = (_vala_array_free (_tmp9_, _tmp9__length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 2442 "PicasaPublishing.c"
+ }
+ goto __finally11;
+ __catch11_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp15_ = NULL;
+ GError* _tmp16_ = NULL;
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ err = _inner_error_;
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _inner_error_ = NULL;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16_ = err;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp15_, _tmp16_);
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_error_free0 (err);
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2466 "PicasaPublishing.c"
+ }
+ __finally11:
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2479 "PicasaPublishing.c"
+ }
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_do_show_publishing_options_pane (self);
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 2485 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_picasa_publisher_on_publishing_options_publish_publishing_picasa_publishing_options_pane_publish (PublishingPicasaPublishingOptionsPane* _sender, gpointer self) {
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_publishing_options_publish ((PublishingPicasaPicasaPublisher*) self);
+#line 2492 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_picasa_publisher_on_publishing_options_logout_publishing_picasa_publishing_options_pane_logout (PublishingPicasaPublishingOptionsPane* _sender, gpointer self) {
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_publishing_options_logout ((PublishingPicasaPicasaPublisher*) self);
+#line 2499 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_do_show_publishing_options_pane (PublishingPicasaPicasaPublisher* self) {
+ GtkBuilder* builder = NULL;
+ GtkBuilder* _tmp0_ = NULL;
+ PublishingPicasaPublishingOptionsPane* opts_pane = NULL;
+ GtkBuilder* _tmp8_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp9_ = NULL;
+ PublishingPicasaPublishingOptionsPane* _tmp10_ = NULL;
+ PublishingPicasaPublishingOptionsPane* _tmp11_ = NULL;
+ PublishingPicasaPublishingOptionsPane* _tmp12_ = NULL;
+ SpitPublishingPluginHost* _tmp13_ = NULL;
+ PublishingPicasaPublishingOptionsPane* _tmp14_ = NULL;
+ SpitPublishingPluginHost* _tmp15_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:349: ACTION: showing publishing options pane.");
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = gtk_builder_new ();
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ builder = _tmp0_;
+#line 2524 "PicasaPublishing.c"
+ {
+ GtkBuilder* _tmp1_ = NULL;
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = builder;
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/" "picasa_publishing_options_pane.ui", &_inner_error_);
+#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 2533 "PicasaPublishing.c"
+ goto __catch12_g_error;
+ }
+ }
+ goto __finally12;
+ __catch12_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ e = _inner_error_;
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _inner_error_ = NULL;
+#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = e;
+#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = _tmp2_->message;
+#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_warning ("PicasaPublishing.vala:358: Could not parse UI file! Error: %s.", _tmp3_);
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = _ ("A file required for publishing is unavailable. Publishing to Picasa ca" \
+"n't continue.");
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp5_);
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp4_, _tmp7_);
+#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_error_free0 (_tmp7_);
+#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_error_free0 (e);
+#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (builder);
+#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2575 "PicasaPublishing.c"
+ }
+ __finally12:
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (builder);
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2588 "PicasaPublishing.c"
+ }
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = builder;
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = self->priv->publishing_parameters;
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = publishing_picasa_publishing_options_pane_new (_tmp8_, _tmp9_);
+#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ opts_pane = _tmp10_;
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = opts_pane;
+#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (_tmp11_, "publish", (GCallback) _publishing_picasa_picasa_publisher_on_publishing_options_publish_publishing_picasa_publishing_options_pane_publish, self, 0);
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = opts_pane;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (_tmp12_, "logout", (GCallback) _publishing_picasa_picasa_publisher_on_publishing_options_logout_publishing_picasa_publishing_options_pane_logout, self, 0);
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = opts_pane;
+#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp15_, FALSE);
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (opts_pane);
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (builder);
+#line 2620 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_do_create_album (PublishingPicasaPicasaPublisher* self) {
+ PublishingPicasaPublishingParameters* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ PublishingPicasaPublishingParameters* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ SpitPublishingPluginHost* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ PublishingPicasaAlbumCreationTransaction* creation_trans = NULL;
+ PublishingRESTSupportGoogleSession* _tmp8_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp9_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp10_ = NULL;
+ PublishingPicasaAlbumCreationTransaction* _tmp11_ = NULL;
+ PublishingPicasaAlbumCreationTransaction* _tmp12_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->publishing_parameters;
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishing_picasa_publishing_parameters_is_to_new_album (_tmp0_);
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_assert (_tmp1_, "publishing_parameters.is_to_new_album()");
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = self->priv->publishing_parameters;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = publishing_picasa_publishing_parameters_get_target_album_name (_tmp2_);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:376: ACTION: creating new album '%s' on remote s" \
+"erver.", _tmp4_);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp4_);
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = _ ("Creating album...");
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_install_static_message_pane (_tmp5_, _tmp6_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp7_, TRUE);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = self->priv->publishing_parameters;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = publishing_picasa_album_creation_transaction_new (_tmp9_, _tmp10_);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = _tmp11_;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp9_);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ creation_trans = _tmp12_;
+#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_picasa_picasa_publisher_on_album_creation_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_picasa_picasa_publisher_on_album_creation_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 2686 "PicasaPublishing.c"
+ {
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2694 "PicasaPublishing.c"
+ goto __catch13_spit_publishing_publishing_error;
+ }
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (creation_trans);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2705 "PicasaPublishing.c"
+ }
+ }
+ goto __finally13;
+ __catch13_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp13_ = NULL;
+ GError* _tmp14_ = NULL;
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ err = _inner_error_;
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _inner_error_ = NULL;
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = err;
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp13_, _tmp14_);
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_error_free0 (err);
+#line 2726 "PicasaPublishing.c"
+ }
+ __finally13:
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (creation_trans);
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2739 "PicasaPublishing.c"
+ }
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (creation_trans);
+#line 2743 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_picasa_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self) {
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_on_upload_status_updated ((PublishingPicasaPicasaPublisher*) self, file_number, fraction_complete);
+#line 2750 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_do_upload (PublishingPicasaPicasaPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ PublishingPicasaPublishingParameters* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ void* _tmp6_ = NULL;
+ GDestroyNotify _tmp7_ = NULL;
+ SpitPublishingProgressCallback _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+ SpitPublishingPublishable** publishables = NULL;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ SpitPublishingPublishable** _tmp12_ = NULL;
+ gint publishables_length1 = 0;
+ gint _publishables_size_ = 0;
+ PublishingPicasaUploader* uploader = NULL;
+ PublishingRESTSupportGoogleSession* _tmp13_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp14_ = NULL;
+ SpitPublishingPublishable** _tmp15_ = NULL;
+ gint _tmp15__length1 = 0;
+ PublishingPicasaPublishingParameters* _tmp16_ = NULL;
+ PublishingPicasaUploader* _tmp17_ = NULL;
+ PublishingPicasaUploader* _tmp18_ = NULL;
+ PublishingPicasaUploader* _tmp19_ = NULL;
+ PublishingPicasaUploader* _tmp20_ = NULL;
+ PublishingPicasaUploader* _tmp21_ = NULL;
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:395: ACTION: uploading media items to remote ser" \
+"ver.");
+#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = self->priv->publishing_parameters;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = publishing_picasa_publishing_parameters_get_major_axis_size_pixels (_tmp2_);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = self->priv->publishing_parameters;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = publishing_picasa_publishing_parameters_get_strip_metadata (_tmp4_);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, _tmp3_, _tmp5_, &_tmp6_, &_tmp7_);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter = _tmp8_;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter_target = _tmp6_;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = _tmp7_;
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp9_) {
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2822 "PicasaPublishing.c"
+ }
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = spit_publishing_plugin_host_get_publishables (_tmp10_, &_tmp11_);
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishables = _tmp12_;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishables_length1 = _tmp11_;
+#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishables_size_ = publishables_length1;
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = _tmp13_;
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = publishables;
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15__length1 = publishables_length1;
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16_ = self->priv->publishing_parameters;
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp17_ = publishing_picasa_uploader_new (_tmp14_, _tmp15_, _tmp15__length1, _tmp16_);
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp18_ = _tmp17_;
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp14_);
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ uploader = _tmp18_;
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp19_ = uploader;
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0);
+#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp20_ = uploader;
+#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0);
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp21_ = uploader;
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_picasa_picasa_publisher_on_upload_status_updated_spit_publishing_progress_callback, self);
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_batch_uploader_unref0 (uploader);
+#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 2868 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_do_show_success_pane (PublishingPicasaPicasaPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self));
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:420: ACTION: showing success pane.");
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_publishing_plugin_host_install_success_pane (_tmp1_);
+#line 2887 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base) {
+ PublishingPicasaPicasaPublisher * self;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher);
+#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:427: ACTION: logging out user.");
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = _tmp0_;
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_google_session_deauthenticate (_tmp1_);
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->refresh_token);
+#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->refresh_token = NULL;
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spit_host_interface_unset_config_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token");
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_do_show_service_welcome_pane (self);
+#line 2918 "PicasaPublishing.c"
+}
+
+
+static gboolean publishing_picasa_picasa_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base) {
+ PublishingPicasaPicasaPublisher * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher);
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp0_;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 2934 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_real_start (PublishingRESTSupportGooglePublisher* base) {
+ PublishingPicasaPicasaPublisher * self;
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher);
+#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:442: PicasaPublisher: start( ) invoked.");
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp0_) {
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 2952 "PicasaPublishing.c"
+ }
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->running = TRUE;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = self->priv->refresh_token;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp1_ == NULL) {
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_do_show_service_welcome_pane (self);
+#line 2962 "PicasaPublishing.c"
+ } else {
+ const gchar* _tmp2_ = NULL;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = self->priv->refresh_token;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_google_publisher_start_oauth_flow (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher), _tmp2_);
+#line 2969 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_picasa_publisher_real_stop (PublishingRESTSupportGooglePublisher* base) {
+ PublishingPicasaPicasaPublisher * self;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher);
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_debug ("PicasaPublishing.vala:456: PicasaPublisher: stop( ) invoked.");
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = _tmp0_;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_session_stop_transactions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->running = FALSE;
+#line 2992 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_class_init (PublishingPicasaPicasaPublisherClass * klass) {
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_picasa_publisher_parent_class = g_type_class_peek_parent (klass);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPicasaPicasaPublisherPrivate));
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->on_login_flow_complete = publishing_picasa_picasa_publisher_real_on_login_flow_complete;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->do_logout = publishing_picasa_picasa_publisher_real_do_logout;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->is_running = publishing_picasa_picasa_publisher_real_is_running;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->start = publishing_picasa_picasa_publisher_real_start;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->stop = publishing_picasa_picasa_publisher_real_stop;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_picasa_picasa_publisher_finalize;
+#line 3013 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_instance_init (PublishingPicasaPicasaPublisher * self) {
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv = PUBLISHING_PICASA_PICASA_PUBLISHER_GET_PRIVATE (self);
+#line 3020 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_picasa_publisher_finalize (GObject* obj) {
+ PublishingPicasaPicasaPublisher * self;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_picasa_publishing_parameters_unref0 (self->priv->publishing_parameters);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->refresh_token);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ G_OBJECT_CLASS (publishing_picasa_picasa_publisher_parent_class)->finalize (obj);
+#line 3042 "PicasaPublishing.c"
+}
+
+
+GType publishing_picasa_picasa_publisher_get_type (void) {
+ static volatile gsize publishing_picasa_picasa_publisher_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_picasa_picasa_publisher_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPicasaPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_picasa_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPicasaPublisher), 0, (GInstanceInitFunc) publishing_picasa_picasa_publisher_instance_init, NULL };
+ GType publishing_picasa_picasa_publisher_type_id;
+ publishing_picasa_picasa_publisher_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, "PublishingPicasaPicasaPublisher", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_picasa_picasa_publisher_type_id__volatile, publishing_picasa_picasa_publisher_type_id);
+ }
+ return publishing_picasa_picasa_publisher_type_id__volatile;
+}
+
+
+PublishingPicasaAlbum* publishing_picasa_album_construct (GType object_type, const gchar* name, const gchar* url) {
+ PublishingPicasaAlbum* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = (PublishingPicasaAlbum*) g_type_create_instance (object_type);
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = name;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->name);
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->name = _tmp1_;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = url;
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->url);
+#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->url = _tmp3_;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self;
+#line 3088 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaAlbum* publishing_picasa_album_new (const gchar* name, const gchar* url) {
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return publishing_picasa_album_construct (PUBLISHING_PICASA_TYPE_ALBUM, name, url);
+#line 3095 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_value_album_init (GValue* value) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 3102 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_value_album_free_value (GValue* value) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_album_unref (value->data[0].v_pointer);
+#line 3111 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_value_album_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_picasa_album_ref (src_value->data[0].v_pointer);
+#line 3121 "PicasaPublishing.c"
+ } else {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 3125 "PicasaPublishing.c"
+ }
+}
+
+
+static gpointer publishing_picasa_value_album_peek_pointer (const GValue* value) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return value->data[0].v_pointer;
+#line 3133 "PicasaPublishing.c"
+}
+
+
+static gchar* publishing_picasa_value_album_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 3140 "PicasaPublishing.c"
+ PublishingPicasaAlbum* object;
+ object = collect_values[0].v_pointer;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 3147 "PicasaPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 3151 "PicasaPublishing.c"
+ }
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = publishing_picasa_album_ref (object);
+#line 3155 "PicasaPublishing.c"
+ } else {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 3159 "PicasaPublishing.c"
+ }
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return NULL;
+#line 3163 "PicasaPublishing.c"
+}
+
+
+static gchar* publishing_picasa_value_album_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingPicasaAlbum** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!object_p) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 3174 "PicasaPublishing.c"
+ }
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *object_p = NULL;
+#line 3180 "PicasaPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 3184 "PicasaPublishing.c"
+ } else {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *object_p = publishing_picasa_album_ref (value->data[0].v_pointer);
+#line 3188 "PicasaPublishing.c"
+ }
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return NULL;
+#line 3192 "PicasaPublishing.c"
+}
+
+
+GParamSpec* publishing_picasa_param_spec_album (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingPicasaParamSpecAlbum* spec;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PICASA_TYPE_ALBUM), NULL);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 3206 "PicasaPublishing.c"
+}
+
+
+gpointer publishing_picasa_value_get_album (const GValue* value) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_ALBUM), NULL);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return value->data[0].v_pointer;
+#line 3215 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_value_set_album (GValue* value, gpointer v_object) {
+ PublishingPicasaAlbum* old;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_ALBUM));
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (v_object) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_ALBUM));
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_album_ref (value->data[0].v_pointer);
+#line 3235 "PicasaPublishing.c"
+ } else {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 3239 "PicasaPublishing.c"
+ }
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (old) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_album_unref (old);
+#line 3245 "PicasaPublishing.c"
+ }
+}
+
+
+void publishing_picasa_value_take_album (GValue* value, gpointer v_object) {
+ PublishingPicasaAlbum* old;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_ALBUM));
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (v_object) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_ALBUM));
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 3264 "PicasaPublishing.c"
+ } else {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 3268 "PicasaPublishing.c"
+ }
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (old) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_album_unref (old);
+#line 3274 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_album_class_init (PublishingPicasaAlbumClass * klass) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_album_parent_class = g_type_class_peek_parent (klass);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingPicasaAlbumClass *) klass)->finalize = publishing_picasa_album_finalize;
+#line 3284 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_album_instance_init (PublishingPicasaAlbum * self) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->ref_count = 1;
+#line 3291 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_album_finalize (PublishingPicasaAlbum* obj) {
+ PublishingPicasaAlbum * self;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbum);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->name);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->url);
+#line 3305 "PicasaPublishing.c"
+}
+
+
+GType publishing_picasa_album_get_type (void) {
+ static volatile gsize publishing_picasa_album_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_picasa_album_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_picasa_value_album_init, publishing_picasa_value_album_free_value, publishing_picasa_value_album_copy_value, publishing_picasa_value_album_peek_pointer, "p", publishing_picasa_value_album_collect_value, "p", publishing_picasa_value_album_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaAlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaAlbum), 0, (GInstanceInitFunc) publishing_picasa_album_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 publishing_picasa_album_type_id;
+ publishing_picasa_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPicasaAlbum", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_picasa_album_type_id__volatile, publishing_picasa_album_type_id);
+ }
+ return publishing_picasa_album_type_id__volatile;
+}
+
+
+gpointer publishing_picasa_album_ref (gpointer instance) {
+ PublishingPicasaAlbum* self;
+ self = instance;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return instance;
+#line 3330 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_album_unref (gpointer instance) {
+ PublishingPicasaAlbum* self;
+ self = instance;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ PUBLISHING_PICASA_ALBUM_GET_CLASS (self)->finalize (self);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 3343 "PicasaPublishing.c"
+ }
+}
+
+
+PublishingPicasaAlbumDirectoryTransaction* publishing_picasa_album_directory_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session) {
+ PublishingPicasaAlbumDirectoryTransaction* self = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL);
+#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = session;
+#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = (PublishingPicasaAlbumDirectoryTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, _tmp0_, PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self;
+#line 3359 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaAlbumDirectoryTransaction* publishing_picasa_album_directory_transaction_new (PublishingRESTSupportGoogleSession* session) {
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return publishing_picasa_album_directory_transaction_construct (PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, session);
+#line 3366 "PicasaPublishing.c"
+}
+
+
+gchar* publishing_picasa_album_directory_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) {
+ gchar* result = NULL;
+ xmlNode* document_root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp0_ = NULL;
+ xmlNode* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ xmlNode* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL);
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = doc;
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishing_rest_support_xml_document_get_root_node (_tmp0_);
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ document_root = _tmp1_;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = document_root;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = _tmp3_->name;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_strcmp0 (_tmp4_, "feed") == 0) {
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = TRUE;
+#line 3394 "PicasaPublishing.c"
+ } else {
+ xmlNode* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = document_root;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = _tmp5_->name;
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = g_strcmp0 (_tmp6_, "entry") == 0;
+#line 3404 "PicasaPublishing.c"
+ }
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp2_) {
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = NULL;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 3412 "PicasaPublishing.c"
+ } else {
+ gchar* _tmp7_ = NULL;
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = g_strdup ("response root node isn't a <feed> or <entry>");
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp7_;
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 3421 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_album_directory_transaction_class_init (PublishingPicasaAlbumDirectoryTransactionClass * klass) {
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_album_directory_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 3429 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_album_directory_transaction_instance_init (PublishingPicasaAlbumDirectoryTransaction * self) {
+}
+
+
+GType publishing_picasa_album_directory_transaction_get_type (void) {
+ static volatile gsize publishing_picasa_album_directory_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_picasa_album_directory_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaAlbumDirectoryTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_album_directory_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaAlbumDirectoryTransaction), 0, (GInstanceInitFunc) publishing_picasa_album_directory_transaction_instance_init, NULL };
+ GType publishing_picasa_album_directory_transaction_type_id;
+ publishing_picasa_album_directory_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingPicasaAlbumDirectoryTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_picasa_album_directory_transaction_type_id__volatile, publishing_picasa_album_directory_transaction_type_id);
+ }
+ return publishing_picasa_album_directory_transaction_type_id__volatile;
+}
+
+
+PublishingPicasaAlbumCreationTransaction* publishing_picasa_album_creation_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session, PublishingPicasaPublishingParameters* parameters) {
+ PublishingPicasaAlbumCreationTransaction* self = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ gchar* post_body = NULL;
+ PublishingPicasaPublishingParameters* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = session;
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = (PublishingPicasaAlbumCreationTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, _tmp0_, PUBLISHING_PICASA_ALBUM_CREATION_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = parameters;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = publishing_picasa_publishing_parameters_is_new_album_public (_tmp2_);
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp3_) {
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = "public";
+#line 3479 "PicasaPublishing.c"
+ } else {
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = "private";
+#line 3483 "PicasaPublishing.c"
+ }
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = parameters;
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = publishing_picasa_publishing_parameters_get_target_album_name (_tmp4_);
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = publishing_rest_support_decimal_entity_encode (_tmp6_);
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = g_strdup_printf (PUBLISHING_PICASA_ALBUM_CREATION_TRANSACTION_ALBUM_ENTRY_TEMPLATE, _tmp8_, _tmp1_);
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ post_body = _tmp10_;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_transaction_set_custom_payload (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), post_body, "application/atom+xml", (gulong) 0);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (post_body);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self;
+#line 3511 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaAlbumCreationTransaction* publishing_picasa_album_creation_transaction_new (PublishingRESTSupportGoogleSession* session, PublishingPicasaPublishingParameters* parameters) {
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return publishing_picasa_album_creation_transaction_construct (PUBLISHING_PICASA_TYPE_ALBUM_CREATION_TRANSACTION, session, parameters);
+#line 3518 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_album_creation_transaction_class_init (PublishingPicasaAlbumCreationTransactionClass * klass) {
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_album_creation_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 3525 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_album_creation_transaction_instance_init (PublishingPicasaAlbumCreationTransaction * self) {
+}
+
+
+GType publishing_picasa_album_creation_transaction_get_type (void) {
+ static volatile gsize publishing_picasa_album_creation_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_picasa_album_creation_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaAlbumCreationTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_album_creation_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaAlbumCreationTransaction), 0, (GInstanceInitFunc) publishing_picasa_album_creation_transaction_instance_init, NULL };
+ GType publishing_picasa_album_creation_transaction_type_id;
+ publishing_picasa_album_creation_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingPicasaAlbumCreationTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_picasa_album_creation_transaction_type_id__volatile, publishing_picasa_album_creation_transaction_type_id);
+ }
+ return publishing_picasa_album_creation_transaction_type_id__volatile;
+}
+
+
+static gpointer _publishing_rest_support_session_ref0 (gpointer self) {
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self ? publishing_rest_support_session_ref (self) : NULL;
+#line 3548 "PicasaPublishing.c"
+}
+
+
+static gpointer _publishing_picasa_publishing_parameters_ref0 (gpointer self) {
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self ? publishing_picasa_publishing_parameters_ref (self) : NULL;
+#line 3555 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaUploadTransaction* publishing_picasa_upload_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session, PublishingPicasaPublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+ PublishingPicasaUploadTransaction* self = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ PublishingRESTSupportGoogleSession* _tmp6_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp7_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp8_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp9_ = NULL;
+ SpitPublishingPublishable* _tmp10_ = NULL;
+ SpitPublishingPublishable* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ SpitPublishingPublishable* _tmp13_ = NULL;
+ SpitPublishingPublisherMediaType _tmp14_ = 0;
+ gchar* _tmp15_ = NULL;
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL);
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = session;
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = parameters;
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = publishing_picasa_publishing_parameters_get_target_album_feed_url (_tmp1_);
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = (PublishingPicasaUploadTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, _tmp0_, _tmp3_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = session;
+#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_assert (_tmp5_, "session.is_authenticated()");
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = session;
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = _publishing_rest_support_session_ref0 (_tmp6_);
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->session = _tmp7_;
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = parameters;
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = _publishing_picasa_publishing_parameters_ref0 (_tmp8_);
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters);
+#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->parameters = _tmp9_;
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = publishable;
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = _g_object_ref0 (_tmp10_);
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->publishable);
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->publishable = _tmp11_;
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = publishable;
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = spit_publishing_publishable_get_media_type (_tmp13_);
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp14_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) {
+#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = "video/mpeg";
+#line 3633 "PicasaPublishing.c"
+ } else {
+#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = "image/jpeg";
+#line 3637 "PicasaPublishing.c"
+ }
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = g_strdup (_tmp12_);
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->mime_type);
+#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->mime_type = _tmp15_;
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self;
+#line 3647 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaUploadTransaction* publishing_picasa_upload_transaction_new (PublishingRESTSupportGoogleSession* session, PublishingPicasaPublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return publishing_picasa_upload_transaction_construct (PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, session, parameters, publishable);
+#line 3654 "PicasaPublishing.c"
+}
+
+
+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 3677 "PicasaPublishing.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 3685 "PicasaPublishing.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 3697 "PicasaPublishing.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 3721 "PicasaPublishing.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 3727 "PicasaPublishing.c"
+ } else {
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = FALSE;
+#line 3731 "PicasaPublishing.c"
+ }
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp0_) {
+#line 3735 "PicasaPublishing.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 3747 "PicasaPublishing.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 3757 "PicasaPublishing.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 3763 "PicasaPublishing.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 3777 "PicasaPublishing.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 3787 "PicasaPublishing.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 3793 "PicasaPublishing.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 3802 "PicasaPublishing.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 3822 "PicasaPublishing.c"
+}
+
+
+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 3839 "PicasaPublishing.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 3849 "PicasaPublishing.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 3859 "PicasaPublishing.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 3865 "PicasaPublishing.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 3876 "PicasaPublishing.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 3888 "PicasaPublishing.c"
+ } else {
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = FALSE;
+#line 3892 "PicasaPublishing.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp5_;
+#line 3896 "PicasaPublishing.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp1_) {
+#line 3900 "PicasaPublishing.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 3923 "PicasaPublishing.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 3932 "PicasaPublishing.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 3945 "PicasaPublishing.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 3951 "PicasaPublishing.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 3961 "PicasaPublishing.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 3973 "PicasaPublishing.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 3977 "PicasaPublishing.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 3983 "PicasaPublishing.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 3994 "PicasaPublishing.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 4009 "PicasaPublishing.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = FALSE;
+#line 4013 "PicasaPublishing.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = _tmp16_;
+#line 4017 "PicasaPublishing.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 4023 "PicasaPublishing.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 4035 "PicasaPublishing.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 4056 "PicasaPublishing.c"
+ } else {
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = 0;
+#line 4060 "PicasaPublishing.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 4066 "PicasaPublishing.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 4073 "PicasaPublishing.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 4081 "PicasaPublishing.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 4119 "PicasaPublishing.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 4128 "PicasaPublishing.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 4144 "PicasaPublishing.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 4150 "PicasaPublishing.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 4164 "PicasaPublishing.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 4184 "PicasaPublishing.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 4199 "PicasaPublishing.c"
+ } else {
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp53_ = "";
+#line 4203 "PicasaPublishing.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 4211 "PicasaPublishing.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 4222 "PicasaPublishing.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 4231 "PicasaPublishing.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 4276 "PicasaPublishing.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 4282 "PicasaPublishing.c"
+}
+
+
+static void _vala_SoupBuffer_free (SoupBuffer* self) {
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_boxed_free (soup_buffer_get_type (), self);
+#line 4289 "PicasaPublishing.c"
+}
+
+
+static void _vala_SoupMultipart_free (SoupMultipart* self) {
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_boxed_free (soup_multipart_get_type (), self);
+#line 4296 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) {
+ PublishingPicasaUploadTransaction * self;
+ SoupMultipart* message_parts = NULL;
+ SoupMultipart* _tmp0_ = NULL;
+ gchar* summary = NULL;
+ gchar* _tmp1_ = NULL;
+ SpitPublishingPublishable* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ gchar** keywords = NULL;
+ SpitPublishingPublishable* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ gchar** _tmp14_ = NULL;
+ gint keywords_length1 = 0;
+ gint _keywords_size_ = 0;
+ gchar* keywords_string = NULL;
+ gchar* _tmp15_ = NULL;
+ gchar** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+ gchar* metadata = NULL;
+ SpitPublishingPublishable* _tmp51_ = NULL;
+ gchar* _tmp52_ = NULL;
+ gchar* _tmp53_ = NULL;
+ gchar* _tmp54_ = NULL;
+ gchar* _tmp55_ = NULL;
+ const gchar* _tmp56_ = NULL;
+ const gchar* _tmp57_ = NULL;
+ gchar* _tmp58_ = NULL;
+ gchar* _tmp59_ = NULL;
+ SoupBuffer* metadata_buffer = NULL;
+ const gchar* _tmp60_ = NULL;
+ guint8* _tmp61_ = NULL;
+ gint _tmp61__length1 = 0;
+ guint8* _tmp62_ = NULL;
+ gint _tmp62__length1 = 0;
+ SoupBuffer* _tmp63_ = NULL;
+ SoupMultipart* _tmp64_ = NULL;
+ SoupBuffer* _tmp65_ = NULL;
+ guint8* photo_data = NULL;
+ GMappedFile* _tmp87_ = NULL;
+ gchar* _tmp88_ = NULL;
+ gint photo_data_length1 = 0;
+ gint _photo_data_size_ = 0;
+ GMappedFile* _tmp89_ = NULL;
+ gsize _tmp90_ = 0UL;
+ gint _tmp91_ = 0;
+ SoupBuffer* bindable_data = NULL;
+ SoupBuffer* _tmp92_ = NULL;
+ SoupMultipart* _tmp93_ = NULL;
+ SpitPublishingPublishable* _tmp94_ = NULL;
+ GFile* _tmp95_ = NULL;
+ GFile* _tmp96_ = NULL;
+ gchar* _tmp97_ = NULL;
+ gchar* _tmp98_ = NULL;
+ const gchar* _tmp99_ = NULL;
+ SoupMessage* outbound_message = NULL;
+ gchar* _tmp100_ = NULL;
+ gchar* _tmp101_ = NULL;
+ SoupMultipart* _tmp102_ = NULL;
+ SoupMessage* _tmp103_ = NULL;
+ SoupMessage* _tmp104_ = NULL;
+ SoupMessageHeaders* _tmp105_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp106_ = NULL;
+ gchar* _tmp107_ = NULL;
+ gchar* _tmp108_ = NULL;
+ gchar* _tmp109_ = NULL;
+ gchar* _tmp110_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransaction);
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = soup_multipart_new ("multipart/related");
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ message_parts = _tmp0_;
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = g_strdup ("");
+#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ summary = _tmp1_;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = self->priv->publishable;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = spit_publishing_publishable_get_publishing_name (_tmp2_);
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = g_strcmp0 (_tmp4_, "") != 0;
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp4_);
+#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp5_) {
+#line 4391 "PicasaPublishing.c"
+ SpitPublishingPublishable* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = self->priv->publishable;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = spit_publishing_publishable_get_publishing_name (_tmp6_);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = publishing_rest_support_decimal_entity_encode (_tmp8_);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = g_strdup_printf ("<atom:summary>%s</atom:summary>", _tmp10_);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (summary);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ summary = _tmp11_;
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp10_);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 4418 "PicasaPublishing.c"
+ }
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = self->priv->publishable;
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = spit_publishing_publishable_get_publishing_keywords (_tmp12_, &_tmp13_);
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords = _tmp14_;
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords_length1 = _tmp13_;
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _keywords_size_ = keywords_length1;
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = g_strdup ("");
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords_string = _tmp15_;
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16_ = keywords;
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16__length1 = keywords_length1;
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp16__length1 > 0) {
+#line 4440 "PicasaPublishing.c"
+ const gchar* _tmp47_ = NULL;
+ gchar* _tmp48_ = NULL;
+ const gchar* _tmp49_ = NULL;
+ gchar* _tmp50_ = NULL;
+ {
+ gint i = 0;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ i = 0;
+#line 4449 "PicasaPublishing.c"
+ {
+ gboolean _tmp17_ = FALSE;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp17_ = TRUE;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ while (TRUE) {
+#line 4456 "PicasaPublishing.c"
+ gint _tmp19_ = 0;
+ gchar** _tmp20_ = NULL;
+ gint _tmp20__length1 = 0;
+ gchar** tmp = NULL;
+ gint tmp_length1 = 0;
+ gint _tmp_size_ = 0;
+ gchar** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+ gint _tmp22_ = 0;
+ const gchar* _tmp23_ = NULL;
+ gboolean _tmp24_ = FALSE;
+ const gchar* _tmp37_ = NULL;
+ gint _tmp38_ = 0;
+ gint _tmp39_ = 0;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp17_) {
+#line 4473 "PicasaPublishing.c"
+ gint _tmp18_ = 0;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp18_ = i;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ i = _tmp18_ + 1;
+#line 4479 "PicasaPublishing.c"
+ }
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp17_ = FALSE;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp19_ = i;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp20_ = keywords;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp20__length1 = keywords_length1;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!(_tmp19_ < _tmp20__length1)) {
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ break;
+#line 4493 "PicasaPublishing.c"
+ }
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp21_ = keywords;
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp21__length1 = keywords_length1;
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp22_ = i;
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp23_ = _tmp21_[_tmp22_];
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp24_ = g_str_has_prefix (_tmp23_, "/");
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp24_) {
+#line 4507 "PicasaPublishing.c"
+ gchar** _tmp25_ = NULL;
+ gint _tmp25__length1 = 0;
+ gint _tmp26_ = 0;
+ const gchar* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ gchar* _tmp29_ = NULL;
+ gchar** _tmp30_ = NULL;
+ gchar** _tmp31_ = NULL;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp25_ = keywords;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp25__length1 = keywords_length1;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp26_ = i;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp27_ = _tmp25_[_tmp26_];
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp28_ = string_substring (_tmp27_, (glong) 1, (glong) -1);
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp29_ = _tmp28_;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp31_ = _tmp30_ = g_strsplit (_tmp29_, "/", 0);
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ tmp = (_vala_array_free (tmp, tmp_length1, (GDestroyNotify) g_free), NULL);
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ tmp = _tmp31_;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ tmp_length1 = _vala_array_length (_tmp30_);
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp_size_ = tmp_length1;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp29_);
+#line 4540 "PicasaPublishing.c"
+ } else {
+ gchar** _tmp32_ = NULL;
+ gint _tmp32__length1 = 0;
+ gint _tmp33_ = 0;
+ const gchar* _tmp34_ = NULL;
+ gchar** _tmp35_ = NULL;
+ gchar** _tmp36_ = NULL;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp32_ = keywords;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp32__length1 = keywords_length1;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp33_ = i;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp34_ = _tmp32_[_tmp33_];
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp36_ = _tmp35_ = g_strsplit (_tmp34_, "/", 0);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ tmp = (_vala_array_free (tmp, tmp_length1, (GDestroyNotify) g_free), NULL);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ tmp = _tmp36_;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ tmp_length1 = _vala_array_length (_tmp35_);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp_size_ = tmp_length1;
+#line 4566 "PicasaPublishing.c"
+ }
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp37_ = keywords_string;
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp38_ = strlen (_tmp37_);
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp39_ = _tmp38_;
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp39_ > 0) {
+#line 4576 "PicasaPublishing.c"
+ const gchar* _tmp40_ = NULL;
+ gchar** _tmp41_ = NULL;
+ gint _tmp41__length1 = 0;
+ gchar* _tmp42_ = NULL;
+ gchar* _tmp43_ = NULL;
+ gchar* _tmp44_ = NULL;
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp40_ = keywords_string;
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp41_ = tmp;
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp41__length1 = tmp_length1;
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp42_ = _vala_g_strjoinv (", ", _tmp41_, _tmp41__length1);
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp43_ = _tmp42_;
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp44_ = g_strjoin (", ", _tmp40_, _tmp43_, NULL);
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (keywords_string);
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords_string = _tmp44_;
+#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp43_);
+#line 4601 "PicasaPublishing.c"
+ } else {
+ gchar** _tmp45_ = NULL;
+ gint _tmp45__length1 = 0;
+ gchar* _tmp46_ = NULL;
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp45_ = tmp;
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp45__length1 = tmp_length1;
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp46_ = _vala_g_strjoinv (", ", _tmp45_, _tmp45__length1);
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (keywords_string);
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords_string = _tmp46_;
+#line 4616 "PicasaPublishing.c"
+ }
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ tmp = (_vala_array_free (tmp, tmp_length1, (GDestroyNotify) g_free), NULL);
+#line 4620 "PicasaPublishing.c"
+ }
+ }
+ }
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp47_ = keywords_string;
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp48_ = publishing_rest_support_decimal_entity_encode (_tmp47_);
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (keywords_string);
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords_string = _tmp48_;
+#line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp49_ = keywords_string;
+#line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp50_ = g_strdup_printf ("<mrss:group><mrss:keywords>%s</mrss:keywords></mrss:group>", _tmp49_);
+#line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (keywords_string);
+#line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords_string = _tmp50_;
+#line 4640 "PicasaPublishing.c"
+ }
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp51_ = self->priv->publishable;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp52_ = spit_publishing_publishable_get_param_string (_tmp51_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME);
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp53_ = _tmp52_;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp54_ = publishing_rest_support_decimal_entity_encode (_tmp53_);
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp55_ = _tmp54_;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp56_ = summary;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp57_ = keywords_string;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp58_ = g_strdup_printf (PUBLISHING_PICASA_UPLOAD_TRANSACTION_METADATA_TEMPLATE, _tmp55_, _tmp56_, _tmp57_);
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp59_ = _tmp58_;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp55_);
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp53_);
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ metadata = _tmp59_;
+#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp60_ = metadata;
+#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp61_ = string_get_data (_tmp60_, &_tmp61__length1);
+#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp62_ = _tmp61_;
+#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp62__length1 = _tmp61__length1;
+#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp63_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp62_, _tmp62__length1);
+#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ metadata_buffer = _tmp63_;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp64_ = message_parts;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp65_ = metadata_buffer;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ soup_multipart_append_form_file (_tmp64_, "", "", "application/atom+xml", _tmp65_);
+#line 4684 "PicasaPublishing.c"
+ {
+ GMappedFile* _tmp66_ = NULL;
+ SpitPublishingPublishable* _tmp67_ = NULL;
+ GFile* _tmp68_ = NULL;
+ GFile* _tmp69_ = NULL;
+ gchar* _tmp70_ = NULL;
+ gchar* _tmp71_ = NULL;
+ GMappedFile* _tmp72_ = NULL;
+ GMappedFile* _tmp73_ = NULL;
+ GMappedFile* _tmp74_ = NULL;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp67_ = self->priv->publishable;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp68_ = spit_publishing_publishable_get_serialized_file (_tmp67_);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp69_ = _tmp68_;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp70_ = g_file_get_path (_tmp69_);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp71_ = _tmp70_;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp72_ = g_mapped_file_new (_tmp71_, FALSE, &_inner_error_);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp73_ = _tmp72_;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp71_);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (_tmp69_);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp66_ = _tmp73_;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_inner_error_->domain == G_FILE_ERROR) {
+#line 4719 "PicasaPublishing.c"
+ goto __catch14_g_file_error;
+ }
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (metadata);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (keywords_string);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (summary);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 4740 "PicasaPublishing.c"
+ }
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp74_ = _tmp66_;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp66_ = NULL;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_mapped_file_unref0 (self->priv->mapped_file);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->mapped_file = _tmp74_;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_mapped_file_unref0 (_tmp66_);
+#line 4752 "PicasaPublishing.c"
+ }
+ goto __finally14;
+ __catch14_g_file_error:
+ {
+ GError* e = NULL;
+ gchar* msg = NULL;
+ SpitPublishingPublishable* _tmp75_ = NULL;
+ GFile* _tmp76_ = NULL;
+ GFile* _tmp77_ = NULL;
+ gchar* _tmp78_ = NULL;
+ gchar* _tmp79_ = NULL;
+ GError* _tmp80_ = NULL;
+ const gchar* _tmp81_ = NULL;
+ gchar* _tmp82_ = NULL;
+ gchar* _tmp83_ = NULL;
+ const gchar* _tmp84_ = NULL;
+ const gchar* _tmp85_ = NULL;
+ GError* _tmp86_ = NULL;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ e = _inner_error_;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _inner_error_ = NULL;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp75_ = self->priv->publishable;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp76_ = spit_publishing_publishable_get_serialized_file (_tmp75_);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp77_ = _tmp76_;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp78_ = g_file_get_path (_tmp77_);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp79_ = _tmp78_;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp80_ = e;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp81_ = _tmp80_->message;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp82_ = g_strdup_printf ("Picasa: couldn't read data from %s: %s", _tmp79_, _tmp81_);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp83_ = _tmp82_;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp79_);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (_tmp77_);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ msg = _tmp83_;
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp84_ = msg;
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_warning ("PicasaPublishing.vala:574: %s", _tmp84_);
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp85_ = msg;
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp86_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp85_);
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _inner_error_ = _tmp86_;
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (msg);
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_error_free0 (e);
+#line 4813 "PicasaPublishing.c"
+ goto __finally14;
+ }
+ __finally14:
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (metadata);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (keywords_string);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (summary);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 4837 "PicasaPublishing.c"
+ } else {
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (metadata);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (keywords_string);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (summary);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 4857 "PicasaPublishing.c"
+ }
+ }
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp87_ = self->priv->mapped_file;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp88_ = g_mapped_file_get_contents (_tmp87_);
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ photo_data = (guint8*) _tmp88_;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ photo_data_length1 = -1;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _photo_data_size_ = photo_data_length1;
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp89_ = self->priv->mapped_file;
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp90_ = g_mapped_file_get_length (_tmp89_);
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ photo_data_length1 = (gint) _tmp90_;
+#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp91_ = photo_data_length1;
+#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp92_ = soup_buffer_new (SOUP_MEMORY_TEMPORARY, photo_data, photo_data_length1);
+#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ bindable_data = _tmp92_;
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp93_ = message_parts;
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp94_ = self->priv->publishable;
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp95_ = spit_publishing_publishable_get_serialized_file (_tmp94_);
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp96_ = _tmp95_;
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp97_ = g_file_get_path (_tmp96_);
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp98_ = _tmp97_;
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp99_ = self->priv->mime_type;
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ soup_multipart_append_form_file (_tmp93_, "", _tmp98_, _tmp99_, bindable_data);
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp98_);
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (_tmp96_);
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp100_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp101_ = _tmp100_;
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp102_ = message_parts;
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp103_ = soup_form_request_new_from_multipart (_tmp101_, _tmp102_);
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp104_ = _tmp103_;
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp101_);
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ outbound_message = _tmp104_;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp105_ = outbound_message->request_headers;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp106_ = self->priv->session;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp107_ = publishing_rest_support_google_session_get_access_token (_tmp106_);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp108_ = _tmp107_;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp109_ = g_strconcat ("Bearer ", _tmp108_, NULL);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp110_ = _tmp109_;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ soup_message_headers_append (_tmp105_, "Authorization", _tmp110_);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp110_);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp108_);
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), outbound_message);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_rest_support_transaction_send (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (outbound_message);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupBuffer_free0 (bindable_data);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (metadata);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (keywords_string);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (summary);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 4964 "PicasaPublishing.c"
+ } else {
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (outbound_message);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupBuffer_free0 (bindable_data);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (metadata);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (keywords_string);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (summary);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return;
+#line 4988 "PicasaPublishing.c"
+ }
+ }
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (outbound_message);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupBuffer_free0 (bindable_data);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (metadata);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (keywords_string);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (summary);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 5007 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_upload_transaction_class_init (PublishingPicasaUploadTransactionClass * klass) {
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_upload_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_picasa_upload_transaction_finalize;
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPicasaUploadTransactionPrivate));
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->execute = publishing_picasa_upload_transaction_real_execute;
+#line 5020 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_upload_transaction_instance_init (PublishingPicasaUploadTransaction * self) {
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv = PUBLISHING_PICASA_UPLOAD_TRANSACTION_GET_PRIVATE (self);
+#line 5027 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_upload_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingPicasaUploadTransaction * self;
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransaction);
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters);
+#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->mime_type);
+#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->publishable);
+#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_mapped_file_unref0 (self->priv->mapped_file);
+#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_picasa_upload_transaction_parent_class)->finalize (obj);
+#line 5047 "PicasaPublishing.c"
+}
+
+
+GType publishing_picasa_upload_transaction_get_type (void) {
+ static volatile gsize publishing_picasa_upload_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_picasa_upload_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaUploadTransaction), 0, (GInstanceInitFunc) publishing_picasa_upload_transaction_instance_init, NULL };
+ GType publishing_picasa_upload_transaction_type_id;
+ publishing_picasa_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingPicasaUploadTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_picasa_upload_transaction_type_id__volatile, publishing_picasa_upload_transaction_type_id);
+ }
+ return publishing_picasa_upload_transaction_type_id__volatile;
+}
+
+
+static gpointer _publishing_picasa_publishing_options_pane_size_description_ref0 (gpointer self) {
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self ? publishing_picasa_publishing_options_pane_size_description_ref (self) : NULL;
+#line 5066 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_on_use_existing_radio_clicked ((PublishingPicasaPublishingOptionsPane*) self);
+#line 5073 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_on_create_new_radio_clicked ((PublishingPicasaPublishingOptionsPane*) self);
+#line 5080 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_on_new_album_entry_changed ((PublishingPicasaPublishingOptionsPane*) self);
+#line 5087 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_on_logout_clicked ((PublishingPicasaPublishingOptionsPane*) self);
+#line 5094 "PicasaPublishing.c"
+}
+
+
+static void _publishing_picasa_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_on_publish_clicked ((PublishingPicasaPublishingOptionsPane*) self);
+#line 5101 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaPublishingOptionsPane* publishing_picasa_publishing_options_pane_construct (GType object_type, GtkBuilder* builder, PublishingPicasaPublishingParameters* parameters) {
+ PublishingPicasaPublishingOptionsPane * self = NULL;
+ gint _tmp0_ = 0;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp1_ = NULL;
+ GtkBuilder* _tmp2_ = NULL;
+ GtkBuilder* _tmp3_ = NULL;
+ GtkBuilder* _tmp4_ = NULL;
+ GtkBuilder* _tmp5_ = NULL;
+ GSList* _tmp6_ = NULL;
+ GSList* _tmp7_ = NULL;
+ guint _tmp8_ = 0U;
+ PublishingPicasaPublishingParameters* _tmp9_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp10_ = NULL;
+ GtkBuilder* _tmp11_ = NULL;
+ GObject* _tmp12_ = NULL;
+ GtkBox* _tmp13_ = NULL;
+ GtkBuilder* _tmp14_ = NULL;
+ GObject* _tmp15_ = NULL;
+ GtkLabel* _tmp16_ = NULL;
+ GtkBuilder* _tmp17_ = NULL;
+ GObject* _tmp18_ = NULL;
+ GtkLabel* _tmp19_ = NULL;
+ GtkBuilder* _tmp20_ = NULL;
+ GObject* _tmp21_ = NULL;
+ GtkRadioButton* _tmp22_ = NULL;
+ GtkBuilder* _tmp23_ = NULL;
+ GObject* _tmp24_ = NULL;
+ GtkComboBoxText* _tmp25_ = NULL;
+ GtkBuilder* _tmp26_ = NULL;
+ GObject* _tmp27_ = NULL;
+ GtkRadioButton* _tmp28_ = NULL;
+ GtkBuilder* _tmp29_ = NULL;
+ GObject* _tmp30_ = NULL;
+ GtkEntry* _tmp31_ = NULL;
+ GtkBuilder* _tmp32_ = NULL;
+ GObject* _tmp33_ = NULL;
+ GtkCheckButton* _tmp34_ = NULL;
+ GtkBuilder* _tmp35_ = NULL;
+ GObject* _tmp36_ = NULL;
+ GtkComboBoxText* _tmp37_ = NULL;
+ GtkBuilder* _tmp38_ = NULL;
+ GObject* _tmp39_ = NULL;
+ GtkCheckButton* _tmp40_ = NULL;
+ GtkBuilder* _tmp41_ = NULL;
+ GObject* _tmp42_ = NULL;
+ GtkButton* _tmp43_ = NULL;
+ GtkBuilder* _tmp44_ = NULL;
+ GObject* _tmp45_ = NULL;
+ GtkButton* _tmp46_ = NULL;
+ GtkLabel* _tmp47_ = NULL;
+ const gchar* _tmp48_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp49_ = NULL;
+ gchar* _tmp50_ = NULL;
+ gchar* _tmp51_ = NULL;
+ gchar* _tmp52_ = NULL;
+ gchar* _tmp53_ = NULL;
+ GtkCheckButton* _tmp54_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp55_ = NULL;
+ gboolean _tmp56_ = FALSE;
+ PublishingPicasaPublishingParameters* _tmp57_ = NULL;
+ SpitPublishingPublisherMediaType _tmp58_ = 0;
+ GtkRadioButton* _tmp75_ = NULL;
+ GtkRadioButton* _tmp76_ = NULL;
+ GtkEntry* _tmp77_ = NULL;
+ GtkButton* _tmp78_ = NULL;
+ GtkButton* _tmp79_ = NULL;
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL);
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = (PublishingPicasaPublishingOptionsPane*) g_object_new (object_type, NULL);
+#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishing_picasa_publishing_options_pane_create_size_descriptions (self, &_tmp0_);
+#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->size_descriptions = (_vala_array_free (self->priv->size_descriptions, self->priv->size_descriptions_length1, (GDestroyNotify) publishing_picasa_publishing_options_pane_size_description_unref), NULL);
+#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->size_descriptions = _tmp1_;
+#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->size_descriptions_length1 = _tmp0_;
+#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->_size_descriptions_size_ = self->priv->size_descriptions_length1;
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = builder;
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->builder = _tmp3_;
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = builder;
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_assert (_tmp4_ != NULL, "builder != null");
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = builder;
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = gtk_builder_get_objects (_tmp5_);
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = g_slist_length (_tmp7_);
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_assert (_tmp8_ > ((guint) 0), "builder.get_objects().length() > 0");
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_slist_free0 (_tmp7_);
+#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = parameters;
+#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = _publishing_picasa_publishing_parameters_ref0 (_tmp9_);
+#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters);
+#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->parameters = _tmp10_;
+#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = builder;
+#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = gtk_builder_get_object (_tmp11_, "picasa_pane_widget");
+#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_box_get_type (), GtkBox));
+#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->pane_widget = _tmp13_;
+#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = builder;
+#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = gtk_builder_get_object (_tmp14_, "login_identity_label");
+#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_label_get_type (), GtkLabel));
+#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->login_identity_label);
+#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->login_identity_label = _tmp16_;
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp17_ = builder;
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp18_ = gtk_builder_get_object (_tmp17_, "publish_to_label");
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_label_get_type (), GtkLabel));
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->publish_to_label);
+#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->publish_to_label = _tmp19_;
+#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp20_ = builder;
+#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp21_ = gtk_builder_get_object (_tmp20_, "use_existing_radio");
+#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_radio_button_get_type (), GtkRadioButton));
+#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->use_existing_radio);
+#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->use_existing_radio = _tmp22_;
+#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp23_ = builder;
+#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp24_ = gtk_builder_get_object (_tmp23_, "existing_albums_combo");
+#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_combo_box_text_get_type (), GtkComboBoxText));
+#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->existing_albums_combo);
+#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->existing_albums_combo = _tmp25_;
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp26_ = builder;
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp27_ = gtk_builder_get_object (_tmp26_, "create_new_radio");
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_radio_button_get_type (), GtkRadioButton));
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->create_new_radio);
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->create_new_radio = _tmp28_;
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp29_ = builder;
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp30_ = gtk_builder_get_object (_tmp29_, "new_album_entry");
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp31_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_entry_get_type (), GtkEntry));
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->new_album_entry);
+#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->new_album_entry = _tmp31_;
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp32_ = builder;
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp33_ = gtk_builder_get_object (_tmp32_, "public_check");
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp34_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_check_button_get_type (), GtkCheckButton));
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->public_check);
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->public_check = _tmp34_;
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp35_ = builder;
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp36_ = gtk_builder_get_object (_tmp35_, "size_combo");
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_combo_box_text_get_type (), GtkComboBoxText));
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->size_combo);
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->size_combo = _tmp37_;
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp38_ = self->priv->builder;
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp39_ = gtk_builder_get_object (_tmp38_, "strip_metadata_check");
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp40_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_check_button_get_type (), GtkCheckButton));
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->strip_metadata_check);
+#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->strip_metadata_check = _tmp40_;
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp41_ = builder;
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp42_ = gtk_builder_get_object (_tmp41_, "publish_button");
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp43_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_button_get_type (), GtkButton));
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->publish_button = _tmp43_;
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp44_ = builder;
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp45_ = gtk_builder_get_object (_tmp44_, "logout_button");
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp46_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_button_get_type (), GtkButton));
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->logout_button = _tmp46_;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp47_ = self->priv->login_identity_label;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp48_ = _ ("You are logged into Picasa Web Albums as %s.");
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp49_ = parameters;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp50_ = publishing_picasa_publishing_parameters_get_user_name (_tmp49_);
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp51_ = _tmp50_;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp52_ = g_strdup_printf (_tmp48_, _tmp51_);
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp53_ = _tmp52_;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_label_set_label (_tmp47_, _tmp53_);
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp53_);
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp51_);
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp54_ = self->priv->strip_metadata_check;
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp55_ = parameters;
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp56_ = publishing_picasa_publishing_parameters_get_strip_metadata (_tmp55_);
+#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp56_);
+#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp57_ = parameters;
+#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp58_ = publishing_picasa_publishing_parameters_get_media_type (_tmp57_);
+#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if ((_tmp58_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) == 0) {
+#line 5373 "PicasaPublishing.c"
+ GtkLabel* _tmp59_ = NULL;
+ const gchar* _tmp60_ = NULL;
+ GtkComboBoxText* _tmp61_ = NULL;
+ GtkComboBoxText* _tmp62_ = NULL;
+#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp59_ = self->priv->publish_to_label;
+#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp60_ = _ ("Videos will appear in:");
+#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_label_set_label (_tmp59_, _tmp60_);
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp61_ = self->priv->size_combo;
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp62_ = self->priv->size_combo;
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 5392 "PicasaPublishing.c"
+ } else {
+ GtkLabel* _tmp63_ = NULL;
+ const gchar* _tmp64_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp65_ = NULL;
+ gint _tmp65__length1 = 0;
+ GtkComboBoxText* _tmp70_ = NULL;
+ GtkComboBoxText* _tmp71_ = NULL;
+ GtkComboBoxText* _tmp72_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp73_ = NULL;
+ gint _tmp74_ = 0;
+#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp63_ = self->priv->publish_to_label;
+#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp64_ = _ ("Photos will appear in:");
+#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_label_set_label (_tmp63_, _tmp64_);
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp65_ = self->priv->size_descriptions;
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp65__length1 = self->priv->size_descriptions_length1;
+#line 5413 "PicasaPublishing.c"
+ {
+ PublishingPicasaPublishingOptionsPaneSizeDescription** desc_collection = NULL;
+ gint desc_collection_length1 = 0;
+ gint _desc_collection_size_ = 0;
+ gint desc_it = 0;
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ desc_collection = _tmp65_;
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ desc_collection_length1 = _tmp65__length1;
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ for (desc_it = 0; desc_it < _tmp65__length1; desc_it = desc_it + 1) {
+#line 5425 "PicasaPublishing.c"
+ PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp66_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription* desc = NULL;
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp66_ = _publishing_picasa_publishing_options_pane_size_description_ref0 (desc_collection[desc_it]);
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ desc = _tmp66_;
+#line 5432 "PicasaPublishing.c"
+ {
+ GtkComboBoxText* _tmp67_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp68_ = NULL;
+ const gchar* _tmp69_ = NULL;
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp67_ = self->priv->size_combo;
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp68_ = desc;
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp69_ = _tmp68_->name;
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp67_, _tmp69_);
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_picasa_publishing_options_pane_size_description_unref0 (desc);
+#line 5447 "PicasaPublishing.c"
+ }
+ }
+ }
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp70_ = self->priv->size_combo;
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp71_ = self->priv->size_combo;
+#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp72_ = self->priv->size_combo;
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp73_ = parameters;
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp74_ = publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (_tmp73_);
+#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_combo_box_get_type (), GtkComboBox), _tmp74_);
+#line 5467 "PicasaPublishing.c"
+ }
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp75_ = self->priv->use_existing_radio;
+#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_picasa_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked, self, 0);
+#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp76_ = self->priv->create_new_radio;
+#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_picasa_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked, self, 0);
+#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp77_ = self->priv->new_album_entry;
+#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_picasa_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed, self, 0);
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp78_ = self->priv->logout_button;
+#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (_tmp78_, "clicked", (GCallback) _publishing_picasa_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0);
+#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp79_ = self->priv->publish_button;
+#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_connect_object (_tmp79_, "clicked", (GCallback) _publishing_picasa_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0);
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self;
+#line 5491 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaPublishingOptionsPane* publishing_picasa_publishing_options_pane_new (GtkBuilder* builder, PublishingPicasaPublishingParameters* parameters) {
+#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return publishing_picasa_publishing_options_pane_construct (PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, builder, parameters);
+#line 5498 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_on_publish_clicked (PublishingPicasaPublishingOptionsPane* self) {
+ gint _tmp0_ = 0;
+ GtkComboBoxText* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gint size_combo_last_active = 0;
+ PublishingPicasaPublishingParameters* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ PublishingPicasaPublishingParameters* _tmp7_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ gint _tmp9_ = 0;
+ PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ PublishingPicasaPublishingParameters* _tmp12_ = NULL;
+ GtkCheckButton* _tmp13_ = NULL;
+ gboolean _tmp14_ = FALSE;
+ PublishingPicasaAlbum** albums = NULL;
+ PublishingPicasaPublishingParameters* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+ PublishingPicasaAlbum** _tmp17_ = NULL;
+ gint albums_length1 = 0;
+ gint _albums_size_ = 0;
+ GtkRadioButton* _tmp18_ = NULL;
+ gboolean _tmp19_ = FALSE;
+#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = self->priv->size_combo;
+#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
+#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp2_ >= 0) {
+#line 5534 "PicasaPublishing.c"
+ GtkComboBoxText* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = self->priv->size_combo;
+#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox));
+#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = _tmp4_;
+#line 5543 "PicasaPublishing.c"
+ } else {
+#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = 0;
+#line 5547 "PicasaPublishing.c"
+ }
+#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ size_combo_last_active = _tmp0_;
+#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = self->priv->parameters;
+#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = size_combo_last_active;
+#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (_tmp5_, _tmp6_);
+#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = self->priv->parameters;
+#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = self->priv->size_descriptions;
+#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8__length1 = self->priv->size_descriptions_length1;
+#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = size_combo_last_active;
+#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = _tmp8_[_tmp9_];
+#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = _tmp10_->major_axis_pixels;
+#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_major_axis_size_pixels (_tmp7_, _tmp11_);
+#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = self->priv->parameters;
+#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = self->priv->strip_metadata_check;
+#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_strip_metadata (_tmp12_, _tmp14_);
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = self->priv->parameters;
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp17_ = publishing_picasa_publishing_parameters_get_albums (_tmp15_, &_tmp16_);
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ albums = _tmp17_;
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ albums_length1 = _tmp16_;
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _albums_size_ = albums_length1;
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp18_ = self->priv->create_new_radio;
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp19_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp19_) {
+#line 5595 "PicasaPublishing.c"
+ PublishingPicasaPublishingParameters* _tmp20_ = NULL;
+ GtkEntry* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp23_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp24_ = NULL;
+ GtkCheckButton* _tmp25_ = NULL;
+ gboolean _tmp26_ = FALSE;
+#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp20_ = self->priv->parameters;
+#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp21_ = self->priv->new_album_entry;
+#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp22_ = gtk_entry_get_text (_tmp21_);
+#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_target_album_name (_tmp20_, _tmp22_);
+#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp23_ = self->priv->parameters;
+#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_is_to_new_album (_tmp23_, TRUE);
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp24_ = self->priv->parameters;
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp25_ = self->priv->public_check;
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp26_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_is_new_album_public (_tmp24_, _tmp26_);
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_emit_by_name (self, "publish");
+#line 5625 "PicasaPublishing.c"
+ } else {
+ PublishingPicasaPublishingParameters* _tmp27_ = NULL;
+ PublishingPicasaAlbum** _tmp28_ = NULL;
+ gint _tmp28__length1 = 0;
+ GtkComboBoxText* _tmp29_ = NULL;
+ gint _tmp30_ = 0;
+ PublishingPicasaAlbum* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp33_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp34_ = NULL;
+ PublishingPicasaAlbum** _tmp35_ = NULL;
+ gint _tmp35__length1 = 0;
+ GtkComboBoxText* _tmp36_ = NULL;
+ gint _tmp37_ = 0;
+ PublishingPicasaAlbum* _tmp38_ = NULL;
+ const gchar* _tmp39_ = NULL;
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp27_ = self->priv->parameters;
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp28_ = albums;
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp28__length1 = albums_length1;
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp29_ = self->priv->existing_albums_combo;
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp30_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_combo_box_get_type (), GtkComboBox));
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp31_ = _tmp28_[_tmp30_];
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp32_ = _tmp31_->name;
+#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_target_album_name (_tmp27_, _tmp32_);
+#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp33_ = self->priv->parameters;
+#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_is_to_new_album (_tmp33_, FALSE);
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp34_ = self->priv->parameters;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp35_ = albums;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp35__length1 = albums_length1;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp36_ = self->priv->existing_albums_combo;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp37_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_combo_box_get_type (), GtkComboBox));
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp38_ = _tmp35_[_tmp37_];
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp39_ = _tmp38_->url;
+#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_set_target_album_entry_url (_tmp34_, _tmp39_);
+#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_emit_by_name (self, "publish");
+#line 5680 "PicasaPublishing.c"
+ }
+#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 5684 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_on_use_existing_radio_clicked (PublishingPicasaPublishingOptionsPane* self) {
+ GtkComboBoxText* _tmp0_ = NULL;
+ GtkEntry* _tmp1_ = NULL;
+ GtkComboBoxText* _tmp2_ = NULL;
+ GtkCheckButton* _tmp3_ = NULL;
+#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->existing_albums_combo;
+#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = self->priv->new_album_entry;
+#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = self->priv->existing_albums_combo;
+#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
+#line 717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = self->priv->public_check;
+#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 5713 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_on_create_new_radio_clicked (PublishingPicasaPublishingOptionsPane* self) {
+ GtkEntry* _tmp0_ = NULL;
+ GtkComboBoxText* _tmp1_ = NULL;
+ GtkEntry* _tmp2_ = NULL;
+ GtkCheckButton* _tmp3_ = NULL;
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->new_album_entry;
+#line 722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = self->priv->existing_albums_combo;
+#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = self->priv->new_album_entry;
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = self->priv->public_check;
+#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 5742 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_on_logout_clicked (PublishingPicasaPublishingOptionsPane* self) {
+#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 5751 "PicasaPublishing.c"
+}
+
+
+static gchar* string_strip (const gchar* self) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strdup (self);
+#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp0_;
+#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _result_;
+#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_strstrip (_tmp1_);
+#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _result_;
+#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 5774 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_update_publish_button_sensitivity (PublishingPicasaPublishingOptionsPane* self) {
+ gchar* album_name = NULL;
+ GtkEntry* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ GtkButton* _tmp10_ = NULL;
+#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->new_album_entry;
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = gtk_entry_get_text (_tmp0_);
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ album_name = _tmp2_;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = album_name;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = string_strip (_tmp4_);
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = g_strcmp0 (_tmp6_, "") == 0;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp7_) {
+#line 5811 "PicasaPublishing.c"
+ GtkRadioButton* _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = self->priv->create_new_radio;
+#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = _tmp9_;
+#line 5820 "PicasaPublishing.c"
+ } else {
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = FALSE;
+#line 5824 "PicasaPublishing.c"
+ }
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = self->priv->publish_button;
+#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), !_tmp3_);
+#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (album_name);
+#line 5832 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_on_new_album_entry_changed (PublishingPicasaPublishingOptionsPane* self) {
+#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 5841 "PicasaPublishing.c"
+}
+
+
+static void _vala_array_add13 (PublishingPicasaPublishingOptionsPaneSizeDescription*** array, int* length, int* size, PublishingPicasaPublishingOptionsPaneSizeDescription* value) {
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if ((*length) == (*size)) {
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1);
+#line 5852 "PicasaPublishing.c"
+ }
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[*length] = NULL;
+#line 5858 "PicasaPublishing.c"
+}
+
+
+static void _vala_array_add14 (PublishingPicasaPublishingOptionsPaneSizeDescription*** array, int* length, int* size, PublishingPicasaPublishingOptionsPaneSizeDescription* value) {
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if ((*length) == (*size)) {
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1);
+#line 5869 "PicasaPublishing.c"
+ }
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[*length] = NULL;
+#line 5875 "PicasaPublishing.c"
+}
+
+
+static void _vala_array_add15 (PublishingPicasaPublishingOptionsPaneSizeDescription*** array, int* length, int* size, PublishingPicasaPublishingOptionsPaneSizeDescription* value) {
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if ((*length) == (*size)) {
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1);
+#line 5886 "PicasaPublishing.c"
+ }
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[*length] = NULL;
+#line 5892 "PicasaPublishing.c"
+}
+
+
+static void _vala_array_add16 (PublishingPicasaPublishingOptionsPaneSizeDescription*** array, int* length, int* size, PublishingPicasaPublishingOptionsPaneSizeDescription* value) {
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if ((*length) == (*size)) {
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1);
+#line 5903 "PicasaPublishing.c"
+ }
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[*length] = NULL;
+#line 5909 "PicasaPublishing.c"
+}
+
+
+static void _vala_array_add17 (PublishingPicasaPublishingOptionsPaneSizeDescription*** array, int* length, int* size, PublishingPicasaPublishingOptionsPaneSizeDescription* value) {
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if ((*length) == (*size)) {
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1);
+#line 5920 "PicasaPublishing.c"
+ }
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ (*array)[*length] = NULL;
+#line 5926 "PicasaPublishing.c"
+}
+
+
+static PublishingPicasaPublishingOptionsPaneSizeDescription** publishing_picasa_publishing_options_pane_create_size_descriptions (PublishingPicasaPublishingOptionsPane* self, int* result_length1) {
+ PublishingPicasaPublishingOptionsPaneSizeDescription** result = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _result_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ const gchar* _tmp2_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp3_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp5_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp6_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ const gchar* _tmp8_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp9_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+ const gchar* _tmp11_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp12_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ const gchar* _tmp14_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp15_ = NULL;
+ PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = g_new0 (PublishingPicasaPublishingOptionsPaneSizeDescription*, 0 + 1);
+#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _result_ = _tmp0_;
+#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _result__length1 = 0;
+#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ __result__size_ = _result__length1;
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = _result_;
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1__length1 = _result__length1;
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = _ ("Small (640 x 480 pixels)");
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = publishing_picasa_publishing_options_pane_size_description_new (_tmp2_, 640);
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_array_add13 (&_result_, &_result__length1, &__result__size_, _tmp3_);
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = _result_;
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4__length1 = _result__length1;
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = _ ("Medium (1024 x 768 pixels)");
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = publishing_picasa_publishing_options_pane_size_description_new (_tmp5_, 1024);
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_array_add14 (&_result_, &_result__length1, &__result__size_, _tmp6_);
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = _result_;
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7__length1 = _result__length1;
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = _ ("Recommended (1600 x 1200 pixels)");
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = publishing_picasa_publishing_options_pane_size_description_new (_tmp8_, 1600);
+#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_array_add15 (&_result_, &_result__length1, &__result__size_, _tmp9_);
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = _result_;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10__length1 = _result__length1;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = _ ("Google+ (2048 x 1536 pixels)");
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = publishing_picasa_publishing_options_pane_size_description_new (_tmp11_, 2048);
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_array_add16 (&_result_, &_result__length1, &__result__size_, _tmp12_);
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = _result_;
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13__length1 = _result__length1;
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = _ ("Original Size");
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = publishing_picasa_publishing_options_pane_size_description_new (_tmp14_, PUBLISHING_PICASA_PUBLISHING_PARAMETERS_ORIGINAL_SIZE);
+#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _vala_array_add17 (&_result_, &_result__length1, &__result__size_, _tmp15_);
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16_ = _result_;
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16__length1 = _result__length1;
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (result_length1) {
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *result_length1 = _tmp16__length1;
+#line 6026 "PicasaPublishing.c"
+ }
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp16_;
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 6032 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_options_pane_installed (PublishingPicasaPublishingOptionsPane* self) {
+ gint default_album_id = 0;
+ gchar* last_album = NULL;
+ PublishingPicasaPublishingParameters* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ PublishingPicasaAlbum** albums = NULL;
+ PublishingPicasaPublishingParameters* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ PublishingPicasaAlbum** _tmp4_ = NULL;
+ gint albums_length1 = 0;
+ gint _albums_size_ = 0;
+ PublishingPicasaAlbum** _tmp27_ = NULL;
+ gint _tmp27__length1 = 0;
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 756 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ default_album_id = -1;
+#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->parameters;
+#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishing_picasa_publishing_parameters_get_target_album_name (_tmp0_);
+#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ last_album = _tmp1_;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = self->priv->parameters;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = publishing_picasa_publishing_parameters_get_albums (_tmp2_, &_tmp3_);
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ albums = _tmp4_;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ albums_length1 = _tmp3_;
+#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _albums_size_ = albums_length1;
+#line 6069 "PicasaPublishing.c"
+ {
+ gint i = 0;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ i = 0;
+#line 6074 "PicasaPublishing.c"
+ {
+ gboolean _tmp5_ = FALSE;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = TRUE;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ while (TRUE) {
+#line 6081 "PicasaPublishing.c"
+ gint _tmp7_ = 0;
+ PublishingPicasaAlbum** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GtkComboBoxText* _tmp9_ = NULL;
+ PublishingPicasaAlbum** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+ gint _tmp11_ = 0;
+ PublishingPicasaAlbum* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ gboolean _tmp14_ = FALSE;
+ PublishingPicasaAlbum** _tmp15_ = NULL;
+ gint _tmp15__length1 = 0;
+ gint _tmp16_ = 0;
+ PublishingPicasaAlbum* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!_tmp5_) {
+#line 6100 "PicasaPublishing.c"
+ gint _tmp6_ = 0;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = i;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ i = _tmp6_ + 1;
+#line 6106 "PicasaPublishing.c"
+ }
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = FALSE;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp7_ = i;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8_ = albums;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp8__length1 = albums_length1;
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!(_tmp7_ < _tmp8__length1)) {
+#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ break;
+#line 6120 "PicasaPublishing.c"
+ }
+#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp9_ = self->priv->existing_albums_combo;
+#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10_ = albums;
+#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp10__length1 = albums_length1;
+#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp11_ = i;
+#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp12_ = _tmp10_[_tmp11_];
+#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp13_ = _tmp12_->name;
+#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp9_, _tmp13_);
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15_ = albums;
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp15__length1 = albums_length1;
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp16_ = i;
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp17_ = _tmp15_[_tmp16_];
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp18_ = _tmp17_->name;
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp19_ = last_album;
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_strcmp0 (_tmp18_, _tmp19_) == 0) {
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = TRUE;
+#line 6152 "PicasaPublishing.c"
+ } else {
+ gboolean _tmp20_ = FALSE;
+ PublishingPicasaAlbum** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+ gint _tmp22_ = 0;
+ PublishingPicasaAlbum* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp21_ = albums;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp21__length1 = albums_length1;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp22_ = i;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp23_ = _tmp21_[_tmp22_];
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp24_ = _tmp23_->name;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_strcmp0 (_tmp24_, PUBLISHING_PICASA_DEFAULT_ALBUM_NAME) == 0) {
+#line 6172 "PicasaPublishing.c"
+ gint _tmp25_ = 0;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp25_ = default_album_id;
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp20_ = _tmp25_ == -1;
+#line 6178 "PicasaPublishing.c"
+ } else {
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp20_ = FALSE;
+#line 6182 "PicasaPublishing.c"
+ }
+#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp14_ = _tmp20_;
+#line 6186 "PicasaPublishing.c"
+ }
+#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp14_) {
+#line 6190 "PicasaPublishing.c"
+ gint _tmp26_ = 0;
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp26_ = i;
+#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ default_album_id = _tmp26_;
+#line 6196 "PicasaPublishing.c"
+ }
+ }
+ }
+ }
+#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp27_ = albums;
+#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp27__length1 = albums_length1;
+#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp27__length1 == 0) {
+#line 6207 "PicasaPublishing.c"
+ GtkComboBoxText* _tmp28_ = NULL;
+ GtkRadioButton* _tmp29_ = NULL;
+ GtkRadioButton* _tmp30_ = NULL;
+ GtkEntry* _tmp31_ = NULL;
+ GtkEntry* _tmp32_ = NULL;
+#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp28_ = self->priv->existing_albums_combo;
+#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp29_ = self->priv->use_existing_radio;
+#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp30_ = self->priv->create_new_radio;
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp31_ = self->priv->new_album_entry;
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget));
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp32_ = self->priv->new_album_entry;
+#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_entry_set_text (_tmp32_, PUBLISHING_PICASA_DEFAULT_ALBUM_NAME);
+#line 6233 "PicasaPublishing.c"
+ } else {
+ gint _tmp33_ = 0;
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp33_ = default_album_id;
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (_tmp33_ >= 0) {
+#line 6240 "PicasaPublishing.c"
+ GtkRadioButton* _tmp34_ = NULL;
+ GtkComboBoxText* _tmp35_ = NULL;
+ gint _tmp36_ = 0;
+ GtkEntry* _tmp37_ = NULL;
+ GtkCheckButton* _tmp38_ = NULL;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp34_ = self->priv->use_existing_radio;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp35_ = self->priv->existing_albums_combo;
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp36_ = default_album_id;
+#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_combo_box_get_type (), GtkComboBox), _tmp36_);
+#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp37_ = self->priv->new_album_entry;
+#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp38_ = self->priv->public_check;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 6264 "PicasaPublishing.c"
+ } else {
+ GtkRadioButton* _tmp39_ = NULL;
+ GtkComboBoxText* _tmp40_ = NULL;
+ GtkEntry* _tmp41_ = NULL;
+ GtkEntry* _tmp42_ = NULL;
+ GtkCheckButton* _tmp43_ = NULL;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp39_ = self->priv->create_new_radio;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp40_ = self->priv->existing_albums_combo;
+#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp41_ = self->priv->new_album_entry;
+#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_entry_set_text (_tmp41_, PUBLISHING_PICASA_DEFAULT_ALBUM_NAME);
+#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp42_ = self->priv->new_album_entry;
+#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget));
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp43_ = self->priv->public_check;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 6291 "PicasaPublishing.c"
+ }
+ }
+#line 788 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (last_album);
+#line 6300 "PicasaPublishing.c"
+}
+
+
+static GtkWidget* publishing_picasa_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingPicasaPublishingOptionsPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane);
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp1_;
+#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 6319 "PicasaPublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_picasa_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingPicasaPublishingOptionsPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane);
+#line 796 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 796 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 6332 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingPicasaPublishingOptionsPane * self;
+#line 799 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane);
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_installed (self);
+#line 6342 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingPicasaPublishingOptionsPane * self;
+#line 803 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane);
+#line 6350 "PicasaPublishing.c"
+}
+
+
+static PublishingPicasaPublishingOptionsPaneSizeDescription* publishing_picasa_publishing_options_pane_size_description_construct (GType object_type, const gchar* name, gint major_axis_pixels) {
+ PublishingPicasaPublishingOptionsPaneSizeDescription* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = (PublishingPicasaPublishingOptionsPaneSizeDescription*) g_type_create_instance (object_type);
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = name;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->name);
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->name = _tmp1_;
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = major_axis_pixels;
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->major_axis_pixels = _tmp2_;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self;
+#line 6377 "PicasaPublishing.c"
+}
+
+
+static PublishingPicasaPublishingOptionsPaneSizeDescription* publishing_picasa_publishing_options_pane_size_description_new (const gchar* name, gint major_axis_pixels) {
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return publishing_picasa_publishing_options_pane_size_description_construct (PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, name, major_axis_pixels);
+#line 6384 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_value_size_description_init (GValue* value) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6391 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_value_size_description_free_value (GValue* value) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_size_description_unref (value->data[0].v_pointer);
+#line 6400 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_publishing_options_pane_value_size_description_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_picasa_publishing_options_pane_size_description_ref (src_value->data[0].v_pointer);
+#line 6410 "PicasaPublishing.c"
+ } else {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 6414 "PicasaPublishing.c"
+ }
+}
+
+
+static gpointer publishing_picasa_publishing_options_pane_value_size_description_peek_pointer (const GValue* value) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return value->data[0].v_pointer;
+#line 6422 "PicasaPublishing.c"
+}
+
+
+static gchar* publishing_picasa_publishing_options_pane_value_size_description_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 6429 "PicasaPublishing.c"
+ PublishingPicasaPublishingOptionsPaneSizeDescription* object;
+ object = collect_values[0].v_pointer;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 6436 "PicasaPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 6440 "PicasaPublishing.c"
+ }
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = publishing_picasa_publishing_options_pane_size_description_ref (object);
+#line 6444 "PicasaPublishing.c"
+ } else {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6448 "PicasaPublishing.c"
+ }
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return NULL;
+#line 6452 "PicasaPublishing.c"
+}
+
+
+static gchar* publishing_picasa_publishing_options_pane_value_size_description_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingPicasaPublishingOptionsPaneSizeDescription** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!object_p) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 6463 "PicasaPublishing.c"
+ }
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *object_p = NULL;
+#line 6469 "PicasaPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 6473 "PicasaPublishing.c"
+ } else {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *object_p = publishing_picasa_publishing_options_pane_size_description_ref (value->data[0].v_pointer);
+#line 6477 "PicasaPublishing.c"
+ }
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return NULL;
+#line 6481 "PicasaPublishing.c"
+}
+
+
+static GParamSpec* publishing_picasa_publishing_options_pane_param_spec_size_description (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription* spec;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION), NULL);
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 6495 "PicasaPublishing.c"
+}
+
+
+static gpointer publishing_picasa_publishing_options_pane_value_get_size_description (const GValue* value) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION), NULL);
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return value->data[0].v_pointer;
+#line 6504 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_value_set_size_description (GValue* value, gpointer v_object) {
+ PublishingPicasaPublishingOptionsPaneSizeDescription* old;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION));
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (v_object) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION));
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_size_description_ref (value->data[0].v_pointer);
+#line 6524 "PicasaPublishing.c"
+ } else {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6528 "PicasaPublishing.c"
+ }
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (old) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_size_description_unref (old);
+#line 6534 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_publishing_options_pane_value_take_size_description (GValue* value, gpointer v_object) {
+ PublishingPicasaPublishingOptionsPaneSizeDescription* old;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION));
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (v_object) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION));
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 6553 "PicasaPublishing.c"
+ } else {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 6557 "PicasaPublishing.c"
+ }
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (old) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_size_description_unref (old);
+#line 6563 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_publishing_options_pane_size_description_class_init (PublishingPicasaPublishingOptionsPaneSizeDescriptionClass * klass) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_size_description_parent_class = g_type_class_peek_parent (klass);
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingPicasaPublishingOptionsPaneSizeDescriptionClass *) klass)->finalize = publishing_picasa_publishing_options_pane_size_description_finalize;
+#line 6573 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_size_description_instance_init (PublishingPicasaPublishingOptionsPaneSizeDescription * self) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->ref_count = 1;
+#line 6580 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_size_description_finalize (PublishingPicasaPublishingOptionsPaneSizeDescription* obj) {
+ PublishingPicasaPublishingOptionsPaneSizeDescription * self;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescription);
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->name);
+#line 6592 "PicasaPublishing.c"
+}
+
+
+static GType publishing_picasa_publishing_options_pane_size_description_get_type (void) {
+ static volatile gsize publishing_picasa_publishing_options_pane_size_description_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_picasa_publishing_options_pane_size_description_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_picasa_publishing_options_pane_value_size_description_init, publishing_picasa_publishing_options_pane_value_size_description_free_value, publishing_picasa_publishing_options_pane_value_size_description_copy_value, publishing_picasa_publishing_options_pane_value_size_description_peek_pointer, "p", publishing_picasa_publishing_options_pane_value_size_description_collect_value, "p", publishing_picasa_publishing_options_pane_value_size_description_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPublishingOptionsPaneSizeDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_publishing_options_pane_size_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPublishingOptionsPaneSizeDescription), 0, (GInstanceInitFunc) publishing_picasa_publishing_options_pane_size_description_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 publishing_picasa_publishing_options_pane_size_description_type_id;
+ publishing_picasa_publishing_options_pane_size_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPicasaPublishingOptionsPaneSizeDescription", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_picasa_publishing_options_pane_size_description_type_id__volatile, publishing_picasa_publishing_options_pane_size_description_type_id);
+ }
+ return publishing_picasa_publishing_options_pane_size_description_type_id__volatile;
+}
+
+
+static gpointer publishing_picasa_publishing_options_pane_size_description_ref (gpointer instance) {
+ PublishingPicasaPublishingOptionsPaneSizeDescription* self;
+ self = instance;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return instance;
+#line 6617 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_size_description_unref (gpointer instance) {
+ PublishingPicasaPublishingOptionsPaneSizeDescription* self;
+ self = instance;
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION_GET_CLASS (self)->finalize (self);
+#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 6630 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_publishing_options_pane_class_init (PublishingPicasaPublishingOptionsPaneClass * klass) {
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_parent_class = g_type_class_peek_parent (klass);
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPicasaPublishingOptionsPanePrivate));
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_picasa_publishing_options_pane_finalize;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_new ("publish", PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_new ("logout", PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 6646 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_picasa_publishing_options_pane_real_get_widget;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_picasa_publishing_options_pane_real_get_preferred_geometry;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_picasa_publishing_options_pane_real_on_pane_installed;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_picasa_publishing_options_pane_real_on_pane_uninstalled;
+#line 6661 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_instance_init (PublishingPicasaPublishingOptionsPane * self) {
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv = PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self);
+#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->builder = NULL;
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->login_identity_label = NULL;
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->publish_to_label = NULL;
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->use_existing_radio = NULL;
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->existing_albums_combo = NULL;
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->create_new_radio = NULL;
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->new_album_entry = NULL;
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->public_check = NULL;
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->size_combo = NULL;
+#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->strip_metadata_check = NULL;
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->publish_button = NULL;
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->logout_button = NULL;
+#line 6694 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_options_pane_finalize (GObject* obj) {
+ PublishingPicasaPublishingOptionsPane * self;
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane);
+#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->login_identity_label);
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->publish_to_label);
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->use_existing_radio);
+#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->existing_albums_combo);
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->create_new_radio);
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->new_album_entry);
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->public_check);
+#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->size_combo);
+#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->strip_metadata_check);
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->size_descriptions = (_vala_array_free (self->priv->size_descriptions, self->priv->size_descriptions_length1, (GDestroyNotify) publishing_picasa_publishing_options_pane_size_description_unref), NULL);
+#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters);
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ G_OBJECT_CLASS (publishing_picasa_publishing_options_pane_parent_class)->finalize (obj);
+#line 6734 "PicasaPublishing.c"
+}
+
+
+GType publishing_picasa_publishing_options_pane_get_type (void) {
+ static volatile gsize publishing_picasa_publishing_options_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_picasa_publishing_options_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_picasa_publishing_options_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_picasa_publishing_options_pane_type_id;
+ publishing_picasa_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingPicasaPublishingOptionsPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_picasa_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_picasa_publishing_options_pane_type_id__volatile, publishing_picasa_publishing_options_pane_type_id);
+ }
+ return publishing_picasa_publishing_options_pane_type_id__volatile;
+}
+
+
+PublishingPicasaPublishingParameters* publishing_picasa_publishing_parameters_construct (GType object_type) {
+ PublishingPicasaPublishingParameters* self = NULL;
+ gchar* _tmp0_ = NULL;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = (PublishingPicasaPublishingParameters*) g_type_create_instance (object_type);
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = g_strdup ("[unknown]");
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->user_name);
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->user_name = _tmp0_;
+#line 823 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->target_album_name);
+#line 823 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->target_album_name = NULL;
+#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->major_axis_size_selection_id = 0;
+#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->major_axis_size_pixels = PUBLISHING_PICASA_PUBLISHING_PARAMETERS_ORIGINAL_SIZE;
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->target_album_url);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->target_album_url = NULL;
+#line 827 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->album_public = FALSE;
+#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->albums = NULL;
+#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->albums_length1 = 0;
+#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->_albums_size_ = self->priv->albums_length1;
+#line 829 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->strip_metadata = FALSE;
+#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO;
+#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->to_new_album = TRUE;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self;
+#line 6793 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaPublishingParameters* publishing_picasa_publishing_parameters_new (void) {
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return publishing_picasa_publishing_parameters_construct (PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS);
+#line 6800 "PicasaPublishing.c"
+}
+
+
+gboolean publishing_picasa_publishing_parameters_is_to_new_album (PublishingPicasaPublishingParameters* self) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), FALSE);
+#line 835 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->to_new_album;
+#line 835 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp0_;
+#line 835 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 6815 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_set_is_to_new_album (PublishingPicasaPublishingParameters* self, gboolean to_new_album) {
+ gboolean _tmp0_ = FALSE;
+#line 838 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self));
+#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = to_new_album;
+#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->to_new_album = _tmp0_;
+#line 6827 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_set_is_new_album_public (PublishingPicasaPublishingParameters* self, gboolean album_public) {
+ gboolean _tmp0_ = FALSE;
+#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self));
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = album_public;
+#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->album_public = _tmp0_;
+#line 6839 "PicasaPublishing.c"
+}
+
+
+gboolean publishing_picasa_publishing_parameters_is_new_album_public (PublishingPicasaPublishingParameters* self) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), FALSE);
+#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->album_public;
+#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp0_;
+#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 6854 "PicasaPublishing.c"
+}
+
+
+gchar* publishing_picasa_publishing_parameters_get_target_album_name (PublishingPicasaPublishingParameters* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->target_album_name;
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp1_;
+#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 6872 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_set_target_album_name (PublishingPicasaPublishingParameters* self, const gchar* target_album_name) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self));
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (target_album_name != NULL);
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = target_album_name;
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->target_album_name);
+#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->target_album_name = _tmp1_;
+#line 6891 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_set_target_album_entry_url (PublishingPicasaPublishingParameters* self, const gchar* target_album_url) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self));
+#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (target_album_url != NULL);
+#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = target_album_url;
+#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->target_album_url);
+#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->target_album_url = _tmp1_;
+#line 6910 "PicasaPublishing.c"
+}
+
+
+gchar* publishing_picasa_publishing_parameters_get_target_album_entry_url (PublishingPicasaPublishingParameters* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 862 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->target_album_url;
+#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp1_;
+#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 6928 "PicasaPublishing.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 6941 "PicasaPublishing.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 6972 "PicasaPublishing.c"
+ goto __catch15_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 6981 "PicasaPublishing.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 6997 "PicasaPublishing.c"
+ goto __catch15_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 7008 "PicasaPublishing.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 7022 "PicasaPublishing.c"
+ }
+ goto __finally15;
+ __catch15_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 7036 "PicasaPublishing.c"
+ }
+ __finally15:
+#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 7047 "PicasaPublishing.c"
+ }
+}
+
+
+gchar* publishing_picasa_publishing_parameters_get_target_album_feed_url (PublishingPicasaPublishingParameters* self) {
+ gchar* result = NULL;
+ gchar* entry_url = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* feed_url = NULL;
+ gchar* _tmp1_ = NULL;
+#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 867 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_picasa_publishing_parameters_get_target_album_entry_url (self);
+#line 867 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ entry_url = _tmp0_;
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = string_replace (entry_url, "entry", "feed");
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ feed_url = _tmp1_;
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = feed_url;
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (entry_url);
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 7074 "PicasaPublishing.c"
+}
+
+
+gchar* publishing_picasa_publishing_parameters_get_user_name (PublishingPicasaPublishingParameters* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 873 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->user_name;
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp1_;
+#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 7092 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_set_user_name (PublishingPicasaPublishingParameters* self, const gchar* user_name) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 877 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self));
+#line 877 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (user_name != NULL);
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = user_name;
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->user_name);
+#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->user_name = _tmp1_;
+#line 7111 "PicasaPublishing.c"
+}
+
+
+static gpointer _publishing_picasa_album_ref0 (gpointer self) {
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self ? publishing_picasa_album_ref (self) : NULL;
+#line 7118 "PicasaPublishing.c"
+}
+
+
+static PublishingPicasaAlbum** _vala_array_dup5 (PublishingPicasaAlbum** self, int length) {
+ PublishingPicasaAlbum** result;
+ int i;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = g_new0 (PublishingPicasaAlbum*, length + 1);
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 7129 "PicasaPublishing.c"
+ PublishingPicasaAlbum* _tmp0_ = NULL;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = _publishing_picasa_album_ref0 (self[i]);
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result[i] = _tmp0_;
+#line 7135 "PicasaPublishing.c"
+ }
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 7139 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaAlbum** publishing_picasa_publishing_parameters_get_albums (PublishingPicasaPublishingParameters* self, int* result_length1) {
+ PublishingPicasaAlbum** result = NULL;
+ PublishingPicasaAlbum** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingPicasaAlbum** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingPicasaAlbum** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->albums;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0__length1 = self->priv->albums_length1;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup5 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2__length1 = _tmp1__length1;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (result_length1) {
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *result_length1 = _tmp2__length1;
+#line 7169 "PicasaPublishing.c"
+ }
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp2_;
+#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 7175 "PicasaPublishing.c"
+}
+
+
+static PublishingPicasaAlbum** _vala_array_dup6 (PublishingPicasaAlbum** self, int length) {
+ PublishingPicasaAlbum** result;
+ int i;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = g_new0 (PublishingPicasaAlbum*, length + 1);
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 7186 "PicasaPublishing.c"
+ PublishingPicasaAlbum* _tmp0_ = NULL;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = _publishing_picasa_album_ref0 (self[i]);
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result[i] = _tmp0_;
+#line 7192 "PicasaPublishing.c"
+ }
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 7196 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_set_albums (PublishingPicasaPublishingParameters* self, PublishingPicasaAlbum** albums, int albums_length1) {
+ PublishingPicasaAlbum** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingPicasaAlbum** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self));
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = albums;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0__length1 = albums_length1;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup6 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->albums = _tmp1_;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->albums_length1 = _tmp1__length1;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->_albums_size_ = self->priv->albums_length1;
+#line 7223 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_set_major_axis_size_pixels (PublishingPicasaPublishingParameters* self, gint pixels) {
+ gint _tmp0_ = 0;
+#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self));
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = pixels;
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->major_axis_size_pixels = _tmp0_;
+#line 7235 "PicasaPublishing.c"
+}
+
+
+gint publishing_picasa_publishing_parameters_get_major_axis_size_pixels (PublishingPicasaPublishingParameters* self) {
+ gint result = 0;
+ gint _tmp0_ = 0;
+#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), 0);
+#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->major_axis_size_pixels;
+#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp0_;
+#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 7250 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self, gint selection_id) {
+ gint _tmp0_ = 0;
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self));
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = selection_id;
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->major_axis_size_selection_id = _tmp0_;
+#line 7262 "PicasaPublishing.c"
+}
+
+
+gint publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self) {
+ gint result = 0;
+ gint _tmp0_ = 0;
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), 0);
+#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->major_axis_size_selection_id;
+#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp0_;
+#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 7277 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_set_strip_metadata (PublishingPicasaPublishingParameters* self, gboolean strip_metadata) {
+ gboolean _tmp0_ = FALSE;
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self));
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = strip_metadata;
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->strip_metadata = _tmp0_;
+#line 7289 "PicasaPublishing.c"
+}
+
+
+gboolean publishing_picasa_publishing_parameters_get_strip_metadata (PublishingPicasaPublishingParameters* self) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), FALSE);
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->strip_metadata;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp0_;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 7304 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_set_media_type (PublishingPicasaPublishingParameters* self, SpitPublishingPublisherMediaType media_type) {
+ SpitPublishingPublisherMediaType _tmp0_ = 0;
+#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self));
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = media_type;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->media_type = _tmp0_;
+#line 7316 "PicasaPublishing.c"
+}
+
+
+SpitPublishingPublisherMediaType publishing_picasa_publishing_parameters_get_media_type (PublishingPicasaPublishingParameters* self) {
+ SpitPublishingPublisherMediaType result = 0;
+ SpitPublishingPublisherMediaType _tmp0_ = 0;
+#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), 0);
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = self->priv->media_type;
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp0_;
+#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 7331 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_value_publishing_parameters_init (GValue* value) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 7338 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_value_publishing_parameters_free_value (GValue* value) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_unref (value->data[0].v_pointer);
+#line 7347 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_value_publishing_parameters_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_picasa_publishing_parameters_ref (src_value->data[0].v_pointer);
+#line 7357 "PicasaPublishing.c"
+ } else {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 7361 "PicasaPublishing.c"
+ }
+}
+
+
+static gpointer publishing_picasa_value_publishing_parameters_peek_pointer (const GValue* value) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return value->data[0].v_pointer;
+#line 7369 "PicasaPublishing.c"
+}
+
+
+static gchar* publishing_picasa_value_publishing_parameters_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 7376 "PicasaPublishing.c"
+ PublishingPicasaPublishingParameters* object;
+ object = collect_values[0].v_pointer;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 7383 "PicasaPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.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 7387 "PicasaPublishing.c"
+ }
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = publishing_picasa_publishing_parameters_ref (object);
+#line 7391 "PicasaPublishing.c"
+ } else {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 7395 "PicasaPublishing.c"
+ }
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return NULL;
+#line 7399 "PicasaPublishing.c"
+}
+
+
+static gchar* publishing_picasa_value_publishing_parameters_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingPicasaPublishingParameters** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!object_p) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 7410 "PicasaPublishing.c"
+ }
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *object_p = NULL;
+#line 7416 "PicasaPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 7420 "PicasaPublishing.c"
+ } else {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ *object_p = publishing_picasa_publishing_parameters_ref (value->data[0].v_pointer);
+#line 7424 "PicasaPublishing.c"
+ }
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return NULL;
+#line 7428 "PicasaPublishing.c"
+}
+
+
+GParamSpec* publishing_picasa_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingPicasaParamSpecPublishingParameters* spec;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 7442 "PicasaPublishing.c"
+}
+
+
+gpointer publishing_picasa_value_get_publishing_parameters (const GValue* value) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return value->data[0].v_pointer;
+#line 7451 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_value_set_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingPicasaPublishingParameters* old;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS));
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (v_object) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS));
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_ref (value->data[0].v_pointer);
+#line 7471 "PicasaPublishing.c"
+ } else {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 7475 "PicasaPublishing.c"
+ }
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (old) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_unref (old);
+#line 7481 "PicasaPublishing.c"
+ }
+}
+
+
+void publishing_picasa_value_take_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingPicasaPublishingParameters* old;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS));
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (v_object) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS));
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 7500 "PicasaPublishing.c"
+ } else {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 7504 "PicasaPublishing.c"
+ }
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (old) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_unref (old);
+#line 7510 "PicasaPublishing.c"
+ }
+}
+
+
+static void publishing_picasa_publishing_parameters_class_init (PublishingPicasaPublishingParametersClass * klass) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_publishing_parameters_parent_class = g_type_class_peek_parent (klass);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingPicasaPublishingParametersClass *) klass)->finalize = publishing_picasa_publishing_parameters_finalize;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPicasaPublishingParametersPrivate));
+#line 7522 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_parameters_instance_init (PublishingPicasaPublishingParameters * self) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv = PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_PRIVATE (self);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->ref_count = 1;
+#line 7531 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_publishing_parameters_finalize (PublishingPicasaPublishingParameters* obj) {
+ PublishingPicasaPublishingParameters * self;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParameters);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->target_album_name);
+#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->target_album_url);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_free0 (self->priv->user_name);
+#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL);
+#line 7549 "PicasaPublishing.c"
+}
+
+
+GType publishing_picasa_publishing_parameters_get_type (void) {
+ static volatile gsize publishing_picasa_publishing_parameters_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_picasa_publishing_parameters_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_picasa_value_publishing_parameters_init, publishing_picasa_value_publishing_parameters_free_value, publishing_picasa_value_publishing_parameters_copy_value, publishing_picasa_value_publishing_parameters_peek_pointer, "p", publishing_picasa_value_publishing_parameters_collect_value, "p", publishing_picasa_value_publishing_parameters_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPublishingParameters), 0, (GInstanceInitFunc) publishing_picasa_publishing_parameters_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 publishing_picasa_publishing_parameters_type_id;
+ publishing_picasa_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPicasaPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_picasa_publishing_parameters_type_id__volatile, publishing_picasa_publishing_parameters_type_id);
+ }
+ return publishing_picasa_publishing_parameters_type_id__volatile;
+}
+
+
+gpointer publishing_picasa_publishing_parameters_ref (gpointer instance) {
+ PublishingPicasaPublishingParameters* self;
+ self = instance;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return instance;
+#line 7574 "PicasaPublishing.c"
+}
+
+
+void publishing_picasa_publishing_parameters_unref (gpointer instance) {
+ PublishingPicasaPublishingParameters* self;
+ self = instance;
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self);
+#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 7587 "PicasaPublishing.c"
+ }
+}
+
+
+PublishingPicasaUploader* publishing_picasa_uploader_construct (GType object_type, PublishingRESTSupportGoogleSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingPicasaPublishingParameters* parameters) {
+ PublishingPicasaUploader* self = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingPicasaPublishingParameters* _tmp2_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp3_ = NULL;
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL);
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = session;
+#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = publishables;
+#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1__length1 = publishables_length1;
+#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = (PublishingPicasaUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp1__length1);
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = parameters;
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = _publishing_picasa_publishing_parameters_ref0 (_tmp2_);
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters);
+#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv->parameters = _tmp3_;
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return self;
+#line 7621 "PicasaPublishing.c"
+}
+
+
+PublishingPicasaUploader* publishing_picasa_uploader_new (PublishingRESTSupportGoogleSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingPicasaPublishingParameters* parameters) {
+#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return publishing_picasa_uploader_construct (PUBLISHING_PICASA_TYPE_UPLOADER, session, publishables, publishables_length1, parameters);
+#line 7628 "PicasaPublishing.c"
+}
+
+
+static PublishingRESTSupportTransaction* publishing_picasa_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) {
+ PublishingPicasaUploader * self;
+ PublishingRESTSupportTransaction* result = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+ PublishingPicasaPublishingParameters* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ SpitPublishingPublishable* _tmp4_ = NULL;
+ PublishingPicasaUploadTransaction* _tmp5_ = NULL;
+ PublishingRESTSupportTransaction* _tmp6_ = NULL;
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploader);
+#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp2_ = self->priv->parameters;
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp3_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp5_ = publishing_picasa_upload_transaction_new (_tmp1_, _tmp2_, _tmp4_);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _g_object_unref0 (_tmp4_);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ result = _tmp6_;
+#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ return result;
+#line 7668 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_uploader_class_init (PublishingPicasaUploaderClass * klass) {
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ publishing_picasa_uploader_parent_class = g_type_class_peek_parent (klass);
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_picasa_uploader_finalize;
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPicasaUploaderPrivate));
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = publishing_picasa_uploader_real_create_transaction;
+#line 7681 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_uploader_instance_init (PublishingPicasaUploader * self) {
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self->priv = PUBLISHING_PICASA_UPLOADER_GET_PRIVATE (self);
+#line 7688 "PicasaPublishing.c"
+}
+
+
+static void publishing_picasa_uploader_finalize (PublishingRESTSupportBatchUploader* obj) {
+ PublishingPicasaUploader * self;
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploader);
+#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters);
+#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala"
+ PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_picasa_uploader_parent_class)->finalize (obj);
+#line 7700 "PicasaPublishing.c"
+}
+
+
+GType publishing_picasa_uploader_get_type (void) {
+ static volatile gsize publishing_picasa_uploader_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_picasa_uploader_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaUploader), 0, (GInstanceInitFunc) publishing_picasa_uploader_instance_init, NULL };
+ GType publishing_picasa_uploader_type_id;
+ publishing_picasa_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingPicasaUploader", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_picasa_uploader_type_id__volatile, publishing_picasa_uploader_type_id);
+ }
+ return publishing_picasa_uploader_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);
+}
+
+
+static gint _vala_array_length (gpointer array) {
+ int length;
+ length = 0;
+ if (array) {
+ while (((gpointer*) array)[length]) {
+ length++;
+ }
+ }
+ return length;
+}
+
+
+
diff --git a/plugins/shotwell-publishing/PicasaPublishing.vala b/plugins/shotwell-publishing/PicasaPublishing.vala
index cb6352c..a393c08 100644
--- a/plugins/shotwell-publishing/PicasaPublishing.vala
+++ b/plugins/shotwell-publishing/PicasaPublishing.vala
@@ -11,7 +11,8 @@ public class PicasaService : Object, Spit.Pluggable, Spit.Publishing.Service {
public PicasaService(GLib.File resource_directory) {
if (icon_pixbuf_set == null)
- icon_pixbuf_set = Resources.load_icon_set(resource_directory.get_child(ICON_FILENAME));
+ icon_pixbuf_set =
+ Resources.load_from_resource(Resources.RESOURCE_PATH + "/" + ICON_FILENAME);
}
public int get_pluggable_interface(int min_host_interface, int max_host_interface) {
@@ -351,9 +352,8 @@ public class PicasaPublisher : Publishing.RESTSupport.GooglePublisher {
try {
// the trailing get_path() is required, since add_from_file can't cope
// with File objects directly and expects a pathname instead.
- builder.add_from_file(
- get_host().get_module_file().get_parent().
- get_child("picasa_publishing_options_pane.glade").get_path());
+ builder.add_from_resource(Resources.RESOURCE_PATH + "/" +
+ "picasa_publishing_options_pane.ui");
} catch (Error e) {
warning("Could not parse UI file! Error: %s.", e.message);
get_host().post_error(
diff --git a/plugins/shotwell-publishing/PiwigoPublishing.c b/plugins/shotwell-publishing/PiwigoPublishing.c
new file mode 100644
index 0000000..6b684ba
--- /dev/null
+++ b/plugins/shotwell-publishing/PiwigoPublishing.c
@@ -0,0 +1,11929 @@
+/* PiwigoPublishing.c generated by valac 0.32.1, the Vala compiler
+ * generated from PiwigoPublishing.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 <shotwell-plugin-dev-1.0.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include "shotwell-plugin-common.h"
+#include <glib/gi18n-lib.h>
+#include <gtk/gtk.h>
+#include <libxml/tree.h>
+#include <float.h>
+#include <math.h>
+#include <libsoup/soup.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_PIWIGO_SERVICE (piwigo_service_get_type ())
+#define PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIWIGO_SERVICE, PiwigoService))
+#define PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIWIGO_SERVICE, PiwigoServiceClass))
+#define IS_PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIWIGO_SERVICE))
+#define IS_PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIWIGO_SERVICE))
+#define PIWIGO_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIWIGO_SERVICE, PiwigoServiceClass))
+
+typedef struct _PiwigoService PiwigoService;
+typedef struct _PiwigoServiceClass PiwigoServiceClass;
+typedef struct _PiwigoServicePrivate PiwigoServicePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER (publishing_piwigo_piwigo_publisher_get_type ())
+#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher))
+#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisherClass))
+#define PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER))
+#define PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER))
+#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisherClass))
+
+typedef struct _PublishingPiwigoPiwigoPublisher PublishingPiwigoPiwigoPublisher;
+typedef struct _PublishingPiwigoPiwigoPublisherClass PublishingPiwigoPiwigoPublisherClass;
+
+#define PUBLISHING_PIWIGO_TYPE_CATEGORY (publishing_piwigo_category_get_type ())
+#define PUBLISHING_PIWIGO_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategory))
+#define PUBLISHING_PIWIGO_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategoryClass))
+#define PUBLISHING_PIWIGO_IS_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORY))
+#define PUBLISHING_PIWIGO_IS_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORY))
+#define PUBLISHING_PIWIGO_CATEGORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategoryClass))
+
+typedef struct _PublishingPiwigoCategory PublishingPiwigoCategory;
+typedef struct _PublishingPiwigoCategoryClass PublishingPiwigoCategoryClass;
+typedef struct _PublishingPiwigoCategoryPrivate PublishingPiwigoCategoryPrivate;
+typedef struct _PublishingPiwigoParamSpecCategory PublishingPiwigoParamSpecCategory;
+
+#define PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL (publishing_piwigo_permission_level_get_type ())
+#define PUBLISHING_PIWIGO_PERMISSION_LEVEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevel))
+#define PUBLISHING_PIWIGO_PERMISSION_LEVEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevelClass))
+#define PUBLISHING_PIWIGO_IS_PERMISSION_LEVEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL))
+#define PUBLISHING_PIWIGO_IS_PERMISSION_LEVEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL))
+#define PUBLISHING_PIWIGO_PERMISSION_LEVEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevelClass))
+
+typedef struct _PublishingPiwigoPermissionLevel PublishingPiwigoPermissionLevel;
+typedef struct _PublishingPiwigoPermissionLevelClass PublishingPiwigoPermissionLevelClass;
+typedef struct _PublishingPiwigoPermissionLevelPrivate PublishingPiwigoPermissionLevelPrivate;
+typedef struct _PublishingPiwigoParamSpecPermissionLevel PublishingPiwigoParamSpecPermissionLevel;
+
+#define PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY (publishing_piwigo_size_entry_get_type ())
+#define PUBLISHING_PIWIGO_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntry))
+#define PUBLISHING_PIWIGO_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntryClass))
+#define PUBLISHING_PIWIGO_IS_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY))
+#define PUBLISHING_PIWIGO_IS_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY))
+#define PUBLISHING_PIWIGO_SIZE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntryClass))
+
+typedef struct _PublishingPiwigoSizeEntry PublishingPiwigoSizeEntry;
+typedef struct _PublishingPiwigoSizeEntryClass PublishingPiwigoSizeEntryClass;
+typedef struct _PublishingPiwigoSizeEntryPrivate PublishingPiwigoSizeEntryPrivate;
+typedef struct _PublishingPiwigoParamSpecSizeEntry PublishingPiwigoParamSpecSizeEntry;
+
+#define PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS (publishing_piwigo_publishing_parameters_get_type ())
+#define PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParameters))
+#define PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParametersClass))
+#define PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParametersClass))
+
+typedef struct _PublishingPiwigoPublishingParameters PublishingPiwigoPublishingParameters;
+typedef struct _PublishingPiwigoPublishingParametersClass PublishingPiwigoPublishingParametersClass;
+typedef struct _PublishingPiwigoPublishingParametersPrivate PublishingPiwigoPublishingParametersPrivate;
+#define _publishing_piwigo_category_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_category_unref (var), NULL)))
+#define _publishing_piwigo_permission_level_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_permission_level_unref (var), NULL)))
+#define _publishing_piwigo_size_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_size_entry_unref (var), NULL)))
+typedef struct _PublishingPiwigoParamSpecPublishingParameters PublishingPiwigoParamSpecPublishingParameters;
+typedef struct _PublishingPiwigoPiwigoPublisherPrivate PublishingPiwigoPiwigoPublisherPrivate;
+
+#define PUBLISHING_PIWIGO_TYPE_SESSION (publishing_piwigo_session_get_type ())
+#define PUBLISHING_PIWIGO_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession))
+#define PUBLISHING_PIWIGO_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSessionClass))
+#define PUBLISHING_PIWIGO_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION))
+#define PUBLISHING_PIWIGO_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION))
+#define PUBLISHING_PIWIGO_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSessionClass))
+
+typedef struct _PublishingPiwigoSession PublishingPiwigoSession;
+typedef struct _PublishingPiwigoSessionClass PublishingPiwigoSessionClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL)))
+#define _publishing_piwigo_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_publishing_parameters_unref (var), NULL)))
+
+#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_TYPE_MODE (publishing_piwigo_authentication_pane_mode_get_type ())
+
+#define PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE (publishing_piwigo_authentication_pane_get_type ())
+#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane))
+#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPaneClass))
+#define PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE))
+#define PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE))
+#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPaneClass))
+
+typedef struct _PublishingPiwigoAuthenticationPane PublishingPiwigoAuthenticationPane;
+typedef struct _PublishingPiwigoAuthenticationPaneClass PublishingPiwigoAuthenticationPaneClass;
+
+#define PUBLISHING_PIWIGO_TYPE_TRANSACTION (publishing_piwigo_transaction_get_type ())
+#define PUBLISHING_PIWIGO_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_TRANSACTION, PublishingPiwigoTransaction))
+#define PUBLISHING_PIWIGO_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_TRANSACTION, PublishingPiwigoTransactionClass))
+#define PUBLISHING_PIWIGO_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_TRANSACTION))
+#define PUBLISHING_PIWIGO_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_TRANSACTION))
+#define PUBLISHING_PIWIGO_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_TRANSACTION, PublishingPiwigoTransactionClass))
+
+typedef struct _PublishingPiwigoTransaction PublishingPiwigoTransaction;
+typedef struct _PublishingPiwigoTransactionClass PublishingPiwigoTransactionClass;
+
+#define PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION (publishing_piwigo_session_login_transaction_get_type ())
+#define PUBLISHING_PIWIGO_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, PublishingPiwigoSessionLoginTransaction))
+#define PUBLISHING_PIWIGO_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, PublishingPiwigoSessionLoginTransactionClass))
+#define PUBLISHING_PIWIGO_IS_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION))
+#define PUBLISHING_PIWIGO_IS_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION))
+#define PUBLISHING_PIWIGO_SESSION_LOGIN_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, PublishingPiwigoSessionLoginTransactionClass))
+
+typedef struct _PublishingPiwigoSessionLoginTransaction PublishingPiwigoSessionLoginTransaction;
+typedef struct _PublishingPiwigoSessionLoginTransactionClass PublishingPiwigoSessionLoginTransactionClass;
+#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL)))
+
+#define PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION (publishing_piwigo_session_get_status_transaction_get_type ())
+#define PUBLISHING_PIWIGO_SESSION_GET_STATUS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, PublishingPiwigoSessionGetStatusTransaction))
+#define PUBLISHING_PIWIGO_SESSION_GET_STATUS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, PublishingPiwigoSessionGetStatusTransactionClass))
+#define PUBLISHING_PIWIGO_IS_SESSION_GET_STATUS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION))
+#define PUBLISHING_PIWIGO_IS_SESSION_GET_STATUS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION))
+#define PUBLISHING_PIWIGO_SESSION_GET_STATUS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, PublishingPiwigoSessionGetStatusTransactionClass))
+
+typedef struct _PublishingPiwigoSessionGetStatusTransaction PublishingPiwigoSessionGetStatusTransaction;
+typedef struct _PublishingPiwigoSessionGetStatusTransactionClass PublishingPiwigoSessionGetStatusTransactionClass;
+
+#define PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION (publishing_piwigo_categories_get_list_transaction_get_type ())
+#define PUBLISHING_PIWIGO_CATEGORIES_GET_LIST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, PublishingPiwigoCategoriesGetListTransaction))
+#define PUBLISHING_PIWIGO_CATEGORIES_GET_LIST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, PublishingPiwigoCategoriesGetListTransactionClass))
+#define PUBLISHING_PIWIGO_IS_CATEGORIES_GET_LIST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION))
+#define PUBLISHING_PIWIGO_IS_CATEGORIES_GET_LIST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION))
+#define PUBLISHING_PIWIGO_CATEGORIES_GET_LIST_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, PublishingPiwigoCategoriesGetListTransactionClass))
+
+typedef struct _PublishingPiwigoCategoriesGetListTransaction PublishingPiwigoCategoriesGetListTransaction;
+typedef struct _PublishingPiwigoCategoriesGetListTransactionClass PublishingPiwigoCategoriesGetListTransactionClass;
+#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
+
+#define PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE (publishing_piwigo_publishing_options_pane_get_type ())
+#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane))
+#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPaneClass))
+#define PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPaneClass))
+
+typedef struct _PublishingPiwigoPublishingOptionsPane PublishingPiwigoPublishingOptionsPane;
+typedef struct _PublishingPiwigoPublishingOptionsPaneClass PublishingPiwigoPublishingOptionsPaneClass;
+
+#define PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION (publishing_piwigo_session_logout_transaction_get_type ())
+#define PUBLISHING_PIWIGO_SESSION_LOGOUT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, PublishingPiwigoSessionLogoutTransaction))
+#define PUBLISHING_PIWIGO_SESSION_LOGOUT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, PublishingPiwigoSessionLogoutTransactionClass))
+#define PUBLISHING_PIWIGO_IS_SESSION_LOGOUT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION))
+#define PUBLISHING_PIWIGO_IS_SESSION_LOGOUT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION))
+#define PUBLISHING_PIWIGO_SESSION_LOGOUT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, PublishingPiwigoSessionLogoutTransactionClass))
+
+typedef struct _PublishingPiwigoSessionLogoutTransaction PublishingPiwigoSessionLogoutTransaction;
+typedef struct _PublishingPiwigoSessionLogoutTransactionClass PublishingPiwigoSessionLogoutTransactionClass;
+
+#define PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION (publishing_piwigo_categories_add_transaction_get_type ())
+#define PUBLISHING_PIWIGO_CATEGORIES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, PublishingPiwigoCategoriesAddTransaction))
+#define PUBLISHING_PIWIGO_CATEGORIES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, PublishingPiwigoCategoriesAddTransactionClass))
+#define PUBLISHING_PIWIGO_IS_CATEGORIES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION))
+#define PUBLISHING_PIWIGO_IS_CATEGORIES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION))
+#define PUBLISHING_PIWIGO_CATEGORIES_ADD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, PublishingPiwigoCategoriesAddTransactionClass))
+
+typedef struct _PublishingPiwigoCategoriesAddTransaction PublishingPiwigoCategoriesAddTransaction;
+typedef struct _PublishingPiwigoCategoriesAddTransactionClass PublishingPiwigoCategoriesAddTransactionClass;
+
+#define PUBLISHING_PIWIGO_TYPE_UPLOADER (publishing_piwigo_uploader_get_type ())
+#define PUBLISHING_PIWIGO_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploader))
+#define PUBLISHING_PIWIGO_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploaderClass))
+#define PUBLISHING_PIWIGO_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_UPLOADER))
+#define PUBLISHING_PIWIGO_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_UPLOADER))
+#define PUBLISHING_PIWIGO_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploaderClass))
+
+typedef struct _PublishingPiwigoUploader PublishingPiwigoUploader;
+typedef struct _PublishingPiwigoUploaderClass PublishingPiwigoUploaderClass;
+#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL)))
+#define __vala_SoupCookie_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupCookie_free (var), NULL)))
+#define __g_slist_free___vala_SoupCookie_free0_0(var) ((var == NULL) ? NULL : (var = (_g_slist_free___vala_SoupCookie_free0_ (var), NULL)))
+typedef struct _PublishingPiwigoUploaderPrivate PublishingPiwigoUploaderPrivate;
+
+#define PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION (publishing_piwigo_images_add_transaction_get_type ())
+#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransaction))
+#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransactionClass))
+#define PUBLISHING_PIWIGO_IS_IMAGES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION))
+#define PUBLISHING_PIWIGO_IS_IMAGES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION))
+#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransactionClass))
+
+typedef struct _PublishingPiwigoImagesAddTransaction PublishingPiwigoImagesAddTransaction;
+typedef struct _PublishingPiwigoImagesAddTransactionClass PublishingPiwigoImagesAddTransactionClass;
+typedef struct _PublishingPiwigoAuthenticationPanePrivate PublishingPiwigoAuthenticationPanePrivate;
+typedef struct _PublishingPiwigoPublishingOptionsPanePrivate PublishingPiwigoPublishingOptionsPanePrivate;
+typedef struct _PublishingPiwigoSessionPrivate PublishingPiwigoSessionPrivate;
+typedef struct _PublishingPiwigoTransactionPrivate PublishingPiwigoTransactionPrivate;
+typedef struct _PublishingPiwigoSessionLoginTransactionPrivate PublishingPiwigoSessionLoginTransactionPrivate;
+typedef struct _PublishingPiwigoSessionGetStatusTransactionPrivate PublishingPiwigoSessionGetStatusTransactionPrivate;
+typedef struct _PublishingPiwigoCategoriesGetListTransactionPrivate PublishingPiwigoCategoriesGetListTransactionPrivate;
+typedef struct _PublishingPiwigoSessionLogoutTransactionPrivate PublishingPiwigoSessionLogoutTransactionPrivate;
+typedef struct _PublishingPiwigoCategoriesAddTransactionPrivate PublishingPiwigoCategoriesAddTransactionPrivate;
+typedef struct _PublishingPiwigoImagesAddTransactionPrivate PublishingPiwigoImagesAddTransactionPrivate;
+#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
+#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 _PiwigoService {
+ GObject parent_instance;
+ PiwigoServicePrivate * priv;
+};
+
+struct _PiwigoServiceClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingPiwigoCategory {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingPiwigoCategoryPrivate * priv;
+ gint id;
+ gchar* name;
+ gchar* comment;
+ gchar* display_name;
+ gchar* uppercats;
+};
+
+struct _PublishingPiwigoCategoryClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingPiwigoCategory *self);
+};
+
+struct _PublishingPiwigoParamSpecCategory {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingPiwigoPermissionLevel {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingPiwigoPermissionLevelPrivate * priv;
+ gint id;
+ gchar* name;
+};
+
+struct _PublishingPiwigoPermissionLevelClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingPiwigoPermissionLevel *self);
+};
+
+struct _PublishingPiwigoParamSpecPermissionLevel {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingPiwigoSizeEntry {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingPiwigoSizeEntryPrivate * priv;
+ gint id;
+ gchar* name;
+};
+
+struct _PublishingPiwigoSizeEntryClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingPiwigoSizeEntry *self);
+};
+
+struct _PublishingPiwigoParamSpecSizeEntry {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingPiwigoPublishingParameters {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingPiwigoPublishingParametersPrivate * priv;
+ PublishingPiwigoCategory* category;
+ PublishingPiwigoPermissionLevel* perm_level;
+ PublishingPiwigoSizeEntry* photo_size;
+ gboolean title_as_comment;
+ gboolean no_upload_tags;
+};
+
+struct _PublishingPiwigoPublishingParametersClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingPiwigoPublishingParameters *self);
+};
+
+struct _PublishingPiwigoParamSpecPublishingParameters {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingPiwigoPiwigoPublisher {
+ GObject parent_instance;
+ PublishingPiwigoPiwigoPublisherPrivate * priv;
+};
+
+struct _PublishingPiwigoPiwigoPublisherClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingPiwigoPiwigoPublisherPrivate {
+ SpitPublishingService* service;
+ SpitPublishingPluginHost* host;
+ gboolean running;
+ gboolean strip_metadata;
+ PublishingPiwigoSession* session;
+ PublishingPiwigoCategory** categories;
+ gint categories_length1;
+ gint _categories_size_;
+ PublishingPiwigoPublishingParameters* parameters;
+ SpitPublishingProgressCallback progress_reporter;
+ gpointer progress_reporter_target;
+ GDestroyNotify progress_reporter_target_destroy_notify;
+};
+
+typedef enum {
+ PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO,
+ PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL,
+ PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER
+} PublishingPiwigoAuthenticationPaneMode;
+
+struct _PublishingPiwigoUploader {
+ PublishingRESTSupportBatchUploader parent_instance;
+ PublishingPiwigoUploaderPrivate * priv;
+};
+
+struct _PublishingPiwigoUploaderClass {
+ PublishingRESTSupportBatchUploaderClass parent_class;
+};
+
+struct _PublishingPiwigoUploaderPrivate {
+ PublishingPiwigoPublishingParameters* parameters;
+};
+
+struct _PublishingPiwigoAuthenticationPane {
+ GObject parent_instance;
+ PublishingPiwigoAuthenticationPanePrivate * priv;
+};
+
+struct _PublishingPiwigoAuthenticationPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingPiwigoAuthenticationPanePrivate {
+ GtkBox* pane_widget;
+ GtkBuilder* builder;
+ GtkEntry* url_entry;
+ GtkEntry* username_entry;
+ GtkEntry* password_entry;
+ GtkCheckButton* remember_password_checkbutton;
+ GtkButton* login_button;
+};
+
+struct _PublishingPiwigoPublishingOptionsPane {
+ GObject parent_instance;
+ PublishingPiwigoPublishingOptionsPanePrivate * priv;
+};
+
+struct _PublishingPiwigoPublishingOptionsPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingPiwigoPublishingOptionsPanePrivate {
+ GtkBox* pane_widget;
+ GtkBuilder* builder;
+ GtkRadioButton* use_existing_radio;
+ GtkRadioButton* create_new_radio;
+ GtkComboBoxText* existing_categories_combo;
+ GtkEntry* new_category_entry;
+ GtkLabel* within_existing_label;
+ GtkComboBoxText* within_existing_combo;
+ GtkComboBoxText* perms_combo;
+ GtkComboBoxText* size_combo;
+ GtkCheckButton* strip_metadata_check;
+ GtkCheckButton* title_as_comment_check;
+ GtkCheckButton* no_upload_tags_check;
+ GtkButton* logout_button;
+ GtkButton* publish_button;
+ GtkTextView* album_comment;
+ GtkLabel* album_comment_label;
+ PublishingPiwigoCategory** existing_categories;
+ gint existing_categories_length1;
+ gint _existing_categories_size_;
+ PublishingPiwigoPermissionLevel** perm_levels;
+ gint perm_levels_length1;
+ gint _perm_levels_size_;
+ PublishingPiwigoSizeEntry** photo_sizes;
+ gint photo_sizes_length1;
+ gint _photo_sizes_size_;
+ gint last_category;
+ gint last_permission_level;
+ gint last_photo_size;
+ gboolean last_title_as_comment;
+ gboolean last_no_upload_tags;
+};
+
+struct _PublishingPiwigoSession {
+ PublishingRESTSupportSession parent_instance;
+ PublishingPiwigoSessionPrivate * priv;
+};
+
+struct _PublishingPiwigoSessionClass {
+ PublishingRESTSupportSessionClass parent_class;
+};
+
+struct _PublishingPiwigoSessionPrivate {
+ gchar* pwg_url;
+ gchar* pwg_id;
+ gchar* username;
+};
+
+struct _PublishingPiwigoTransaction {
+ PublishingRESTSupportTransaction parent_instance;
+ PublishingPiwigoTransactionPrivate * priv;
+};
+
+struct _PublishingPiwigoTransactionClass {
+ PublishingRESTSupportTransactionClass parent_class;
+};
+
+struct _PublishingPiwigoSessionLoginTransaction {
+ PublishingPiwigoTransaction parent_instance;
+ PublishingPiwigoSessionLoginTransactionPrivate * priv;
+};
+
+struct _PublishingPiwigoSessionLoginTransactionClass {
+ PublishingPiwigoTransactionClass parent_class;
+};
+
+struct _PublishingPiwigoSessionGetStatusTransaction {
+ PublishingPiwigoTransaction parent_instance;
+ PublishingPiwigoSessionGetStatusTransactionPrivate * priv;
+};
+
+struct _PublishingPiwigoSessionGetStatusTransactionClass {
+ PublishingPiwigoTransactionClass parent_class;
+};
+
+struct _PublishingPiwigoCategoriesGetListTransaction {
+ PublishingPiwigoTransaction parent_instance;
+ PublishingPiwigoCategoriesGetListTransactionPrivate * priv;
+};
+
+struct _PublishingPiwigoCategoriesGetListTransactionClass {
+ PublishingPiwigoTransactionClass parent_class;
+};
+
+struct _PublishingPiwigoSessionLogoutTransaction {
+ PublishingPiwigoTransaction parent_instance;
+ PublishingPiwigoSessionLogoutTransactionPrivate * priv;
+};
+
+struct _PublishingPiwigoSessionLogoutTransactionClass {
+ PublishingPiwigoTransactionClass parent_class;
+};
+
+struct _PublishingPiwigoCategoriesAddTransaction {
+ PublishingPiwigoTransaction parent_instance;
+ PublishingPiwigoCategoriesAddTransactionPrivate * priv;
+};
+
+struct _PublishingPiwigoCategoriesAddTransactionClass {
+ PublishingPiwigoTransactionClass parent_class;
+};
+
+struct _PublishingPiwigoImagesAddTransaction {
+ PublishingRESTSupportUploadTransaction parent_instance;
+ PublishingPiwigoImagesAddTransactionPrivate * priv;
+};
+
+struct _PublishingPiwigoImagesAddTransactionClass {
+ PublishingRESTSupportUploadTransactionClass parent_class;
+};
+
+struct _PublishingPiwigoImagesAddTransactionPrivate {
+ PublishingPiwigoPublishingParameters* parameters;
+};
+
+
+static gpointer piwigo_service_parent_class = NULL;
+static GdkPixbuf** piwigo_service_icon_pixbuf_set;
+static gint piwigo_service_icon_pixbuf_set_length1;
+static GdkPixbuf** piwigo_service_icon_pixbuf_set = NULL;
+static gint piwigo_service_icon_pixbuf_set_length1 = 0;
+static gint _piwigo_service_icon_pixbuf_set_size_ = 0;
+static SpitPluggableIface* piwigo_service_spit_pluggable_parent_iface = NULL;
+static SpitPublishingServiceIface* piwigo_service_spit_publishing_service_parent_iface = NULL;
+static gpointer publishing_piwigo_category_parent_class = NULL;
+static gpointer publishing_piwigo_permission_level_parent_class = NULL;
+static gpointer publishing_piwigo_size_entry_parent_class = NULL;
+static gpointer publishing_piwigo_publishing_parameters_parent_class = NULL;
+static gpointer publishing_piwigo_piwigo_publisher_parent_class = NULL;
+static SpitPublishingPublisherIface* publishing_piwigo_piwigo_publisher_spit_publishing_publisher_parent_iface = NULL;
+static gpointer publishing_piwigo_uploader_parent_class = NULL;
+static gpointer publishing_piwigo_authentication_pane_parent_class = NULL;
+static gchar* publishing_piwigo_authentication_pane_INTRO_MESSAGE;
+static gchar* publishing_piwigo_authentication_pane_INTRO_MESSAGE = NULL;
+static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE;
+static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE = NULL;
+static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE;
+static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE = NULL;
+static SpitPublishingDialogPaneIface* publishing_piwigo_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_piwigo_publishing_options_pane_parent_class = NULL;
+static gchar* publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME;
+static gchar* publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME = NULL;
+static SpitPublishingDialogPaneIface* publishing_piwigo_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_piwigo_session_parent_class = NULL;
+static gpointer publishing_piwigo_transaction_parent_class = NULL;
+static gpointer publishing_piwigo_session_login_transaction_parent_class = NULL;
+static gpointer publishing_piwigo_session_get_status_transaction_parent_class = NULL;
+static gpointer publishing_piwigo_categories_get_list_transaction_parent_class = NULL;
+static gpointer publishing_piwigo_session_logout_transaction_parent_class = NULL;
+static gpointer publishing_piwigo_categories_add_transaction_parent_class = NULL;
+static gpointer publishing_piwigo_images_add_transaction_parent_class = NULL;
+
+GType piwigo_service_get_type (void) G_GNUC_CONST;
+enum {
+ PIWIGO_SERVICE_DUMMY_PROPERTY
+};
+#define PIWIGO_SERVICE_ICON_FILENAME "piwigo.png"
+PiwigoService* piwigo_service_new (GFile* resource_directory);
+PiwigoService* piwigo_service_construct (GType object_type, GFile* resource_directory);
+static gint piwigo_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+static const gchar* piwigo_service_real_get_id (SpitPluggable* base);
+static const gchar* piwigo_service_real_get_pluggable_name (SpitPluggable* base);
+static void piwigo_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static GdkPixbuf** _vala_array_dup10 (GdkPixbuf** self, int length);
+static void piwigo_service_real_activation (SpitPluggable* base, gboolean enabled);
+static SpitPublishingPublisher* piwigo_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host);
+PublishingPiwigoPiwigoPublisher* publishing_piwigo_piwigo_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host);
+PublishingPiwigoPiwigoPublisher* publishing_piwigo_piwigo_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host);
+GType publishing_piwigo_piwigo_publisher_get_type (void) G_GNUC_CONST;
+static SpitPublishingPublisherMediaType piwigo_service_real_get_supported_media (SpitPublishingService* base);
+static void piwigo_service_finalize (GObject* obj);
+#define PUBLISHING_PIWIGO_SERVICE_NAME "Piwigo"
+#define PUBLISHING_PIWIGO_PIWIGO_WS "ws.php"
+#define PUBLISHING_PIWIGO_ORIGINAL_SIZE -1
+gpointer publishing_piwigo_category_ref (gpointer instance);
+void publishing_piwigo_category_unref (gpointer instance);
+GParamSpec* publishing_piwigo_param_spec_category (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_piwigo_value_set_category (GValue* value, gpointer v_object);
+void publishing_piwigo_value_take_category (GValue* value, gpointer v_object);
+gpointer publishing_piwigo_value_get_category (const GValue* value);
+GType publishing_piwigo_category_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_PIWIGO_CATEGORY_DUMMY_PROPERTY
+};
+#define PUBLISHING_PIWIGO_CATEGORY_NO_ID -1
+PublishingPiwigoCategory* publishing_piwigo_category_new (gint id, const gchar* name, const gchar* uppercats, const gchar* comment);
+PublishingPiwigoCategory* publishing_piwigo_category_construct (GType object_type, gint id, const gchar* name, const gchar* uppercats, const gchar* comment);
+PublishingPiwigoCategory* publishing_piwigo_category_new_local (const gchar* name, gint parent_id, const gchar* comment);
+PublishingPiwigoCategory* publishing_piwigo_category_construct_local (GType object_type, const gchar* name, gint parent_id, const gchar* comment);
+gboolean publishing_piwigo_category_is_local (PublishingPiwigoCategory* self);
+static void publishing_piwigo_category_finalize (PublishingPiwigoCategory* obj);
+gpointer publishing_piwigo_permission_level_ref (gpointer instance);
+void publishing_piwigo_permission_level_unref (gpointer instance);
+GParamSpec* publishing_piwigo_param_spec_permission_level (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_piwigo_value_set_permission_level (GValue* value, gpointer v_object);
+void publishing_piwigo_value_take_permission_level (GValue* value, gpointer v_object);
+gpointer publishing_piwigo_value_get_permission_level (const GValue* value);
+GType publishing_piwigo_permission_level_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_PIWIGO_PERMISSION_LEVEL_DUMMY_PROPERTY
+};
+PublishingPiwigoPermissionLevel* publishing_piwigo_permission_level_new (gint id, const gchar* name);
+PublishingPiwigoPermissionLevel* publishing_piwigo_permission_level_construct (GType object_type, gint id, const gchar* name);
+static void publishing_piwigo_permission_level_finalize (PublishingPiwigoPermissionLevel* obj);
+gpointer publishing_piwigo_size_entry_ref (gpointer instance);
+void publishing_piwigo_size_entry_unref (gpointer instance);
+GParamSpec* publishing_piwigo_param_spec_size_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_piwigo_value_set_size_entry (GValue* value, gpointer v_object);
+void publishing_piwigo_value_take_size_entry (GValue* value, gpointer v_object);
+gpointer publishing_piwigo_value_get_size_entry (const GValue* value);
+GType publishing_piwigo_size_entry_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_PIWIGO_SIZE_ENTRY_DUMMY_PROPERTY
+};
+PublishingPiwigoSizeEntry* publishing_piwigo_size_entry_new (gint id, const gchar* name);
+PublishingPiwigoSizeEntry* publishing_piwigo_size_entry_construct (GType object_type, gint id, const gchar* name);
+static void publishing_piwigo_size_entry_finalize (PublishingPiwigoSizeEntry* obj);
+gpointer publishing_piwigo_publishing_parameters_ref (gpointer instance);
+void publishing_piwigo_publishing_parameters_unref (gpointer instance);
+GParamSpec* publishing_piwigo_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_piwigo_value_set_publishing_parameters (GValue* value, gpointer v_object);
+void publishing_piwigo_value_take_publishing_parameters (GValue* value, gpointer v_object);
+gpointer publishing_piwigo_value_get_publishing_parameters (const GValue* value);
+GType publishing_piwigo_publishing_parameters_get_type (void) G_GNUC_CONST;
+enum {
+ PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_DUMMY_PROPERTY
+};
+PublishingPiwigoPublishingParameters* publishing_piwigo_publishing_parameters_new (void);
+PublishingPiwigoPublishingParameters* publishing_piwigo_publishing_parameters_construct (GType object_type);
+static void publishing_piwigo_publishing_parameters_finalize (PublishingPiwigoPublishingParameters* obj);
+GType publishing_piwigo_session_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisherPrivate))
+enum {
+ PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_DUMMY_PROPERTY
+};
+PublishingPiwigoSession* publishing_piwigo_session_new (void);
+PublishingPiwigoSession* publishing_piwigo_session_construct (GType object_type);
+static SpitPublishingService* publishing_piwigo_piwigo_publisher_real_get_service (SpitPublishingPublisher* base);
+SpitPublishingPluginHost* publishing_piwigo_piwigo_publisher_get_host (PublishingPiwigoPiwigoPublisher* self);
+static gboolean publishing_piwigo_piwigo_publisher_real_is_running (SpitPublishingPublisher* base);
+static void publishing_piwigo_piwigo_publisher_real_start (SpitPublishingPublisher* base);
+static void publishing_piwigo_piwigo_publisher_do_fetch_categories (PublishingPiwigoPiwigoPublisher* self);
+gchar* publishing_piwigo_piwigo_publisher_get_persistent_url (PublishingPiwigoPiwigoPublisher* self);
+gchar* publishing_piwigo_piwigo_publisher_get_persistent_username (PublishingPiwigoPiwigoPublisher* self);
+gchar* publishing_piwigo_piwigo_publisher_get_persistent_password (PublishingPiwigoPiwigoPublisher* self);
+static void publishing_piwigo_piwigo_publisher_do_network_login (PublishingPiwigoPiwigoPublisher* self, const gchar* url, const gchar* username, const gchar* password, gboolean remember_password);
+gboolean publishing_piwigo_piwigo_publisher_get_remember_password (PublishingPiwigoPiwigoPublisher* self);
+GType publishing_piwigo_authentication_pane_mode_get_type (void) G_GNUC_CONST;
+static void publishing_piwigo_piwigo_publisher_do_show_authentication_pane (PublishingPiwigoPiwigoPublisher* self, PublishingPiwigoAuthenticationPaneMode mode);
+static void publishing_piwigo_piwigo_publisher_real_stop (SpitPublishingPublisher* base);
+static void publishing_piwigo_piwigo_publisher_set_persistent_url (PublishingPiwigoPiwigoPublisher* self, const gchar* url);
+static void publishing_piwigo_piwigo_publisher_set_persistent_username (PublishingPiwigoPiwigoPublisher* self, const gchar* username);
+static void publishing_piwigo_piwigo_publisher_set_persistent_password (PublishingPiwigoPiwigoPublisher* self, const gchar* password);
+static void publishing_piwigo_piwigo_publisher_set_remember_password (PublishingPiwigoPiwigoPublisher* self, gboolean remember_password);
+gint publishing_piwigo_piwigo_publisher_get_last_category (PublishingPiwigoPiwigoPublisher* self);
+static void publishing_piwigo_piwigo_publisher_set_last_category (PublishingPiwigoPiwigoPublisher* self, gint last_category);
+gint publishing_piwigo_piwigo_publisher_get_last_permission_level (PublishingPiwigoPiwigoPublisher* self);
+static void publishing_piwigo_piwigo_publisher_set_last_permission_level (PublishingPiwigoPiwigoPublisher* self, gint last_permission_level);
+gint publishing_piwigo_piwigo_publisher_get_last_photo_size (PublishingPiwigoPiwigoPublisher* self);
+static void publishing_piwigo_piwigo_publisher_set_last_photo_size (PublishingPiwigoPiwigoPublisher* self, gint last_photo_size);
+static gboolean publishing_piwigo_piwigo_publisher_get_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self);
+static void publishing_piwigo_piwigo_publisher_set_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self, gboolean title_as_comment);
+static gboolean publishing_piwigo_piwigo_publisher_get_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self);
+static void publishing_piwigo_piwigo_publisher_set_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self, gboolean no_upload_tags);
+static gboolean publishing_piwigo_piwigo_publisher_get_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self);
+static void publishing_piwigo_piwigo_publisher_set_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self, gboolean strip_metadata);
+GType publishing_piwigo_authentication_pane_get_type (void) G_GNUC_CONST;
+PublishingPiwigoAuthenticationPane* publishing_piwigo_authentication_pane_new (PublishingPiwigoPiwigoPublisher* publisher, PublishingPiwigoAuthenticationPaneMode mode);
+PublishingPiwigoAuthenticationPane* publishing_piwigo_authentication_pane_construct (GType object_type, PublishingPiwigoPiwigoPublisher* publisher, PublishingPiwigoAuthenticationPaneMode mode);
+static void publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked (PublishingPiwigoPiwigoPublisher* self, const gchar* url, const gchar* username, const gchar* password, gboolean remember_password);
+static void _publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked_publishing_piwigo_authentication_pane_login (PublishingPiwigoAuthenticationPane* _sender, const gchar* url, const gchar* user, const gchar* password, gboolean remember_password, gpointer self);
+GtkWidget* publishing_piwigo_authentication_pane_get_default_widget (PublishingPiwigoAuthenticationPane* self);
+GType publishing_piwigo_transaction_get_type (void) G_GNUC_CONST;
+GType publishing_piwigo_session_login_transaction_get_type (void) G_GNUC_CONST;
+gchar* publishing_piwigo_piwigo_publisher_normalise_url (const gchar* url);
+PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_new (PublishingPiwigoSession* session, const gchar* url, const gchar* username, const gchar* password);
+PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_construct (GType object_type, PublishingPiwigoSession* session, const gchar* url, const gchar* username, const gchar* password);
+static void publishing_piwigo_piwigo_publisher_on_login_network_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_piwigo_piwigo_publisher_on_login_network_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_piwigo_piwigo_publisher_do_show_error (PublishingPiwigoPiwigoPublisher* self, GError* e);
+gchar* publishing_piwigo_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc);
+static gchar* _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self);
+gchar* publishing_piwigo_transaction_get_error_code (PublishingRESTSupportXmlDocument* doc);
+static gchar* _publishing_piwigo_transaction_get_error_code_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self);
+static gchar* publishing_piwigo_piwigo_publisher_get_pwg_id_from_transaction (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn);
+void publishing_piwigo_session_set_pwg_id (PublishingPiwigoSession* self, const gchar* id);
+static void publishing_piwigo_piwigo_publisher_do_fetch_session_status (PublishingPiwigoPiwigoPublisher* self, const gchar* url, const gchar* pwg_id);
+GType publishing_piwigo_session_get_status_transaction_get_type (void) G_GNUC_CONST;
+PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_new_unauthenticated (PublishingPiwigoSession* session, const gchar* url, const gchar* pwg_id);
+PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_construct_unauthenticated (GType object_type, PublishingPiwigoSession* session, const gchar* url, const gchar* pwg_id);
+static void publishing_piwigo_piwigo_publisher_on_session_get_status_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_piwigo_piwigo_publisher_on_session_get_status_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_new (PublishingPiwigoSession* session);
+PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_construct (GType object_type, PublishingPiwigoSession* session);
+gchar* publishing_piwigo_session_get_pwg_id (PublishingPiwigoSession* self);
+void publishing_piwigo_session_authenticate (PublishingPiwigoSession* self, const gchar* url, const gchar* username, const gchar* id);
+gchar* publishing_piwigo_session_get_pwg_url (PublishingPiwigoSession* self);
+gchar* publishing_piwigo_session_get_username (PublishingPiwigoSession* self);
+static void publishing_piwigo_piwigo_publisher_on_network_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+GType publishing_piwigo_categories_get_list_transaction_get_type (void) G_GNUC_CONST;
+PublishingPiwigoCategoriesGetListTransaction* publishing_piwigo_categories_get_list_transaction_new (PublishingPiwigoSession* session);
+PublishingPiwigoCategoriesGetListTransaction* publishing_piwigo_categories_get_list_transaction_construct (GType object_type, PublishingPiwigoSession* session);
+static void publishing_piwigo_piwigo_publisher_on_category_fetch_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_piwigo_piwigo_publisher_on_category_fetch_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void _vala_array_add34 (PublishingPiwigoCategory*** array, int* length, int* size, PublishingPiwigoCategory* value);
+static void publishing_piwigo_piwigo_publisher_do_show_publishing_options_pane (PublishingPiwigoPiwigoPublisher* self);
+GType publishing_piwigo_publishing_options_pane_get_type (void) G_GNUC_CONST;
+PublishingPiwigoPublishingOptionsPane* publishing_piwigo_publishing_options_pane_new (PublishingPiwigoPiwigoPublisher* publisher, PublishingPiwigoCategory** categories, int categories_length1, gint last_category, gint last_permission_level, gint last_photo_size, gboolean last_title_as_comment, gboolean last_no_upload_tags, gboolean strip_metadata_enabled);
+PublishingPiwigoPublishingOptionsPane* publishing_piwigo_publishing_options_pane_construct (GType object_type, PublishingPiwigoPiwigoPublisher* publisher, PublishingPiwigoCategory** categories, int categories_length1, gint last_category, gint last_permission_level, gint last_photo_size, gboolean last_title_as_comment, gboolean last_no_upload_tags, gboolean strip_metadata_enabled);
+static void publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked (PublishingPiwigoPiwigoPublisher* self);
+static void _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked_publishing_piwigo_publishing_options_pane_logout (PublishingPiwigoPublishingOptionsPane* _sender, gpointer self);
+static void publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked (PublishingPiwigoPiwigoPublisher* self, PublishingPiwigoPublishingParameters* parameters, gboolean strip_metadata);
+static void _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked_publishing_piwigo_publishing_options_pane_publish (PublishingPiwigoPublishingOptionsPane* _sender, PublishingPiwigoPublishingParameters* parameters, gboolean strip_metadata, gpointer self);
+GtkWidget* publishing_piwigo_publishing_options_pane_get_default_widget (PublishingPiwigoPublishingOptionsPane* self);
+GType publishing_piwigo_session_logout_transaction_get_type (void) G_GNUC_CONST;
+PublishingPiwigoSessionLogoutTransaction* publishing_piwigo_session_logout_transaction_new (PublishingPiwigoSession* session);
+PublishingPiwigoSessionLogoutTransaction* publishing_piwigo_session_logout_transaction_construct (GType object_type, PublishingPiwigoSession* session);
+static void publishing_piwigo_piwigo_publisher_on_logout_network_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_piwigo_piwigo_publisher_on_logout_network_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+void publishing_piwigo_session_deauthenticate (PublishingPiwigoSession* self);
+static void publishing_piwigo_piwigo_publisher_do_create_category (PublishingPiwigoPiwigoPublisher* self, PublishingPiwigoCategory* category);
+static void publishing_piwigo_piwigo_publisher_do_upload (PublishingPiwigoPiwigoPublisher* self, gboolean strip_metadata);
+GType publishing_piwigo_categories_add_transaction_get_type (void) G_GNUC_CONST;
+PublishingPiwigoCategoriesAddTransaction* publishing_piwigo_categories_add_transaction_new (PublishingPiwigoSession* session, const gchar* category, gint parent_id, const gchar* comment);
+PublishingPiwigoCategoriesAddTransaction* publishing_piwigo_categories_add_transaction_construct (GType object_type, PublishingPiwigoSession* session, const gchar* category, gint parent_id, const gchar* comment);
+static void publishing_piwigo_piwigo_publisher_on_category_add_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static void publishing_piwigo_piwigo_publisher_on_category_add_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+GType publishing_piwigo_uploader_get_type (void) G_GNUC_CONST;
+PublishingPiwigoUploader* publishing_piwigo_uploader_new (PublishingPiwigoSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingPiwigoPublishingParameters* parameters);
+PublishingPiwigoUploader* publishing_piwigo_uploader_construct (GType object_type, PublishingPiwigoSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingPiwigoPublishingParameters* parameters);
+static void publishing_piwigo_piwigo_publisher_on_upload_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published);
+static void _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self);
+static void publishing_piwigo_piwigo_publisher_on_upload_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err);
+static void _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self);
+static void publishing_piwigo_piwigo_publisher_on_upload_status_updated (PublishingPiwigoPiwigoPublisher* self, gint file_number, gdouble completed_fraction);
+static void _publishing_piwigo_piwigo_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self);
+static void publishing_piwigo_piwigo_publisher_do_show_success_pane (PublishingPiwigoPiwigoPublisher* self);
+static void publishing_piwigo_piwigo_publisher_do_show_error_message (PublishingPiwigoPiwigoPublisher* self, const gchar* message);
+static SoupCookie* _vala_SoupCookie_copy (SoupCookie* self);
+static void _vala_SoupCookie_free (SoupCookie* self);
+static void __vala_SoupCookie_free0_ (gpointer var);
+static void _g_slist_free___vala_SoupCookie_free0_ (GSList* self);
+static void publishing_piwigo_piwigo_publisher_finalize (GObject* obj);
+#define PUBLISHING_PIWIGO_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploaderPrivate))
+enum {
+ PUBLISHING_PIWIGO_UPLOADER_DUMMY_PROPERTY
+};
+static PublishingRESTSupportTransaction* publishing_piwigo_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable);
+PublishingPiwigoImagesAddTransaction* publishing_piwigo_images_add_transaction_new (PublishingPiwigoSession* session, PublishingPiwigoPublishingParameters* parameters, SpitPublishingPublishable* publishable);
+PublishingPiwigoImagesAddTransaction* publishing_piwigo_images_add_transaction_construct (GType object_type, PublishingPiwigoSession* session, PublishingPiwigoPublishingParameters* parameters, SpitPublishingPublishable* publishable);
+GType publishing_piwigo_images_add_transaction_get_type (void) G_GNUC_CONST;
+static void publishing_piwigo_uploader_finalize (PublishingRESTSupportBatchUploader* obj);
+#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPanePrivate))
+enum {
+ PUBLISHING_PIWIGO_AUTHENTICATION_PANE_DUMMY_PROPERTY
+};
+static void publishing_piwigo_authentication_pane_on_user_changed (PublishingPiwigoAuthenticationPane* self);
+static void _publishing_piwigo_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_piwigo_authentication_pane_on_url_changed (PublishingPiwigoAuthenticationPane* self);
+static void _publishing_piwigo_authentication_pane_on_url_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_piwigo_authentication_pane_on_password_changed (PublishingPiwigoAuthenticationPane* self);
+static void _publishing_piwigo_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_piwigo_authentication_pane_on_login_button_clicked (PublishingPiwigoAuthenticationPane* self);
+static void _publishing_piwigo_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_piwigo_authentication_pane_update_login_button_sensitivity (PublishingPiwigoAuthenticationPane* self);
+static GtkWidget* publishing_piwigo_authentication_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_piwigo_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_piwigo_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_piwigo_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void g_cclosure_user_marshal_VOID__STRING_STRING_STRING_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void publishing_piwigo_authentication_pane_finalize (GObject* obj);
+#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPanePrivate))
+enum {
+ PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DUMMY_PROPERTY
+};
+static void publishing_piwigo_publishing_options_pane_on_logout_button_clicked (PublishingPiwigoPublishingOptionsPane* self);
+static void _publishing_piwigo_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_piwigo_publishing_options_pane_on_publish_button_clicked (PublishingPiwigoPublishingOptionsPane* self);
+static void _publishing_piwigo_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked (PublishingPiwigoPublishingOptionsPane* self);
+static void _publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked (PublishingPiwigoPublishingOptionsPane* self);
+static void _publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_piwigo_publishing_options_pane_on_new_category_entry_changed (PublishingPiwigoPublishingOptionsPane* self);
+static void _publishing_piwigo_publishing_options_pane_on_new_category_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void publishing_piwigo_publishing_options_pane_on_existing_combo_changed (PublishingPiwigoPublishingOptionsPane* self);
+static void _publishing_piwigo_publishing_options_pane_on_existing_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
+static PublishingPiwigoCategory** _vala_array_dup11 (PublishingPiwigoCategory** self, int length);
+static PublishingPiwigoPermissionLevel** publishing_piwigo_publishing_options_pane_create_perm_levels (PublishingPiwigoPublishingOptionsPane* self, int* result_length1);
+static PublishingPiwigoSizeEntry** publishing_piwigo_publishing_options_pane_create_sizes (PublishingPiwigoPublishingOptionsPane* self, int* result_length1);
+static gchar* publishing_piwigo_publishing_options_pane_get_common_comment_if_possible (PublishingPiwigoPublishingOptionsPane* self, PublishingPiwigoPiwigoPublisher* publisher);
+static void _vala_array_add35 (PublishingPiwigoPermissionLevel*** array, int* length, int* size, PublishingPiwigoPermissionLevel* value);
+static void _vala_array_add36 (PublishingPiwigoPermissionLevel*** array, int* length, int* size, PublishingPiwigoPermissionLevel* value);
+static void _vala_array_add37 (PublishingPiwigoPermissionLevel*** array, int* length, int* size, PublishingPiwigoPermissionLevel* value);
+static void _vala_array_add38 (PublishingPiwigoPermissionLevel*** array, int* length, int* size, PublishingPiwigoPermissionLevel* value);
+static void _vala_array_add39 (PublishingPiwigoPermissionLevel*** array, int* length, int* size, PublishingPiwigoPermissionLevel* value);
+static void _vala_array_add40 (PublishingPiwigoSizeEntry*** array, int* length, int* size, PublishingPiwigoSizeEntry* value);
+static void _vala_array_add41 (PublishingPiwigoSizeEntry*** array, int* length, int* size, PublishingPiwigoSizeEntry* value);
+static void _vala_array_add42 (PublishingPiwigoSizeEntry*** array, int* length, int* size, PublishingPiwigoSizeEntry* value);
+static void _vala_array_add43 (PublishingPiwigoSizeEntry*** array, int* length, int* size, PublishingPiwigoSizeEntry* value);
+static void _vala_array_add44 (PublishingPiwigoSizeEntry*** array, int* length, int* size, PublishingPiwigoSizeEntry* value);
+static void publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (PublishingPiwigoPublishingOptionsPane* self);
+static gboolean publishing_piwigo_publishing_options_pane_category_already_exists (PublishingPiwigoPublishingOptionsPane* self, const gchar* category_name);
+static GtkWidget* publishing_piwigo_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_piwigo_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_piwigo_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_piwigo_publishing_options_pane_create_categories_combo (PublishingPiwigoPublishingOptionsPane* self);
+static void publishing_piwigo_publishing_options_pane_create_within_categories_combo (PublishingPiwigoPublishingOptionsPane* self);
+static void publishing_piwigo_publishing_options_pane_create_permissions_combo (PublishingPiwigoPublishingOptionsPane* self);
+static void publishing_piwigo_publishing_options_pane_create_size_combo (PublishingPiwigoPublishingOptionsPane* self);
+static gint publishing_piwigo_publishing_options_pane_find_category_index (PublishingPiwigoPublishingOptionsPane* self, gint category_id);
+static gint publishing_piwigo_publishing_options_pane_find_permission_level_index (PublishingPiwigoPublishingOptionsPane* self, gint permission_level_id);
+static gint publishing_piwigo_publishing_options_pane_find_size_index (PublishingPiwigoPublishingOptionsPane* self, gint size_id);
+static void publishing_piwigo_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+static void g_cclosure_user_marshal_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void publishing_piwigo_publishing_options_pane_finalize (GObject* obj);
+#define PUBLISHING_PIWIGO_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSessionPrivate))
+enum {
+ PUBLISHING_PIWIGO_SESSION_DUMMY_PROPERTY
+};
+static gboolean publishing_piwigo_session_real_is_authenticated (PublishingRESTSupportSession* base);
+static void publishing_piwigo_session_finalize (PublishingRESTSupportSession* obj);
+enum {
+ PUBLISHING_PIWIGO_TRANSACTION_DUMMY_PROPERTY
+};
+PublishingPiwigoTransaction* publishing_piwigo_transaction_new (PublishingPiwigoSession* session);
+PublishingPiwigoTransaction* publishing_piwigo_transaction_construct (GType object_type, PublishingPiwigoSession* session);
+PublishingPiwigoTransaction* publishing_piwigo_transaction_new_authenticated (PublishingPiwigoSession* session);
+PublishingPiwigoTransaction* publishing_piwigo_transaction_construct_authenticated (GType object_type, PublishingPiwigoSession* session);
+enum {
+ PUBLISHING_PIWIGO_SESSION_LOGIN_TRANSACTION_DUMMY_PROPERTY
+};
+enum {
+ PUBLISHING_PIWIGO_SESSION_GET_STATUS_TRANSACTION_DUMMY_PROPERTY
+};
+enum {
+ PUBLISHING_PIWIGO_CATEGORIES_GET_LIST_TRANSACTION_DUMMY_PROPERTY
+};
+enum {
+ PUBLISHING_PIWIGO_SESSION_LOGOUT_TRANSACTION_DUMMY_PROPERTY
+};
+enum {
+ PUBLISHING_PIWIGO_CATEGORIES_ADD_TRANSACTION_DUMMY_PROPERTY
+};
+#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransactionPrivate))
+enum {
+ PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_DUMMY_PROPERTY
+};
+static void _g_free0_ (gpointer var);
+static void publishing_piwigo_images_add_transaction_finalize (PublishingRESTSupportTransaction* 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);
+
+
+PiwigoService* piwigo_service_construct (GType object_type, GFile* resource_directory) {
+ PiwigoService * self = NULL;
+ GdkPixbuf** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PiwigoService*) g_object_new (object_type, NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = piwigo_service_icon_pixbuf_set;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0__length1 = piwigo_service_icon_pixbuf_set_length1;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 874 "PiwigoPublishing.c"
+ gint _tmp1_ = 0;
+ GdkPixbuf** _tmp2_ = NULL;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" PIWIGO_SERVICE_ICON_FILENAME, &_tmp1_);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ piwigo_service_icon_pixbuf_set = (_vala_array_free (piwigo_service_icon_pixbuf_set, piwigo_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ piwigo_service_icon_pixbuf_set = _tmp2_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ piwigo_service_icon_pixbuf_set_length1 = _tmp1_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _piwigo_service_icon_pixbuf_set_size_ = piwigo_service_icon_pixbuf_set_length1;
+#line 887 "PiwigoPublishing.c"
+ }
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 891 "PiwigoPublishing.c"
+}
+
+
+PiwigoService* piwigo_service_new (GFile* resource_directory) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return piwigo_service_construct (TYPE_PIWIGO_SERVICE, resource_directory);
+#line 898 "PiwigoPublishing.c"
+}
+
+
+static gint piwigo_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ PiwigoService * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = min_host_interface;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = max_host_interface;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp2_;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 920 "PiwigoPublishing.c"
+}
+
+
+static const gchar* piwigo_service_real_get_id (SpitPluggable* base) {
+ PiwigoService * self;
+ const gchar* result = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = "org.yorba.shotwell.publishing.piwigo";
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 933 "PiwigoPublishing.c"
+}
+
+
+static const gchar* piwigo_service_real_get_pluggable_name (SpitPluggable* base) {
+ PiwigoService * self;
+ const gchar* result = NULL;
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = "Piwigo";
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 946 "PiwigoPublishing.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 953 "PiwigoPublishing.c"
+}
+
+
+static GdkPixbuf** _vala_array_dup10 (GdkPixbuf** self, int length) {
+ GdkPixbuf** result;
+ int i;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = g_new0 (GdkPixbuf*, length + 1);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 964 "PiwigoPublishing.c"
+ GdkPixbuf* _tmp0_ = NULL;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result[i] = _tmp0_;
+#line 970 "PiwigoPublishing.c"
+ }
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 974 "PiwigoPublishing.c"
+}
+
+
+static void piwigo_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ PiwigoService * self;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GdkPixbuf** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GdkPixbuf** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (info != NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = g_strdup ("Bruno Girin");
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 ((*info).authors);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).authors = _tmp0_;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _ ("Copyright 2016 Software Freedom Conservancy Inc.");
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 ((*info).copyright);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).copyright = _tmp2_;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 ((*info).translators);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).translators = _tmp3_;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = g_strdup (_VERSION);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 ((*info).version);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).version = _tmp4_;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 ((*info).website_name);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).website_name = _tmp5_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 ((*info).website_url);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).website_url = _tmp6_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = g_strdup (RESOURCES_LICENSE);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 ((*info).license);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).license = _tmp7_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = piwigo_service_icon_pixbuf_set;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8__length1 = piwigo_service_icon_pixbuf_set_length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup10 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9__length1 = _tmp8__length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).icons = _tmp9_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*info).icons_length1 = _tmp9__length1;
+#line 1056 "PiwigoPublishing.c"
+}
+
+
+static void piwigo_service_real_activation (SpitPluggable* base, gboolean enabled) {
+ PiwigoService * self;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService);
+#line 1064 "PiwigoPublishing.c"
+}
+
+
+static SpitPublishingPublisher* piwigo_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) {
+ PiwigoService * self;
+ SpitPublishingPublisher* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingPiwigoPiwigoPublisher* _tmp1_ = NULL;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = host;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = publishing_piwigo_piwigo_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 1085 "PiwigoPublishing.c"
+}
+
+
+static SpitPublishingPublisherMediaType piwigo_service_real_get_supported_media (SpitPublishingService* base) {
+ PiwigoService * self;
+ SpitPublishingPublisherMediaType result = 0;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService);
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 1098 "PiwigoPublishing.c"
+}
+
+
+static void piwigo_service_class_init (PiwigoServiceClass * klass) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ piwigo_service_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = piwigo_service_finalize;
+#line 1107 "PiwigoPublishing.c"
+}
+
+
+static void piwigo_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ piwigo_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) piwigo_service_real_get_pluggable_interface;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) piwigo_service_real_get_id;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) piwigo_service_real_get_pluggable_name;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) piwigo_service_real_get_info;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) piwigo_service_real_activation;
+#line 1124 "PiwigoPublishing.c"
+}
+
+
+static void piwigo_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ piwigo_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->create_publisher = (SpitPublishingPublisher* (*)(SpitPublishingService*, SpitPublishingPluginHost*)) piwigo_service_real_create_publisher;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->get_supported_media = (SpitPublishingPublisherMediaType (*)(SpitPublishingService*)) piwigo_service_real_get_supported_media;
+#line 1135 "PiwigoPublishing.c"
+}
+
+
+static void piwigo_service_instance_init (PiwigoService * self) {
+}
+
+
+static void piwigo_service_finalize (GObject* obj) {
+ PiwigoService * self;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIWIGO_SERVICE, PiwigoService);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_OBJECT_CLASS (piwigo_service_parent_class)->finalize (obj);
+#line 1149 "PiwigoPublishing.c"
+}
+
+
+GType piwigo_service_get_type (void) {
+ static volatile gsize piwigo_service_type_id__volatile = 0;
+ if (g_once_init_enter (&piwigo_service_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PiwigoServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) piwigo_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PiwigoService), 0, (GInstanceInitFunc) piwigo_service_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) piwigo_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) piwigo_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType piwigo_service_type_id;
+ piwigo_service_type_id = g_type_register_static (G_TYPE_OBJECT, "PiwigoService", &g_define_type_info, 0);
+ g_type_add_interface_static (piwigo_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (piwigo_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info);
+ g_once_init_leave (&piwigo_service_type_id__volatile, piwigo_service_type_id);
+ }
+ return piwigo_service_type_id__volatile;
+}
+
+
+PublishingPiwigoCategory* publishing_piwigo_category_construct (GType object_type, gint id, const gchar* name, const gchar* uppercats, const gchar* comment) {
+ PublishingPiwigoCategory* self = NULL;
+ gint _tmp0_ = 0;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (uppercats != NULL, NULL);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoCategory*) g_type_create_instance (object_type);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = id;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->id = _tmp0_;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = name;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->name);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->name = _tmp2_;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = uppercats;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = g_strdup (_tmp3_);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->uppercats);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->uppercats = _tmp4_;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = comment;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = g_strdup (_tmp5_);
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->comment);
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->comment = _tmp6_;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 1214 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoCategory* publishing_piwigo_category_new (gint id, const gchar* name, const gchar* uppercats, const gchar* comment) {
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_category_construct (PUBLISHING_PIWIGO_TYPE_CATEGORY, id, name, uppercats, comment);
+#line 1221 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoCategory* publishing_piwigo_category_construct_local (GType object_type, const gchar* name, gint parent_id, const gchar* comment) {
+ PublishingPiwigoCategory* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoCategory*) g_type_create_instance (object_type);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->id = PUBLISHING_PIWIGO_CATEGORY_NO_ID;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = name;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->name);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->name = _tmp1_;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = parent_id;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = g_strdup_printf ("%i", _tmp2_);
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->uppercats);
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->uppercats = _tmp3_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = comment;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->comment);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->comment = _tmp5_;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 1265 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoCategory* publishing_piwigo_category_new_local (const gchar* name, gint parent_id, const gchar* comment) {
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_category_construct_local (PUBLISHING_PIWIGO_TYPE_CATEGORY, name, parent_id, comment);
+#line 1272 "PiwigoPublishing.c"
+}
+
+
+gboolean publishing_piwigo_category_is_local (PublishingPiwigoCategory* self) {
+ gboolean result = FALSE;
+ gint _tmp0_ = 0;
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_CATEGORY (self), FALSE);
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->id;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp0_ == PUBLISHING_PIWIGO_CATEGORY_NO_ID;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 1287 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_value_category_init (GValue* value) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1294 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_value_category_free_value (GValue* value) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_category_unref (value->data[0].v_pointer);
+#line 1303 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_value_category_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_piwigo_category_ref (src_value->data[0].v_pointer);
+#line 1313 "PiwigoPublishing.c"
+ } else {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1317 "PiwigoPublishing.c"
+ }
+}
+
+
+static gpointer publishing_piwigo_value_category_peek_pointer (const GValue* value) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1325 "PiwigoPublishing.c"
+}
+
+
+static gchar* publishing_piwigo_value_category_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 1332 "PiwigoPublishing.c"
+ PublishingPiwigoCategory* object;
+ object = collect_values[0].v_pointer;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1339 "PiwigoPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 1343 "PiwigoPublishing.c"
+ }
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = publishing_piwigo_category_ref (object);
+#line 1347 "PiwigoPublishing.c"
+ } else {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1351 "PiwigoPublishing.c"
+ }
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 1355 "PiwigoPublishing.c"
+}
+
+
+static gchar* publishing_piwigo_value_category_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingPiwigoCategory** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!object_p) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1366 "PiwigoPublishing.c"
+ }
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = NULL;
+#line 1372 "PiwigoPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1376 "PiwigoPublishing.c"
+ } else {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = publishing_piwigo_category_ref (value->data[0].v_pointer);
+#line 1380 "PiwigoPublishing.c"
+ }
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 1384 "PiwigoPublishing.c"
+}
+
+
+GParamSpec* publishing_piwigo_param_spec_category (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingPiwigoParamSpecCategory* spec;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_CATEGORY), NULL);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 1398 "PiwigoPublishing.c"
+}
+
+
+gpointer publishing_piwigo_value_get_category (const GValue* value) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_CATEGORY), NULL);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1407 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_value_set_category (GValue* value, gpointer v_object) {
+ PublishingPiwigoCategory* old;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_CATEGORY));
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (v_object) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_CATEGORY));
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_category_ref (value->data[0].v_pointer);
+#line 1427 "PiwigoPublishing.c"
+ } else {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1431 "PiwigoPublishing.c"
+ }
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (old) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_category_unref (old);
+#line 1437 "PiwigoPublishing.c"
+ }
+}
+
+
+void publishing_piwigo_value_take_category (GValue* value, gpointer v_object) {
+ PublishingPiwigoCategory* old;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_CATEGORY));
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (v_object) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_CATEGORY));
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1456 "PiwigoPublishing.c"
+ } else {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1460 "PiwigoPublishing.c"
+ }
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (old) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_category_unref (old);
+#line 1466 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_category_class_init (PublishingPiwigoCategoryClass * klass) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_category_parent_class = g_type_class_peek_parent (klass);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ ((PublishingPiwigoCategoryClass *) klass)->finalize = publishing_piwigo_category_finalize;
+#line 1476 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_category_instance_init (PublishingPiwigoCategory * self) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->ref_count = 1;
+#line 1483 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_category_finalize (PublishingPiwigoCategory* obj) {
+ PublishingPiwigoCategory * self;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategory);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->name);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->comment);
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->display_name);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->uppercats);
+#line 1501 "PiwigoPublishing.c"
+}
+
+
+GType publishing_piwigo_category_get_type (void) {
+ static volatile gsize publishing_piwigo_category_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_category_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_category_init, publishing_piwigo_value_category_free_value, publishing_piwigo_value_category_copy_value, publishing_piwigo_value_category_peek_pointer, "p", publishing_piwigo_value_category_collect_value, "p", publishing_piwigo_value_category_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoCategoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_category_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoCategory), 0, (GInstanceInitFunc) publishing_piwigo_category_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 publishing_piwigo_category_type_id;
+ publishing_piwigo_category_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoCategory", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_piwigo_category_type_id__volatile, publishing_piwigo_category_type_id);
+ }
+ return publishing_piwigo_category_type_id__volatile;
+}
+
+
+gpointer publishing_piwigo_category_ref (gpointer instance) {
+ PublishingPiwigoCategory* self;
+ self = instance;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return instance;
+#line 1526 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_category_unref (gpointer instance) {
+ PublishingPiwigoCategory* self;
+ self = instance;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ PUBLISHING_PIWIGO_CATEGORY_GET_CLASS (self)->finalize (self);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1539 "PiwigoPublishing.c"
+ }
+}
+
+
+PublishingPiwigoPermissionLevel* publishing_piwigo_permission_level_construct (GType object_type, gint id, const gchar* name) {
+ PublishingPiwigoPermissionLevel* self = NULL;
+ gint _tmp0_ = 0;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoPermissionLevel*) g_type_create_instance (object_type);
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = id;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->id = _tmp0_;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = name;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->name);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->name = _tmp2_;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 1567 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoPermissionLevel* publishing_piwigo_permission_level_new (gint id, const gchar* name) {
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_permission_level_construct (PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, id, name);
+#line 1574 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_value_permission_level_init (GValue* value) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1581 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_value_permission_level_free_value (GValue* value) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_permission_level_unref (value->data[0].v_pointer);
+#line 1590 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_value_permission_level_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_piwigo_permission_level_ref (src_value->data[0].v_pointer);
+#line 1600 "PiwigoPublishing.c"
+ } else {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1604 "PiwigoPublishing.c"
+ }
+}
+
+
+static gpointer publishing_piwigo_value_permission_level_peek_pointer (const GValue* value) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1612 "PiwigoPublishing.c"
+}
+
+
+static gchar* publishing_piwigo_value_permission_level_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 1619 "PiwigoPublishing.c"
+ PublishingPiwigoPermissionLevel* object;
+ object = collect_values[0].v_pointer;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1626 "PiwigoPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 1630 "PiwigoPublishing.c"
+ }
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = publishing_piwigo_permission_level_ref (object);
+#line 1634 "PiwigoPublishing.c"
+ } else {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1638 "PiwigoPublishing.c"
+ }
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 1642 "PiwigoPublishing.c"
+}
+
+
+static gchar* publishing_piwigo_value_permission_level_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingPiwigoPermissionLevel** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!object_p) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1653 "PiwigoPublishing.c"
+ }
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = NULL;
+#line 1659 "PiwigoPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1663 "PiwigoPublishing.c"
+ } else {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = publishing_piwigo_permission_level_ref (value->data[0].v_pointer);
+#line 1667 "PiwigoPublishing.c"
+ }
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 1671 "PiwigoPublishing.c"
+}
+
+
+GParamSpec* publishing_piwigo_param_spec_permission_level (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingPiwigoParamSpecPermissionLevel* spec;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL), NULL);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 1685 "PiwigoPublishing.c"
+}
+
+
+gpointer publishing_piwigo_value_get_permission_level (const GValue* value) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL), NULL);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1694 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_value_set_permission_level (GValue* value, gpointer v_object) {
+ PublishingPiwigoPermissionLevel* old;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL));
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (v_object) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL));
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_permission_level_ref (value->data[0].v_pointer);
+#line 1714 "PiwigoPublishing.c"
+ } else {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1718 "PiwigoPublishing.c"
+ }
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (old) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_permission_level_unref (old);
+#line 1724 "PiwigoPublishing.c"
+ }
+}
+
+
+void publishing_piwigo_value_take_permission_level (GValue* value, gpointer v_object) {
+ PublishingPiwigoPermissionLevel* old;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL));
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (v_object) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL));
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1743 "PiwigoPublishing.c"
+ } else {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1747 "PiwigoPublishing.c"
+ }
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (old) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_permission_level_unref (old);
+#line 1753 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_permission_level_class_init (PublishingPiwigoPermissionLevelClass * klass) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_permission_level_parent_class = g_type_class_peek_parent (klass);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ ((PublishingPiwigoPermissionLevelClass *) klass)->finalize = publishing_piwigo_permission_level_finalize;
+#line 1763 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_permission_level_instance_init (PublishingPiwigoPermissionLevel * self) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->ref_count = 1;
+#line 1770 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_permission_level_finalize (PublishingPiwigoPermissionLevel* obj) {
+ PublishingPiwigoPermissionLevel * self;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevel);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->name);
+#line 1782 "PiwigoPublishing.c"
+}
+
+
+GType publishing_piwigo_permission_level_get_type (void) {
+ static volatile gsize publishing_piwigo_permission_level_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_permission_level_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_permission_level_init, publishing_piwigo_value_permission_level_free_value, publishing_piwigo_value_permission_level_copy_value, publishing_piwigo_value_permission_level_peek_pointer, "p", publishing_piwigo_value_permission_level_collect_value, "p", publishing_piwigo_value_permission_level_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPermissionLevelClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_permission_level_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPermissionLevel), 0, (GInstanceInitFunc) publishing_piwigo_permission_level_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 publishing_piwigo_permission_level_type_id;
+ publishing_piwigo_permission_level_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoPermissionLevel", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_piwigo_permission_level_type_id__volatile, publishing_piwigo_permission_level_type_id);
+ }
+ return publishing_piwigo_permission_level_type_id__volatile;
+}
+
+
+gpointer publishing_piwigo_permission_level_ref (gpointer instance) {
+ PublishingPiwigoPermissionLevel* self;
+ self = instance;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return instance;
+#line 1807 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_permission_level_unref (gpointer instance) {
+ PublishingPiwigoPermissionLevel* self;
+ self = instance;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ PUBLISHING_PIWIGO_PERMISSION_LEVEL_GET_CLASS (self)->finalize (self);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1820 "PiwigoPublishing.c"
+ }
+}
+
+
+PublishingPiwigoSizeEntry* publishing_piwigo_size_entry_construct (GType object_type, gint id, const gchar* name) {
+ PublishingPiwigoSizeEntry* self = NULL;
+ gint _tmp0_ = 0;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoSizeEntry*) g_type_create_instance (object_type);
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = id;
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->id = _tmp0_;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = name;
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->name);
+#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->name = _tmp2_;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 1848 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoSizeEntry* publishing_piwigo_size_entry_new (gint id, const gchar* name) {
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_size_entry_construct (PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, id, name);
+#line 1855 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_value_size_entry_init (GValue* value) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1862 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_value_size_entry_free_value (GValue* value) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_size_entry_unref (value->data[0].v_pointer);
+#line 1871 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_value_size_entry_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_piwigo_size_entry_ref (src_value->data[0].v_pointer);
+#line 1881 "PiwigoPublishing.c"
+ } else {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1885 "PiwigoPublishing.c"
+ }
+}
+
+
+static gpointer publishing_piwigo_value_size_entry_peek_pointer (const GValue* value) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1893 "PiwigoPublishing.c"
+}
+
+
+static gchar* publishing_piwigo_value_size_entry_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 1900 "PiwigoPublishing.c"
+ PublishingPiwigoSizeEntry* object;
+ object = collect_values[0].v_pointer;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1907 "PiwigoPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 1911 "PiwigoPublishing.c"
+ }
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = publishing_piwigo_size_entry_ref (object);
+#line 1915 "PiwigoPublishing.c"
+ } else {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1919 "PiwigoPublishing.c"
+ }
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 1923 "PiwigoPublishing.c"
+}
+
+
+static gchar* publishing_piwigo_value_size_entry_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingPiwigoSizeEntry** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!object_p) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1934 "PiwigoPublishing.c"
+ }
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = NULL;
+#line 1940 "PiwigoPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1944 "PiwigoPublishing.c"
+ } else {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = publishing_piwigo_size_entry_ref (value->data[0].v_pointer);
+#line 1948 "PiwigoPublishing.c"
+ }
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 1952 "PiwigoPublishing.c"
+}
+
+
+GParamSpec* publishing_piwigo_param_spec_size_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingPiwigoParamSpecSizeEntry* spec;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY), NULL);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 1966 "PiwigoPublishing.c"
+}
+
+
+gpointer publishing_piwigo_value_get_size_entry (const GValue* value) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY), NULL);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return value->data[0].v_pointer;
+#line 1975 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_value_set_size_entry (GValue* value, gpointer v_object) {
+ PublishingPiwigoSizeEntry* old;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY));
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (v_object) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY));
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_size_entry_ref (value->data[0].v_pointer);
+#line 1995 "PiwigoPublishing.c"
+ } else {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1999 "PiwigoPublishing.c"
+ }
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (old) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_size_entry_unref (old);
+#line 2005 "PiwigoPublishing.c"
+ }
+}
+
+
+void publishing_piwigo_value_take_size_entry (GValue* value, gpointer v_object) {
+ PublishingPiwigoSizeEntry* old;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY));
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (v_object) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY));
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 2024 "PiwigoPublishing.c"
+ } else {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 2028 "PiwigoPublishing.c"
+ }
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (old) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_size_entry_unref (old);
+#line 2034 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_size_entry_class_init (PublishingPiwigoSizeEntryClass * klass) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_size_entry_parent_class = g_type_class_peek_parent (klass);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ ((PublishingPiwigoSizeEntryClass *) klass)->finalize = publishing_piwigo_size_entry_finalize;
+#line 2044 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_size_entry_instance_init (PublishingPiwigoSizeEntry * self) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->ref_count = 1;
+#line 2051 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_size_entry_finalize (PublishingPiwigoSizeEntry* obj) {
+ PublishingPiwigoSizeEntry * self;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntry);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->name);
+#line 2063 "PiwigoPublishing.c"
+}
+
+
+GType publishing_piwigo_size_entry_get_type (void) {
+ static volatile gsize publishing_piwigo_size_entry_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_size_entry_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_size_entry_init, publishing_piwigo_value_size_entry_free_value, publishing_piwigo_value_size_entry_copy_value, publishing_piwigo_value_size_entry_peek_pointer, "p", publishing_piwigo_value_size_entry_collect_value, "p", publishing_piwigo_value_size_entry_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSizeEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_size_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSizeEntry), 0, (GInstanceInitFunc) publishing_piwigo_size_entry_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 publishing_piwigo_size_entry_type_id;
+ publishing_piwigo_size_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoSizeEntry", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_piwigo_size_entry_type_id__volatile, publishing_piwigo_size_entry_type_id);
+ }
+ return publishing_piwigo_size_entry_type_id__volatile;
+}
+
+
+gpointer publishing_piwigo_size_entry_ref (gpointer instance) {
+ PublishingPiwigoSizeEntry* self;
+ self = instance;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return instance;
+#line 2088 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_size_entry_unref (gpointer instance) {
+ PublishingPiwigoSizeEntry* self;
+ self = instance;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ PUBLISHING_PIWIGO_SIZE_ENTRY_GET_CLASS (self)->finalize (self);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 2101 "PiwigoPublishing.c"
+ }
+}
+
+
+PublishingPiwigoPublishingParameters* publishing_piwigo_publishing_parameters_construct (GType object_type) {
+ PublishingPiwigoPublishingParameters* self = NULL;
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoPublishingParameters*) g_type_create_instance (object_type);
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 2112 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoPublishingParameters* publishing_piwigo_publishing_parameters_new (void) {
+#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_publishing_parameters_construct (PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS);
+#line 2119 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_value_publishing_parameters_init (GValue* value) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 2126 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_value_publishing_parameters_free_value (GValue* value) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_parameters_unref (value->data[0].v_pointer);
+#line 2135 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_value_publishing_parameters_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ dest_value->data[0].v_pointer = publishing_piwigo_publishing_parameters_ref (src_value->data[0].v_pointer);
+#line 2145 "PiwigoPublishing.c"
+ } else {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 2149 "PiwigoPublishing.c"
+ }
+}
+
+
+static gpointer publishing_piwigo_value_publishing_parameters_peek_pointer (const GValue* value) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return value->data[0].v_pointer;
+#line 2157 "PiwigoPublishing.c"
+}
+
+
+static gchar* publishing_piwigo_value_publishing_parameters_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 2164 "PiwigoPublishing.c"
+ PublishingPiwigoPublishingParameters* object;
+ object = collect_values[0].v_pointer;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 2171 "PiwigoPublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 2175 "PiwigoPublishing.c"
+ }
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = publishing_piwigo_publishing_parameters_ref (object);
+#line 2179 "PiwigoPublishing.c"
+ } else {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 2183 "PiwigoPublishing.c"
+ }
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 2187 "PiwigoPublishing.c"
+}
+
+
+static gchar* publishing_piwigo_value_publishing_parameters_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingPiwigoPublishingParameters** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!object_p) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 2198 "PiwigoPublishing.c"
+ }
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = NULL;
+#line 2204 "PiwigoPublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 2208 "PiwigoPublishing.c"
+ } else {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *object_p = publishing_piwigo_publishing_parameters_ref (value->data[0].v_pointer);
+#line 2212 "PiwigoPublishing.c"
+ }
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 2216 "PiwigoPublishing.c"
+}
+
+
+GParamSpec* publishing_piwigo_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingPiwigoParamSpecPublishingParameters* spec;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 2230 "PiwigoPublishing.c"
+}
+
+
+gpointer publishing_piwigo_value_get_publishing_parameters (const GValue* value) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return value->data[0].v_pointer;
+#line 2239 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_value_set_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingPiwigoPublishingParameters* old;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS));
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (v_object) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS));
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_parameters_ref (value->data[0].v_pointer);
+#line 2259 "PiwigoPublishing.c"
+ } else {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 2263 "PiwigoPublishing.c"
+ }
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (old) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_parameters_unref (old);
+#line 2269 "PiwigoPublishing.c"
+ }
+}
+
+
+void publishing_piwigo_value_take_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingPiwigoPublishingParameters* old;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS));
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ old = value->data[0].v_pointer;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (v_object) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS));
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 2288 "PiwigoPublishing.c"
+ } else {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 2292 "PiwigoPublishing.c"
+ }
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (old) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_parameters_unref (old);
+#line 2298 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_publishing_parameters_class_init (PublishingPiwigoPublishingParametersClass * klass) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_parameters_parent_class = g_type_class_peek_parent (klass);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ ((PublishingPiwigoPublishingParametersClass *) klass)->finalize = publishing_piwigo_publishing_parameters_finalize;
+#line 2308 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_parameters_instance_init (PublishingPiwigoPublishingParameters * self) {
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->category = NULL;
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->perm_level = NULL;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->photo_size = NULL;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->title_as_comment = FALSE;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->no_upload_tags = FALSE;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->ref_count = 1;
+#line 2325 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_parameters_finalize (PublishingPiwigoPublishingParameters* obj) {
+ PublishingPiwigoPublishingParameters * self;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParameters);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_category_unref0 (self->category);
+#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_permission_level_unref0 (self->perm_level);
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_size_entry_unref0 (self->photo_size);
+#line 2341 "PiwigoPublishing.c"
+}
+
+
+GType publishing_piwigo_publishing_parameters_get_type (void) {
+ static volatile gsize publishing_piwigo_publishing_parameters_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_publishing_parameters_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_publishing_parameters_init, publishing_piwigo_value_publishing_parameters_free_value, publishing_piwigo_value_publishing_parameters_copy_value, publishing_piwigo_value_publishing_parameters_peek_pointer, "p", publishing_piwigo_value_publishing_parameters_collect_value, "p", publishing_piwigo_value_publishing_parameters_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPublishingParameters), 0, (GInstanceInitFunc) publishing_piwigo_publishing_parameters_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 publishing_piwigo_publishing_parameters_type_id;
+ publishing_piwigo_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_piwigo_publishing_parameters_type_id__volatile, publishing_piwigo_publishing_parameters_type_id);
+ }
+ return publishing_piwigo_publishing_parameters_type_id__volatile;
+}
+
+
+gpointer publishing_piwigo_publishing_parameters_ref (gpointer instance) {
+ PublishingPiwigoPublishingParameters* self;
+ self = instance;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return instance;
+#line 2366 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_publishing_parameters_unref (gpointer instance) {
+ PublishingPiwigoPublishingParameters* self;
+ self = instance;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 2379 "PiwigoPublishing.c"
+ }
+}
+
+
+PublishingPiwigoPiwigoPublisher* publishing_piwigo_piwigo_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) {
+ PublishingPiwigoPiwigoPublisher * self = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ PublishingPiwigoSession* _tmp4_ = NULL;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoPiwigoPublisher*) g_object_new (object_type, NULL);
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:133: PiwigoPublisher instantiated.");
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = service;
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->service);
+#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->service = _tmp1_;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = host;
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->host);
+#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->host = _tmp3_;
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = publishing_piwigo_session_new ();
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->session = _tmp4_;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 2423 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoPiwigoPublisher* publishing_piwigo_piwigo_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) {
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_piwigo_publisher_construct (PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, service, host);
+#line 2430 "PiwigoPublishing.c"
+}
+
+
+static SpitPublishingService* publishing_piwigo_piwigo_publisher_real_get_service (SpitPublishingPublisher* base) {
+ PublishingPiwigoPiwigoPublisher * self;
+ SpitPublishingService* result = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingService* _tmp1_ = NULL;
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->service;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2449 "PiwigoPublishing.c"
+}
+
+
+SpitPublishingPluginHost* publishing_piwigo_piwigo_publisher_get_host (PublishingPiwigoPiwigoPublisher* self) {
+ SpitPublishingPluginHost* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL);
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2467 "PiwigoPublishing.c"
+}
+
+
+static gboolean publishing_piwigo_piwigo_publisher_real_is_running (SpitPublishingPublisher* base) {
+ PublishingPiwigoPiwigoPublisher * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher);
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp0_;
+#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2483 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_real_start (SpitPublishingPublisher* base) {
+ PublishingPiwigoPiwigoPublisher * self;
+ gboolean _tmp0_ = FALSE;
+ PublishingPiwigoSession* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher);
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp0_) {
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 2500 "PiwigoPublishing.c"
+ }
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:157: PiwigoPublisher: starting interaction.");
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->running = TRUE;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->session;
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp2_) {
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:162: PiwigoPublisher: session is authenticated.");
+#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_fetch_categories (self);
+#line 2516 "PiwigoPublishing.c"
+ } else {
+ gchar* persistent_url = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* persistent_username = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* persistent_password = NULL;
+ gchar* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ gboolean _tmp7_ = FALSE;
+ const gchar* _tmp8_ = NULL;
+#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:165: PiwigoPublisher: session is not authenticat" \
+"ed.");
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = publishing_piwigo_piwigo_publisher_get_persistent_url (self);
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ persistent_url = _tmp3_;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = publishing_piwigo_piwigo_publisher_get_persistent_username (self);
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ persistent_username = _tmp4_;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_piwigo_piwigo_publisher_get_persistent_password (self);
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ persistent_password = _tmp5_;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = persistent_url;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp8_ != NULL) {
+#line 2545 "PiwigoPublishing.c"
+ const gchar* _tmp9_ = NULL;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = persistent_username;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _tmp9_ != NULL;
+#line 2551 "PiwigoPublishing.c"
+ } else {
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = FALSE;
+#line 2555 "PiwigoPublishing.c"
+ }
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp7_) {
+#line 2559 "PiwigoPublishing.c"
+ const gchar* _tmp10_ = NULL;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = persistent_password;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp10_ != NULL;
+#line 2565 "PiwigoPublishing.c"
+ } else {
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = FALSE;
+#line 2569 "PiwigoPublishing.c"
+ }
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp6_) {
+#line 2573 "PiwigoPublishing.c"
+ const gchar* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ gboolean _tmp14_ = FALSE;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = persistent_url;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = persistent_username;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = persistent_password;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = publishing_piwigo_piwigo_publisher_get_remember_password (self);
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_network_login (self, _tmp11_, _tmp12_, _tmp13_, _tmp14_);
+#line 2588 "PiwigoPublishing.c"
+ } else {
+#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO);
+#line 2592 "PiwigoPublishing.c"
+ }
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (persistent_password);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (persistent_username);
+#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (persistent_url);
+#line 2600 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_piwigo_publisher_real_stop (SpitPublishingPublisher* base) {
+ PublishingPiwigoPiwigoPublisher * self;
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher);
+#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->running = FALSE;
+#line 2611 "PiwigoPublishing.c"
+}
+
+
+gchar* publishing_piwigo_piwigo_publisher_get_persistent_url (PublishingPiwigoPiwigoPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL);
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", NULL);
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2629 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_set_persistent_url (PublishingPiwigoPiwigoPublisher* self, const gchar* url) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (url != NULL);
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = url;
+#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", _tmp1_);
+#line 2646 "PiwigoPublishing.c"
+}
+
+
+gchar* publishing_piwigo_piwigo_publisher_get_persistent_username (PublishingPiwigoPiwigoPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL);
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", NULL);
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2664 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_set_persistent_username (PublishingPiwigoPiwigoPublisher* self, const gchar* username) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = username;
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", _tmp1_);
+#line 2681 "PiwigoPublishing.c"
+}
+
+
+gchar* publishing_piwigo_piwigo_publisher_get_persistent_password (PublishingPiwigoPiwigoPublisher* self) {
+ gchar* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL);
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "password", NULL);
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2699 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_set_persistent_password (PublishingPiwigoPiwigoPublisher* self, const gchar* password) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = password;
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "password", _tmp1_);
+#line 2714 "PiwigoPublishing.c"
+}
+
+
+gboolean publishing_piwigo_piwigo_publisher_get_remember_password (PublishingPiwigoPiwigoPublisher* self) {
+ gboolean result = FALSE;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE);
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember-password", FALSE);
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2732 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_set_remember_password (PublishingPiwigoPiwigoPublisher* self, gboolean remember_password) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = remember_password;
+#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember-password", _tmp1_);
+#line 2747 "PiwigoPublishing.c"
+}
+
+
+gint publishing_piwigo_piwigo_publisher_get_last_category (PublishingPiwigoPiwigoPublisher* self) {
+ gint result = 0;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), 0);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-category", -1);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2765 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_set_last_category (PublishingPiwigoPiwigoPublisher* self, gint last_category) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = last_category;
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-category", _tmp1_);
+#line 2780 "PiwigoPublishing.c"
+}
+
+
+gint publishing_piwigo_piwigo_publisher_get_last_permission_level (PublishingPiwigoPiwigoPublisher* self) {
+ gint result = 0;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), 0);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-permission-level", -1);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2798 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_set_last_permission_level (PublishingPiwigoPiwigoPublisher* self, gint last_permission_level) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = last_permission_level;
+#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-permission-level", _tmp1_);
+#line 2813 "PiwigoPublishing.c"
+}
+
+
+gint publishing_piwigo_piwigo_publisher_get_last_photo_size (PublishingPiwigoPiwigoPublisher* self) {
+ gint result = 0;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), 0);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-photo-size", -1);
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2831 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_set_last_photo_size (PublishingPiwigoPiwigoPublisher* self, gint last_photo_size) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = last_photo_size;
+#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-photo-size", _tmp1_);
+#line 2846 "PiwigoPublishing.c"
+}
+
+
+static gboolean publishing_piwigo_piwigo_publisher_get_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self) {
+ gboolean result = FALSE;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-title-as-comment", FALSE);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2864 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_set_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self, gboolean title_as_comment) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = title_as_comment;
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-title-as-comment", _tmp1_);
+#line 2879 "PiwigoPublishing.c"
+}
+
+
+static gboolean publishing_piwigo_piwigo_publisher_get_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self) {
+ gboolean result = FALSE;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE);
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-no-upload-tags", FALSE);
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2897 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_set_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self, gboolean no_upload_tags) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = no_upload_tags;
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-no-upload-tags", _tmp1_);
+#line 2912 "PiwigoPublishing.c"
+}
+
+
+static gboolean publishing_piwigo_piwigo_publisher_get_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self) {
+ gboolean result = FALSE;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", FALSE);
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 2930 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_set_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self, gboolean strip_metadata) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = strip_metadata;
+#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", _tmp1_);
+#line 2945 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Action that shows the authentication pane.
+ *
+ * This action method shows the authentication pane. It is shown at the
+ * very beginning of the interaction when no persistent parameters are found
+ * or after a failed login attempt using persisted parameters. It can be
+ * given a mode flag to specify whether it should be displayed in initial
+ * mode or in any of the error modes that it supports.
+ *
+ * @param mode the mode for the authentication pane
+ */
+static void _publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked_publishing_piwigo_authentication_pane_login (PublishingPiwigoAuthenticationPane* _sender, const gchar* url, const gchar* user, const gchar* password, gboolean remember_password, gpointer self) {
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked ((PublishingPiwigoPiwigoPublisher*) self, url, user, password, remember_password);
+#line 2963 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_do_show_authentication_pane (PublishingPiwigoPiwigoPublisher* self, PublishingPiwigoAuthenticationPaneMode mode) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingPiwigoAuthenticationPane* authentication_pane = NULL;
+ PublishingPiwigoAuthenticationPaneMode _tmp1_ = 0;
+ PublishingPiwigoAuthenticationPane* _tmp2_ = NULL;
+ SpitPublishingPluginHost* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ GtkWidget* _tmp5_ = NULL;
+ GtkWidget* _tmp6_ = NULL;
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:277: ACTION: installing authentication pane");
+#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = mode;
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = publishing_piwigo_authentication_pane_new (self, _tmp1_);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ authentication_pane = _tmp2_;
+#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (authentication_pane, "login", (GCallback) _publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked_publishing_piwigo_authentication_pane_login, self, 0);
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->host;
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE);
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->host;
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_piwigo_authentication_pane_get_default_widget (authentication_pane);
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_dialog_default_widget (_tmp4_, _tmp6_);
+#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (_tmp6_);
+#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (authentication_pane);
+#line 3008 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the login button in the authentication panel is
+ * clicked.
+ *
+ * This event is triggered when the login button in the authentication
+ * panel is clicked. It then triggers a network login interaction.
+ *
+ * @param url the URL of the Piwigo service as entered in the dialog
+ * @param username the name of the Piwigo user as entered in the dialog
+ * @param password the password of the Piwigo as entered in the dialog
+ */
+static void publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked (PublishingPiwigoPiwigoPublisher* self, const gchar* url, const gchar* username, const gchar* password, gboolean remember_password) {
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (url != NULL);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (password != NULL);
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:301: EVENT: on_authentication_pane_login_clicked");
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp0_) {
+#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3045 "PiwigoPublishing.c"
+ }
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = url;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = username;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = password;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = remember_password;
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_network_login (self, _tmp1_, _tmp2_, _tmp3_, _tmp4_);
+#line 3057 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Action to perform a network login to a Piwigo service.
+ *
+ * This action performs a network login a Piwigo service specified by a
+ * URL and using the given user name and password as credentials.
+ *
+ * @param url the URL of the Piwigo service; this URL will be normalised
+ * before being used
+ * @param username the name of the Piwigo user used to login
+ * @param password the password of the Piwigo user used to login
+ */
+static void _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_login_network_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err);
+#line 3075 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_login_network_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender);
+#line 3082 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_do_network_login (PublishingPiwigoPiwigoPublisher* self, const gchar* url, const gchar* username, const gchar* password, gboolean remember_password) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ gboolean _tmp3_ = FALSE;
+ PublishingPiwigoSessionLoginTransaction* login_trans = NULL;
+ PublishingPiwigoSession* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ PublishingPiwigoSessionLoginTransaction* _tmp11_ = NULL;
+ PublishingPiwigoSessionLoginTransaction* _tmp12_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (url != NULL);
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (password != NULL);
+#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:320: ACTION: logging in");
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_install_login_wait_pane (_tmp1_);
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = remember_password;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_remember_password (self, _tmp2_);
+#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = remember_password;
+#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp3_) {
+#line 3127 "PiwigoPublishing.c"
+ const gchar* _tmp4_ = NULL;
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = password;
+#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_persistent_password (self, _tmp4_);
+#line 3133 "PiwigoPublishing.c"
+ } else {
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_persistent_password (self, NULL);
+#line 3137 "PiwigoPublishing.c"
+ }
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = self->priv->session;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = url;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = publishing_piwigo_piwigo_publisher_normalise_url (_tmp6_);
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = username;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = password;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = publishing_piwigo_session_login_transaction_new (_tmp5_, _tmp8_, _tmp9_, _tmp10_);
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = _tmp11_;
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ login_trans = _tmp12_;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 3163 "PiwigoPublishing.c"
+ {
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3171 "PiwigoPublishing.c"
+ goto __catch32_spit_publishing_publishing_error;
+ }
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (login_trans);
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3182 "PiwigoPublishing.c"
+ }
+ }
+ goto __finally32;
+ __catch32_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp13_ = NULL;
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:338: ERROR: do_network_login");
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = err;
+#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp13_);
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 3202 "PiwigoPublishing.c"
+ }
+ __finally32:
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (login_trans);
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3215 "PiwigoPublishing.c"
+ }
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (login_trans);
+#line 3219 "PiwigoPublishing.c"
+}
+
+
+gchar* publishing_piwigo_piwigo_publisher_normalise_url (const gchar* url) {
+ gchar* result = NULL;
+ gchar* norm_url = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ gboolean _tmp10_ = FALSE;
+ const gchar* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = url;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ norm_url = _tmp1_;
+#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = norm_url;
+#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = g_str_has_suffix (_tmp2_, ".php");
+#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp3_) {
+#line 3247 "PiwigoPublishing.c"
+ const gchar* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ const gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = norm_url;
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = g_str_has_suffix (_tmp4_, "/");
+#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp5_) {
+#line 3258 "PiwigoPublishing.c"
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = norm_url;
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = g_strconcat (_tmp6_, "/", NULL);
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (norm_url);
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ norm_url = _tmp7_;
+#line 3269 "PiwigoPublishing.c"
+ }
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = norm_url;
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = g_strconcat (_tmp8_, PUBLISHING_PIWIGO_PIWIGO_WS, NULL);
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (norm_url);
+#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ norm_url = _tmp9_;
+#line 3279 "PiwigoPublishing.c"
+ }
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = norm_url;
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = g_str_has_prefix (_tmp11_, "http://");
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp12_) {
+#line 3287 "PiwigoPublishing.c"
+ const gchar* _tmp13_ = NULL;
+ gboolean _tmp14_ = FALSE;
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = norm_url;
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = g_str_has_prefix (_tmp13_, "https://");
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = !_tmp14_;
+#line 3296 "PiwigoPublishing.c"
+ } else {
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = FALSE;
+#line 3300 "PiwigoPublishing.c"
+ }
+#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp10_) {
+#line 3304 "PiwigoPublishing.c"
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = norm_url;
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = g_strconcat ("http://", _tmp15_, NULL);
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (norm_url);
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ norm_url = _tmp16_;
+#line 3315 "PiwigoPublishing.c"
+ }
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = norm_url;
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 3321 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the network login action is complete and successful.
+ *
+ * This event is triggered on successful completion of a network login.
+ * Calling this event implies that the URL, user name and password provided
+ * in the authentication pane are valid and that the transaction should
+ * contain a Set-Cookie header that includes the value pwg_id for that
+ * user. As a result, this event will also authenticate the session and
+ * persist all values so that they can be re-used during the next publishing
+ * interaction.
+ *
+ * @param txn the received REST transaction
+ */
+static gchar* _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self) {
+ gchar* result;
+ result = publishing_piwigo_transaction_validate_xml (doc);
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 3343 "PiwigoPublishing.c"
+}
+
+
+static gchar* _publishing_piwigo_transaction_get_error_code_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self) {
+ gchar* result;
+ result = publishing_piwigo_transaction_get_error_code (doc);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 3352 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_on_login_network_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gchar* endpoint_url = NULL;
+ PublishingRESTSupportTransaction* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ gchar* pwg_id = NULL;
+ PublishingRESTSupportTransaction* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ PublishingPiwigoSession* _tmp25_ = NULL;
+ PublishingPiwigoSession* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:374: EVENT: on_login_network_complete");
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = txn;
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = txn;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self);
+#line 3393 "PiwigoPublishing.c"
+ {
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp7_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp8_ = NULL;
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = txn;
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = publishing_rest_support_xml_document_parse_string (_tmp6_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (_tmp8_);
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3418 "PiwigoPublishing.c"
+ goto __catch33_spit_publishing_publishing_error;
+ }
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3427 "PiwigoPublishing.c"
+ }
+ }
+ goto __finally33;
+ __catch33_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 3438 "PiwigoPublishing.c"
+ {
+ PublishingRESTSupportTransaction* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp13_ = NULL;
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = txn;
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = publishing_rest_support_transaction_get_response (_tmp9_);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = publishing_rest_support_xml_document_parse_string (_tmp11_, _publishing_piwigo_transaction_get_error_code_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (_tmp13_);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp11_);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3463 "PiwigoPublishing.c"
+ goto __catch34_spit_publishing_publishing_error;
+ }
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3474 "PiwigoPublishing.c"
+ }
+ }
+ goto __finally34;
+ __catch34_spit_publishing_publishing_error:
+ {
+ GError* code = NULL;
+ gint code_int = 0;
+ GError* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+ gint _tmp17_ = 0;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ code = _inner_error_;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = code;
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = _tmp14_->message;
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = atoi (_tmp15_);
+#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ code_int = _tmp16_;
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = code_int;
+#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp17_ == 999) {
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:389: ERROR: on_login_network_complete, code 999");
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER);
+#line 3506 "PiwigoPublishing.c"
+ } else {
+ GError* _tmp18_ = NULL;
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:392: ERROR: on_login_network_complete");
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = err;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp18_);
+#line 3515 "PiwigoPublishing.c"
+ }
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (code);
+#line 3519 "PiwigoPublishing.c"
+ }
+ __finally34:
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3534 "PiwigoPublishing.c"
+ }
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3540 "PiwigoPublishing.c"
+ }
+ __finally33:
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3551 "PiwigoPublishing.c"
+ }
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = txn;
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = publishing_rest_support_transaction_get_endpoint_url (_tmp19_);
+#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ endpoint_url = _tmp20_;
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = endpoint_url;
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:400: Setting endpoint URL to %s", _tmp21_);
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = txn;
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = publishing_piwigo_piwigo_publisher_get_pwg_id_from_transaction (self, _tmp22_);
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ pwg_id = _tmp23_;
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp24_ = pwg_id;
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:402: Setting session pwg_id to %s", _tmp24_);
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp25_ = publishing_piwigo_session_new ();
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->session = _tmp25_;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp26_ = self->priv->session;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp27_ = pwg_id;
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_session_set_pwg_id (_tmp26_, _tmp27_);
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp28_ = endpoint_url;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp29_ = pwg_id;
+#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_fetch_session_status (self, _tmp28_, _tmp29_);
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (pwg_id);
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (endpoint_url);
+#line 3595 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when a network login action fails due to a network error.
+ *
+ * This event triggered as a result of a network error during the login
+ * transaction. As a result, it assumes that the service URL entered in the
+ * authentication dialog is incorrect and re-presents the authentication
+ * dialog with FAILED_RETRY_URL mode.
+ *
+ * @param bad_txn the received REST transaction
+ * @param err the received error
+ */
+static void publishing_piwigo_piwigo_publisher_on_login_network_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingPiwigoSession* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:424: EVENT: on_login_network_error");
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = bad_txn;
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = bad_txn;
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self);
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->session;
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp5_) {
+#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3643 "PiwigoPublishing.c"
+ }
+#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL);
+#line 3647 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Action to fetch the session status for a known Piwigo user.
+ *
+ * This action fetches the session status for a Piwigo user for whom the
+ * pwg_id is known. If triggered after a network login, it should just
+ * confirm that the session is OK. It can also be triggered as the first
+ * action of the interaction for users for who the pwg_id was previously
+ * persisted. In this case, it will log the user in and confirm the
+ * identity.
+ */
+static void _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_session_get_status_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err);
+#line 3664 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_session_get_status_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender);
+#line 3671 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_do_fetch_session_status (PublishingPiwigoPiwigoPublisher* self, const gchar* url, const gchar* pwg_id) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingPiwigoSession* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ GError * _inner_error_ = NULL;
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (url != NULL);
+#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (pwg_id != NULL);
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:445: ACTION: fetching session status");
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_);
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp3_) {
+#line 3703 "PiwigoPublishing.c"
+ PublishingPiwigoSessionGetStatusTransaction* status_txn = NULL;
+ PublishingPiwigoSession* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ PublishingPiwigoSessionGetStatusTransaction* _tmp7_ = NULL;
+ PublishingPiwigoSessionGetStatusTransaction* _tmp8_ = NULL;
+ PublishingPiwigoSessionGetStatusTransaction* _tmp9_ = NULL;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->session;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = url;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = pwg_id;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = publishing_piwigo_session_get_status_transaction_new_unauthenticated (_tmp4_, _tmp5_, _tmp6_);
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ status_txn = _tmp7_;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = status_txn;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = status_txn;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 3729 "PiwigoPublishing.c"
+ {
+ PublishingPiwigoSessionGetStatusTransaction* _tmp10_ = NULL;
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = status_txn;
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3740 "PiwigoPublishing.c"
+ goto __catch35_spit_publishing_publishing_error;
+ }
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (status_txn);
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3751 "PiwigoPublishing.c"
+ }
+ }
+ goto __finally35;
+ __catch35_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp11_ = NULL;
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:457: ERROR: do_fetch_session_status, not authent" \
+"icated");
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = err;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp11_);
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 3771 "PiwigoPublishing.c"
+ }
+ __finally35:
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (status_txn);
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3784 "PiwigoPublishing.c"
+ }
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (status_txn);
+#line 3788 "PiwigoPublishing.c"
+ } else {
+ PublishingPiwigoSessionGetStatusTransaction* status_txn = NULL;
+ PublishingPiwigoSession* _tmp12_ = NULL;
+ PublishingPiwigoSessionGetStatusTransaction* _tmp13_ = NULL;
+ PublishingPiwigoSessionGetStatusTransaction* _tmp14_ = NULL;
+ PublishingPiwigoSessionGetStatusTransaction* _tmp15_ = NULL;
+#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = self->priv->session;
+#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = publishing_piwigo_session_get_status_transaction_new (_tmp12_);
+#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ status_txn = _tmp13_;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = status_txn;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = status_txn;
+#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 3809 "PiwigoPublishing.c"
+ {
+ PublishingPiwigoSessionGetStatusTransaction* _tmp16_ = NULL;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = status_txn;
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3820 "PiwigoPublishing.c"
+ goto __catch36_spit_publishing_publishing_error;
+ }
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (status_txn);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3831 "PiwigoPublishing.c"
+ }
+ }
+ goto __finally36;
+ __catch36_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp17_ = NULL;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:468: ERROR: do_fetch_session_status, authenticat" \
+"ed");
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = err;
+#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp17_);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 3851 "PiwigoPublishing.c"
+ }
+ __finally36:
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (status_txn);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3864 "PiwigoPublishing.c"
+ }
+#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (status_txn);
+#line 3868 "PiwigoPublishing.c"
+ }
+}
+
+
+/**
+ * Event triggered when the get session status action completes successfully.
+ *
+ * This event being triggered confirms that the session is valid and can becyclonic enema
+ * used. If the session is not fully authenticated yet, this event finalises
+ * session authentication. It then triggers the fetch categories action.
+ */
+static void publishing_piwigo_piwigo_publisher_on_session_get_status_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingPiwigoSession* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ GError * _inner_error_ = NULL;
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:482: EVENT: on_session_get_status_complete");
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = txn;
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self);
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = txn;
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self);
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->session;
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp5_) {
+#line 3912 "PiwigoPublishing.c"
+ gchar* endpoint_url = NULL;
+ PublishingRESTSupportTransaction* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* pwg_id = NULL;
+ PublishingPiwigoSession* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = txn;
+#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = publishing_rest_support_transaction_get_endpoint_url (_tmp6_);
+#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ endpoint_url = _tmp7_;
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = self->priv->session;
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = publishing_piwigo_session_get_pwg_id (_tmp8_);
+#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ pwg_id = _tmp9_;
+#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = pwg_id;
+#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:489: Fetching session status for pwg_id %s", _tmp10_);
+#line 3936 "PiwigoPublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ PublishingRESTSupportTransaction* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp14_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp15_ = NULL;
+ xmlNode* root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp16_ = NULL;
+ xmlNode* _tmp17_ = NULL;
+ xmlNode* username_node = NULL;
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = txn;
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = publishing_rest_support_transaction_get_response (_tmp11_);
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = _tmp12_;
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = publishing_rest_support_xml_document_parse_string (_tmp13_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = _tmp14_;
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp13_);
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ doc = _tmp15_;
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 3966 "PiwigoPublishing.c"
+ goto __catch37_spit_publishing_publishing_error;
+ }
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (pwg_id);
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (endpoint_url);
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 3979 "PiwigoPublishing.c"
+ }
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = doc;
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = publishing_rest_support_xml_document_get_root_node (_tmp16_);
+#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ root = _tmp17_;
+#line 3987 "PiwigoPublishing.c"
+ {
+ xmlNode* _tmp18_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp19_ = NULL;
+ xmlNode* _tmp20_ = NULL;
+ xmlNode* _tmp21_ = NULL;
+ gchar* username = NULL;
+ xmlNode* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ PublishingPiwigoSession* _tmp25_ = NULL;
+ const gchar* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+ PublishingPiwigoSession* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ PublishingPiwigoSession* _tmp32_ = NULL;
+ gchar* _tmp33_ = NULL;
+ gchar* _tmp34_ = NULL;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = doc;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = root;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = publishing_rest_support_xml_document_get_named_child (_tmp19_, _tmp20_, "username", &_inner_error_);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = _tmp21_;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4019 "PiwigoPublishing.c"
+ goto __catch38_spit_publishing_publishing_error;
+ }
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (pwg_id);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (endpoint_url);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4034 "PiwigoPublishing.c"
+ }
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ username_node = _tmp18_;
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = username_node;
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = (gchar*) xmlNodeGetContent (_tmp22_);
+#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ username = _tmp23_;
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp24_ = username;
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:500: Returned username is %s", _tmp24_);
+#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp25_ = self->priv->session;
+#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp26_ = endpoint_url;
+#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp27_ = username;
+#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp28_ = pwg_id;
+#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_session_authenticate (_tmp25_, _tmp26_, _tmp27_, _tmp28_);
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp29_ = self->priv->session;
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp30_ = publishing_piwigo_session_get_pwg_url (_tmp29_);
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp31_ = _tmp30_;
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_persistent_url (self, _tmp31_);
+#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp31_);
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp32_ = self->priv->session;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp33_ = publishing_piwigo_session_get_username (_tmp32_);
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp34_ = _tmp33_;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_persistent_username (self, _tmp34_);
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp34_);
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_fetch_categories (self);
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (username);
+#line 4082 "PiwigoPublishing.c"
+ }
+ goto __finally38;
+ __catch38_spit_publishing_publishing_error:
+ {
+ GError* err2 = NULL;
+ GError* _tmp35_ = NULL;
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err2 = _inner_error_;
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:506: ERROR: on_session_get_status_complete, inne" \
+"r");
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp35_ = err2;
+#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp35_);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err2);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (pwg_id);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (endpoint_url);
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4109 "PiwigoPublishing.c"
+ }
+ __finally38:
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4118 "PiwigoPublishing.c"
+ goto __catch37_spit_publishing_publishing_error;
+ }
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (pwg_id);
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (endpoint_url);
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4133 "PiwigoPublishing.c"
+ }
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 4137 "PiwigoPublishing.c"
+ }
+ goto __finally37;
+ __catch37_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp36_ = NULL;
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:511: ERROR: on_session_get_status_complete, oute" \
+"r");
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp36_ = err;
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp36_);
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (pwg_id);
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (endpoint_url);
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4162 "PiwigoPublishing.c"
+ }
+ __finally37:
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (pwg_id);
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (endpoint_url);
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4177 "PiwigoPublishing.c"
+ }
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (pwg_id);
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (endpoint_url);
+#line 4183 "PiwigoPublishing.c"
+ } else {
+#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_fetch_categories (self);
+#line 4187 "PiwigoPublishing.c"
+ }
+}
+
+
+/**
+ * Event triggered when the get session status fails due to a network error.
+ */
+static void publishing_piwigo_piwigo_publisher_on_session_get_status_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:530: EVENT: on_session_get_status_error");
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = bad_txn;
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self);
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = bad_txn;
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self);
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = bad_txn;
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = err;
+#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_network_error (self, _tmp4_, _tmp5_);
+#line 4226 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Action that fetches all available categories from the Piwigo service.
+ *
+ * This action fetches all categories from the Piwigo service in order
+ * to populate the publishing pane presented to the user.
+ */
+static void _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_category_fetch_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err);
+#line 4239 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_category_fetch_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender);
+#line 4246 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_do_fetch_categories (PublishingPiwigoPiwigoPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingPiwigoCategoriesGetListTransaction* cat_trans = NULL;
+ PublishingPiwigoSession* _tmp2_ = NULL;
+ PublishingPiwigoCategoriesGetListTransaction* _tmp3_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:543: ACTION: fetching categories");
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_);
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->session;
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = publishing_piwigo_categories_get_list_transaction_new (_tmp2_);
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ cat_trans = _tmp3_;
+#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (cat_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (cat_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 4279 "PiwigoPublishing.c"
+ {
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (cat_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4287 "PiwigoPublishing.c"
+ goto __catch39_spit_publishing_publishing_error;
+ }
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (cat_trans);
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4298 "PiwigoPublishing.c"
+ }
+ }
+ goto __finally39;
+ __catch39_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp4_ = NULL;
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:554: ERROR: do_fetch_categories");
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = err;
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp4_);
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 4318 "PiwigoPublishing.c"
+ }
+ __finally39:
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (cat_trans);
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4331 "PiwigoPublishing.c"
+ }
+#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (cat_trans);
+#line 4335 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the fetch categories action completes successfully.
+ *
+ * This event retrieves all categories from the received transaction and
+ * populates the categories list. It then triggers the display of the
+ * publishing options pane.
+ */
+static void _vala_array_add34 (PublishingPiwigoCategory*** array, int* length, int* size, PublishingPiwigoCategory* value) {
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoCategory*, *array, (*size) + 1);
+#line 4353 "PiwigoPublishing.c"
+ }
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 4359 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_on_category_fetch_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ PublishingPiwigoCategory** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ GError * _inner_error_ = NULL;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:567: EVENT: on_category_fetch_complete");
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = txn;
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = txn;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = txn;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:570: PiwigoConnector: list of categories: %s", _tmp6_);
+#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = self->priv->categories;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7__length1 = self->priv->categories_length1;
+#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp7_ != NULL) {
+#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->categories = (_vala_array_free (self->priv->categories, self->priv->categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL);
+#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->categories = NULL;
+#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->categories_length1 = 0;
+#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->_categories_size_ = self->priv->categories_length1;
+#line 4416 "PiwigoPublishing.c"
+ }
+ {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ PublishingRESTSupportTransaction* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp11_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ xmlNode* root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp13_ = NULL;
+ xmlNode* _tmp14_ = NULL;
+ xmlNode* categories_node = NULL;
+ xmlNode* _tmp15_ = NULL;
+ xmlNode* _tmp16_ = NULL;
+ xmlNode* category_node_iter = NULL;
+ xmlNode* _tmp17_ = NULL;
+ xmlNode* _tmp18_ = NULL;
+ xmlNode* name_node = NULL;
+ xmlNode* uppercats_node = NULL;
+ gchar* name = NULL;
+ gchar* _tmp19_ = NULL;
+ gchar* id_string = NULL;
+ gchar* _tmp20_ = NULL;
+ gchar* uppercats = NULL;
+ gchar* _tmp21_ = NULL;
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = txn;
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = publishing_rest_support_transaction_get_response (_tmp8_);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = publishing_rest_support_xml_document_parse_string (_tmp10_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = _tmp11_;
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp10_);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ doc = _tmp12_;
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4460 "PiwigoPublishing.c"
+ goto __catch40_spit_publishing_publishing_error;
+ }
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4469 "PiwigoPublishing.c"
+ }
+#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = doc;
+#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = publishing_rest_support_xml_document_get_root_node (_tmp13_);
+#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ root = _tmp14_;
+#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = root;
+#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = xmlFirstElementChild (_tmp15_);
+#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ categories_node = _tmp16_;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = categories_node;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = _tmp17_->children;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ category_node_iter = _tmp18_;
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = g_strdup ("");
+#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ name = _tmp19_;
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = g_strdup ("");
+#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ id_string = _tmp20_;
+#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = g_strdup ("");
+#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ uppercats = _tmp21_;
+#line 4501 "PiwigoPublishing.c"
+ {
+ gboolean _tmp22_ = FALSE;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = TRUE;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ while (TRUE) {
+#line 4508 "PiwigoPublishing.c"
+ xmlNode* _tmp25_ = NULL;
+ xmlNode* _tmp26_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp27_ = NULL;
+ xmlNode* _tmp28_ = NULL;
+ xmlNode* _tmp29_ = NULL;
+ xmlNode* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ xmlNode* _tmp32_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp33_ = NULL;
+ xmlNode* _tmp34_ = NULL;
+ xmlNode* _tmp35_ = NULL;
+ xmlNode* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+ xmlNode* _tmp38_ = NULL;
+ gchar* _tmp39_ = NULL;
+ PublishingPiwigoCategory** _tmp40_ = NULL;
+ gint _tmp40__length1 = 0;
+ PublishingPiwigoCategory** _tmp42_ = NULL;
+ gint _tmp42__length1 = 0;
+ const gchar* _tmp43_ = NULL;
+ gint _tmp44_ = 0;
+ const gchar* _tmp45_ = NULL;
+ const gchar* _tmp46_ = NULL;
+ PublishingPiwigoCategory* _tmp47_ = NULL;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp22_) {
+#line 4535 "PiwigoPublishing.c"
+ xmlNode* _tmp23_ = NULL;
+ xmlNode* _tmp24_ = NULL;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = category_node_iter;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp24_ = _tmp23_->next;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ category_node_iter = _tmp24_;
+#line 4544 "PiwigoPublishing.c"
+ }
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = FALSE;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp25_ = category_node_iter;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!(_tmp25_ != NULL)) {
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 4554 "PiwigoPublishing.c"
+ }
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp27_ = doc;
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp28_ = category_node_iter;
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp29_ = publishing_rest_support_xml_document_get_named_child (_tmp27_, _tmp28_, "name", &_inner_error_);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp26_ = _tmp29_;
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (uppercats);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (id_string);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (name);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4576 "PiwigoPublishing.c"
+ goto __catch40_spit_publishing_publishing_error;
+ }
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (uppercats);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (id_string);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (name);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4593 "PiwigoPublishing.c"
+ }
+#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ name_node = _tmp26_;
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp30_ = name_node;
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp31_ = (gchar*) xmlNodeGetContent (_tmp30_);
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (name);
+#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ name = _tmp31_;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp33_ = doc;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp34_ = category_node_iter;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp35_ = publishing_rest_support_xml_document_get_named_child (_tmp33_, _tmp34_, "uppercats", &_inner_error_);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp32_ = _tmp35_;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (uppercats);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (id_string);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (name);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 4625 "PiwigoPublishing.c"
+ goto __catch40_spit_publishing_publishing_error;
+ }
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (uppercats);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (id_string);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (name);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4642 "PiwigoPublishing.c"
+ }
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ uppercats_node = _tmp32_;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp36_ = uppercats_node;
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp37_ = (gchar*) xmlNodeGetContent (_tmp36_);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (uppercats);
+#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ uppercats = (gchar*) _tmp37_;
+#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp38_ = category_node_iter;
+#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp39_ = (gchar*) xmlGetProp (_tmp38_, (xmlChar*) "id");
+#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (id_string);
+#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ id_string = _tmp39_;
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp40_ = self->priv->categories;
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp40__length1 = self->priv->categories_length1;
+#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp40_ == NULL) {
+#line 4668 "PiwigoPublishing.c"
+ PublishingPiwigoCategory** _tmp41_ = NULL;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp41_ = g_new0 (PublishingPiwigoCategory*, 0 + 1);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->categories = (_vala_array_free (self->priv->categories, self->priv->categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->categories = _tmp41_;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->categories_length1 = 0;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->_categories_size_ = self->priv->categories_length1;
+#line 4680 "PiwigoPublishing.c"
+ }
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp42_ = self->priv->categories;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp42__length1 = self->priv->categories_length1;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp43_ = id_string;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp44_ = atoi (_tmp43_);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp45_ = name;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp46_ = uppercats;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp47_ = publishing_piwigo_category_new (_tmp44_, _tmp45_, _tmp46_, "");
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add34 (&self->priv->categories, &self->priv->categories_length1, &self->priv->_categories_size_, _tmp47_);
+#line 4698 "PiwigoPublishing.c"
+ }
+ }
+ {
+ gint i = 0;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ i = 0;
+#line 4705 "PiwigoPublishing.c"
+ {
+ gboolean _tmp48_ = FALSE;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp48_ = TRUE;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ while (TRUE) {
+#line 4712 "PiwigoPublishing.c"
+ gint _tmp50_ = 0;
+ PublishingPiwigoCategory** _tmp51_ = NULL;
+ gint _tmp51__length1 = 0;
+ gchar** upcatids = NULL;
+ PublishingPiwigoCategory** _tmp52_ = NULL;
+ gint _tmp52__length1 = 0;
+ gint _tmp53_ = 0;
+ PublishingPiwigoCategory* _tmp54_ = NULL;
+ const gchar* _tmp55_ = NULL;
+ gchar** _tmp56_ = NULL;
+ gchar** _tmp57_ = NULL;
+ gint upcatids_length1 = 0;
+ gint _upcatids_size_ = 0;
+ GString* builder = NULL;
+ GString* _tmp58_ = NULL;
+ PublishingPiwigoCategory** _tmp84_ = NULL;
+ gint _tmp84__length1 = 0;
+ gint _tmp85_ = 0;
+ PublishingPiwigoCategory* _tmp86_ = NULL;
+ GString* _tmp87_ = NULL;
+ const gchar* _tmp88_ = NULL;
+ gchar* _tmp89_ = NULL;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp48_) {
+#line 4737 "PiwigoPublishing.c"
+ gint _tmp49_ = 0;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp49_ = i;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ i = _tmp49_ + 1;
+#line 4743 "PiwigoPublishing.c"
+ }
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp48_ = FALSE;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp50_ = i;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp51_ = self->priv->categories;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp51__length1 = self->priv->categories_length1;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!(_tmp50_ < _tmp51__length1)) {
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 4757 "PiwigoPublishing.c"
+ }
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp52_ = self->priv->categories;
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp52__length1 = self->priv->categories_length1;
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp53_ = i;
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp54_ = _tmp52_[_tmp53_];
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp55_ = _tmp54_->uppercats;
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp57_ = _tmp56_ = g_strsplit (_tmp55_, ",", 0);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ upcatids = _tmp57_;
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ upcatids_length1 = _vala_array_length (_tmp56_);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _upcatids_size_ = upcatids_length1;
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp58_ = g_string_new ("");
+#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ builder = _tmp58_;
+#line 4781 "PiwigoPublishing.c"
+ {
+ gint j = 0;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ j = 0;
+#line 4786 "PiwigoPublishing.c"
+ {
+ gboolean _tmp59_ = FALSE;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp59_ = TRUE;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ while (TRUE) {
+#line 4793 "PiwigoPublishing.c"
+ gint _tmp61_ = 0;
+ gchar** _tmp62_ = NULL;
+ gint _tmp62__length1 = 0;
+ GString* _tmp63_ = NULL;
+ GString* _tmp83_ = NULL;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp59_) {
+#line 4801 "PiwigoPublishing.c"
+ gint _tmp60_ = 0;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp60_ = j;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ j = _tmp60_ + 1;
+#line 4807 "PiwigoPublishing.c"
+ }
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp59_ = FALSE;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp61_ = j;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp62_ = upcatids;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp62__length1 = upcatids_length1;
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!(_tmp61_ < _tmp62__length1)) {
+#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 4821 "PiwigoPublishing.c"
+ }
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp63_ = builder;
+#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_string_append (_tmp63_, "/ ");
+#line 4827 "PiwigoPublishing.c"
+ {
+ gint k = 0;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ k = 0;
+#line 4832 "PiwigoPublishing.c"
+ {
+ gboolean _tmp64_ = FALSE;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp64_ = TRUE;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ while (TRUE) {
+#line 4839 "PiwigoPublishing.c"
+ gint _tmp66_ = 0;
+ PublishingPiwigoCategory** _tmp67_ = NULL;
+ gint _tmp67__length1 = 0;
+ gchar** _tmp68_ = NULL;
+ gint _tmp68__length1 = 0;
+ gint _tmp69_ = 0;
+ const gchar* _tmp70_ = NULL;
+ PublishingPiwigoCategory** _tmp71_ = NULL;
+ gint _tmp71__length1 = 0;
+ gint _tmp72_ = 0;
+ PublishingPiwigoCategory* _tmp73_ = NULL;
+ gint _tmp74_ = 0;
+ gchar* _tmp75_ = NULL;
+ gchar* _tmp76_ = NULL;
+ gboolean _tmp77_ = FALSE;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp64_) {
+#line 4857 "PiwigoPublishing.c"
+ gint _tmp65_ = 0;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp65_ = k;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ k = _tmp65_ + 1;
+#line 4863 "PiwigoPublishing.c"
+ }
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp64_ = FALSE;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp66_ = k;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp67_ = self->priv->categories;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp67__length1 = self->priv->categories_length1;
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!(_tmp66_ < _tmp67__length1)) {
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 4877 "PiwigoPublishing.c"
+ }
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp68_ = upcatids;
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp68__length1 = upcatids_length1;
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp69_ = j;
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp70_ = _tmp68_[_tmp69_];
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp71_ = self->priv->categories;
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp71__length1 = self->priv->categories_length1;
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp72_ = k;
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp73_ = _tmp71_[_tmp72_];
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp74_ = _tmp73_->id;
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp75_ = g_strdup_printf ("%i", _tmp74_);
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp76_ = _tmp75_;
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp77_ = g_strcmp0 (_tmp70_, _tmp76_) == 0;
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp76_);
+#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp77_) {
+#line 4907 "PiwigoPublishing.c"
+ GString* _tmp78_ = NULL;
+ PublishingPiwigoCategory** _tmp79_ = NULL;
+ gint _tmp79__length1 = 0;
+ gint _tmp80_ = 0;
+ PublishingPiwigoCategory* _tmp81_ = NULL;
+ const gchar* _tmp82_ = NULL;
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp78_ = builder;
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp79_ = self->priv->categories;
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp79__length1 = self->priv->categories_length1;
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp80_ = k;
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp81_ = _tmp79_[_tmp80_];
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp82_ = _tmp81_->name;
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_string_append (_tmp78_, _tmp82_);
+#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 4930 "PiwigoPublishing.c"
+ }
+ }
+ }
+ }
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp83_ = builder;
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_string_append (_tmp83_, " ");
+#line 4939 "PiwigoPublishing.c"
+ }
+ }
+ }
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp84_ = self->priv->categories;
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp84__length1 = self->priv->categories_length1;
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp85_ = i;
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp86_ = _tmp84_[_tmp85_];
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp87_ = builder;
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp88_ = _tmp87_->str;
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp89_ = g_strdup (_tmp88_);
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp86_->display_name);
+#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp86_->display_name = _tmp89_;
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_string_free0 (builder);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ upcatids = (_vala_array_free (upcatids, upcatids_length1, (GDestroyNotify) g_free), NULL);
+#line 4965 "PiwigoPublishing.c"
+ }
+ }
+ }
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (uppercats);
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (id_string);
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (name);
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 4977 "PiwigoPublishing.c"
+ }
+ goto __finally40;
+ __catch40_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp90_ = NULL;
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:622: ERROR: on_category_fetch_complete");
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp90_ = err;
+#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp90_);
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 4998 "PiwigoPublishing.c"
+ }
+ __finally40:
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 5009 "PiwigoPublishing.c"
+ }
+#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_publishing_options_pane (self);
+#line 5013 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the fetch categories transaction fails due to a
+ * network error.
+ */
+static void publishing_piwigo_piwigo_publisher_on_category_fetch_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:638: EVENT: on_category_fetch_error");
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = bad_txn;
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = bad_txn;
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = bad_txn;
+#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = err;
+#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_network_error (self, _tmp4_, _tmp5_);
+#line 5052 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Action that shows the publishing options pane.
+ *
+ * This action method shows the publishing options pane.
+ */
+static void _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked_publishing_piwigo_publishing_options_pane_logout (PublishingPiwigoPublishingOptionsPane* _sender, gpointer self) {
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked ((PublishingPiwigoPiwigoPublisher*) self);
+#line 5064 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked_publishing_piwigo_publishing_options_pane_publish (PublishingPiwigoPublishingOptionsPane* _sender, PublishingPiwigoPublishingParameters* parameters, gboolean strip_metadata, gpointer self) {
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked ((PublishingPiwigoPiwigoPublisher*) self, parameters, strip_metadata);
+#line 5071 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_do_show_publishing_options_pane (PublishingPiwigoPiwigoPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingPiwigoPublishingOptionsPane* opts_pane = NULL;
+ PublishingPiwigoCategory** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ gint _tmp2_ = 0;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+ gboolean _tmp5_ = FALSE;
+ gboolean _tmp6_ = FALSE;
+ gboolean _tmp7_ = FALSE;
+ PublishingPiwigoPublishingOptionsPane* _tmp8_ = NULL;
+ SpitPublishingPluginHost* _tmp9_ = NULL;
+ SpitPublishingPluginHost* _tmp10_ = NULL;
+ GtkWidget* _tmp11_ = NULL;
+ GtkWidget* _tmp12_ = NULL;
+#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:650: ACTION: installing publishing options pane");
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->categories;
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1__length1 = self->priv->categories_length1;
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = publishing_piwigo_piwigo_publisher_get_last_category (self);
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = publishing_piwigo_piwigo_publisher_get_last_permission_level (self);
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = publishing_piwigo_piwigo_publisher_get_last_photo_size (self);
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_piwigo_piwigo_publisher_get_last_title_as_comment (self);
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = publishing_piwigo_piwigo_publisher_get_last_no_upload_tags (self);
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = publishing_piwigo_piwigo_publisher_get_metadata_removal_choice (self);
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = publishing_piwigo_publishing_options_pane_new (self, _tmp1_, _tmp1__length1, _tmp2_, _tmp3_, _tmp4_, _tmp5_, _tmp6_, _tmp7_);
+#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ opts_pane = _tmp8_;
+#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (opts_pane, "logout", (GCallback) _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked_publishing_piwigo_publishing_options_pane_logout, self, 0);
+#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (opts_pane, "publish", (GCallback) _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked_publishing_piwigo_publishing_options_pane_publish, self, 0);
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = self->priv->host;
+#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (opts_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE);
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = self->priv->host;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = publishing_piwigo_publishing_options_pane_get_default_widget (opts_pane);
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = _tmp11_;
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_dialog_default_widget (_tmp10_, _tmp12_);
+#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (_tmp12_);
+#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (opts_pane);
+#line 5139 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the user clicks logout in the publishing options pane.
+ */
+static void _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_logout_network_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err);
+#line 5149 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_logout_network_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender);
+#line 5156 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked (PublishingPiwigoPiwigoPublisher* self) {
+ PublishingPiwigoSessionLogoutTransaction* logout_trans = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+ PublishingPiwigoSessionLogoutTransaction* _tmp1_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:666: EVENT: on_publishing_options_pane_logout_cl" \
+"icked");
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->session;
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = publishing_piwigo_session_logout_transaction_new (_tmp0_);
+#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ logout_trans = _tmp1_;
+#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (logout_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (logout_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 5179 "PiwigoPublishing.c"
+ {
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (logout_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5187 "PiwigoPublishing.c"
+ goto __catch41_spit_publishing_publishing_error;
+ }
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (logout_trans);
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 5198 "PiwigoPublishing.c"
+ }
+ }
+ goto __finally41;
+ __catch41_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp2_ = NULL;
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:674: ERROR: on_publishing_options_pane_logout_cl" \
+"icked");
+#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = err;
+#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp2_);
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 5218 "PiwigoPublishing.c"
+ }
+ __finally41:
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (logout_trans);
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 5231 "PiwigoPublishing.c"
+ }
+#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (logout_trans);
+#line 5235 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the logout action completes successfully.
+ *
+ * This event de-authenticates the session and shows the authentication
+ * pane again.
+ */
+static void publishing_piwigo_piwigo_publisher_on_logout_network_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingPiwigoSession* _tmp4_ = NULL;
+#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:686: EVENT: on_logout_network_complete");
+#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = txn;
+#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed, self);
+#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = txn;
+#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error, self);
+#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->session;
+#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_session_deauthenticate (_tmp4_);
+#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO);
+#line 5275 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the logout action fails due to a network error.
+ */
+static void publishing_piwigo_piwigo_publisher_on_logout_network_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:702: EVENT: on_logout_network_error");
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = bad_txn;
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed, self);
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = bad_txn;
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error, self);
+#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = bad_txn;
+#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = err;
+#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_network_error (self, _tmp4_, _tmp5_);
+#line 5313 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the user clicks publish in the publishing options pane.
+ *
+ * This event first saves the parameters so that they can re-used later.
+ * If the publishing parameters indicate that the user wants to create a new
+ * category, the create category action is called. Otherwise, the upload
+ * action is called.
+ *
+ * @param parameters the publishing parameters
+ */
+static gpointer _publishing_piwigo_publishing_parameters_ref0 (gpointer self) {
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self ? publishing_piwigo_publishing_parameters_ref (self) : NULL;
+#line 5330 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked (PublishingPiwigoPiwigoPublisher* self, PublishingPiwigoPublishingParameters* parameters, gboolean strip_metadata) {
+ PublishingPiwigoPublishingParameters* _tmp0_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ PublishingPiwigoPublishingParameters* _tmp3_ = NULL;
+ PublishingPiwigoCategory* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS (parameters));
+#line 720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:720: EVENT: on_publishing_options_pane_publish_c" \
+"licked");
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = parameters;
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _publishing_piwigo_publishing_parameters_ref0 (_tmp0_);
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters);
+#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->parameters = _tmp1_;
+#line 722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = strip_metadata;
+#line 722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->strip_metadata = _tmp2_;
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = parameters;
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _tmp3_->category;
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_piwigo_category_is_local (_tmp4_);
+#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp5_) {
+#line 5367 "PiwigoPublishing.c"
+ PublishingPiwigoPublishingParameters* _tmp6_ = NULL;
+ PublishingPiwigoCategory* _tmp7_ = NULL;
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = parameters;
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _tmp6_->category;
+#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_create_category (self, _tmp7_);
+#line 5376 "PiwigoPublishing.c"
+ } else {
+ gboolean _tmp8_ = FALSE;
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = self->priv->strip_metadata;
+#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_upload (self, _tmp8_);
+#line 5383 "PiwigoPublishing.c"
+ }
+}
+
+
+/**
+ * Action that creates a new category in the Piwigo library.
+ *
+ * This actions runs a REST transaction to create a new category in the
+ * Piwigo library. It displays a wait pane with an information message
+ * while the transaction is running. This action should only be called with
+ * a local cateogory, i.e. one that does not exist on the server and does
+ * not yet have an ID.
+ *
+ * @param category the new category to create on the server
+ */
+static gchar* string_strip (const gchar* self) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strdup (self);
+#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _result_ = _tmp0_;
+#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _result_;
+#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_strstrip (_tmp1_);
+#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _result_;
+#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 5418 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_category_add_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err);
+#line 5425 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_category_add_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender);
+#line 5432 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_do_create_category (PublishingPiwigoPiwigoPublisher* self, PublishingPiwigoCategory* category) {
+ PublishingPiwigoCategory* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingPiwigoCategory* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ SpitPublishingPluginHost* _tmp6_ = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ PublishingPiwigoCategory* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ PublishingPiwigoCategoriesAddTransaction* creation_trans = NULL;
+ PublishingPiwigoSession* _tmp13_ = NULL;
+ PublishingPiwigoCategory* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ PublishingPiwigoCategory* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+ gint _tmp20_ = 0;
+ PublishingPiwigoCategory* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ PublishingPiwigoCategoriesAddTransaction* _tmp23_ = NULL;
+ PublishingPiwigoCategoriesAddTransaction* _tmp24_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_CATEGORY (category));
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = category;
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _tmp0_->name;
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = g_strdup_printf ("ACTION: creating a new category: %s", _tmp1_);
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:743: %s", _tmp3_);
+#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = category;
+#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_piwigo_category_is_local (_tmp4_);
+#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_assert (_tmp5_, "category.is_local()");
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = self->priv->host;
+#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp6_, TRUE);
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = self->priv->host;
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = _ ("Creating album %s...");
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = category;
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = _tmp9_->name;
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = g_strdup_printf (_tmp8_, _tmp10_);
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = _tmp11_;
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_install_static_message_pane (_tmp7_, _tmp12_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp12_);
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = self->priv->session;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = category;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = _tmp14_->name;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = string_strip (_tmp15_);
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = _tmp16_;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = category;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = _tmp18_->uppercats;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = atoi (_tmp19_);
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = category;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = _tmp21_->comment;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = publishing_piwigo_categories_add_transaction_new (_tmp13_, _tmp17_, _tmp20_, _tmp22_);
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp24_ = _tmp23_;
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp17_);
+#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ creation_trans = _tmp24_;
+#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 5538 "PiwigoPublishing.c"
+ {
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5546 "PiwigoPublishing.c"
+ goto __catch42_spit_publishing_publishing_error;
+ }
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (creation_trans);
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 5557 "PiwigoPublishing.c"
+ }
+ }
+ goto __finally42;
+ __catch42_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp25_ = NULL;
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:757: ERROR: do_create_category");
+#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp25_ = err;
+#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp25_);
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 5577 "PiwigoPublishing.c"
+ }
+ __finally42:
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (creation_trans);
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 5590 "PiwigoPublishing.c"
+ }
+#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_transaction_unref0 (creation_trans);
+#line 5594 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the add category action completes successfully.
+ *
+ * This event parses the ID assigned to new category out of the received
+ * transaction and assigns that ID to the category currently held in
+ * the publishing parameters. It then calls the upload action.
+ */
+static void publishing_piwigo_piwigo_publisher_on_category_add_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ GError * _inner_error_ = NULL;
+#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:770: EVENT: on_category_add_complete");
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = txn;
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed, self);
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = txn;
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error, self);
+#line 5629 "PiwigoPublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* doc = NULL;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp7_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp8_ = NULL;
+ xmlNode* rsp = NULL;
+ PublishingRESTSupportXmlDocument* _tmp9_ = NULL;
+ xmlNode* _tmp10_ = NULL;
+ xmlNode* id_node = NULL;
+ xmlNode* _tmp11_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+ xmlNode* _tmp14_ = NULL;
+ gchar* id_string = NULL;
+ xmlNode* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gint id = 0;
+ const gchar* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+ PublishingPiwigoPublishingParameters* _tmp19_ = NULL;
+ PublishingPiwigoCategory* _tmp20_ = NULL;
+ gint _tmp21_ = 0;
+ gboolean _tmp22_ = FALSE;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = txn;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = publishing_rest_support_xml_document_parse_string (_tmp6_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ doc = _tmp8_;
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5673 "PiwigoPublishing.c"
+ goto __catch43_spit_publishing_publishing_error;
+ }
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 5682 "PiwigoPublishing.c"
+ }
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = doc;
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = publishing_rest_support_xml_document_get_root_node (_tmp9_);
+#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ rsp = _tmp10_;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = doc;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = rsp;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = publishing_rest_support_xml_document_get_named_child (_tmp12_, _tmp13_, "id", &_inner_error_);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = _tmp14_;
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 5704 "PiwigoPublishing.c"
+ goto __catch43_spit_publishing_publishing_error;
+ }
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 5715 "PiwigoPublishing.c"
+ }
+#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ id_node = _tmp11_;
+#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = id_node;
+#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = (gchar*) xmlNodeGetContent (_tmp15_);
+#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ id_string = _tmp16_;
+#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = id_string;
+#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = atoi (_tmp17_);
+#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ id = _tmp18_;
+#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = self->priv->parameters;
+#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = _tmp19_->category;
+#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = id;
+#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_->id = _tmp21_;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = self->priv->strip_metadata;
+#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_upload (self, _tmp22_);
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (id_string);
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (doc);
+#line 5747 "PiwigoPublishing.c"
+ }
+ goto __finally43;
+ __catch43_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp23_ = NULL;
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:787: ERROR: on_category_add_complete");
+#line 788 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = err;
+#line 788 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp23_);
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 5766 "PiwigoPublishing.c"
+ }
+ __finally43:
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 5777 "PiwigoPublishing.c"
+ }
+}
+
+
+/**
+ * Event triggered when the add category action fails due to a network error.
+ */
+static void publishing_piwigo_piwigo_publisher_on_category_add_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 799 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:799: EVENT: on_category_add_error");
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = bad_txn;
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed, self);
+#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = bad_txn;
+#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error, self);
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = bad_txn;
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = err;
+#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_network_error (self, _tmp4_, _tmp5_);
+#line 5816 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Upload action: the big one, the one we've been waiting for!
+ */
+static void _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self) {
+#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_upload_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender, num_photos_published);
+#line 5826 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self) {
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_upload_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err);
+#line 5833 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_piwigo_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self) {
+#line 827 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_on_upload_status_updated ((PublishingPiwigoPiwigoPublisher*) self, file_number, fraction_complete);
+#line 5840 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_do_upload (PublishingPiwigoPiwigoPublisher* self, gboolean strip_metadata) {
+ gboolean _tmp0_ = FALSE;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp2_ = NULL;
+ PublishingPiwigoCategory* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ PublishingPiwigoPublishingParameters* _tmp5_ = NULL;
+ PublishingPiwigoPermissionLevel* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ PublishingPiwigoPublishingParameters* _tmp8_ = NULL;
+ PublishingPiwigoSizeEntry* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ PublishingPiwigoPublishingParameters* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+ PublishingPiwigoPublishingParameters* _tmp13_ = NULL;
+ gboolean _tmp14_ = FALSE;
+ gboolean _tmp15_ = FALSE;
+ SpitPublishingPluginHost* _tmp16_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp17_ = NULL;
+ PublishingPiwigoSizeEntry* _tmp18_ = NULL;
+ gint _tmp19_ = 0;
+ gboolean _tmp20_ = FALSE;
+ void* _tmp21_ = NULL;
+ GDestroyNotify _tmp22_ = NULL;
+ SpitPublishingProgressCallback _tmp23_ = NULL;
+ SpitPublishingPublishable** publishables = NULL;
+ SpitPublishingPluginHost* _tmp24_ = NULL;
+ gint _tmp25_ = 0;
+ SpitPublishingPublishable** _tmp26_ = NULL;
+ gint publishables_length1 = 0;
+ gint _publishables_size_ = 0;
+ PublishingPiwigoUploader* uploader = NULL;
+ PublishingPiwigoSession* _tmp27_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp28_ = NULL;
+ PublishingPiwigoUploader* _tmp29_ = NULL;
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = strip_metadata;
+#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->strip_metadata = _tmp0_;
+#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:810: ACTION: uploading pictures");
+#line 812 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 812 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE);
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->parameters;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = _tmp2_->category;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _tmp3_->id;
+#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_last_category (self, _tmp4_);
+#line 815 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = self->priv->parameters;
+#line 815 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp5_->perm_level;
+#line 815 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _tmp6_->id;
+#line 815 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_last_permission_level (self, _tmp7_);
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = self->priv->parameters;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = _tmp8_->photo_size;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = _tmp9_->id;
+#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_last_photo_size (self, _tmp10_);
+#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = self->priv->parameters;
+#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = _tmp11_->title_as_comment;
+#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_last_title_as_comment (self, _tmp12_);
+#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = self->priv->parameters;
+#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = _tmp13_->no_upload_tags;
+#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_last_no_upload_tags (self, _tmp14_);
+#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = strip_metadata;
+#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_set_metadata_removal_choice (self, _tmp15_);
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = self->priv->host;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = self->priv->parameters;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = _tmp17_->photo_size;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = _tmp18_->id;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = self->priv->strip_metadata;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = spit_publishing_plugin_host_serialize_publishables (_tmp16_, _tmp19_, _tmp20_, &_tmp21_, &_tmp22_);
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->progress_reporter = _tmp23_;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->progress_reporter_target = _tmp21_;
+#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = _tmp22_;
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp24_ = self->priv->host;
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp26_ = spit_publishing_plugin_host_get_publishables (_tmp24_, &_tmp25_);
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishables = _tmp26_;
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishables_length1 = _tmp25_;
+#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishables_size_ = publishables_length1;
+#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp27_ = self->priv->session;
+#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp28_ = self->priv->parameters;
+#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp29_ = publishing_piwigo_uploader_new (_tmp27_, publishables, publishables_length1, _tmp28_);
+#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ uploader = _tmp29_;
+#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0);
+#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0);
+#line 827 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_piwigo_piwigo_publisher_on_upload_status_updated_spit_publishing_progress_callback, self);
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_batch_uploader_unref0 (uploader);
+#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 5985 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the batch uploader reports that at least one of the
+ * network transactions encapsulating uploads has completed successfully
+ */
+static void publishing_piwigo_piwigo_publisher_on_upload_complete (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) {
+ PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 835 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:835: EVENT: on_upload_complete");
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = uploader;
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = uploader;
+#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_success_pane (self);
+#line 6018 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when the batch uploader reports that at least one of the
+ * network transactions encapsulating uploads has caused a network error
+ */
+static void publishing_piwigo_piwigo_publisher_on_upload_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err) {
+ PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ GError* _tmp4_ = NULL;
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:852: EVENT: on_upload_error");
+#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = uploader;
+#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = uploader;
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = err;
+#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp4_);
+#line 6054 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Event triggered when upload progresses and the status needs to be updated.
+ */
+static void publishing_piwigo_piwigo_publisher_on_upload_status_updated (PublishingPiwigoPiwigoPublisher* self, gint file_number, gdouble completed_fraction) {
+ gboolean _tmp0_ = FALSE;
+ gdouble _tmp1_ = 0.0;
+ SpitPublishingProgressCallback _tmp2_ = NULL;
+ void* _tmp2__target = NULL;
+ SpitPublishingProgressCallback _tmp3_ = NULL;
+ void* _tmp3__target = NULL;
+ gint _tmp4_ = 0;
+ gdouble _tmp5_ = 0.0;
+#line 862 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher));
+#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp0_) {
+#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 6078 "PiwigoPublishing.c"
+ }
+#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = completed_fraction;
+#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:866: EVENT: uploader reports upload %.2f percent" \
+" complete.", 100.0 * _tmp1_);
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->progress_reporter;
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2__target = self->priv->progress_reporter_target;
+#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_assert (_tmp2_ != NULL, "progress_reporter != null");
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->progress_reporter;
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3__target = self->priv->progress_reporter_target;
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = file_number;
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = completed_fraction;
+#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ (_tmp4_, _tmp5_, _tmp3__target);
+#line 6100 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Action to display the success pane in the publishing dialog.
+ */
+static void publishing_piwigo_piwigo_publisher_do_show_success_pane (PublishingPiwigoPiwigoPublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 876 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 877 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:877: ACTION: installing success pane");
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 880 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->host;
+#line 880 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_install_success_pane (_tmp1_);
+#line 6122 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Helper event to handle network errors.
+ */
+static void publishing_piwigo_piwigo_publisher_on_network_error (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ GError* _tmp0_ = NULL;
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:890: EVENT: on_network_error");
+#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = err;
+#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp0_);
+#line 6141 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Action to display an error to the user.
+ */
+static void publishing_piwigo_piwigo_publisher_do_show_error (PublishingPiwigoPiwigoPublisher* self, GError* e) {
+ gchar* error_type = NULL;
+ gchar* _tmp0_ = NULL;
+ GError* _tmp1_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ GError* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:898: ACTION: do_show_error");
+#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = g_strdup ("UNKNOWN");
+#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ error_type = _tmp0_;
+#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = e;
+#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_error_matches (_tmp1_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER)) {
+#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL);
+#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (error_type);
+#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return;
+#line 6176 "PiwigoPublishing.c"
+ } else {
+ GError* _tmp2_ = NULL;
+#line 903 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = e;
+#line 903 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_error_matches (_tmp2_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED)) {
+#line 6183 "PiwigoPublishing.c"
+ gchar* _tmp3_ = NULL;
+#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = g_strdup ("COMMUNICATION_FAILED");
+#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (error_type);
+#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ error_type = _tmp3_;
+#line 6191 "PiwigoPublishing.c"
+ } else {
+ GError* _tmp4_ = NULL;
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = e;
+#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_error_matches (_tmp4_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR)) {
+#line 6198 "PiwigoPublishing.c"
+ gchar* _tmp5_ = NULL;
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = g_strdup ("PROTOCOL_ERROR");
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (error_type);
+#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ error_type = _tmp5_;
+#line 6206 "PiwigoPublishing.c"
+ } else {
+ GError* _tmp6_ = NULL;
+#line 907 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = e;
+#line 907 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_error_matches (_tmp6_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR)) {
+#line 6213 "PiwigoPublishing.c"
+ gchar* _tmp7_ = NULL;
+#line 908 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = g_strdup ("SERVICE_ERROR");
+#line 908 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (error_type);
+#line 908 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ error_type = _tmp7_;
+#line 6221 "PiwigoPublishing.c"
+ } else {
+ GError* _tmp8_ = NULL;
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = e;
+#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_error_matches (_tmp8_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE)) {
+#line 6228 "PiwigoPublishing.c"
+ gchar* _tmp9_ = NULL;
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = g_strdup ("MALFORMED_RESPONSE");
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (error_type);
+#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ error_type = _tmp9_;
+#line 6236 "PiwigoPublishing.c"
+ } else {
+ GError* _tmp10_ = NULL;
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = e;
+#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_error_matches (_tmp10_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR)) {
+#line 6243 "PiwigoPublishing.c"
+ gchar* _tmp11_ = NULL;
+#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = g_strdup ("LOCAL_FILE_ERROR");
+#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (error_type);
+#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ error_type = _tmp11_;
+#line 6251 "PiwigoPublishing.c"
+ } else {
+ GError* _tmp12_ = NULL;
+#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = e;
+#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_error_matches (_tmp12_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) {
+#line 6258 "PiwigoPublishing.c"
+ gchar* _tmp13_ = NULL;
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = g_strdup ("EXPIRED_SESSION");
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (error_type);
+#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ error_type = _tmp13_;
+#line 6266 "PiwigoPublishing.c"
+ } else {
+ GError* _tmp14_ = NULL;
+#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = e;
+#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_error_matches (_tmp14_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED)) {
+#line 6273 "PiwigoPublishing.c"
+ gchar* _tmp15_ = NULL;
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = g_strdup ("SECURE_CONNECTION_FAILED");
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (error_type);
+#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ error_type = _tmp15_;
+#line 6281 "PiwigoPublishing.c"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = error_type;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = e;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = _tmp17_->message;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = g_strdup_printf ("Unhandled error: type=%s; message='%s'", _tmp16_, _tmp18_);
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = _tmp19_;
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:919: %s", _tmp20_);
+#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp20_);
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = _ ("An error message occurred when publishing to Piwigo. Please try again.");
+#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_do_show_error_message (self, _tmp21_);
+#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (error_type);
+#line 6310 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Action to display an error message to the user.
+ */
+static void publishing_piwigo_piwigo_publisher_do_show_error_message (PublishingPiwigoPiwigoPublisher* self, const gchar* message) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self));
+#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (message != NULL);
+#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:927: ACTION: do_show_error_message");
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->host;
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = message;
+#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_install_static_message_pane (_tmp0_, _tmp1_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE);
+#line 6332 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Retrieves session ID from a REST Transaction received
+ *
+ * This helper method extracts the pwg_id out of the Set-Cookie header if
+ * present in the received transaction.
+ *
+ * @param txn the received transaction
+ * @return the value of pwg_id if present or null if not found
+ */
+static SoupCookie* _vala_SoupCookie_copy (SoupCookie* self) {
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return g_boxed_copy (soup_cookie_get_type (), self);
+#line 6348 "PiwigoPublishing.c"
+}
+
+
+static gpointer __vala_SoupCookie_copy0 (gpointer self) {
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self ? _vala_SoupCookie_copy (self) : NULL;
+#line 6355 "PiwigoPublishing.c"
+}
+
+
+static void _vala_SoupCookie_free (SoupCookie* self) {
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_boxed_free (soup_cookie_get_type (), self);
+#line 6362 "PiwigoPublishing.c"
+}
+
+
+static void __vala_SoupCookie_free0_ (gpointer var) {
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (var == NULL) ? NULL : (var = (_vala_SoupCookie_free (var), NULL));
+#line 6369 "PiwigoPublishing.c"
+}
+
+
+static void _g_slist_free___vala_SoupCookie_free0_ (GSList* self) {
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_slist_foreach (self, (GFunc) __vala_SoupCookie_free0_, NULL);
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_slist_free (self);
+#line 6378 "PiwigoPublishing.c"
+}
+
+
+static gchar* publishing_piwigo_piwigo_publisher_get_pwg_id_from_transaction (PublishingPiwigoPiwigoPublisher* self, PublishingRESTSupportTransaction* txn) {
+ gchar* result = NULL;
+ gchar* pwg_id = NULL;
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ SoupMessage* _tmp1_ = NULL;
+ SoupMessage* _tmp2_ = NULL;
+ GSList* _tmp3_ = NULL;
+ GSList* _tmp4_ = NULL;
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL);
+#line 943 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn), NULL);
+#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ pwg_id = NULL;
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = txn;
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = publishing_rest_support_transaction_get_message (_tmp0_);
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = soup_cookies_from_response (_tmp2_);
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (_tmp2_);
+#line 6408 "PiwigoPublishing.c"
+ {
+ GSList* cookie_collection = NULL;
+ GSList* cookie_it = NULL;
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ cookie_collection = _tmp4_;
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ for (cookie_it = cookie_collection; cookie_it != NULL; cookie_it = cookie_it->next) {
+#line 6416 "PiwigoPublishing.c"
+ SoupCookie* _tmp5_ = NULL;
+ SoupCookie* cookie = NULL;
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = __vala_SoupCookie_copy0 ((SoupCookie*) cookie_it->data);
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ cookie = _tmp5_;
+#line 6423 "PiwigoPublishing.c"
+ {
+ SoupCookie* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = cookie;
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = soup_cookie_get_name (_tmp6_);
+#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_strcmp0 (_tmp7_, "pwg_id") == 0) {
+#line 6433 "PiwigoPublishing.c"
+ SoupCookie* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = cookie;
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = soup_cookie_get_value (_tmp8_);
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = g_strdup (_tmp9_);
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (pwg_id);
+#line 950 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ pwg_id = _tmp10_;
+#line 951 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = pwg_id;
+#line 951 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:951: Found pwg_id %s", _tmp11_);
+#line 6452 "PiwigoPublishing.c"
+ }
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ __vala_SoupCookie_free0 (cookie);
+#line 6456 "PiwigoPublishing.c"
+ }
+ }
+#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ __g_slist_free___vala_SoupCookie_free0_0 (cookie_collection);
+#line 6461 "PiwigoPublishing.c"
+ }
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = pwg_id;
+#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 6467 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_class_init (PublishingPiwigoPiwigoPublisherClass * klass) {
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_parent_class = g_type_class_peek_parent (klass);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPiwigoPiwigoPublisherPrivate));
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_piwigo_publisher_finalize;
+#line 6478 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) {
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_piwigo_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface);
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->get_service = (SpitPublishingService* (*)(SpitPublishingPublisher*)) publishing_piwigo_piwigo_publisher_real_get_service;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->is_running = (gboolean (*)(SpitPublishingPublisher*)) publishing_piwigo_piwigo_publisher_real_is_running;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->start = (void (*)(SpitPublishingPublisher*)) publishing_piwigo_piwigo_publisher_real_start;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->stop = (void (*)(SpitPublishingPublisher*)) publishing_piwigo_piwigo_publisher_real_stop;
+#line 6493 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_instance_init (PublishingPiwigoPiwigoPublisher * self) {
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv = PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_GET_PRIVATE (self);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->running = FALSE;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->strip_metadata = FALSE;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->categories = NULL;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->categories_length1 = 0;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->_categories_size_ = self->priv->categories_length1;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->parameters = NULL;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 6514 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_piwigo_publisher_finalize (GObject* obj) {
+ PublishingPiwigoPiwigoPublisher * self;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher);
+#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->service);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->host);
+#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->categories = (_vala_array_free (self->priv->categories, self->priv->categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters);
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_OBJECT_CLASS (publishing_piwigo_piwigo_publisher_parent_class)->finalize (obj);
+#line 6542 "PiwigoPublishing.c"
+}
+
+
+GType publishing_piwigo_piwigo_publisher_get_type (void) {
+ static volatile gsize publishing_piwigo_piwigo_publisher_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_piwigo_publisher_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPiwigoPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_piwigo_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPiwigoPublisher), 0, (GInstanceInitFunc) publishing_piwigo_piwigo_publisher_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_piwigo_piwigo_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_piwigo_piwigo_publisher_type_id;
+ publishing_piwigo_piwigo_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingPiwigoPiwigoPublisher", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_piwigo_piwigo_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info);
+ g_once_init_leave (&publishing_piwigo_piwigo_publisher_type_id__volatile, publishing_piwigo_piwigo_publisher_type_id);
+ }
+ return publishing_piwigo_piwigo_publisher_type_id__volatile;
+}
+
+
+PublishingPiwigoUploader* publishing_piwigo_uploader_construct (GType object_type, PublishingPiwigoSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingPiwigoPublishingParameters* parameters) {
+ PublishingPiwigoUploader* self = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingPiwigoPublishingParameters* _tmp2_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp3_ = NULL;
+#line 964 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL);
+#line 964 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 966 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = session;
+#line 966 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = publishables;
+#line 966 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1__length1 = publishables_length1;
+#line 966 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp1__length1);
+#line 968 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = parameters;
+#line 968 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = _publishing_piwigo_publishing_parameters_ref0 (_tmp2_);
+#line 968 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters);
+#line 968 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->parameters = _tmp3_;
+#line 964 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 6589 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoUploader* publishing_piwigo_uploader_new (PublishingPiwigoSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingPiwigoPublishingParameters* parameters) {
+#line 964 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_uploader_construct (PUBLISHING_PIWIGO_TYPE_UPLOADER, session, publishables, publishables_length1, parameters);
+#line 6596 "PiwigoPublishing.c"
+}
+
+
+static PublishingRESTSupportTransaction* publishing_piwigo_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) {
+ PublishingPiwigoUploader * self;
+ PublishingRESTSupportTransaction* result = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingPiwigoSession* _tmp1_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ PublishingPiwigoImagesAddTransaction* _tmp4_ = NULL;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploader);
+#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession);
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->parameters;
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = publishable;
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = publishing_piwigo_images_add_transaction_new (_tmp1_, _tmp2_, _tmp3_);
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction);
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp5_;
+#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 6631 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_uploader_class_init (PublishingPiwigoUploaderClass * klass) {
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_uploader_parent_class = g_type_class_peek_parent (klass);
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_piwigo_uploader_finalize;
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPiwigoUploaderPrivate));
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = publishing_piwigo_uploader_real_create_transaction;
+#line 6644 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_uploader_instance_init (PublishingPiwigoUploader * self) {
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv = PUBLISHING_PIWIGO_UPLOADER_GET_PRIVATE (self);
+#line 6651 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_uploader_finalize (PublishingRESTSupportBatchUploader* obj) {
+ PublishingPiwigoUploader * self;
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploader);
+#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters);
+#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_piwigo_uploader_parent_class)->finalize (obj);
+#line 6663 "PiwigoPublishing.c"
+}
+
+
+GType publishing_piwigo_uploader_get_type (void) {
+ static volatile gsize publishing_piwigo_uploader_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_uploader_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoUploader), 0, (GInstanceInitFunc) publishing_piwigo_uploader_instance_init, NULL };
+ GType publishing_piwigo_uploader_type_id;
+ publishing_piwigo_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingPiwigoUploader", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_piwigo_uploader_type_id__volatile, publishing_piwigo_uploader_type_id);
+ }
+ return publishing_piwigo_uploader_type_id__volatile;
+}
+
+
+GType publishing_piwigo_authentication_pane_mode_get_type (void) {
+ static volatile gsize publishing_piwigo_authentication_pane_mode_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_authentication_pane_mode_type_id__volatile)) {
+ static const GEnumValue values[] = {{PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO, "PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO", "intro"}, {PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL, "PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL", "failed-retry-url"}, {PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER, "PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER", "failed-retry-user"}, {0, NULL, NULL}};
+ GType publishing_piwigo_authentication_pane_mode_type_id;
+ publishing_piwigo_authentication_pane_mode_type_id = g_enum_register_static ("PublishingPiwigoAuthenticationPaneMode", values);
+ g_once_init_leave (&publishing_piwigo_authentication_pane_mode_type_id__volatile, publishing_piwigo_authentication_pane_mode_type_id);
+ }
+ return publishing_piwigo_authentication_pane_mode_type_id__volatile;
+}
+
+
+static void _publishing_piwigo_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 1051 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_on_user_changed ((PublishingPiwigoAuthenticationPane*) self);
+#line 6694 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_authentication_pane_on_url_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_on_url_changed ((PublishingPiwigoAuthenticationPane*) self);
+#line 6701 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_on_password_changed ((PublishingPiwigoAuthenticationPane*) self);
+#line 6708 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_on_login_button_clicked ((PublishingPiwigoAuthenticationPane*) self);
+#line 6715 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoAuthenticationPane* publishing_piwigo_authentication_pane_construct (GType object_type, PublishingPiwigoPiwigoPublisher* publisher, PublishingPiwigoAuthenticationPaneMode mode) {
+ PublishingPiwigoAuthenticationPane * self = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (publisher), NULL);
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoAuthenticationPane*) g_object_new (object_type, NULL);
+#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_object_ref_sink (_tmp0_);
+#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pane_widget = _tmp0_;
+#line 6735 "PiwigoPublishing.c"
+ {
+ GtkBuilder* _tmp1_ = NULL;
+ GtkBuilder* _tmp2_ = NULL;
+ GtkBuilder* _tmp3_ = NULL;
+ GtkAlignment* align = NULL;
+ GtkBuilder* _tmp4_ = NULL;
+ GObject* _tmp5_ = NULL;
+ GtkAlignment* _tmp6_ = NULL;
+ GtkLabel* message_label = NULL;
+ GtkBuilder* _tmp7_ = NULL;
+ GObject* _tmp8_ = NULL;
+ GtkLabel* _tmp9_ = NULL;
+ PublishingPiwigoAuthenticationPaneMode _tmp10_ = 0;
+ GtkBuilder* _tmp23_ = NULL;
+ GObject* _tmp24_ = NULL;
+ GtkEntry* _tmp25_ = NULL;
+ gchar* persistent_url = NULL;
+ PublishingPiwigoPiwigoPublisher* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+ GtkBuilder* _tmp31_ = NULL;
+ GObject* _tmp32_ = NULL;
+ GtkEntry* _tmp33_ = NULL;
+ gchar* persistent_username = NULL;
+ PublishingPiwigoPiwigoPublisher* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+ const gchar* _tmp36_ = NULL;
+ GtkBuilder* _tmp39_ = NULL;
+ GObject* _tmp40_ = NULL;
+ GtkEntry* _tmp41_ = NULL;
+ gchar* persistent_password = NULL;
+ PublishingPiwigoPiwigoPublisher* _tmp42_ = NULL;
+ gchar* _tmp43_ = NULL;
+ const gchar* _tmp44_ = NULL;
+ GtkBuilder* _tmp47_ = NULL;
+ GObject* _tmp48_ = NULL;
+ GtkCheckButton* _tmp49_ = NULL;
+ GtkCheckButton* _tmp50_ = NULL;
+ PublishingPiwigoPiwigoPublisher* _tmp51_ = NULL;
+ gboolean _tmp52_ = FALSE;
+ GtkBuilder* _tmp53_ = NULL;
+ GObject* _tmp54_ = NULL;
+ GtkButton* _tmp55_ = NULL;
+ GtkEntry* _tmp56_ = NULL;
+ GtkEntry* _tmp57_ = NULL;
+ GtkEntry* _tmp58_ = NULL;
+ GtkButton* _tmp59_ = NULL;
+ GtkAlignment* _tmp60_ = NULL;
+ GtkBox* _tmp61_ = NULL;
+ PublishingPiwigoPiwigoPublisher* _tmp62_ = NULL;
+ SpitPublishingPluginHost* _tmp63_ = NULL;
+ SpitPublishingPluginHost* _tmp64_ = NULL;
+ GtkButton* _tmp65_ = NULL;
+#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = gtk_builder_new ();
+#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->builder = _tmp1_;
+#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->builder;
+#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/piwigo_authentication_pane.ui", &_inner_error_);
+#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 6801 "PiwigoPublishing.c"
+ goto __catch44_g_error;
+ }
+#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->builder;
+#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_builder_connect_signals (_tmp3_, NULL);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->builder;
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = gtk_builder_get_object (_tmp4_, "alignment");
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_alignment_get_type ()) ? ((GtkAlignment*) _tmp5_) : NULL);
+#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ align = _tmp6_;
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = self->priv->builder;
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = gtk_builder_get_object (_tmp7_, "message_label");
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp8_) : NULL);
+#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ message_label = _tmp9_;
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = mode;
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ switch (_tmp10_) {
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO:
+#line 6830 "PiwigoPublishing.c"
+ {
+ GtkLabel* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = message_label;
+#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = publishing_piwigo_authentication_pane_INTRO_MESSAGE;
+#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_label_set_text (_tmp11_, _tmp12_);
+#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 6842 "PiwigoPublishing.c"
+ }
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL:
+#line 6846 "PiwigoPublishing.c"
+ {
+ GtkLabel* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = message_label;
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = _ ("Invalid URL");
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE;
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = g_strdup_printf ("<b>%s</b>\n\n%s", _tmp14_, _tmp15_);
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = _tmp16_;
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_label_set_markup (_tmp13_, _tmp17_);
+#line 1020 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp17_);
+#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 6869 "PiwigoPublishing.c"
+ }
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER:
+#line 6873 "PiwigoPublishing.c"
+ {
+ GtkLabel* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+ gchar* _tmp21_ = NULL;
+ gchar* _tmp22_ = NULL;
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = message_label;
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = _ ("Invalid User Name or Password");
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE;
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = g_strdup_printf ("<b>%s</b>\n\n%s", _tmp19_, _tmp20_);
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = _tmp21_;
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_label_set_markup (_tmp18_, _tmp22_);
+#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp22_);
+#line 1027 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 6896 "PiwigoPublishing.c"
+ }
+ default:
+#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 6901 "PiwigoPublishing.c"
+ }
+#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = self->priv->builder;
+#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp24_ = gtk_builder_get_object (_tmp23_, "url_entry");
+#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp24_) : NULL);
+#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->url_entry);
+#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->url_entry = _tmp25_;
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp26_ = publisher;
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp27_ = publishing_piwigo_piwigo_publisher_get_persistent_url (_tmp26_);
+#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ persistent_url = _tmp27_;
+#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp28_ = persistent_url;
+#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp28_ != NULL) {
+#line 6923 "PiwigoPublishing.c"
+ GtkEntry* _tmp29_ = NULL;
+ const gchar* _tmp30_ = NULL;
+#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp29_ = self->priv->url_entry;
+#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp30_ = persistent_url;
+#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_entry_set_text (_tmp29_, _tmp30_);
+#line 6932 "PiwigoPublishing.c"
+ }
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp31_ = self->priv->builder;
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp32_ = gtk_builder_get_object (_tmp31_, "username_entry");
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp32_) : NULL);
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->username_entry);
+#line 1035 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->username_entry = _tmp33_;
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp34_ = publisher;
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp35_ = publishing_piwigo_piwigo_publisher_get_persistent_username (_tmp34_);
+#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ persistent_username = _tmp35_;
+#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp36_ = persistent_username;
+#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp36_ != NULL) {
+#line 6954 "PiwigoPublishing.c"
+ GtkEntry* _tmp37_ = NULL;
+ const gchar* _tmp38_ = NULL;
+#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp37_ = self->priv->username_entry;
+#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp38_ = persistent_username;
+#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_entry_set_text (_tmp37_, _tmp38_);
+#line 6963 "PiwigoPublishing.c"
+ }
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp39_ = self->priv->builder;
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp40_ = gtk_builder_get_object (_tmp39_, "password_entry");
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp41_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp40_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp40_) : NULL);
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->password_entry);
+#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->password_entry = _tmp41_;
+#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp42_ = publisher;
+#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp43_ = publishing_piwigo_piwigo_publisher_get_persistent_password (_tmp42_);
+#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ persistent_password = _tmp43_;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp44_ = persistent_password;
+#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp44_ != NULL) {
+#line 6985 "PiwigoPublishing.c"
+ GtkEntry* _tmp45_ = NULL;
+ const gchar* _tmp46_ = NULL;
+#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp45_ = self->priv->password_entry;
+#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp46_ = persistent_password;
+#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_entry_set_text (_tmp45_, _tmp46_);
+#line 6994 "PiwigoPublishing.c"
+ }
+#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp47_ = self->priv->builder;
+#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp48_ = gtk_builder_get_object (_tmp47_, "remember_password_checkbutton");
+#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp49_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp48_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp48_) : NULL);
+#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->remember_password_checkbutton);
+#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->remember_password_checkbutton = _tmp49_;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp50_ = self->priv->remember_password_checkbutton;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp51_ = publisher;
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp52_ = publishing_piwigo_piwigo_publisher_get_remember_password (_tmp51_);
+#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp52_);
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp53_ = self->priv->builder;
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp54_ = gtk_builder_get_object (_tmp53_, "login_button");
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp55_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp54_, gtk_button_get_type ()) ? ((GtkButton*) _tmp54_) : NULL);
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->login_button);
+#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->login_button = _tmp55_;
+#line 1051 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp56_ = self->priv->username_entry;
+#line 1051 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_piwigo_authentication_pane_on_user_changed_gtk_editable_changed, self, 0);
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp57_ = self->priv->url_entry;
+#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_piwigo_authentication_pane_on_url_changed_gtk_editable_changed, self, 0);
+#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp58_ = self->priv->password_entry;
+#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_piwigo_authentication_pane_on_password_changed_gtk_editable_changed, self, 0);
+#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp59_ = self->priv->login_button;
+#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (_tmp59_, "clicked", (GCallback) _publishing_piwigo_authentication_pane_on_login_button_clicked_gtk_button_clicked, self, 0);
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp60_ = align;
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp61_ = self->priv->pane_widget;
+#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_reparent (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_widget_get_type (), GtkWidget), G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_widget_get_type (), GtkWidget));
+#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp62_ = publisher;
+#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp63_ = publishing_piwigo_piwigo_publisher_get_host (_tmp62_);
+#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp64_ = _tmp63_;
+#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp65_ = self->priv->login_button;
+#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ spit_publishing_plugin_host_set_dialog_default_widget (_tmp64_, G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget));
+#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (_tmp64_);
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (persistent_password);
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (persistent_username);
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (persistent_url);
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (message_label);
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (align);
+#line 7068 "PiwigoPublishing.c"
+ }
+ goto __finally44;
+ __catch44_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp66_ = NULL;
+ const gchar* _tmp67_ = NULL;
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ e = _inner_error_;
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp66_ = e;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp67_ = _tmp66_->message;
+#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_warning ("PiwigoPublishing.vala:1059: Could not load UI: %s", _tmp67_);
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (e);
+#line 7088 "PiwigoPublishing.c"
+ }
+ __finally44:
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 7099 "PiwigoPublishing.c"
+ }
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 7103 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoAuthenticationPane* publishing_piwigo_authentication_pane_new (PublishingPiwigoPiwigoPublisher* publisher, PublishingPiwigoAuthenticationPaneMode mode) {
+#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_authentication_pane_construct (PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, publisher, mode);
+#line 7110 "PiwigoPublishing.c"
+}
+
+
+GtkWidget* publishing_piwigo_authentication_pane_get_default_widget (PublishingPiwigoAuthenticationPane* self) {
+ GtkWidget* result = NULL;
+ GtkButton* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self), NULL);
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->login_button;
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 7128 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_on_login_button_clicked (PublishingPiwigoAuthenticationPane* self) {
+ GtkEntry* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ GtkEntry* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ GtkEntry* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ GtkCheckButton* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self));
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->url_entry;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = gtk_entry_get_text (_tmp0_);
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->username_entry;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = gtk_entry_get_text (_tmp2_);
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->password_entry;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = gtk_entry_get_text (_tmp4_);
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = self->priv->remember_password_checkbutton;
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_emit_by_name (self, "login", _tmp1_, _tmp3_, _tmp5_, _tmp7_);
+#line 7161 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_on_url_changed (PublishingPiwigoAuthenticationPane* self) {
+#line 1072 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self));
+#line 1073 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_update_login_button_sensitivity (self);
+#line 7170 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_on_user_changed (PublishingPiwigoAuthenticationPane* self) {
+#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self));
+#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_update_login_button_sensitivity (self);
+#line 7179 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_on_password_changed (PublishingPiwigoAuthenticationPane* self) {
+#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self));
+#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_update_login_button_sensitivity (self);
+#line 7188 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_update_login_button_sensitivity (PublishingPiwigoAuthenticationPane* self) {
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
+ GtkEntry* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ guint _tmp4_ = 0U;
+ GtkButton* _tmp11_ = NULL;
+#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self));
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->url_entry;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = gtk_entry_get_text_length (_tmp2_);
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp4_ != ((guint) 0)) {
+#line 7209 "PiwigoPublishing.c"
+ GtkEntry* _tmp5_ = NULL;
+ guint _tmp6_ = 0U;
+ guint _tmp7_ = 0U;
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = self->priv->username_entry;
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = gtk_entry_get_text_length (_tmp5_);
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _tmp7_ != ((guint) 0);
+#line 7221 "PiwigoPublishing.c"
+ } else {
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = FALSE;
+#line 7225 "PiwigoPublishing.c"
+ }
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp1_) {
+#line 7229 "PiwigoPublishing.c"
+ GtkEntry* _tmp8_ = NULL;
+ guint _tmp9_ = 0U;
+ guint _tmp10_ = 0U;
+#line 1087 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = self->priv->password_entry;
+#line 1087 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = gtk_entry_get_text_length (_tmp8_);
+#line 1087 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = _tmp9_;
+#line 1087 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = _tmp10_ != ((guint) 0);
+#line 7241 "PiwigoPublishing.c"
+ } else {
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = FALSE;
+#line 7245 "PiwigoPublishing.c"
+ }
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = self->priv->login_button;
+#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), _tmp0_);
+#line 7251 "PiwigoPublishing.c"
+}
+
+
+static GtkWidget* publishing_piwigo_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingPiwigoAuthenticationPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane);
+#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 7270 "PiwigoPublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_piwigo_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingPiwigoAuthenticationPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane);
+#line 1095 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 1095 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 7283 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingPiwigoAuthenticationPane * self;
+ GtkEntry* _tmp0_ = NULL;
+ GtkEntry* _tmp1_ = NULL;
+ GtkButton* _tmp2_ = NULL;
+#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane);
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->url_entry;
+#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->password_entry;
+#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_entry_set_activates_default (_tmp1_, TRUE);
+#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->login_button;
+#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_update_login_button_sensitivity (self);
+#line 7308 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingPiwigoAuthenticationPane * self;
+#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane);
+#line 7316 "PiwigoPublishing.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__STRING_STRING_STRING_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__STRING_STRING_STRING_BOOLEAN) (gpointer data1, const char* arg_1, const char* arg_2, const char* arg_3, gboolean arg_4, gpointer data2);
+ register GMarshalFunc_VOID__STRING_STRING_STRING_BOOLEAN callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (n_param_values == 5);
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ data1 = closure->data;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 7335 "PiwigoPublishing.c"
+ } else {
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ data2 = closure->data;
+#line 7341 "PiwigoPublishing.c"
+ }
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ callback = (GMarshalFunc_VOID__STRING_STRING_STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_string (param_values + 3), g_value_get_boolean (param_values + 4), data2);
+#line 7347 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_class_init (PublishingPiwigoAuthenticationPaneClass * klass) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_parent_class = g_type_class_peek_parent (klass);
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPiwigoAuthenticationPanePrivate));
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_authentication_pane_finalize;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_new ("login", PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_STRING_BOOLEAN, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN);
+#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = _ ("Enter the URL of your Piwigo photo library as well as the username and" \
+" password associated with your Piwigo account for that library.");
+#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_INTRO_MESSAGE = _tmp1_;
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = _ ("Shotwell cannot contact your Piwigo photo library. Please verify the U" \
+"RL you entered");
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE = _tmp3_;
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _ ("Username and/or password invalid. Please try again");
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE = _tmp5_;
+#line 7384 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_piwigo_authentication_pane_real_get_widget;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_piwigo_authentication_pane_real_get_preferred_geometry;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_piwigo_authentication_pane_real_on_pane_installed;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_piwigo_authentication_pane_real_on_pane_uninstalled;
+#line 7399 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_instance_init (PublishingPiwigoAuthenticationPane * self) {
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv = PUBLISHING_PIWIGO_AUTHENTICATION_PANE_GET_PRIVATE (self);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 7408 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_authentication_pane_finalize (GObject* obj) {
+ PublishingPiwigoAuthenticationPane * self;
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane);
+#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 995 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->url_entry);
+#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->username_entry);
+#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->password_entry);
+#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->remember_password_checkbutton);
+#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->login_button);
+#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_OBJECT_CLASS (publishing_piwigo_authentication_pane_parent_class)->finalize (obj);
+#line 7432 "PiwigoPublishing.c"
+}
+
+
+/**
+ * The authentication pane used when asking service URL, user name and password
+ * from the user.
+ */
+GType publishing_piwigo_authentication_pane_get_type (void) {
+ static volatile gsize publishing_piwigo_authentication_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_authentication_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoAuthenticationPane), 0, (GInstanceInitFunc) publishing_piwigo_authentication_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_piwigo_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_piwigo_authentication_pane_type_id;
+ publishing_piwigo_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingPiwigoAuthenticationPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_piwigo_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_piwigo_authentication_pane_type_id__volatile, publishing_piwigo_authentication_pane_type_id);
+ }
+ return publishing_piwigo_authentication_pane_type_id__volatile;
+}
+
+
+static void _publishing_piwigo_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_on_logout_button_clicked ((PublishingPiwigoPublishingOptionsPane*) self);
+#line 7457 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_on_publish_button_clicked ((PublishingPiwigoPublishingOptionsPane*) self);
+#line 7464 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked ((PublishingPiwigoPublishingOptionsPane*) self);
+#line 7471 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked ((PublishingPiwigoPublishingOptionsPane*) self);
+#line 7478 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_publishing_options_pane_on_new_category_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_on_new_category_entry_changed ((PublishingPiwigoPublishingOptionsPane*) self);
+#line 7485 "PiwigoPublishing.c"
+}
+
+
+static void _publishing_piwigo_publishing_options_pane_on_existing_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_on_existing_combo_changed ((PublishingPiwigoPublishingOptionsPane*) self);
+#line 7492 "PiwigoPublishing.c"
+}
+
+
+static gpointer _publishing_piwigo_category_ref0 (gpointer self) {
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self ? publishing_piwigo_category_ref (self) : NULL;
+#line 7499 "PiwigoPublishing.c"
+}
+
+
+static PublishingPiwigoCategory** _vala_array_dup11 (PublishingPiwigoCategory** self, int length) {
+ PublishingPiwigoCategory** result;
+ int i;
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = g_new0 (PublishingPiwigoCategory*, length + 1);
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 7510 "PiwigoPublishing.c"
+ PublishingPiwigoCategory* _tmp0_ = NULL;
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = _publishing_piwigo_category_ref0 (self[i]);
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result[i] = _tmp0_;
+#line 7516 "PiwigoPublishing.c"
+ }
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 7520 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoPublishingOptionsPane* publishing_piwigo_publishing_options_pane_construct (GType object_type, PublishingPiwigoPiwigoPublisher* publisher, PublishingPiwigoCategory** categories, int categories_length1, gint last_category, gint last_permission_level, gint last_photo_size, gboolean last_title_as_comment, gboolean last_no_upload_tags, gboolean strip_metadata_enabled) {
+ PublishingPiwigoPublishingOptionsPane * self = NULL;
+ GtkBox* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+ gint _tmp3_ = 0;
+ gboolean _tmp4_ = FALSE;
+ gboolean _tmp5_ = FALSE;
+ PublishingPiwigoCategory** _tmp78_ = NULL;
+ gint _tmp78__length1 = 0;
+ PublishingPiwigoCategory** _tmp79_ = NULL;
+ gint _tmp79__length1 = 0;
+ gint _tmp80_ = 0;
+ PublishingPiwigoPermissionLevel** _tmp81_ = NULL;
+ gint _tmp82_ = 0;
+ PublishingPiwigoSizeEntry** _tmp83_ = NULL;
+ GtkTextView* _tmp84_ = NULL;
+ GtkTextBuffer* _tmp85_ = NULL;
+ GtkTextBuffer* _tmp86_ = NULL;
+ PublishingPiwigoPiwigoPublisher* _tmp87_ = NULL;
+ gchar* _tmp88_ = NULL;
+ gchar* _tmp89_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (publisher), NULL);
+#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoPublishingOptionsPane*) g_object_new (object_type, NULL);
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_object_ref_sink (_tmp0_);
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pane_widget = _tmp0_;
+#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = last_category;
+#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->last_category = _tmp1_;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = last_permission_level;
+#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->last_permission_level = _tmp2_;
+#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = last_photo_size;
+#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->last_photo_size = _tmp3_;
+#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = last_title_as_comment;
+#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->last_title_as_comment = _tmp4_;
+#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = last_no_upload_tags;
+#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->last_no_upload_tags = _tmp5_;
+#line 7579 "PiwigoPublishing.c"
+ {
+ GtkBuilder* _tmp6_ = NULL;
+ GtkBuilder* _tmp7_ = NULL;
+ GtkBuilder* _tmp8_ = NULL;
+ GtkAlignment* align = NULL;
+ GtkBuilder* _tmp9_ = NULL;
+ GObject* _tmp10_ = NULL;
+ GtkAlignment* _tmp11_ = NULL;
+ GtkBuilder* _tmp12_ = NULL;
+ GObject* _tmp13_ = NULL;
+ GtkRadioButton* _tmp14_ = NULL;
+ GtkBuilder* _tmp15_ = NULL;
+ GObject* _tmp16_ = NULL;
+ GtkRadioButton* _tmp17_ = NULL;
+ GtkBuilder* _tmp18_ = NULL;
+ GObject* _tmp19_ = NULL;
+ GtkComboBoxText* _tmp20_ = NULL;
+ GtkBuilder* _tmp21_ = NULL;
+ GObject* _tmp22_ = NULL;
+ GtkEntry* _tmp23_ = NULL;
+ GtkBuilder* _tmp24_ = NULL;
+ GObject* _tmp25_ = NULL;
+ GtkLabel* _tmp26_ = NULL;
+ GtkBuilder* _tmp27_ = NULL;
+ GObject* _tmp28_ = NULL;
+ GtkComboBoxText* _tmp29_ = NULL;
+ GtkBuilder* _tmp30_ = NULL;
+ GObject* _tmp31_ = NULL;
+ GtkTextView* _tmp32_ = NULL;
+ GtkTextView* _tmp33_ = NULL;
+ GtkTextBuffer* _tmp34_ = NULL;
+ GtkTextBuffer* _tmp35_ = NULL;
+ GtkBuilder* _tmp36_ = NULL;
+ GObject* _tmp37_ = NULL;
+ GtkLabel* _tmp38_ = NULL;
+ GtkBuilder* _tmp39_ = NULL;
+ GObject* _tmp40_ = NULL;
+ GtkComboBoxText* _tmp41_ = NULL;
+ GtkBuilder* _tmp42_ = NULL;
+ GObject* _tmp43_ = NULL;
+ GtkComboBoxText* _tmp44_ = NULL;
+ GtkBuilder* _tmp45_ = NULL;
+ GObject* _tmp46_ = NULL;
+ GtkCheckButton* _tmp47_ = NULL;
+ GtkCheckButton* _tmp48_ = NULL;
+ gboolean _tmp49_ = FALSE;
+ GtkBuilder* _tmp50_ = NULL;
+ GObject* _tmp51_ = NULL;
+ GtkCheckButton* _tmp52_ = NULL;
+ GtkCheckButton* _tmp53_ = NULL;
+ gboolean _tmp54_ = FALSE;
+ GtkBuilder* _tmp55_ = NULL;
+ GObject* _tmp56_ = NULL;
+ GtkCheckButton* _tmp57_ = NULL;
+ GtkCheckButton* _tmp58_ = NULL;
+ gboolean _tmp59_ = FALSE;
+ GtkBuilder* _tmp60_ = NULL;
+ GObject* _tmp61_ = NULL;
+ GtkButton* _tmp62_ = NULL;
+ GtkButton* _tmp63_ = NULL;
+ GtkBuilder* _tmp64_ = NULL;
+ GObject* _tmp65_ = NULL;
+ GtkButton* _tmp66_ = NULL;
+ GtkButton* _tmp67_ = NULL;
+ GtkRadioButton* _tmp68_ = NULL;
+ GtkRadioButton* _tmp69_ = NULL;
+ GtkEntry* _tmp70_ = NULL;
+ GtkComboBoxText* _tmp71_ = NULL;
+ GtkAlignment* _tmp72_ = NULL;
+ GtkBox* _tmp73_ = NULL;
+ GtkBox* _tmp74_ = NULL;
+ GtkAlignment* _tmp75_ = NULL;
+#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = gtk_builder_new ();
+#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->builder = _tmp6_;
+#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = self->priv->builder;
+#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_builder_add_from_resource (_tmp7_, PLUGIN_RESOURCE_PATH "/piwigo_publishing_options_pane.ui", &_inner_error_);
+#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 7664 "PiwigoPublishing.c"
+ goto __catch45_g_error;
+ }
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = self->priv->builder;
+#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_builder_connect_signals (_tmp8_, NULL);
+#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = self->priv->builder;
+#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = gtk_builder_get_object (_tmp9_, "alignment");
+#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, gtk_alignment_get_type ()) ? ((GtkAlignment*) _tmp10_) : NULL);
+#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ align = _tmp11_;
+#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = self->priv->builder;
+#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = gtk_builder_get_object (_tmp12_, "use_existing_radio");
+#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp13_) : NULL);
+#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->use_existing_radio);
+#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->use_existing_radio = _tmp14_;
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = self->priv->builder;
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = gtk_builder_get_object (_tmp15_, "create_new_radio");
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp16_) : NULL);
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->create_new_radio);
+#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->create_new_radio = _tmp17_;
+#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = self->priv->builder;
+#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = gtk_builder_get_object (_tmp18_, "existing_categories_combo");
+#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp19_) : NULL);
+#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->existing_categories_combo);
+#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->existing_categories_combo = _tmp20_;
+#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = self->priv->builder;
+#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = gtk_builder_get_object (_tmp21_, "new_category_entry");
+#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp22_) : NULL);
+#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->new_category_entry);
+#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->new_category_entry = _tmp23_;
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp24_ = self->priv->builder;
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp25_ = gtk_builder_get_object (_tmp24_, "within_existing_label");
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp25_) : NULL);
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->within_existing_label);
+#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->within_existing_label = _tmp26_;
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp27_ = self->priv->builder;
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp28_ = gtk_builder_get_object (_tmp27_, "within_existing_combo");
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp28_) : NULL);
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->within_existing_combo);
+#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->within_existing_combo = _tmp29_;
+#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp30_ = self->priv->builder;
+#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp31_ = gtk_builder_get_object (_tmp30_, "album_comment");
+#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp32_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp31_, gtk_text_view_get_type ()) ? ((GtkTextView*) _tmp31_) : NULL);
+#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->album_comment);
+#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->album_comment = _tmp32_;
+#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp33_ = self->priv->album_comment;
+#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp34_ = gtk_text_buffer_new (NULL);
+#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp35_ = _tmp34_;
+#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_text_view_set_buffer (_tmp33_, _tmp35_);
+#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (_tmp35_);
+#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp36_ = self->priv->builder;
+#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp37_ = gtk_builder_get_object (_tmp36_, "album_comment_label");
+#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp38_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp37_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp37_) : NULL);
+#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->album_comment_label);
+#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->album_comment_label = _tmp38_;
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp39_ = self->priv->builder;
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp40_ = gtk_builder_get_object (_tmp39_, "perms_combo");
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp41_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp40_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp40_) : NULL);
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->perms_combo);
+#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->perms_combo = _tmp41_;
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp42_ = self->priv->builder;
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp43_ = gtk_builder_get_object (_tmp42_, "size_combo");
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp44_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp43_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp43_) : NULL);
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->size_combo);
+#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->size_combo = _tmp44_;
+#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp45_ = self->priv->builder;
+#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp46_ = gtk_builder_get_object (_tmp45_, "strip_metadata_check");
+#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp47_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp46_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp46_) : NULL);
+#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->strip_metadata_check);
+#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->strip_metadata_check = _tmp47_;
+#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp48_ = self->priv->strip_metadata_check;
+#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp49_ = strip_metadata_enabled;
+#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp49_);
+#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp50_ = self->priv->builder;
+#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp51_ = gtk_builder_get_object (_tmp50_, "title_as_comment_check");
+#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp52_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp51_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp51_) : NULL);
+#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->title_as_comment_check);
+#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->title_as_comment_check = _tmp52_;
+#line 1183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp53_ = self->priv->title_as_comment_check;
+#line 1183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp54_ = last_title_as_comment;
+#line 1183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp54_);
+#line 1185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp55_ = self->priv->builder;
+#line 1185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp56_ = gtk_builder_get_object (_tmp55_, "no_upload_tags_check");
+#line 1185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp57_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp56_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp56_) : NULL);
+#line 1185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->no_upload_tags_check);
+#line 1185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->no_upload_tags_check = _tmp57_;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp58_ = self->priv->no_upload_tags_check;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp59_ = last_no_upload_tags;
+#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp59_);
+#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp60_ = self->priv->builder;
+#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp61_ = gtk_builder_get_object (_tmp60_, "logout_button");
+#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp62_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp61_, gtk_button_get_type ()) ? ((GtkButton*) _tmp61_) : NULL);
+#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->logout_button = _tmp62_;
+#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp63_ = self->priv->logout_button;
+#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (_tmp63_, "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked, self, 0);
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp64_ = self->priv->builder;
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp65_ = gtk_builder_get_object (_tmp64_, "publish_button");
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp66_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp65_, gtk_button_get_type ()) ? ((GtkButton*) _tmp65_) : NULL);
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->publish_button = _tmp66_;
+#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp67_ = self->priv->publish_button;
+#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (_tmp67_, "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked, self, 0);
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp68_ = self->priv->use_existing_radio;
+#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked, self, 0);
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp69_ = self->priv->create_new_radio;
+#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked, self, 0);
+#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp70_ = self->priv->new_category_entry;
+#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _publishing_piwigo_publishing_options_pane_on_new_category_entry_changed_gtk_editable_changed, self, 0);
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp71_ = self->priv->within_existing_combo;
+#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_piwigo_publishing_options_pane_on_existing_combo_changed_gtk_combo_box_changed, self, 0);
+#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp72_ = align;
+#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp73_ = self->priv->pane_widget;
+#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_reparent (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget), G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_widget_get_type (), GtkWidget));
+#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp74_ = self->priv->pane_widget;
+#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp75_ = align;
+#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_box_set_child_packing (_tmp74_, G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0, GTK_PACK_START);
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (align);
+#line 7895 "PiwigoPublishing.c"
+ }
+ goto __finally45;
+ __catch45_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp76_ = NULL;
+ const gchar* _tmp77_ = NULL;
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ e = _inner_error_;
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp76_ = e;
+#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp77_ = _tmp76_->message;
+#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_warning ("PiwigoPublishing.vala:1202: Could not load UI: %s", _tmp77_);
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (e);
+#line 7915 "PiwigoPublishing.c"
+ }
+ __finally45:
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 7926 "PiwigoPublishing.c"
+ }
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp78_ = categories;
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp78__length1 = categories_length1;
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp79_ = (_tmp78_ != NULL) ? _vala_array_dup11 (_tmp78_, _tmp78__length1) : ((gpointer) _tmp78_);
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp79__length1 = _tmp78__length1;
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->existing_categories = (_vala_array_free (self->priv->existing_categories, self->priv->existing_categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL);
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->existing_categories = _tmp79_;
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->existing_categories_length1 = _tmp79__length1;
+#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->_existing_categories_size_ = self->priv->existing_categories_length1;
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp81_ = publishing_piwigo_publishing_options_pane_create_perm_levels (self, &_tmp80_);
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->perm_levels = (_vala_array_free (self->priv->perm_levels, self->priv->perm_levels_length1, (GDestroyNotify) publishing_piwigo_permission_level_unref), NULL);
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->perm_levels = _tmp81_;
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->perm_levels_length1 = _tmp80_;
+#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->_perm_levels_size_ = self->priv->perm_levels_length1;
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp83_ = publishing_piwigo_publishing_options_pane_create_sizes (self, &_tmp82_);
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->photo_sizes = (_vala_array_free (self->priv->photo_sizes, self->priv->photo_sizes_length1, (GDestroyNotify) publishing_piwigo_size_entry_unref), NULL);
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->photo_sizes = _tmp83_;
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->photo_sizes_length1 = _tmp82_;
+#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->_photo_sizes_size_ = self->priv->photo_sizes_length1;
+#line 1208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp84_ = self->priv->album_comment;
+#line 1208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp85_ = gtk_text_view_get_buffer (_tmp84_);
+#line 1208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp86_ = _tmp85_;
+#line 1208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp87_ = publisher;
+#line 1208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp88_ = publishing_piwigo_publishing_options_pane_get_common_comment_if_possible (self, _tmp87_);
+#line 1208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp89_ = _tmp88_;
+#line 1208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_text_buffer_set_text (_tmp86_, _tmp89_, -1);
+#line 1208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp89_);
+#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 7982 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoPublishingOptionsPane* publishing_piwigo_publishing_options_pane_new (PublishingPiwigoPiwigoPublisher* publisher, PublishingPiwigoCategory** categories, int categories_length1, gint last_category, gint last_permission_level, gint last_photo_size, gboolean last_title_as_comment, gboolean last_no_upload_tags, gboolean strip_metadata_enabled) {
+#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_publishing_options_pane_construct (PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, publisher, categories, categories_length1, last_category, last_permission_level, last_photo_size, last_title_as_comment, last_no_upload_tags, strip_metadata_enabled);
+#line 7989 "PiwigoPublishing.c"
+}
+
+
+GtkWidget* publishing_piwigo_publishing_options_pane_get_default_widget (PublishingPiwigoPublishingOptionsPane* self) {
+ GtkWidget* result = NULL;
+ GtkButton* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->publish_button;
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 8007 "PiwigoPublishing.c"
+}
+
+
+static void _vala_array_add35 (PublishingPiwigoPermissionLevel*** array, int* length, int* size, PublishingPiwigoPermissionLevel* value) {
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1);
+#line 8018 "PiwigoPublishing.c"
+ }
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8024 "PiwigoPublishing.c"
+}
+
+
+static void _vala_array_add36 (PublishingPiwigoPermissionLevel*** array, int* length, int* size, PublishingPiwigoPermissionLevel* value) {
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1);
+#line 8035 "PiwigoPublishing.c"
+ }
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8041 "PiwigoPublishing.c"
+}
+
+
+static void _vala_array_add37 (PublishingPiwigoPermissionLevel*** array, int* length, int* size, PublishingPiwigoPermissionLevel* value) {
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1);
+#line 8052 "PiwigoPublishing.c"
+ }
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8058 "PiwigoPublishing.c"
+}
+
+
+static void _vala_array_add38 (PublishingPiwigoPermissionLevel*** array, int* length, int* size, PublishingPiwigoPermissionLevel* value) {
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1);
+#line 8069 "PiwigoPublishing.c"
+ }
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8075 "PiwigoPublishing.c"
+}
+
+
+static void _vala_array_add39 (PublishingPiwigoPermissionLevel*** array, int* length, int* size, PublishingPiwigoPermissionLevel* value) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1);
+#line 8086 "PiwigoPublishing.c"
+ }
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8092 "PiwigoPublishing.c"
+}
+
+
+static PublishingPiwigoPermissionLevel** publishing_piwigo_publishing_options_pane_create_perm_levels (PublishingPiwigoPublishingOptionsPane* self, int* result_length1) {
+ PublishingPiwigoPermissionLevel** result = NULL;
+ PublishingPiwigoPermissionLevel** _result_ = NULL;
+ PublishingPiwigoPermissionLevel** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ PublishingPiwigoPermissionLevel** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ const gchar* _tmp2_ = NULL;
+ PublishingPiwigoPermissionLevel* _tmp3_ = NULL;
+ PublishingPiwigoPermissionLevel** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp5_ = NULL;
+ PublishingPiwigoPermissionLevel* _tmp6_ = NULL;
+ PublishingPiwigoPermissionLevel** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ const gchar* _tmp8_ = NULL;
+ PublishingPiwigoPermissionLevel* _tmp9_ = NULL;
+ PublishingPiwigoPermissionLevel** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+ const gchar* _tmp11_ = NULL;
+ PublishingPiwigoPermissionLevel* _tmp12_ = NULL;
+ PublishingPiwigoPermissionLevel** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ const gchar* _tmp14_ = NULL;
+ PublishingPiwigoPermissionLevel* _tmp15_ = NULL;
+ PublishingPiwigoPermissionLevel** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = g_new0 (PublishingPiwigoPermissionLevel*, 0 + 1);
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result_ = _tmp0_;
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result__length1 = 0;
+#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ __result__size_ = _result__length1;
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _result_;
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1__length1 = _result__length1;
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = _ ("Everyone");
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = publishing_piwigo_permission_level_new (0, _tmp2_);
+#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add35 (&_result_, &_result__length1, &__result__size_, _tmp3_);
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _result_;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4__length1 = _result__length1;
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = _ ("Admins, Family, Friends, Contacts");
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = publishing_piwigo_permission_level_new (1, _tmp5_);
+#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add36 (&_result_, &_result__length1, &__result__size_, _tmp6_);
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _result_;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7__length1 = _result__length1;
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = _ ("Admins, Family, Friends");
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = publishing_piwigo_permission_level_new (2, _tmp8_);
+#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add37 (&_result_, &_result__length1, &__result__size_, _tmp9_);
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = _result_;
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10__length1 = _result__length1;
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = _ ("Admins, Family");
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = publishing_piwigo_permission_level_new (4, _tmp11_);
+#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add38 (&_result_, &_result__length1, &__result__size_, _tmp12_);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = _result_;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13__length1 = _result__length1;
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = _ ("Admins");
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = publishing_piwigo_permission_level_new (8, _tmp14_);
+#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add39 (&_result_, &_result__length1, &__result__size_, _tmp15_);
+#line 1224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = _result_;
+#line 1224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16__length1 = _result__length1;
+#line 1224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (result_length1) {
+#line 1224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *result_length1 = _tmp16__length1;
+#line 8192 "PiwigoPublishing.c"
+ }
+#line 1224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp16_;
+#line 1224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 8198 "PiwigoPublishing.c"
+}
+
+
+static void _vala_array_add40 (PublishingPiwigoSizeEntry*** array, int* length, int* size, PublishingPiwigoSizeEntry* value) {
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1);
+#line 8209 "PiwigoPublishing.c"
+ }
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8215 "PiwigoPublishing.c"
+}
+
+
+static void _vala_array_add41 (PublishingPiwigoSizeEntry*** array, int* length, int* size, PublishingPiwigoSizeEntry* value) {
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1);
+#line 8226 "PiwigoPublishing.c"
+ }
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8232 "PiwigoPublishing.c"
+}
+
+
+static void _vala_array_add42 (PublishingPiwigoSizeEntry*** array, int* length, int* size, PublishingPiwigoSizeEntry* value) {
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1);
+#line 8243 "PiwigoPublishing.c"
+ }
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8249 "PiwigoPublishing.c"
+}
+
+
+static void _vala_array_add43 (PublishingPiwigoSizeEntry*** array, int* length, int* size, PublishingPiwigoSizeEntry* value) {
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1);
+#line 8260 "PiwigoPublishing.c"
+ }
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8266 "PiwigoPublishing.c"
+}
+
+
+static void _vala_array_add44 (PublishingPiwigoSizeEntry*** array, int* length, int* size, PublishingPiwigoSizeEntry* value) {
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if ((*length) == (*size)) {
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1);
+#line 8277 "PiwigoPublishing.c"
+ }
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[(*length)++] = value;
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ (*array)[*length] = NULL;
+#line 8283 "PiwigoPublishing.c"
+}
+
+
+static PublishingPiwigoSizeEntry** publishing_piwigo_publishing_options_pane_create_sizes (PublishingPiwigoPublishingOptionsPane* self, int* result_length1) {
+ PublishingPiwigoSizeEntry** result = NULL;
+ PublishingPiwigoSizeEntry** _result_ = NULL;
+ PublishingPiwigoSizeEntry** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ PublishingPiwigoSizeEntry** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ const gchar* _tmp2_ = NULL;
+ PublishingPiwigoSizeEntry* _tmp3_ = NULL;
+ PublishingPiwigoSizeEntry** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp5_ = NULL;
+ PublishingPiwigoSizeEntry* _tmp6_ = NULL;
+ PublishingPiwigoSizeEntry** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ const gchar* _tmp8_ = NULL;
+ PublishingPiwigoSizeEntry* _tmp9_ = NULL;
+ PublishingPiwigoSizeEntry** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+ const gchar* _tmp11_ = NULL;
+ PublishingPiwigoSizeEntry* _tmp12_ = NULL;
+ PublishingPiwigoSizeEntry** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ const gchar* _tmp14_ = NULL;
+ PublishingPiwigoSizeEntry* _tmp15_ = NULL;
+ PublishingPiwigoSizeEntry** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+#line 1227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = g_new0 (PublishingPiwigoSizeEntry*, 0 + 1);
+#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result_ = _tmp0_;
+#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result__length1 = 0;
+#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ __result__size_ = _result__length1;
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _result_;
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1__length1 = _result__length1;
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = _ ("500 x 375 pixels");
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = publishing_piwigo_size_entry_new (500, _tmp2_);
+#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add40 (&_result_, &_result__length1, &__result__size_, _tmp3_);
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _result_;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4__length1 = _result__length1;
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = _ ("1024 x 768 pixels");
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = publishing_piwigo_size_entry_new (1024, _tmp5_);
+#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add41 (&_result_, &_result__length1, &__result__size_, _tmp6_);
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _result_;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7__length1 = _result__length1;
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = _ ("2048 x 1536 pixels");
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = publishing_piwigo_size_entry_new (2048, _tmp8_);
+#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add42 (&_result_, &_result__length1, &__result__size_, _tmp9_);
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = _result_;
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10__length1 = _result__length1;
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = _ ("4096 x 3072 pixels");
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = publishing_piwigo_size_entry_new (4096, _tmp11_);
+#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add43 (&_result_, &_result__length1, &__result__size_, _tmp12_);
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = _result_;
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13__length1 = _result__length1;
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = _ ("Original size");
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = publishing_piwigo_size_entry_new (PUBLISHING_PIWIGO_ORIGINAL_SIZE, _tmp14_);
+#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _vala_array_add44 (&_result_, &_result__length1, &__result__size_, _tmp15_);
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = _result_;
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16__length1 = _result__length1;
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (result_length1) {
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ *result_length1 = _tmp16__length1;
+#line 8383 "PiwigoPublishing.c"
+ }
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp16_;
+#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 8389 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_on_logout_button_clicked (PublishingPiwigoPublishingOptionsPane* self) {
+#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 8398 "PiwigoPublishing.c"
+}
+
+
+static gpointer _publishing_piwigo_permission_level_ref0 (gpointer self) {
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self ? publishing_piwigo_permission_level_ref (self) : NULL;
+#line 8405 "PiwigoPublishing.c"
+}
+
+
+static gpointer _publishing_piwigo_size_entry_ref0 (gpointer self) {
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self ? publishing_piwigo_size_entry_ref (self) : NULL;
+#line 8412 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_on_publish_button_clicked (PublishingPiwigoPublishingOptionsPane* self) {
+ PublishingPiwigoPublishingParameters* params = NULL;
+ PublishingPiwigoPublishingParameters* _tmp0_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp1_ = NULL;
+ PublishingPiwigoPermissionLevel** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ GtkComboBoxText* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ PublishingPiwigoPermissionLevel* _tmp5_ = NULL;
+ PublishingPiwigoPermissionLevel* _tmp6_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp7_ = NULL;
+ PublishingPiwigoSizeEntry** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GtkComboBoxText* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ PublishingPiwigoSizeEntry* _tmp11_ = NULL;
+ PublishingPiwigoSizeEntry* _tmp12_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp13_ = NULL;
+ GtkCheckButton* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+ PublishingPiwigoPublishingParameters* _tmp16_ = NULL;
+ GtkCheckButton* _tmp17_ = NULL;
+ gboolean _tmp18_ = FALSE;
+ GtkRadioButton* _tmp19_ = NULL;
+ gboolean _tmp20_ = FALSE;
+ PublishingPiwigoPublishingParameters* _tmp53_ = NULL;
+ GtkCheckButton* _tmp54_ = NULL;
+ gboolean _tmp55_ = FALSE;
+#line 1243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = publishing_piwigo_publishing_parameters_new ();
+#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ params = _tmp0_;
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = params;
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->perm_levels;
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2__length1 = self->priv->perm_levels_length1;
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->perms_combo;
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = _tmp2_[_tmp4_];
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _publishing_piwigo_permission_level_ref0 (_tmp5_);
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_permission_level_unref0 (_tmp1_->perm_level);
+#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_->perm_level = _tmp6_;
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = params;
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = self->priv->photo_sizes;
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8__length1 = self->priv->photo_sizes_length1;
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = self->priv->size_combo;
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = _tmp8_[_tmp10_];
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = _publishing_piwigo_size_entry_ref0 (_tmp11_);
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_size_entry_unref0 (_tmp7_->photo_size);
+#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_->photo_size = _tmp12_;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = params;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = self->priv->title_as_comment_check;
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_->title_as_comment = _tmp15_;
+#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = params;
+#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = self->priv->no_upload_tags_check;
+#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_->no_upload_tags = _tmp18_;
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = self->priv->create_new_radio;
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp20_) {
+#line 8508 "PiwigoPublishing.c"
+ gchar* uploadcomment = NULL;
+ GtkTextView* _tmp21_ = NULL;
+ GtkTextBuffer* _tmp22_ = NULL;
+ GtkTextBuffer* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ gchar* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ gint a = 0;
+ GtkComboBoxText* _tmp29_ = NULL;
+ gint _tmp30_ = 0;
+ gint _tmp31_ = 0;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = self->priv->album_comment;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = gtk_text_view_get_buffer (_tmp21_);
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = _tmp22_;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_object_get (_tmp23_, "text", &_tmp24_, NULL);
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp25_ = _tmp24_;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp26_ = _tmp25_;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp27_ = string_strip (_tmp26_);
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp28_ = _tmp27_;
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp26_);
+#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ uploadcomment = _tmp28_;
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp29_ = self->priv->within_existing_combo;
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp30_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ a = _tmp30_;
+#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp31_ = a;
+#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp31_ == 0) {
+#line 8552 "PiwigoPublishing.c"
+ PublishingPiwigoPublishingParameters* _tmp32_ = NULL;
+ GtkEntry* _tmp33_ = NULL;
+ const gchar* _tmp34_ = NULL;
+ const gchar* _tmp35_ = NULL;
+ PublishingPiwigoCategory* _tmp36_ = NULL;
+#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp32_ = params;
+#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp33_ = self->priv->new_category_entry;
+#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp34_ = gtk_entry_get_text (_tmp33_);
+#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp35_ = uploadcomment;
+#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp36_ = publishing_piwigo_category_new_local (_tmp34_, 0, _tmp35_);
+#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_category_unref0 (_tmp32_->category);
+#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp32_->category = _tmp36_;
+#line 8572 "PiwigoPublishing.c"
+ } else {
+ gint _tmp37_ = 0;
+ PublishingPiwigoPublishingParameters* _tmp38_ = NULL;
+ GtkEntry* _tmp39_ = NULL;
+ const gchar* _tmp40_ = NULL;
+ PublishingPiwigoCategory** _tmp41_ = NULL;
+ gint _tmp41__length1 = 0;
+ gint _tmp42_ = 0;
+ PublishingPiwigoCategory* _tmp43_ = NULL;
+ gint _tmp44_ = 0;
+ const gchar* _tmp45_ = NULL;
+ PublishingPiwigoCategory* _tmp46_ = NULL;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp37_ = a;
+#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ a = _tmp37_ - 1;
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp38_ = params;
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp39_ = self->priv->new_category_entry;
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp40_ = gtk_entry_get_text (_tmp39_);
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp41_ = self->priv->existing_categories;
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp41__length1 = self->priv->existing_categories_length1;
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp42_ = a;
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp43_ = _tmp41_[_tmp42_];
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp44_ = _tmp43_->id;
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp45_ = uploadcomment;
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp46_ = publishing_piwigo_category_new_local (_tmp40_, _tmp44_, _tmp45_);
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_category_unref0 (_tmp38_->category);
+#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp38_->category = _tmp46_;
+#line 8613 "PiwigoPublishing.c"
+ }
+#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (uploadcomment);
+#line 8617 "PiwigoPublishing.c"
+ } else {
+ PublishingPiwigoPublishingParameters* _tmp47_ = NULL;
+ PublishingPiwigoCategory** _tmp48_ = NULL;
+ gint _tmp48__length1 = 0;
+ GtkComboBoxText* _tmp49_ = NULL;
+ gint _tmp50_ = 0;
+ PublishingPiwigoCategory* _tmp51_ = NULL;
+ PublishingPiwigoCategory* _tmp52_ = NULL;
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp47_ = params;
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp48_ = self->priv->existing_categories;
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp48__length1 = self->priv->existing_categories_length1;
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp49_ = self->priv->existing_categories_combo;
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp50_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp51_ = _tmp48_[_tmp50_];
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp52_ = _publishing_piwigo_category_ref0 (_tmp51_);
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_category_unref0 (_tmp47_->category);
+#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp47_->category = _tmp52_;
+#line 8644 "PiwigoPublishing.c"
+ }
+#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp53_ = params;
+#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp54_ = self->priv->strip_metadata_check;
+#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp55_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_emit_by_name (self, "publish", _tmp53_, _tmp55_);
+#line 1243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_publishing_parameters_unref0 (params);
+#line 8656 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked (PublishingPiwigoPublishingOptionsPane* self) {
+ GtkComboBoxText* _tmp0_ = NULL;
+ GtkEntry* _tmp1_ = NULL;
+ GtkLabel* _tmp2_ = NULL;
+ GtkComboBoxText* _tmp3_ = NULL;
+ GtkComboBoxText* _tmp4_ = NULL;
+ GtkLabel* _tmp5_ = NULL;
+ GtkTextView* _tmp6_ = NULL;
+#line 1268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->existing_categories_combo;
+#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->new_category_entry;
+#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->within_existing_label;
+#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->within_existing_combo;
+#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->existing_categories_combo;
+#line 1273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget));
+#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = self->priv->album_comment_label;
+#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = self->priv->album_comment;
+#line 1275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 8700 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked (PublishingPiwigoPublishingOptionsPane* self) {
+ GtkEntry* _tmp0_ = NULL;
+ GtkLabel* _tmp1_ = NULL;
+ GtkComboBoxText* _tmp2_ = NULL;
+ GtkLabel* _tmp3_ = NULL;
+ GtkTextView* _tmp4_ = NULL;
+ GtkComboBoxText* _tmp5_ = NULL;
+ GtkEntry* _tmp6_ = NULL;
+#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->new_category_entry;
+#line 1280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->within_existing_label;
+#line 1281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->within_existing_combo;
+#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->album_comment_label;
+#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->album_comment;
+#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = self->priv->existing_categories_combo;
+#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = self->priv->new_category_entry;
+#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget));
+#line 1287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 8744 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_on_new_category_entry_changed (PublishingPiwigoPublishingOptionsPane* self) {
+#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 8753 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_on_existing_combo_changed (PublishingPiwigoPublishingOptionsPane* self) {
+#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 8762 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (PublishingPiwigoPublishingOptionsPane* self) {
+ gchar* category_name = NULL;
+ GtkEntry* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gint a = 0;
+ GtkComboBoxText* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gchar* search_name = NULL;
+ gint _tmp5_ = 0;
+ gboolean _tmp17_ = FALSE;
+ GtkRadioButton* _tmp18_ = NULL;
+ gboolean _tmp19_ = FALSE;
+ GtkButton* _tmp24_ = NULL;
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->new_category_entry;
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = gtk_entry_get_text (_tmp0_);
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = string_strip (_tmp1_);
+#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ category_name = _tmp2_;
+#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->within_existing_combo;
+#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox));
+#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ a = _tmp4_;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = a;
+#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp5_ <= 0) {
+#line 8800 "PiwigoPublishing.c"
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = category_name;
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = g_strconcat ("/ ", _tmp6_, NULL);
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (search_name);
+#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ search_name = _tmp7_;
+#line 8811 "PiwigoPublishing.c"
+ } else {
+ gint _tmp8_ = 0;
+ PublishingPiwigoCategory** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ gint _tmp10_ = 0;
+ PublishingPiwigoCategory* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = a;
+#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ a = _tmp8_ - 1;
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = self->priv->existing_categories;
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9__length1 = self->priv->existing_categories_length1;
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = a;
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = _tmp9_[_tmp10_];
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = _tmp11_->display_name;
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = g_strconcat (_tmp12_, "/ ", NULL);
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = _tmp13_;
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = category_name;
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = g_strconcat (_tmp14_, _tmp15_, NULL);
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (search_name);
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ search_name = _tmp16_;
+#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp14_);
+#line 8851 "PiwigoPublishing.c"
+ }
+#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = self->priv->create_new_radio;
+#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp19_) {
+#line 8859 "PiwigoPublishing.c"
+ gboolean _tmp20_ = FALSE;
+ const gchar* _tmp21_ = NULL;
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = category_name;
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_strcmp0 (_tmp21_, "") != 0) {
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = TRUE;
+#line 8868 "PiwigoPublishing.c"
+ } else {
+ const gchar* _tmp22_ = NULL;
+ gboolean _tmp23_ = FALSE;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = search_name;
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = publishing_piwigo_publishing_options_pane_category_already_exists (self, _tmp22_);
+#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = _tmp23_;
+#line 8878 "PiwigoPublishing.c"
+ }
+#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = _tmp20_;
+#line 8882 "PiwigoPublishing.c"
+ } else {
+#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = FALSE;
+#line 8886 "PiwigoPublishing.c"
+ }
+#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp24_ = self->priv->publish_button;
+#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget), !_tmp17_);
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (search_name);
+#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (category_name);
+#line 8896 "PiwigoPublishing.c"
+}
+
+
+static GtkWidget* publishing_piwigo_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingPiwigoPublishingOptionsPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane);
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 8915 "PiwigoPublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_piwigo_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingPiwigoPublishingOptionsPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane);
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 8928 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingPiwigoPublishingOptionsPane * self;
+ GtkButton* _tmp0_ = NULL;
+#line 1327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane);
+#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_create_categories_combo (self);
+#line 1329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_create_within_categories_combo (self);
+#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_create_permissions_combo (self);
+#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_create_size_combo (self);
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->publish_button;
+#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 8951 "PiwigoPublishing.c"
+}
+
+
+static gchar* publishing_piwigo_publishing_options_pane_get_common_comment_if_possible (PublishingPiwigoPublishingOptionsPane* self, PublishingPiwigoPiwigoPublisher* publisher) {
+ gchar* result = NULL;
+ SpitPublishingPublishable** publishables = NULL;
+ PublishingPiwigoPiwigoPublisher* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ SpitPublishingPublishable** _tmp4_ = NULL;
+ SpitPublishingPublishable** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ gint publishables_length1 = 0;
+ gint _publishables_size_ = 0;
+ gchar* common = NULL;
+ gchar* _tmp6_ = NULL;
+ gboolean isfirst = FALSE;
+ SpitPublishingPublishable** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ const gchar* _tmp18_ = NULL;
+#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (publisher), NULL);
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = publisher;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = publishing_piwigo_piwigo_publisher_get_host (_tmp0_);
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = spit_publishing_plugin_host_get_publishables (_tmp2_, &_tmp3_);
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5__length1 = _tmp3_;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (_tmp2_);
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishables = _tmp5_;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishables_length1 = _tmp5__length1;
+#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishables_size_ = publishables_length1;
+#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = g_strdup ("");
+#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ common = _tmp6_;
+#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ isfirst = TRUE;
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = publishables;
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7__length1 = publishables_length1;
+#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp7_ != NULL) {
+#line 9009 "PiwigoPublishing.c"
+ SpitPublishingPublishable** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = publishables;
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8__length1 = publishables_length1;
+#line 9016 "PiwigoPublishing.c"
+ {
+ SpitPublishingPublishable** pub_collection = NULL;
+ gint pub_collection_length1 = 0;
+ gint _pub_collection_size_ = 0;
+ gint pub_it = 0;
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ pub_collection = _tmp8_;
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ pub_collection_length1 = _tmp8__length1;
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ for (pub_it = 0; pub_it < _tmp8__length1; pub_it = pub_it + 1) {
+#line 9028 "PiwigoPublishing.c"
+ SpitPublishingPublishable* _tmp9_ = NULL;
+ SpitPublishingPublishable* pub = NULL;
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = _g_object_ref0 (pub_collection[pub_it]);
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ pub = _tmp9_;
+#line 9035 "PiwigoPublishing.c"
+ {
+ gchar* cur = NULL;
+ SpitPublishingPublishable* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = pub;
+#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = spit_publishing_publishable_get_param_string (_tmp10_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT);
+#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ cur = _tmp11_;
+#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = isfirst;
+#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp12_) {
+#line 9051 "PiwigoPublishing.c"
+ const gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = cur;
+#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = g_strdup (_tmp13_);
+#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (common);
+#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ common = _tmp14_;
+#line 1349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ isfirst = FALSE;
+#line 9064 "PiwigoPublishing.c"
+ } else {
+ const gchar* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = cur;
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = common;
+#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_strcmp0 (_tmp15_, _tmp16_) != 0) {
+#line 9074 "PiwigoPublishing.c"
+ gchar* _tmp17_ = NULL;
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = g_strdup ("");
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (common);
+#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ common = _tmp17_;
+#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (cur);
+#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (pub);
+#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 9088 "PiwigoPublishing.c"
+ }
+ }
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (cur);
+#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (pub);
+#line 9095 "PiwigoPublishing.c"
+ }
+ }
+ }
+ }
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = common;
+#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:1358: PiwigoConnector: found common event commen" \
+"t %s\n", _tmp18_);
+#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = common;
+#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 9110 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_create_categories_combo (PublishingPiwigoPublishingOptionsPane* self) {
+ PublishingPiwigoCategory** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ PublishingPiwigoCategory** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ const gchar* _tmp21_ = NULL;
+ gboolean _tmp22_ = FALSE;
+#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->existing_categories;
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0__length1 = self->priv->existing_categories_length1;
+#line 9127 "PiwigoPublishing.c"
+ {
+ PublishingPiwigoCategory** cat_collection = NULL;
+ gint cat_collection_length1 = 0;
+ gint _cat_collection_size_ = 0;
+ gint cat_it = 0;
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ cat_collection = _tmp0_;
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ cat_collection_length1 = _tmp0__length1;
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ for (cat_it = 0; cat_it < _tmp0__length1; cat_it = cat_it + 1) {
+#line 9139 "PiwigoPublishing.c"
+ PublishingPiwigoCategory* _tmp1_ = NULL;
+ PublishingPiwigoCategory* cat = NULL;
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _publishing_piwigo_category_ref0 (cat_collection[cat_it]);
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ cat = _tmp1_;
+#line 9146 "PiwigoPublishing.c"
+ {
+ GtkComboBoxText* _tmp2_ = NULL;
+ PublishingPiwigoCategory* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->existing_categories_combo;
+#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = cat;
+#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _tmp3_->display_name;
+#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp2_, _tmp4_);
+#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_category_unref0 (cat);
+#line 9161 "PiwigoPublishing.c"
+ }
+ }
+ }
+#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = self->priv->existing_categories;
+#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5__length1 = self->priv->existing_categories_length1;
+#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp5__length1 == 0) {
+#line 9171 "PiwigoPublishing.c"
+ GtkComboBoxText* _tmp6_ = NULL;
+ GtkRadioButton* _tmp7_ = NULL;
+ GtkRadioButton* _tmp8_ = NULL;
+ GtkTextView* _tmp9_ = NULL;
+ GtkLabel* _tmp10_ = NULL;
+ GtkEntry* _tmp11_ = NULL;
+#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = self->priv->existing_categories_combo;
+#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = self->priv->use_existing_radio;
+#line 1369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = self->priv->create_new_radio;
+#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = self->priv->album_comment;
+#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = self->priv->album_comment_label;
+#line 1372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = self->priv->new_category_entry;
+#line 1373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget));
+#line 9202 "PiwigoPublishing.c"
+ } else {
+ gint last_category_index = 0;
+ gint _tmp12_ = 0;
+ gint _tmp13_ = 0;
+ gint _tmp14_ = 0;
+ GtkEntry* _tmp18_ = NULL;
+ GtkTextView* _tmp19_ = NULL;
+ GtkLabel* _tmp20_ = NULL;
+#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = self->priv->last_category;
+#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = publishing_piwigo_publishing_options_pane_find_category_index (self, _tmp12_);
+#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ last_category_index = _tmp13_;
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = last_category_index;
+#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp14_ < 0) {
+#line 9221 "PiwigoPublishing.c"
+ GtkComboBoxText* _tmp15_ = NULL;
+#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = self->priv->existing_categories_combo;
+#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 9227 "PiwigoPublishing.c"
+ } else {
+ GtkComboBoxText* _tmp16_ = NULL;
+ gint _tmp17_ = 0;
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = self->priv->existing_categories_combo;
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = last_category_index;
+#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_get_type (), GtkComboBox), _tmp17_);
+#line 9237 "PiwigoPublishing.c"
+ }
+#line 1381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = self->priv->new_category_entry;
+#line 1381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = self->priv->album_comment;
+#line 1382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = self->priv->album_comment_label;
+#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 9251 "PiwigoPublishing.c"
+ }
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME;
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = publishing_piwigo_publishing_options_pane_category_already_exists (self, _tmp21_);
+#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp22_) {
+#line 9259 "PiwigoPublishing.c"
+ GtkEntry* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = self->priv->new_category_entry;
+#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp24_ = publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME;
+#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_entry_set_text (_tmp23_, _tmp24_);
+#line 9268 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_publishing_options_pane_create_within_categories_combo (PublishingPiwigoPublishingOptionsPane* self) {
+ GtkComboBoxText* _tmp0_ = NULL;
+ PublishingPiwigoCategory** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ GtkLabel* _tmp6_ = NULL;
+ GtkComboBoxText* _tmp7_ = NULL;
+ GtkComboBoxText* _tmp8_ = NULL;
+#line 1389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->within_existing_combo;
+#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp0_, "/ ");
+#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = self->priv->existing_categories;
+#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1__length1 = self->priv->existing_categories_length1;
+#line 9290 "PiwigoPublishing.c"
+ {
+ PublishingPiwigoCategory** cat_collection = NULL;
+ gint cat_collection_length1 = 0;
+ gint _cat_collection_size_ = 0;
+ gint cat_it = 0;
+#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ cat_collection = _tmp1_;
+#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ cat_collection_length1 = _tmp1__length1;
+#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ for (cat_it = 0; cat_it < _tmp1__length1; cat_it = cat_it + 1) {
+#line 9302 "PiwigoPublishing.c"
+ PublishingPiwigoCategory* _tmp2_ = NULL;
+ PublishingPiwigoCategory* cat = NULL;
+#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = _publishing_piwigo_category_ref0 (cat_collection[cat_it]);
+#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ cat = _tmp2_;
+#line 9309 "PiwigoPublishing.c"
+ {
+ GtkComboBoxText* _tmp3_ = NULL;
+ PublishingPiwigoCategory* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+#line 1393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->within_existing_combo;
+#line 1393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = cat;
+#line 1393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = _tmp4_->display_name;
+#line 1393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp3_, _tmp5_);
+#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_category_unref0 (cat);
+#line 9324 "PiwigoPublishing.c"
+ }
+ }
+ }
+#line 1396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = self->priv->within_existing_label;
+#line 1396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = self->priv->within_existing_combo;
+#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 1398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = self->priv->within_existing_combo;
+#line 1398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 9340 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_create_permissions_combo (PublishingPiwigoPublishingOptionsPane* self) {
+ PublishingPiwigoPermissionLevel** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gint last_permission_level_index = 0;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ gint _tmp7_ = 0;
+#line 1401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->perm_levels;
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0__length1 = self->priv->perm_levels_length1;
+#line 9357 "PiwigoPublishing.c"
+ {
+ PublishingPiwigoPermissionLevel** perm_collection = NULL;
+ gint perm_collection_length1 = 0;
+ gint _perm_collection_size_ = 0;
+ gint perm_it = 0;
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ perm_collection = _tmp0_;
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ perm_collection_length1 = _tmp0__length1;
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ for (perm_it = 0; perm_it < _tmp0__length1; perm_it = perm_it + 1) {
+#line 9369 "PiwigoPublishing.c"
+ PublishingPiwigoPermissionLevel* _tmp1_ = NULL;
+ PublishingPiwigoPermissionLevel* perm = NULL;
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _publishing_piwigo_permission_level_ref0 (perm_collection[perm_it]);
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ perm = _tmp1_;
+#line 9376 "PiwigoPublishing.c"
+ {
+ GtkComboBoxText* _tmp2_ = NULL;
+ PublishingPiwigoPermissionLevel* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->perms_combo;
+#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = perm;
+#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _tmp3_->name;
+#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp2_, _tmp4_);
+#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_permission_level_unref0 (perm);
+#line 9391 "PiwigoPublishing.c"
+ }
+ }
+ }
+#line 1405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = self->priv->last_permission_level;
+#line 1405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = publishing_piwigo_publishing_options_pane_find_permission_level_index (self, _tmp5_);
+#line 1405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ last_permission_level_index = _tmp6_;
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = last_permission_level_index;
+#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp7_ < 0) {
+#line 9405 "PiwigoPublishing.c"
+ GtkComboBoxText* _tmp8_ = NULL;
+#line 1407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = self->priv->perms_combo;
+#line 1407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 9411 "PiwigoPublishing.c"
+ } else {
+ GtkComboBoxText* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+#line 1409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = self->priv->perms_combo;
+#line 1409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = last_permission_level_index;
+#line 1409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_combo_box_get_type (), GtkComboBox), _tmp10_);
+#line 9421 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_publishing_options_pane_create_size_combo (PublishingPiwigoPublishingOptionsPane* self) {
+ PublishingPiwigoSizeEntry** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gint last_size_index = 0;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ gint _tmp7_ = 0;
+#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->photo_sizes;
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0__length1 = self->priv->photo_sizes_length1;
+#line 9439 "PiwigoPublishing.c"
+ {
+ PublishingPiwigoSizeEntry** size_collection = NULL;
+ gint size_collection_length1 = 0;
+ gint _size_collection_size_ = 0;
+ gint size_it = 0;
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ size_collection = _tmp0_;
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ size_collection_length1 = _tmp0__length1;
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ for (size_it = 0; size_it < _tmp0__length1; size_it = size_it + 1) {
+#line 9451 "PiwigoPublishing.c"
+ PublishingPiwigoSizeEntry* _tmp1_ = NULL;
+ PublishingPiwigoSizeEntry* size = NULL;
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _publishing_piwigo_size_entry_ref0 (size_collection[size_it]);
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ size = _tmp1_;
+#line 9458 "PiwigoPublishing.c"
+ {
+ GtkComboBoxText* _tmp2_ = NULL;
+ PublishingPiwigoSizeEntry* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->size_combo;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = size;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _tmp3_->name;
+#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_text_append_text (_tmp2_, _tmp4_);
+#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_size_entry_unref0 (size);
+#line 9473 "PiwigoPublishing.c"
+ }
+ }
+ }
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = self->priv->last_photo_size;
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = publishing_piwigo_publishing_options_pane_find_size_index (self, _tmp5_);
+#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ last_size_index = _tmp6_;
+#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = last_size_index;
+#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp7_ < 0) {
+#line 9487 "PiwigoPublishing.c"
+ GtkComboBoxText* _tmp8_ = NULL;
+ gint _tmp9_ = 0;
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = self->priv->size_combo;
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = publishing_piwigo_publishing_options_pane_find_size_index (self, PUBLISHING_PIWIGO_ORIGINAL_SIZE);
+#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), _tmp9_);
+#line 9496 "PiwigoPublishing.c"
+ } else {
+ GtkComboBoxText* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = self->priv->size_combo;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = last_size_index;
+#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_combo_box_get_type (), GtkComboBox), _tmp11_);
+#line 9506 "PiwigoPublishing.c"
+ }
+}
+
+
+static void publishing_piwigo_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingPiwigoPublishingOptionsPane * self;
+#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane);
+#line 9515 "PiwigoPublishing.c"
+}
+
+
+static gint publishing_piwigo_publishing_options_pane_find_category_index (PublishingPiwigoPublishingOptionsPane* self, gint category_id) {
+ gint result = 0;
+ gint _result_ = 0;
+#line 1428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0);
+#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result_ = -1;
+#line 9526 "PiwigoPublishing.c"
+ {
+ gint i = 0;
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ i = 0;
+#line 9531 "PiwigoPublishing.c"
+ {
+ gboolean _tmp0_ = FALSE;
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = TRUE;
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ while (TRUE) {
+#line 9538 "PiwigoPublishing.c"
+ gint _tmp2_ = 0;
+ PublishingPiwigoCategory** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ PublishingPiwigoCategory** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ gint _tmp5_ = 0;
+ PublishingPiwigoCategory* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp0_) {
+#line 9550 "PiwigoPublishing.c"
+ gint _tmp1_ = 0;
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = i;
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ i = _tmp1_ + 1;
+#line 9556 "PiwigoPublishing.c"
+ }
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = FALSE;
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = i;
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->existing_categories;
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3__length1 = self->priv->existing_categories_length1;
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!(_tmp2_ < _tmp3__length1)) {
+#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 9570 "PiwigoPublishing.c"
+ }
+#line 1431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->existing_categories;
+#line 1431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4__length1 = self->priv->existing_categories_length1;
+#line 1431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = i;
+#line 1431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp4_[_tmp5_];
+#line 1431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _tmp6_->id;
+#line 1431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = category_id;
+#line 1431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp7_ == _tmp8_) {
+#line 9586 "PiwigoPublishing.c"
+ gint _tmp9_ = 0;
+#line 1432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = i;
+#line 1432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result_ = _tmp9_;
+#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 9594 "PiwigoPublishing.c"
+ }
+ }
+ }
+ }
+#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _result_;
+#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 9603 "PiwigoPublishing.c"
+}
+
+
+static gint publishing_piwigo_publishing_options_pane_find_permission_level_index (PublishingPiwigoPublishingOptionsPane* self, gint permission_level_id) {
+ gint result = 0;
+ gint _result_ = 0;
+#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0);
+#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result_ = -1;
+#line 9614 "PiwigoPublishing.c"
+ {
+ gint i = 0;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ i = 0;
+#line 9619 "PiwigoPublishing.c"
+ {
+ gboolean _tmp0_ = FALSE;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = TRUE;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ while (TRUE) {
+#line 9626 "PiwigoPublishing.c"
+ gint _tmp2_ = 0;
+ PublishingPiwigoPermissionLevel** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ PublishingPiwigoPermissionLevel** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ gint _tmp5_ = 0;
+ PublishingPiwigoPermissionLevel* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp0_) {
+#line 9638 "PiwigoPublishing.c"
+ gint _tmp1_ = 0;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = i;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ i = _tmp1_ + 1;
+#line 9644 "PiwigoPublishing.c"
+ }
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = FALSE;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = i;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->perm_levels;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3__length1 = self->priv->perm_levels_length1;
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!(_tmp2_ < _tmp3__length1)) {
+#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 9658 "PiwigoPublishing.c"
+ }
+#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->perm_levels;
+#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4__length1 = self->priv->perm_levels_length1;
+#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = i;
+#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp4_[_tmp5_];
+#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _tmp6_->id;
+#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = permission_level_id;
+#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp7_ == _tmp8_) {
+#line 9674 "PiwigoPublishing.c"
+ gint _tmp9_ = 0;
+#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = i;
+#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result_ = _tmp9_;
+#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 9682 "PiwigoPublishing.c"
+ }
+ }
+ }
+ }
+#line 1447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _result_;
+#line 1447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 9691 "PiwigoPublishing.c"
+}
+
+
+static gint publishing_piwigo_publishing_options_pane_find_size_index (PublishingPiwigoPublishingOptionsPane* self, gint size_id) {
+ gint result = 0;
+ gint _result_ = 0;
+#line 1450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0);
+#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result_ = -1;
+#line 9702 "PiwigoPublishing.c"
+ {
+ gint i = 0;
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ i = 0;
+#line 9707 "PiwigoPublishing.c"
+ {
+ gboolean _tmp0_ = FALSE;
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = TRUE;
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ while (TRUE) {
+#line 9714 "PiwigoPublishing.c"
+ gint _tmp2_ = 0;
+ PublishingPiwigoSizeEntry** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ PublishingPiwigoSizeEntry** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ gint _tmp5_ = 0;
+ PublishingPiwigoSizeEntry* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp0_) {
+#line 9726 "PiwigoPublishing.c"
+ gint _tmp1_ = 0;
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = i;
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ i = _tmp1_ + 1;
+#line 9732 "PiwigoPublishing.c"
+ }
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = FALSE;
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = i;
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->photo_sizes;
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3__length1 = self->priv->photo_sizes_length1;
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!(_tmp2_ < _tmp3__length1)) {
+#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 9746 "PiwigoPublishing.c"
+ }
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->photo_sizes;
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4__length1 = self->priv->photo_sizes_length1;
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = i;
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp4_[_tmp5_];
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _tmp6_->id;
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = size_id;
+#line 1453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp7_ == _tmp8_) {
+#line 9762 "PiwigoPublishing.c"
+ gint _tmp9_ = 0;
+#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = i;
+#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result_ = _tmp9_;
+#line 1455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 9770 "PiwigoPublishing.c"
+ }
+ }
+ }
+ }
+#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _result_;
+#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 9779 "PiwigoPublishing.c"
+}
+
+
+static gboolean publishing_piwigo_publishing_options_pane_category_already_exists (PublishingPiwigoPublishingOptionsPane* self, const gchar* category_name) {
+ gboolean result = FALSE;
+ gboolean _result_ = FALSE;
+ PublishingPiwigoCategory** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 1461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), FALSE);
+#line 1461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (category_name != NULL, FALSE);
+#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result_ = FALSE;
+#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->existing_categories;
+#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0__length1 = self->priv->existing_categories_length1;
+#line 9798 "PiwigoPublishing.c"
+ {
+ PublishingPiwigoCategory** category_collection = NULL;
+ gint category_collection_length1 = 0;
+ gint _category_collection_size_ = 0;
+ gint category_it = 0;
+#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ category_collection = _tmp0_;
+#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ category_collection_length1 = _tmp0__length1;
+#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ for (category_it = 0; category_it < _tmp0__length1; category_it = category_it + 1) {
+#line 9810 "PiwigoPublishing.c"
+ PublishingPiwigoCategory* _tmp1_ = NULL;
+ PublishingPiwigoCategory* category = NULL;
+#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _publishing_piwigo_category_ref0 (category_collection[category_it]);
+#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ category = _tmp1_;
+#line 9817 "PiwigoPublishing.c"
+ {
+ PublishingPiwigoCategory* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = category;
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = _tmp2_->display_name;
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = string_strip (_tmp3_);
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = category_name;
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = g_strcmp0 (_tmp5_, _tmp6_) == 0;
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp7_) {
+#line 1465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _result_ = TRUE;
+#line 1466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_category_unref0 (category);
+#line 1466 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ break;
+#line 9847 "PiwigoPublishing.c"
+ }
+#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_category_unref0 (category);
+#line 9851 "PiwigoPublishing.c"
+ }
+ }
+ }
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _result_;
+#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 9859 "PiwigoPublishing.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN) (gpointer data1, gpointer arg_1, gboolean arg_2, gpointer data2);
+ register GMarshalFunc_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (n_param_values == 3);
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ data1 = closure->data;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 9878 "PiwigoPublishing.c"
+ } else {
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ data2 = closure->data;
+#line 9884 "PiwigoPublishing.c"
+ }
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ callback = (GMarshalFunc_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ callback (data1, publishing_piwigo_value_get_publishing_parameters (param_values + 1), g_value_get_boolean (param_values + 2), data2);
+#line 9890 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_class_init (PublishingPiwigoPublishingOptionsPaneClass * klass) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_parent_class = g_type_class_peek_parent (klass);
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPiwigoPublishingOptionsPanePrivate));
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_publishing_options_pane_finalize;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_new ("publish", PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN, G_TYPE_NONE, 2, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, G_TYPE_BOOLEAN);
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_signal_new ("logout", PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = _ ("Shotwell Connect");
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME = _tmp1_;
+#line 9913 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_piwigo_publishing_options_pane_real_get_widget;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_piwigo_publishing_options_pane_real_get_preferred_geometry;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_piwigo_publishing_options_pane_real_on_pane_installed;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_piwigo_publishing_options_pane_real_on_pane_uninstalled;
+#line 9928 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_instance_init (PublishingPiwigoPublishingOptionsPane * self) {
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv = PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self);
+#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->strip_metadata_check = NULL;
+#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->title_as_comment_check = NULL;
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->no_upload_tags_check = NULL;
+#line 9943 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_publishing_options_pane_finalize (GObject* obj) {
+ PublishingPiwigoPublishingOptionsPane * self;
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane);
+#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->use_existing_radio);
+#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->create_new_radio);
+#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->existing_categories_combo);
+#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->new_category_entry);
+#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->within_existing_label);
+#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->within_existing_combo);
+#line 1124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->perms_combo);
+#line 1125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->size_combo);
+#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->strip_metadata_check);
+#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->title_as_comment_check);
+#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->no_upload_tags_check);
+#line 1129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->album_comment);
+#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (self->priv->album_comment_label);
+#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->existing_categories = (_vala_array_free (self->priv->existing_categories, self->priv->existing_categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL);
+#line 1135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->perm_levels = (_vala_array_free (self->priv->perm_levels, self->priv->perm_levels_length1, (GDestroyNotify) publishing_piwigo_permission_level_unref), NULL);
+#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->photo_sizes = (_vala_array_free (self->priv->photo_sizes, self->priv->photo_sizes_length1, (GDestroyNotify) publishing_piwigo_size_entry_unref), NULL);
+#line 1112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ G_OBJECT_CLASS (publishing_piwigo_publishing_options_pane_parent_class)->finalize (obj);
+#line 9993 "PiwigoPublishing.c"
+}
+
+
+/**
+ * The publishing options pane.
+ */
+GType publishing_piwigo_publishing_options_pane_get_type (void) {
+ static volatile gsize publishing_piwigo_publishing_options_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_publishing_options_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_piwigo_publishing_options_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_piwigo_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_piwigo_publishing_options_pane_type_id;
+ publishing_piwigo_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingPiwigoPublishingOptionsPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_piwigo_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_piwigo_publishing_options_pane_type_id__volatile, publishing_piwigo_publishing_options_pane_type_id);
+ }
+ return publishing_piwigo_publishing_options_pane_type_id__volatile;
+}
+
+
+PublishingPiwigoSession* publishing_piwigo_session_construct (GType object_type) {
+ PublishingPiwigoSession* self = NULL;
+#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoSession*) publishing_rest_support_session_construct (object_type, "");
+#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 10020 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoSession* publishing_piwigo_session_new (void) {
+#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_session_construct (PUBLISHING_PIWIGO_TYPE_SESSION);
+#line 10027 "PiwigoPublishing.c"
+}
+
+
+static gboolean publishing_piwigo_session_real_is_authenticated (PublishingRESTSupportSession* base) {
+ PublishingPiwigoSession * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
+ const gchar* _tmp2_ = NULL;
+#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession);
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = self->priv->pwg_id;
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp2_ != NULL) {
+#line 10043 "PiwigoPublishing.c"
+ const gchar* _tmp3_ = NULL;
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = self->priv->pwg_url;
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = _tmp3_ != NULL;
+#line 10049 "PiwigoPublishing.c"
+ } else {
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = FALSE;
+#line 10053 "PiwigoPublishing.c"
+ }
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp1_) {
+#line 10057 "PiwigoPublishing.c"
+ const gchar* _tmp4_ = NULL;
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = self->priv->username;
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = _tmp4_ != NULL;
+#line 10063 "PiwigoPublishing.c"
+ } else {
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = FALSE;
+#line 10067 "PiwigoPublishing.c"
+ }
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp0_;
+#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 10073 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_session_authenticate (PublishingPiwigoSession* self, const gchar* url, const gchar* username, const gchar* id) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self));
+#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (url != NULL);
+#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (username != NULL);
+#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (id != NULL);
+#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = url;
+#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->priv->pwg_url);
+#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pwg_url = _tmp1_;
+#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = username;
+#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->username = _tmp3_;
+#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = id;
+#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->priv->pwg_id);
+#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pwg_id = _tmp5_;
+#line 10116 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_session_deauthenticate (PublishingPiwigoSession* self) {
+#line 1498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self));
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->priv->pwg_url);
+#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pwg_url = NULL;
+#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->priv->pwg_id);
+#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pwg_id = NULL;
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 1501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->username = NULL;
+#line 10135 "PiwigoPublishing.c"
+}
+
+
+gchar* publishing_piwigo_session_get_username (PublishingPiwigoSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self), NULL);
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->username;
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 10153 "PiwigoPublishing.c"
+}
+
+
+gchar* publishing_piwigo_session_get_pwg_url (PublishingPiwigoSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self), NULL);
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->pwg_url;
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 10171 "PiwigoPublishing.c"
+}
+
+
+gchar* publishing_piwigo_session_get_pwg_id (PublishingPiwigoSession* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self), NULL);
+#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = self->priv->pwg_id;
+#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp1_;
+#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 10189 "PiwigoPublishing.c"
+}
+
+
+void publishing_piwigo_session_set_pwg_id (PublishingPiwigoSession* self, const gchar* id) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self));
+#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_if_fail (id != NULL);
+#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = id;
+#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->priv->pwg_id);
+#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pwg_id = _tmp1_;
+#line 10208 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_session_class_init (PublishingPiwigoSessionClass * klass) {
+#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_session_parent_class = g_type_class_peek_parent (klass);
+#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_piwigo_session_finalize;
+#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPiwigoSessionPrivate));
+#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = publishing_piwigo_session_real_is_authenticated;
+#line 10221 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_session_instance_init (PublishingPiwigoSession * self) {
+#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv = PUBLISHING_PIWIGO_SESSION_GET_PRIVATE (self);
+#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pwg_url = NULL;
+#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->pwg_id = NULL;
+#line 1482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->username = NULL;
+#line 10234 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_session_finalize (PublishingRESTSupportSession* obj) {
+ PublishingPiwigoSession * self;
+#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession);
+#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->priv->pwg_url);
+#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->priv->pwg_id);
+#line 1482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (self->priv->username);
+#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_piwigo_session_parent_class)->finalize (obj);
+#line 10250 "PiwigoPublishing.c"
+}
+
+
+/**
+ * Session class that keeps track of the authentication status and of the
+ * user token pwg_id.
+ */
+GType publishing_piwigo_session_get_type (void) {
+ static volatile gsize publishing_piwigo_session_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_session_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSession), 0, (GInstanceInitFunc) publishing_piwigo_session_instance_init, NULL };
+ GType publishing_piwigo_session_type_id;
+ publishing_piwigo_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingPiwigoSession", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_piwigo_session_type_id__volatile, publishing_piwigo_session_type_id);
+ }
+ return publishing_piwigo_session_type_id__volatile;
+}
+
+
+PublishingPiwigoTransaction* publishing_piwigo_transaction_construct (GType object_type, PublishingPiwigoSession* session) {
+ PublishingPiwigoTransaction* self = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+ PublishingPiwigoSession* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL);
+#line 1531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = session;
+#line 1531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = session;
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp2_) {
+#line 10287 "PiwigoPublishing.c"
+ PublishingPiwigoSession* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = session;
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = publishing_piwigo_session_get_pwg_id (_tmp3_);
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = g_strconcat ("pwg_id=", _tmp5_, NULL);
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp7_);
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp7_);
+#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 10309 "PiwigoPublishing.c"
+ }
+#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 10313 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoTransaction* publishing_piwigo_transaction_new (PublishingPiwigoSession* session) {
+#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_transaction_construct (PUBLISHING_PIWIGO_TYPE_TRANSACTION, session);
+#line 10320 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoTransaction* publishing_piwigo_transaction_construct_authenticated (GType object_type, PublishingPiwigoSession* session) {
+ PublishingPiwigoTransaction* self = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+ PublishingPiwigoSession* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingPiwigoSession* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL);
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = session;
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = session;
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = publishing_piwigo_session_get_pwg_url (_tmp1_);
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp3_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp3_);
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = session;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_piwigo_session_get_pwg_id (_tmp4_);
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = g_strconcat ("pwg_id=", _tmp6_, NULL);
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = _tmp7_;
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp8_);
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp8_);
+#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 10367 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoTransaction* publishing_piwigo_transaction_new_authenticated (PublishingPiwigoSession* session) {
+#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_transaction_construct_authenticated (PUBLISHING_PIWIGO_TYPE_TRANSACTION, session);
+#line 10374 "PiwigoPublishing.c"
+}
+
+
+gchar* publishing_piwigo_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) {
+ gchar* result = NULL;
+ xmlNode* root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp0_ = NULL;
+ xmlNode* _tmp1_ = NULL;
+ gchar* status = NULL;
+ xmlNode* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ xmlNode* errcode = NULL;
+ xmlNode* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ xmlNode* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL);
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = doc;
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = publishing_rest_support_xml_document_get_root_node (_tmp0_);
+#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ root = _tmp1_;
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = root;
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = (gchar*) xmlGetProp (_tmp2_, (xmlChar*) "stat");
+#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ status = _tmp3_;
+#line 1547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = status;
+#line 1547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp4_ == NULL) {
+#line 10416 "PiwigoPublishing.c"
+ gchar* _tmp5_ = NULL;
+#line 1548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = g_strdup ("No status property in root node");
+#line 1548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp5_;
+#line 1548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (status);
+#line 1548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 10426 "PiwigoPublishing.c"
+ }
+#line 1550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = status;
+#line 1550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_strcmp0 (_tmp6_, "ok") == 0) {
+#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = NULL;
+#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (status);
+#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 10438 "PiwigoPublishing.c"
+ }
+ {
+ xmlNode* _tmp7_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp8_ = NULL;
+ xmlNode* _tmp9_ = NULL;
+ xmlNode* _tmp10_ = NULL;
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = doc;
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = root;
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = publishing_rest_support_xml_document_get_named_child (_tmp8_, _tmp9_, "err", &_inner_error_);
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = _tmp10_;
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 10457 "PiwigoPublishing.c"
+ goto __catch46_spit_publishing_publishing_error;
+ }
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (status);
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 10468 "PiwigoPublishing.c"
+ }
+#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ errcode = _tmp7_;
+#line 10472 "PiwigoPublishing.c"
+ }
+ goto __finally46;
+ __catch46_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ gchar* _tmp11_ = NULL;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = g_strdup ("No error code specified");
+#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp11_;
+#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (status);
+#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 10493 "PiwigoPublishing.c"
+ }
+ __finally46:
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (status);
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 10506 "PiwigoPublishing.c"
+ }
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = errcode;
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = (gchar*) xmlGetProp (_tmp12_, (xmlChar*) "msg");
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = _tmp13_;
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp15_ = errcode;
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = (gchar*) xmlGetProp (_tmp15_, (xmlChar*) "code");
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = _tmp16_;
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = g_strdup_printf ("%s (error code %s)", _tmp14_, _tmp17_);
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = _tmp18_;
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp17_);
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp14_);
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp19_;
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (status);
+#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 10534 "PiwigoPublishing.c"
+}
+
+
+gchar* publishing_piwigo_transaction_get_error_code (PublishingRESTSupportXmlDocument* doc) {
+ gchar* result = NULL;
+ xmlNode* root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp0_ = NULL;
+ xmlNode* _tmp1_ = NULL;
+ xmlNode* errcode = NULL;
+ xmlNode* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 1563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL);
+#line 1564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = doc;
+#line 1564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = publishing_rest_support_xml_document_get_root_node (_tmp0_);
+#line 1564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ root = _tmp1_;
+#line 10555 "PiwigoPublishing.c"
+ {
+ xmlNode* _tmp2_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp3_ = NULL;
+ xmlNode* _tmp4_ = NULL;
+ xmlNode* _tmp5_ = NULL;
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = doc;
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = root;
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = publishing_rest_support_xml_document_get_named_child (_tmp3_, _tmp4_, "err", &_inner_error_);
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = _tmp5_;
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 10573 "PiwigoPublishing.c"
+ goto __catch47_spit_publishing_publishing_error;
+ }
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 10582 "PiwigoPublishing.c"
+ }
+#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ errcode = _tmp2_;
+#line 10586 "PiwigoPublishing.c"
+ }
+ goto __finally47;
+ __catch47_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ gchar* _tmp6_ = NULL;
+#line 1566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ err = _inner_error_;
+#line 1566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _inner_error_ = NULL;
+#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = g_strdup ("0");
+#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp6_;
+#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_error_free0 (err);
+#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 10605 "PiwigoPublishing.c"
+ }
+ __finally47:
+#line 1566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.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 1566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 1566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return NULL;
+#line 10616 "PiwigoPublishing.c"
+ }
+#line 1571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = errcode;
+#line 1571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = (gchar*) xmlGetProp (_tmp7_, (xmlChar*) "code");
+#line 1571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ result = _tmp8_;
+#line 1571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return result;
+#line 10626 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_transaction_class_init (PublishingPiwigoTransactionClass * klass) {
+#line 1529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10633 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_transaction_instance_init (PublishingPiwigoTransaction * self) {
+}
+
+
+/**
+ * Generic REST transaction class.
+ *
+ * This class implements the generic logic for all REST transactions used
+ * by the Piwigo publishing plugin. In particular, it ensures that if the
+ * session has been authenticated, the pwg_id token is included in the
+ * transaction header.
+ */
+GType publishing_piwigo_transaction_get_type (void) {
+ static volatile gsize publishing_piwigo_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoTransaction), 0, (GInstanceInitFunc) publishing_piwigo_transaction_instance_init, NULL };
+ GType publishing_piwigo_transaction_type_id;
+ publishing_piwigo_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingPiwigoTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_piwigo_transaction_type_id__volatile, publishing_piwigo_transaction_type_id);
+ }
+ return publishing_piwigo_transaction_type_id__volatile;
+}
+
+
+PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_construct (GType object_type, PublishingPiwigoSession* session, const gchar* url, const gchar* username, const gchar* password) {
+ PublishingPiwigoSessionLoginTransaction* self = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL);
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (username != NULL, NULL);
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (password != NULL, NULL);
+#line 1580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = session;
+#line 1580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = url;
+#line 1580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoSessionLoginTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.login");
+#line 1583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = username;
+#line 1583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "username", _tmp2_);
+#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = password;
+#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "password", _tmp3_);
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 10693 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_new (PublishingPiwigoSession* session, const gchar* url, const gchar* username, const gchar* password) {
+#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_session_login_transaction_construct (PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, session, url, username, password);
+#line 10700 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_session_login_transaction_class_init (PublishingPiwigoSessionLoginTransactionClass * klass) {
+#line 1578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_session_login_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10707 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_session_login_transaction_instance_init (PublishingPiwigoSessionLoginTransaction * self) {
+}
+
+
+/**
+ * Transaction used to implement the network login interaction.
+ */
+GType publishing_piwigo_session_login_transaction_get_type (void) {
+ static volatile gsize publishing_piwigo_session_login_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_session_login_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionLoginTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_login_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSessionLoginTransaction), 0, (GInstanceInitFunc) publishing_piwigo_session_login_transaction_instance_init, NULL };
+ GType publishing_piwigo_session_login_transaction_type_id;
+ publishing_piwigo_session_login_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoSessionLoginTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_piwigo_session_login_transaction_type_id__volatile, publishing_piwigo_session_login_transaction_type_id);
+ }
+ return publishing_piwigo_session_login_transaction_type_id__volatile;
+}
+
+
+PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_construct_unauthenticated (GType object_type, PublishingPiwigoSession* session, const gchar* url, const gchar* pwg_id) {
+ PublishingPiwigoSessionGetStatusTransaction* self = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingPiwigoSession* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+#line 1592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL);
+#line 1592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (url != NULL, NULL);
+#line 1592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (pwg_id != NULL, NULL);
+#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = session;
+#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = url;
+#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoSessionGetStatusTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = session;
+#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = publishing_piwigo_session_get_pwg_id (_tmp2_);
+#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = g_strconcat ("pwg_id=", _tmp4_, NULL);
+#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp6_);
+#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp6_);
+#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp4_);
+#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.getStatus");
+#line 1592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 10771 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_new_unauthenticated (PublishingPiwigoSession* session, const gchar* url, const gchar* pwg_id) {
+#line 1592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_session_get_status_transaction_construct_unauthenticated (PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, session, url, pwg_id);
+#line 10778 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_construct (GType object_type, PublishingPiwigoSession* session) {
+ PublishingPiwigoSessionGetStatusTransaction* self = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL);
+#line 1600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = session;
+#line 1600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoSessionGetStatusTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, _tmp0_);
+#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.getStatus");
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 10795 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_new (PublishingPiwigoSession* session) {
+#line 1599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_session_get_status_transaction_construct (PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, session);
+#line 10802 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_session_get_status_transaction_class_init (PublishingPiwigoSessionGetStatusTransactionClass * klass) {
+#line 1591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_session_get_status_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10809 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_session_get_status_transaction_instance_init (PublishingPiwigoSessionGetStatusTransaction * self) {
+}
+
+
+/**
+ * Transaction used to implement the get status interaction.
+ */
+GType publishing_piwigo_session_get_status_transaction_get_type (void) {
+ static volatile gsize publishing_piwigo_session_get_status_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_session_get_status_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionGetStatusTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_get_status_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSessionGetStatusTransaction), 0, (GInstanceInitFunc) publishing_piwigo_session_get_status_transaction_instance_init, NULL };
+ GType publishing_piwigo_session_get_status_transaction_type_id;
+ publishing_piwigo_session_get_status_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoSessionGetStatusTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_piwigo_session_get_status_transaction_type_id__volatile, publishing_piwigo_session_get_status_transaction_type_id);
+ }
+ return publishing_piwigo_session_get_status_transaction_type_id__volatile;
+}
+
+
+PublishingPiwigoCategoriesGetListTransaction* publishing_piwigo_categories_get_list_transaction_construct (GType object_type, PublishingPiwigoSession* session) {
+ PublishingPiwigoCategoriesGetListTransaction* self = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+#line 1610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL);
+#line 1611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = session;
+#line 1611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoCategoriesGetListTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, _tmp0_);
+#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.categories.getList");
+#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "recursive", "true");
+#line 1610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 10847 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoCategoriesGetListTransaction* publishing_piwigo_categories_get_list_transaction_new (PublishingPiwigoSession* session) {
+#line 1610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_categories_get_list_transaction_construct (PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, session);
+#line 10854 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_categories_get_list_transaction_class_init (PublishingPiwigoCategoriesGetListTransactionClass * klass) {
+#line 1609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_categories_get_list_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10861 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_categories_get_list_transaction_instance_init (PublishingPiwigoCategoriesGetListTransaction * self) {
+}
+
+
+/**
+ * Transaction used to implement the fetch categories interaction.
+ */
+GType publishing_piwigo_categories_get_list_transaction_get_type (void) {
+ static volatile gsize publishing_piwigo_categories_get_list_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_categories_get_list_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoCategoriesGetListTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_categories_get_list_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoCategoriesGetListTransaction), 0, (GInstanceInitFunc) publishing_piwigo_categories_get_list_transaction_instance_init, NULL };
+ GType publishing_piwigo_categories_get_list_transaction_type_id;
+ publishing_piwigo_categories_get_list_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoCategoriesGetListTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_piwigo_categories_get_list_transaction_type_id__volatile, publishing_piwigo_categories_get_list_transaction_type_id);
+ }
+ return publishing_piwigo_categories_get_list_transaction_type_id__volatile;
+}
+
+
+PublishingPiwigoSessionLogoutTransaction* publishing_piwigo_session_logout_transaction_construct (GType object_type, PublishingPiwigoSession* session) {
+ PublishingPiwigoSessionLogoutTransaction* self = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+#line 1619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL);
+#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = session;
+#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoSessionLogoutTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, _tmp0_);
+#line 1622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.logout");
+#line 1619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 10897 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoSessionLogoutTransaction* publishing_piwigo_session_logout_transaction_new (PublishingPiwigoSession* session) {
+#line 1619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_session_logout_transaction_construct (PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, session);
+#line 10904 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_session_logout_transaction_class_init (PublishingPiwigoSessionLogoutTransactionClass * klass) {
+#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_session_logout_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10911 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_session_logout_transaction_instance_init (PublishingPiwigoSessionLogoutTransaction * self) {
+}
+
+
+GType publishing_piwigo_session_logout_transaction_get_type (void) {
+ static volatile gsize publishing_piwigo_session_logout_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_session_logout_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionLogoutTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_logout_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSessionLogoutTransaction), 0, (GInstanceInitFunc) publishing_piwigo_session_logout_transaction_instance_init, NULL };
+ GType publishing_piwigo_session_logout_transaction_type_id;
+ publishing_piwigo_session_logout_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoSessionLogoutTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_piwigo_session_logout_transaction_type_id__volatile, publishing_piwigo_session_logout_transaction_type_id);
+ }
+ return publishing_piwigo_session_logout_transaction_type_id__volatile;
+}
+
+
+PublishingPiwigoCategoriesAddTransaction* publishing_piwigo_categories_add_transaction_construct (GType object_type, PublishingPiwigoSession* session, const gchar* category, gint parent_id, const gchar* comment) {
+ PublishingPiwigoCategoriesAddTransaction* self = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ const gchar* _tmp6_ = NULL;
+#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL);
+#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (category != NULL, NULL);
+#line 1628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = session;
+#line 1628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoCategoriesAddTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, _tmp0_);
+#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.categories.add");
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = category;
+#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", _tmp1_);
+#line 1633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = parent_id;
+#line 1633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp2_ != 0) {
+#line 10955 "PiwigoPublishing.c"
+ gint _tmp3_ = 0;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = parent_id;
+#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = g_strdup_printf ("%i", _tmp3_);
+#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "parent", _tmp5_);
+#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp5_);
+#line 10969 "PiwigoPublishing.c"
+ }
+#line 1637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = comment;
+#line 1637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_strcmp0 (_tmp6_, "") != 0) {
+#line 10975 "PiwigoPublishing.c"
+ const gchar* _tmp7_ = NULL;
+#line 1638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = comment;
+#line 1638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", _tmp7_);
+#line 10981 "PiwigoPublishing.c"
+ }
+#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 10985 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoCategoriesAddTransaction* publishing_piwigo_categories_add_transaction_new (PublishingPiwigoSession* session, const gchar* category, gint parent_id, const gchar* comment) {
+#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_categories_add_transaction_construct (PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, session, category, parent_id, comment);
+#line 10992 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_categories_add_transaction_class_init (PublishingPiwigoCategoriesAddTransactionClass * klass) {
+#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_categories_add_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 10999 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_categories_add_transaction_instance_init (PublishingPiwigoCategoriesAddTransaction * self) {
+}
+
+
+GType publishing_piwigo_categories_add_transaction_get_type (void) {
+ static volatile gsize publishing_piwigo_categories_add_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_categories_add_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoCategoriesAddTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_categories_add_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoCategoriesAddTransaction), 0, (GInstanceInitFunc) publishing_piwigo_categories_add_transaction_instance_init, NULL };
+ GType publishing_piwigo_categories_add_transaction_type_id;
+ publishing_piwigo_categories_add_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoCategoriesAddTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_piwigo_categories_add_transaction_type_id__volatile, publishing_piwigo_categories_add_transaction_type_id);
+ }
+ return publishing_piwigo_categories_add_transaction_type_id__volatile;
+}
+
+
+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 11032 "PiwigoPublishing.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 11042 "PiwigoPublishing.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 11052 "PiwigoPublishing.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 11058 "PiwigoPublishing.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 11069 "PiwigoPublishing.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 11081 "PiwigoPublishing.c"
+ } else {
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = FALSE;
+#line 11085 "PiwigoPublishing.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp5_;
+#line 11089 "PiwigoPublishing.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp1_) {
+#line 11093 "PiwigoPublishing.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 11116 "PiwigoPublishing.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 11125 "PiwigoPublishing.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 11138 "PiwigoPublishing.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 11144 "PiwigoPublishing.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 11154 "PiwigoPublishing.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 11166 "PiwigoPublishing.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 11170 "PiwigoPublishing.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 11176 "PiwigoPublishing.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 11187 "PiwigoPublishing.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 11202 "PiwigoPublishing.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = FALSE;
+#line 11206 "PiwigoPublishing.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = _tmp16_;
+#line 11210 "PiwigoPublishing.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 11216 "PiwigoPublishing.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 11228 "PiwigoPublishing.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 11249 "PiwigoPublishing.c"
+ } else {
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = 0;
+#line 11253 "PiwigoPublishing.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 11259 "PiwigoPublishing.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 11266 "PiwigoPublishing.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 11274 "PiwigoPublishing.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 11312 "PiwigoPublishing.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 11321 "PiwigoPublishing.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 11337 "PiwigoPublishing.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 11343 "PiwigoPublishing.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 11357 "PiwigoPublishing.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 11377 "PiwigoPublishing.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 11392 "PiwigoPublishing.c"
+ } else {
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp53_ = "";
+#line 11396 "PiwigoPublishing.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 11404 "PiwigoPublishing.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 11415 "PiwigoPublishing.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 11424 "PiwigoPublishing.c"
+ }
+}
+
+
+static void _g_free0_ (gpointer var) {
+#line 1703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ var = (g_free (var), NULL);
+#line 11432 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoImagesAddTransaction* publishing_piwigo_images_add_transaction_construct (GType object_type, PublishingPiwigoSession* session, PublishingPiwigoPublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+ PublishingPiwigoImagesAddTransaction* self = NULL;
+ PublishingPiwigoSession* _tmp0_ = NULL;
+ SpitPublishingPublishable* _tmp1_ = NULL;
+ PublishingPiwigoSession* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ PublishingPiwigoSession* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ PublishingPiwigoPublishingParameters* _tmp12_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp13_ = NULL;
+ gchar** keywords = NULL;
+ SpitPublishingPublishable* _tmp14_ = NULL;
+ gint _tmp15_ = 0;
+ gchar** _tmp16_ = NULL;
+ gint keywords_length1 = 0;
+ gint _keywords_size_ = 0;
+ gchar* tags = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar** _tmp18_ = NULL;
+ gint _tmp18__length1 = 0;
+ SpitPublishingPublishable* _tmp21_ = NULL;
+ GFile* _tmp22_ = NULL;
+ GFile* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp26_ = NULL;
+ PublishingPiwigoCategory* _tmp27_ = NULL;
+ gint _tmp28_ = 0;
+ PublishingPiwigoPublishingParameters* _tmp29_ = NULL;
+ PublishingPiwigoPermissionLevel* _tmp30_ = NULL;
+ gint _tmp31_ = 0;
+ gchar* name = NULL;
+ SpitPublishingPublishable* _tmp32_ = NULL;
+ gchar* _tmp33_ = NULL;
+ gchar* comment = NULL;
+ SpitPublishingPublishable* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+ const gchar* _tmp36_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp53_ = NULL;
+ PublishingPiwigoCategory* _tmp54_ = NULL;
+ gint _tmp55_ = 0;
+ gchar* _tmp56_ = NULL;
+ gchar* _tmp57_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp58_ = NULL;
+ PublishingPiwigoPermissionLevel* _tmp59_ = NULL;
+ gint _tmp60_ = 0;
+ gchar* _tmp61_ = NULL;
+ gchar* _tmp62_ = NULL;
+ PublishingPiwigoPublishingParameters* _tmp63_ = NULL;
+ gboolean _tmp64_ = FALSE;
+ GHashTable* disposition_table = NULL;
+ GHashFunc _tmp67_ = NULL;
+ GEqualFunc _tmp68_ = NULL;
+ GHashTable* _tmp69_ = NULL;
+ gchar* _tmp70_ = NULL;
+ SpitPublishingPublishable* _tmp71_ = NULL;
+ gchar* _tmp72_ = NULL;
+ gchar* _tmp73_ = NULL;
+ gchar* _tmp74_ = NULL;
+ gchar* _tmp75_ = NULL;
+ gchar* _tmp76_ = NULL;
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL);
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp0_ = session;
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp1_ = publishable;
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp2_ = session;
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp3_ = publishing_piwigo_session_get_pwg_url (_tmp2_);
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = (PublishingPiwigoImagesAddTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp4_);
+#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp4_);
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp5_ = session;
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp6_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp6_) {
+#line 11524 "PiwigoPublishing.c"
+ PublishingPiwigoSession* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp7_ = session;
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp8_ = publishing_piwigo_session_get_pwg_id (_tmp7_);
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp10_ = g_strconcat ("pwg_id=", _tmp9_, NULL);
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp11_);
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp11_);
+#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp9_);
+#line 11546 "PiwigoPublishing.c"
+ }
+#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp12_ = parameters;
+#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp13_ = _publishing_piwigo_publishing_parameters_ref0 (_tmp12_);
+#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters);
+#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->parameters = _tmp13_;
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp14_ = publishable;
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp16_ = spit_publishing_publishable_get_publishing_keywords (_tmp14_, &_tmp15_);
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ keywords = _tmp16_;
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ keywords_length1 = _tmp15_;
+#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _keywords_size_ = keywords_length1;
+#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp17_ = g_strdup ("");
+#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ tags = _tmp17_;
+#line 1655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18_ = keywords;
+#line 1655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp18__length1 = keywords_length1;
+#line 1655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp18_ != NULL) {
+#line 11576 "PiwigoPublishing.c"
+ gchar** _tmp19_ = NULL;
+ gint _tmp19__length1 = 0;
+ gchar* _tmp20_ = NULL;
+#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19_ = keywords;
+#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp19__length1 = keywords_length1;
+#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp20_ = _vala_g_strjoinv (",", _tmp19_, _tmp19__length1);
+#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (tags);
+#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ tags = _tmp20_;
+#line 11590 "PiwigoPublishing.c"
+ }
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp21_ = publishable;
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp22_ = spit_publishing_publishable_get_serialized_file (_tmp21_);
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp23_ = _tmp22_;
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp24_ = g_file_get_basename (_tmp23_);
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp25_ = _tmp24_;
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp26_ = parameters;
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp27_ = _tmp26_->category;
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp28_ = _tmp27_->id;
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp29_ = parameters;
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp30_ = _tmp29_->perm_level;
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp31_ = _tmp30_->id;
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_debug ("PiwigoPublishing.vala:1659: PiwigoConnector: Uploading photo %s to cat" \
+"egory id %d with perm level %d", _tmp25_, _tmp28_, _tmp31_);
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp25_);
+#line 1659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_object_unref0 (_tmp23_);
+#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp32_ = publishable;
+#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp33_ = spit_publishing_publishable_get_publishing_name (_tmp32_);
+#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ name = _tmp33_;
+#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp34_ = publishable;
+#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp35_ = spit_publishing_publishable_get_param_string (_tmp34_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT);
+#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ comment = _tmp35_;
+#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp36_ = name;
+#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_strcmp0 (_tmp36_, "") != 0) {
+#line 11636 "PiwigoPublishing.c"
+ SpitPublishingPublishable* _tmp37_ = NULL;
+ gchar* _tmp38_ = NULL;
+ const gchar* _tmp39_ = NULL;
+ gboolean _tmp40_ = FALSE;
+ const gchar* _tmp41_ = NULL;
+#line 1666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp37_ = publishable;
+#line 1666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp38_ = spit_publishing_publishable_get_param_string (_tmp37_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME);
+#line 1666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (name);
+#line 1666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ name = _tmp38_;
+#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp39_ = name;
+#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", _tmp39_);
+#line 1669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp41_ = comment;
+#line 1669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp41_ != NULL) {
+#line 11658 "PiwigoPublishing.c"
+ const gchar* _tmp42_ = NULL;
+#line 1669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp42_ = comment;
+#line 1669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp40_ = g_strcmp0 (_tmp42_, "") != 0;
+#line 11664 "PiwigoPublishing.c"
+ } else {
+#line 1669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp40_ = FALSE;
+#line 11668 "PiwigoPublishing.c"
+ }
+#line 1669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp40_) {
+#line 11672 "PiwigoPublishing.c"
+ const gchar* _tmp43_ = NULL;
+#line 1670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp43_ = comment;
+#line 1670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", _tmp43_);
+#line 11678 "PiwigoPublishing.c"
+ }
+ } else {
+ gboolean _tmp44_ = FALSE;
+ const gchar* _tmp45_ = NULL;
+#line 1674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp45_ = comment;
+#line 1674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp45_ != NULL) {
+#line 11687 "PiwigoPublishing.c"
+ const gchar* _tmp46_ = NULL;
+#line 1674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp46_ = comment;
+#line 1674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp44_ = g_strcmp0 (_tmp46_, "") != 0;
+#line 11693 "PiwigoPublishing.c"
+ } else {
+#line 1674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp44_ = FALSE;
+#line 11697 "PiwigoPublishing.c"
+ }
+#line 1674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp44_) {
+#line 11701 "PiwigoPublishing.c"
+ const gchar* _tmp47_ = NULL;
+ const gchar* _tmp48_ = NULL;
+#line 1675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp47_ = name;
+#line 1675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", _tmp47_);
+#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp48_ = comment;
+#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", _tmp48_);
+#line 11712 "PiwigoPublishing.c"
+ } else {
+ PublishingPiwigoPublishingParameters* _tmp49_ = NULL;
+ gboolean _tmp50_ = FALSE;
+#line 1681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp49_ = parameters;
+#line 1681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp50_ = _tmp49_->title_as_comment;
+#line 1681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (_tmp50_) {
+#line 11722 "PiwigoPublishing.c"
+ const gchar* _tmp51_ = NULL;
+#line 1682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp51_ = name;
+#line 1682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", _tmp51_);
+#line 11728 "PiwigoPublishing.c"
+ } else {
+ const gchar* _tmp52_ = NULL;
+#line 1684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp52_ = name;
+#line 1684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", _tmp52_);
+#line 11735 "PiwigoPublishing.c"
+ }
+ }
+ }
+#line 1688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.images.addSimple");
+#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp53_ = parameters;
+#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp54_ = _tmp53_->category;
+#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp55_ = _tmp54_->id;
+#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp56_ = g_strdup_printf ("%i", _tmp55_);
+#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp57_ = _tmp56_;
+#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "category", _tmp57_);
+#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp57_);
+#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp58_ = parameters;
+#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp59_ = _tmp58_->perm_level;
+#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp60_ = _tmp59_->id;
+#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp61_ = g_strdup_printf ("%i", _tmp60_);
+#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp62_ = _tmp61_;
+#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "level", _tmp62_);
+#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp62_);
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp63_ = parameters;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp64_ = _tmp63_->no_upload_tags;
+#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (!_tmp64_) {
+#line 11775 "PiwigoPublishing.c"
+ const gchar* _tmp65_ = NULL;
+#line 1692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp65_ = tags;
+#line 1692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ if (g_strcmp0 (_tmp65_, "") != 0) {
+#line 11781 "PiwigoPublishing.c"
+ const gchar* _tmp66_ = NULL;
+#line 1693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp66_ = tags;
+#line 1693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "tags", _tmp66_);
+#line 11787 "PiwigoPublishing.c"
+ }
+ }
+#line 1703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp67_ = g_str_hash;
+#line 1703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp68_ = g_str_equal;
+#line 1703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp69_ = g_hash_table_new_full (_tmp67_, _tmp68_, _g_free0_, _g_free0_);
+#line 1703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ disposition_table = _tmp69_;
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp70_ = g_strdup ("filename");
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp71_ = publishable;
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp72_ = spit_publishing_publishable_get_param_string (_tmp71_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME);
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp73_ = _tmp72_;
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp74_ = soup_uri_encode (_tmp73_, NULL);
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_hash_table_insert (disposition_table, _tmp70_, _tmp74_);
+#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (_tmp73_);
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp75_ = g_strdup ("name");
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _tmp76_ = g_strdup ("image");
+#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_hash_table_insert (disposition_table, _tmp75_, _tmp76_);
+#line 1710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), disposition_table);
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_hash_table_unref0 (disposition_table);
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (comment);
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (name);
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _g_free0 (tags);
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return self;
+#line 11832 "PiwigoPublishing.c"
+}
+
+
+PublishingPiwigoImagesAddTransaction* publishing_piwigo_images_add_transaction_new (PublishingPiwigoSession* session, PublishingPiwigoPublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ return publishing_piwigo_images_add_transaction_construct (PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, session, parameters, publishable);
+#line 11839 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_images_add_transaction_class_init (PublishingPiwigoImagesAddTransactionClass * klass) {
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ publishing_piwigo_images_add_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_piwigo_images_add_transaction_finalize;
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingPiwigoImagesAddTransactionPrivate));
+#line 11850 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_images_add_transaction_instance_init (PublishingPiwigoImagesAddTransaction * self) {
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv = PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_GET_PRIVATE (self);
+#line 1644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self->priv->parameters = NULL;
+#line 11859 "PiwigoPublishing.c"
+}
+
+
+static void publishing_piwigo_images_add_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingPiwigoImagesAddTransaction * self;
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransaction);
+#line 1644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters);
+#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_piwigo_images_add_transaction_parent_class)->finalize (obj);
+#line 11871 "PiwigoPublishing.c"
+}
+
+
+GType publishing_piwigo_images_add_transaction_get_type (void) {
+ static volatile gsize publishing_piwigo_images_add_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_piwigo_images_add_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoImagesAddTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_images_add_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoImagesAddTransaction), 0, (GInstanceInitFunc) publishing_piwigo_images_add_transaction_instance_init, NULL };
+ GType publishing_piwigo_images_add_transaction_type_id;
+ publishing_piwigo_images_add_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingPiwigoImagesAddTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_piwigo_images_add_transaction_type_id__volatile, publishing_piwigo_images_add_transaction_type_id);
+ }
+ return publishing_piwigo_images_add_transaction_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);
+}
+
+
+static gint _vala_array_length (gpointer array) {
+ int length;
+ length = 0;
+ if (array) {
+ while (((gpointer*) array)[length]) {
+ length++;
+ }
+ }
+ return length;
+}
+
+
+
diff --git a/plugins/shotwell-publishing/PiwigoPublishing.vala b/plugins/shotwell-publishing/PiwigoPublishing.vala
index 7dd9090..c3a1bd0 100644
--- a/plugins/shotwell-publishing/PiwigoPublishing.vala
+++ b/plugins/shotwell-publishing/PiwigoPublishing.vala
@@ -11,7 +11,8 @@ public class PiwigoService : Object, Spit.Pluggable, Spit.Publishing.Service {
public PiwigoService(GLib.File resource_directory) {
if (icon_pixbuf_set == null)
- icon_pixbuf_set = Resources.load_icon_set(resource_directory.get_child(ICON_FILENAME));
+ icon_pixbuf_set = Resources.load_from_resource
+ (Resources.RESOURCE_PATH + "/" + ICON_FILENAME);
}
public int get_pluggable_interface(int min_host_interface, int max_host_interface) {
@@ -63,7 +64,7 @@ internal class Category {
public string comment;
public string display_name;
public string uppercats;
- public static const int NO_ID = -1;
+ public const int NO_ID = -1;
public Category(int id, string name, string uppercats, string? comment = "") {
this.id = id;
@@ -911,6 +912,8 @@ public class PiwigoPublisher : Spit.Publishing.Publisher, GLib.Object {
error_type = "LOCAL_FILE_ERROR";
} else if(e is Spit.Publishing.PublishingError.EXPIRED_SESSION) {
error_type = "EXPIRED_SESSION";
+ } else if (e is Spit.Publishing.PublishingError.SSL_FAILED) {
+ error_type = "SECURE_CONNECTION_FAILED";
}
debug("Unhandled error: type=%s; message='%s'".printf(error_type, e.message));
@@ -1001,12 +1004,9 @@ internal class AuthenticationPane : Spit.Publishing.DialogPane, Object {
public AuthenticationPane(PiwigoPublisher publisher, Mode mode = Mode.INTRO) {
this.pane_widget = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
- File ui_file = publisher.get_host().get_module_file().get_parent().
- get_child("piwigo_authentication_pane.glade");
-
try {
builder = new Gtk.Builder();
- builder.add_from_file(ui_file.get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH + "/piwigo_authentication_pane.ui");
builder.connect_signals(null);
Gtk.Alignment align = builder.get_object("alignment") as Gtk.Alignment;
@@ -1156,12 +1156,9 @@ internal class PublishingOptionsPane : Spit.Publishing.DialogPane, Object {
this.last_title_as_comment = last_title_as_comment;
this.last_no_upload_tags = last_no_upload_tags;
- File ui_file = publisher.get_host().get_module_file().get_parent().
- get_child("piwigo_publishing_options_pane.glade");
-
try {
builder = new Gtk.Builder();
- builder.add_from_file(ui_file.get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH + "/piwigo_publishing_options_pane.ui");
builder.connect_signals(null);
Gtk.Alignment align = builder.get_object("alignment") as Gtk.Alignment;
diff --git a/plugins/shotwell-publishing/YouTubePublishing.c b/plugins/shotwell-publishing/YouTubePublishing.c
new file mode 100644
index 0000000..cc7cd07
--- /dev/null
+++ b/plugins/shotwell-publishing/YouTubePublishing.c
@@ -0,0 +1,4475 @@
+/* YouTubePublishing.c generated by valac 0.32.1, the Vala compiler
+ * generated from YouTubePublishing.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 <shotwell-plugin-dev-1.0.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include "shotwell-plugin-common.h"
+#include <glib/gi18n-lib.h>
+#include <libxml/tree.h>
+#include <float.h>
+#include <math.h>
+#include <gtk/gtk.h>
+#include <libsoup/soup.h>
+#include <glib/gstdio.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_YOU_TUBE_SERVICE (you_tube_service_get_type ())
+#define YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeService))
+#define YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass))
+#define IS_YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_YOU_TUBE_SERVICE))
+#define IS_YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_YOU_TUBE_SERVICE))
+#define YOU_TUBE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass))
+
+typedef struct _YouTubeService YouTubeService;
+typedef struct _YouTubeServiceClass YouTubeServiceClass;
+typedef struct _YouTubeServicePrivate YouTubeServicePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER (publishing_you_tube_you_tube_publisher_get_type ())
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher))
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisherClass))
+#define PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER))
+#define PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER))
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisherClass))
+
+typedef struct _PublishingYouTubeYouTubePublisher PublishingYouTubeYouTubePublisher;
+typedef struct _PublishingYouTubeYouTubePublisherClass PublishingYouTubeYouTubePublisherClass;
+
+#define PUBLISHING_YOU_TUBE_TYPE_PRIVACY_SETTING (publishing_you_tube_privacy_setting_get_type ())
+
+#define PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS (publishing_you_tube_publishing_parameters_get_type ())
+#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParameters))
+#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParametersClass))
+#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS))
+#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParametersClass))
+
+typedef struct _PublishingYouTubePublishingParameters PublishingYouTubePublishingParameters;
+typedef struct _PublishingYouTubePublishingParametersClass PublishingYouTubePublishingParametersClass;
+typedef struct _PublishingYouTubePublishingParametersPrivate PublishingYouTubePublishingParametersPrivate;
+typedef struct _PublishingYouTubeParamSpecPublishingParameters PublishingYouTubeParamSpecPublishingParameters;
+typedef struct _PublishingYouTubeYouTubePublisherPrivate PublishingYouTubeYouTubePublisherPrivate;
+#define _publishing_you_tube_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_you_tube_publishing_parameters_unref (var), NULL)))
+#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL)))
+
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_TYPE_CHANNEL_DIRECTORY_TRANSACTION (publishing_you_tube_you_tube_publisher_channel_directory_transaction_get_type ())
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_CHANNEL_DIRECTORY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_TYPE_CHANNEL_DIRECTORY_TRANSACTION, PublishingYouTubeYouTubePublisherChannelDirectoryTransaction))
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_CHANNEL_DIRECTORY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_TYPE_CHANNEL_DIRECTORY_TRANSACTION, PublishingYouTubeYouTubePublisherChannelDirectoryTransactionClass))
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_IS_CHANNEL_DIRECTORY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_TYPE_CHANNEL_DIRECTORY_TRANSACTION))
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_IS_CHANNEL_DIRECTORY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_TYPE_CHANNEL_DIRECTORY_TRANSACTION))
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_CHANNEL_DIRECTORY_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_TYPE_CHANNEL_DIRECTORY_TRANSACTION, PublishingYouTubeYouTubePublisherChannelDirectoryTransactionClass))
+
+typedef struct _PublishingYouTubeYouTubePublisherChannelDirectoryTransaction PublishingYouTubeYouTubePublisherChannelDirectoryTransaction;
+typedef struct _PublishingYouTubeYouTubePublisherChannelDirectoryTransactionClass PublishingYouTubeYouTubePublisherChannelDirectoryTransactionClass;
+#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL)))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE (publishing_you_tube_publishing_options_pane_get_type ())
+#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane))
+#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPaneClass))
+#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE))
+#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPaneClass))
+
+typedef struct _PublishingYouTubePublishingOptionsPane PublishingYouTubePublishingOptionsPane;
+typedef struct _PublishingYouTubePublishingOptionsPaneClass PublishingYouTubePublishingOptionsPaneClass;
+
+#define PUBLISHING_YOU_TUBE_TYPE_UPLOADER (publishing_you_tube_uploader_get_type ())
+#define PUBLISHING_YOU_TUBE_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploader))
+#define PUBLISHING_YOU_TUBE_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploaderClass))
+#define PUBLISHING_YOU_TUBE_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOADER))
+#define PUBLISHING_YOU_TUBE_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOADER))
+#define PUBLISHING_YOU_TUBE_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploaderClass))
+
+typedef struct _PublishingYouTubeUploader PublishingYouTubeUploader;
+typedef struct _PublishingYouTubeUploaderClass PublishingYouTubeUploaderClass;
+#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL)))
+typedef struct _PublishingYouTubeYouTubePublisherChannelDirectoryTransactionPrivate PublishingYouTubeYouTubePublisherChannelDirectoryTransactionPrivate;
+typedef struct _PublishingYouTubePublishingOptionsPanePrivate PublishingYouTubePublishingOptionsPanePrivate;
+
+#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION (publishing_you_tube_publishing_options_pane_privacy_description_get_type ())
+#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescription))
+#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass))
+#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION))
+#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION))
+#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass))
+
+typedef struct _PublishingYouTubePublishingOptionsPanePrivacyDescription PublishingYouTubePublishingOptionsPanePrivacyDescription;
+typedef struct _PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass;
+#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))
+typedef struct _PublishingYouTubePublishingOptionsPanePrivacyDescriptionPrivate PublishingYouTubePublishingOptionsPanePrivacyDescriptionPrivate;
+#define _publishing_you_tube_publishing_options_pane_privacy_description_unref0(var) ((var == NULL) ? NULL : (var = (publishing_you_tube_publishing_options_pane_privacy_description_unref (var), NULL)))
+typedef struct _PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription;
+
+#define PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION (publishing_you_tube_upload_transaction_get_type ())
+#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransaction))
+#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransactionClass))
+#define PUBLISHING_YOU_TUBE_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_YOU_TUBE_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION))
+#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransactionClass))
+
+typedef struct _PublishingYouTubeUploadTransaction PublishingYouTubeUploadTransaction;
+typedef struct _PublishingYouTubeUploadTransactionClass PublishingYouTubeUploadTransactionClass;
+typedef struct _PublishingYouTubeUploadTransactionPrivate PublishingYouTubeUploadTransactionPrivate;
+#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL)))
+#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL)))
+typedef struct _PublishingYouTubeUploaderPrivate PublishingYouTubeUploaderPrivate;
+#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 _YouTubeService {
+ GObject parent_instance;
+ YouTubeServicePrivate * priv;
+};
+
+struct _YouTubeServiceClass {
+ GObjectClass parent_class;
+};
+
+typedef enum {
+ PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC,
+ PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED,
+ PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE
+} PublishingYouTubePrivacySetting;
+
+struct _PublishingYouTubePublishingParameters {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingYouTubePublishingParametersPrivate * priv;
+};
+
+struct _PublishingYouTubePublishingParametersClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingYouTubePublishingParameters *self);
+};
+
+struct _PublishingYouTubePublishingParametersPrivate {
+ PublishingYouTubePrivacySetting privacy;
+ gchar* channel_name;
+ gchar* user_name;
+};
+
+struct _PublishingYouTubeParamSpecPublishingParameters {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingYouTubeYouTubePublisher {
+ PublishingRESTSupportGooglePublisher parent_instance;
+ PublishingYouTubeYouTubePublisherPrivate * priv;
+};
+
+struct _PublishingYouTubeYouTubePublisherClass {
+ PublishingRESTSupportGooglePublisherClass parent_class;
+};
+
+struct _PublishingYouTubeYouTubePublisherPrivate {
+ gboolean running;
+ gchar* refresh_token;
+ PublishingYouTubePublishingParameters* publishing_parameters;
+ SpitPublishingProgressCallback progress_reporter;
+ gpointer progress_reporter_target;
+ GDestroyNotify progress_reporter_target_destroy_notify;
+};
+
+struct _PublishingYouTubeYouTubePublisherChannelDirectoryTransaction {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance;
+ PublishingYouTubeYouTubePublisherChannelDirectoryTransactionPrivate * priv;
+};
+
+struct _PublishingYouTubeYouTubePublisherChannelDirectoryTransactionClass {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class;
+};
+
+struct _PublishingYouTubePublishingOptionsPane {
+ GObject parent_instance;
+ PublishingYouTubePublishingOptionsPanePrivate * priv;
+};
+
+struct _PublishingYouTubePublishingOptionsPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _PublishingYouTubePublishingOptionsPanePrivate {
+ GtkBox* pane_widget;
+ GtkComboBoxText* privacy_combo;
+ GtkLabel* publish_to_label;
+ GtkLabel* login_identity_label;
+ GtkButton* publish_button;
+ GtkButton* logout_button;
+ GtkBuilder* builder;
+ GtkLabel* privacy_label;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** privacy_descriptions;
+ gint privacy_descriptions_length1;
+ gint _privacy_descriptions_size_;
+ PublishingYouTubePublishingParameters* publishing_parameters;
+};
+
+struct _PublishingYouTubePublishingOptionsPanePrivacyDescription {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ PublishingYouTubePublishingOptionsPanePrivacyDescriptionPrivate * priv;
+ gchar* description;
+ PublishingYouTubePrivacySetting privacy_setting;
+};
+
+struct _PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass {
+ GTypeClass parent_class;
+ void (*finalize) (PublishingYouTubePublishingOptionsPanePrivacyDescription *self);
+};
+
+struct _PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription {
+ GParamSpec parent_instance;
+};
+
+struct _PublishingYouTubeUploadTransaction {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance;
+ PublishingYouTubeUploadTransactionPrivate * priv;
+};
+
+struct _PublishingYouTubeUploadTransactionClass {
+ PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class;
+};
+
+struct _PublishingYouTubeUploadTransactionPrivate {
+ PublishingYouTubePublishingParameters* parameters;
+ PublishingRESTSupportGoogleSession* session;
+ SpitPublishingPublishable* publishable;
+};
+
+struct _PublishingYouTubeUploader {
+ PublishingRESTSupportBatchUploader parent_instance;
+ PublishingYouTubeUploaderPrivate * priv;
+};
+
+struct _PublishingYouTubeUploaderClass {
+ PublishingRESTSupportBatchUploaderClass parent_class;
+};
+
+struct _PublishingYouTubeUploaderPrivate {
+ PublishingYouTubePublishingParameters* parameters;
+};
+
+
+static gpointer you_tube_service_parent_class = NULL;
+static GdkPixbuf** you_tube_service_icon_pixbuf_set;
+static gint you_tube_service_icon_pixbuf_set_length1;
+static GdkPixbuf** you_tube_service_icon_pixbuf_set = NULL;
+static gint you_tube_service_icon_pixbuf_set_length1 = 0;
+static gint _you_tube_service_icon_pixbuf_set_size_ = 0;
+static SpitPluggableIface* you_tube_service_spit_pluggable_parent_iface = NULL;
+static SpitPublishingServiceIface* you_tube_service_spit_publishing_service_parent_iface = NULL;
+static gpointer publishing_you_tube_publishing_parameters_parent_class = NULL;
+static gpointer publishing_you_tube_you_tube_publisher_parent_class = NULL;
+static gpointer publishing_you_tube_you_tube_publisher_channel_directory_transaction_parent_class = NULL;
+static gpointer publishing_you_tube_publishing_options_pane_parent_class = NULL;
+static gpointer publishing_you_tube_publishing_options_pane_privacy_description_parent_class = NULL;
+static SpitPublishingDialogPaneIface* publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL;
+static gpointer publishing_you_tube_upload_transaction_parent_class = NULL;
+static gpointer publishing_you_tube_uploader_parent_class = NULL;
+
+GType you_tube_service_get_type (void) G_GNUC_CONST;
+enum {
+ YOU_TUBE_SERVICE_DUMMY_PROPERTY
+};
+#define YOU_TUBE_SERVICE_ICON_FILENAME "youtube.png"
+YouTubeService* you_tube_service_new (GFile* resource_directory);
+YouTubeService* you_tube_service_construct (GType object_type, GFile* resource_directory);
+static gint you_tube_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+static const gchar* you_tube_service_real_get_id (SpitPluggable* base);
+static const gchar* you_tube_service_real_get_pluggable_name (SpitPluggable* base);
+static void you_tube_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static GdkPixbuf** _vala_array_dup9 (GdkPixbuf** self, int length);
+static SpitPublishingPublisher* you_tube_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host);
+PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host);
+PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host);
+GType publishing_you_tube_you_tube_publisher_get_type (void) G_GNUC_CONST;
+static SpitPublishingPublisherMediaType you_tube_service_real_get_supported_media (SpitPublishingService* base);
+static void you_tube_service_real_activation (SpitPluggable* base, gboolean enabled);
+static void you_tube_service_finalize (GObject* obj);
+#define PUBLISHING_YOU_TUBE_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into YouTube.\n" \
+"\n" \
+"You must have already signed up for a Google account and set it up for" \
+" use with YouTube to continue. You can set up most accounts by using y" \
+"our browser to log into the YouTube site at least once.")
+#define PUBLISHING_YOU_TUBE_DEVELOPER_KEY "AI39si5VEpzWK0z-pzo4fonEj9E4driCpEs9lK8y3HJsbbebIIRWqW3bIyGr42bjQv-N3s" \
+"iAfqVoM8XNmtbbp5x2gpbjiSAMTQ"
+GType publishing_you_tube_privacy_setting_get_type (void) G_GNUC_CONST;
+gpointer publishing_you_tube_publishing_parameters_ref (gpointer instance);
+void publishing_you_tube_publishing_parameters_unref (gpointer instance);
+GParamSpec* publishing_you_tube_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void publishing_you_tube_value_set_publishing_parameters (GValue* value, gpointer v_object);
+void publishing_you_tube_value_take_publishing_parameters (GValue* value, gpointer v_object);
+gpointer publishing_you_tube_value_get_publishing_parameters (const GValue* value);
+GType publishing_you_tube_publishing_parameters_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParametersPrivate))
+enum {
+ PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_DUMMY_PROPERTY
+};
+PublishingYouTubePublishingParameters* publishing_you_tube_publishing_parameters_new (void);
+PublishingYouTubePublishingParameters* publishing_you_tube_publishing_parameters_construct (GType object_type);
+PublishingYouTubePrivacySetting publishing_you_tube_publishing_parameters_get_privacy (PublishingYouTubePublishingParameters* self);
+void publishing_you_tube_publishing_parameters_set_privacy (PublishingYouTubePublishingParameters* self, PublishingYouTubePrivacySetting privacy);
+gchar* publishing_you_tube_publishing_parameters_get_channel_name (PublishingYouTubePublishingParameters* self);
+void publishing_you_tube_publishing_parameters_set_channel_name (PublishingYouTubePublishingParameters* self, const gchar* channel_name);
+gchar* publishing_you_tube_publishing_parameters_get_user_name (PublishingYouTubePublishingParameters* self);
+void publishing_you_tube_publishing_parameters_set_user_name (PublishingYouTubePublishingParameters* self, const gchar* user_name);
+static void publishing_you_tube_publishing_parameters_finalize (PublishingYouTubePublishingParameters* obj);
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisherPrivate))
+enum {
+ PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_DUMMY_PROPERTY
+};
+static gboolean publishing_you_tube_you_tube_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base);
+static void publishing_you_tube_you_tube_publisher_real_start (PublishingRESTSupportGooglePublisher* base);
+static void publishing_you_tube_you_tube_publisher_do_show_service_welcome_pane (PublishingYouTubeYouTubePublisher* self);
+static void publishing_you_tube_you_tube_publisher_real_stop (PublishingRESTSupportGooglePublisher* base);
+static gchar* publishing_you_tube_you_tube_publisher_extract_channel_name_helper (PublishingYouTubeYouTubePublisher* self, xmlNode* document_root, GError** error);
+static void publishing_you_tube_you_tube_publisher_on_service_welcome_login (PublishingYouTubeYouTubePublisher* self);
+static void publishing_you_tube_you_tube_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base);
+static void publishing_you_tube_you_tube_publisher_do_fetch_account_information (PublishingYouTubeYouTubePublisher* self);
+static void publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_complete (PublishingYouTubeYouTubePublisher* self, PublishingRESTSupportTransaction* txn);
+static void _publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self);
+static void publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_error (PublishingYouTubeYouTubePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err);
+static void _publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self);
+static GType publishing_you_tube_you_tube_publisher_channel_directory_transaction_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+static void publishing_you_tube_you_tube_publisher_do_parse_and_display_account_information (PublishingYouTubeYouTubePublisher* self, PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* transaction);
+static void publishing_you_tube_you_tube_publisher_on_publishing_options_logout (PublishingYouTubeYouTubePublisher* self);
+static void publishing_you_tube_you_tube_publisher_on_publishing_options_publish (PublishingYouTubeYouTubePublisher* self);
+static void publishing_you_tube_you_tube_publisher_do_upload (PublishingYouTubeYouTubePublisher* self);
+static void publishing_you_tube_you_tube_publisher_on_upload_status_updated (PublishingYouTubeYouTubePublisher* self, gint file_number, gdouble completed_fraction);
+static void publishing_you_tube_you_tube_publisher_on_upload_complete (PublishingYouTubeYouTubePublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published);
+static void _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self);
+static void publishing_you_tube_you_tube_publisher_on_upload_error (PublishingYouTubeYouTubePublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err);
+static void _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self);
+static void publishing_you_tube_you_tube_publisher_do_show_success_pane (PublishingYouTubeYouTubePublisher* self);
+static void _publishing_you_tube_you_tube_publisher_on_service_welcome_login_spit_publishing_login_callback (gpointer self);
+static PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* publishing_you_tube_you_tube_publisher_channel_directory_transaction_new (PublishingRESTSupportGoogleSession* session);
+static PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* publishing_you_tube_you_tube_publisher_channel_directory_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session);
+static gchar* publishing_you_tube_you_tube_publisher_channel_directory_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc);
+static gchar* _publishing_you_tube_you_tube_publisher_channel_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self);
+static void publishing_you_tube_you_tube_publisher_do_show_publishing_options_pane (PublishingYouTubeYouTubePublisher* self);
+GType publishing_you_tube_publishing_options_pane_get_type (void) G_GNUC_CONST;
+PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_pane_new (SpitPublishingPluginHost* host, GtkBuilder* builder, PublishingYouTubePublishingParameters* publishing_parameters);
+PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_pane_construct (GType object_type, SpitPublishingPluginHost* host, GtkBuilder* builder, PublishingYouTubePublishingParameters* publishing_parameters);
+static void _publishing_you_tube_you_tube_publisher_on_publishing_options_publish_publishing_you_tube_publishing_options_pane_publish (PublishingYouTubePublishingOptionsPane* _sender, gpointer self);
+static void _publishing_you_tube_you_tube_publisher_on_publishing_options_logout_publishing_you_tube_publishing_options_pane_logout (PublishingYouTubePublishingOptionsPane* _sender, gpointer self);
+GType publishing_you_tube_uploader_get_type (void) G_GNUC_CONST;
+PublishingYouTubeUploader* publishing_you_tube_uploader_new (PublishingRESTSupportGoogleSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingYouTubePublishingParameters* parameters);
+PublishingYouTubeUploader* publishing_you_tube_uploader_construct (GType object_type, PublishingRESTSupportGoogleSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingYouTubePublishingParameters* parameters);
+static void _publishing_you_tube_you_tube_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self);
+static void publishing_you_tube_you_tube_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base);
+enum {
+ PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_CHANNEL_DIRECTORY_TRANSACTION_DUMMY_PROPERTY
+};
+#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_CHANNEL_DIRECTORY_TRANSACTION_ENDPOINT_URL "http://gdata.youtube.com/feeds/users/default"
+static void publishing_you_tube_you_tube_publisher_finalize (GObject* obj);
+static gpointer publishing_you_tube_publishing_options_pane_privacy_description_ref (gpointer instance);
+static void publishing_you_tube_publishing_options_pane_privacy_description_unref (gpointer instance);
+static GParamSpec* publishing_you_tube_publishing_options_pane_param_spec_privacy_description (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
+static void publishing_you_tube_publishing_options_pane_value_set_privacy_description (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static void publishing_you_tube_publishing_options_pane_value_take_privacy_description (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static gpointer publishing_you_tube_publishing_options_pane_value_get_privacy_description (const GValue* value) G_GNUC_UNUSED;
+static GType publishing_you_tube_publishing_options_pane_privacy_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPanePrivate))
+enum {
+ PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_DUMMY_PROPERTY
+};
+static PublishingYouTubePublishingOptionsPanePrivacyDescription** publishing_you_tube_publishing_options_pane_create_privacy_descriptions (PublishingYouTubePublishingOptionsPane* self, int* result_length1);
+static void publishing_you_tube_publishing_options_pane_on_logout_clicked (PublishingYouTubePublishingOptionsPane* self);
+static void _publishing_you_tube_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_you_tube_publishing_options_pane_on_publish_clicked (PublishingYouTubePublishingOptionsPane* self);
+static void _publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void publishing_you_tube_publishing_options_pane_update_publish_button_sensitivity (PublishingYouTubePublishingOptionsPane* self);
+static PublishingYouTubePublishingOptionsPanePrivacyDescription* publishing_you_tube_publishing_options_pane_privacy_description_new (const gchar* description, PublishingYouTubePrivacySetting privacy_setting);
+static PublishingYouTubePublishingOptionsPanePrivacyDescription* publishing_you_tube_publishing_options_pane_privacy_description_construct (GType object_type, const gchar* description, PublishingYouTubePrivacySetting privacy_setting);
+static void _vala_array_add31 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value);
+static void _vala_array_add32 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value);
+static void _vala_array_add33 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value);
+static GtkWidget* publishing_you_tube_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base);
+static SpitPublishingDialogPaneGeometryOptions publishing_you_tube_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base);
+static void publishing_you_tube_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base);
+static void publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base);
+enum {
+ PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_DUMMY_PROPERTY
+};
+static void publishing_you_tube_publishing_options_pane_privacy_description_finalize (PublishingYouTubePublishingOptionsPanePrivacyDescription* obj);
+static void publishing_you_tube_publishing_options_pane_finalize (GObject* obj);
+GType publishing_you_tube_upload_transaction_get_type (void) G_GNUC_CONST;
+#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransactionPrivate))
+enum {
+ PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_DUMMY_PROPERTY
+};
+#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_ENDPOINT_URL "http://uploads.gdata.youtube.com/feeds/api/users/default/uploads"
+#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_UNLISTED_XML "<yt:accessControl action='list' permission='denied'/>"
+#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_PRIVATE_XML "<yt:private/>"
+#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_METADATA_TEMPLATE "<?xml version='1.0'?>\n" \
+" <entry xmlns='http://w" \
+"ww.w3.org/2005/Atom'\n" \
+" xmlns:media='http://se" \
+"arch.yahoo.com/mrss/'\n" \
+" xmlns:yt='http://gdata" \
+".youtube.com/schemas/2007'>\n" \
+" <media:group>\n" \
+" <media:title type=" \
+"'plain'>%s</media:title>\n" \
+" <media:category\n" \
+" scheme='http://gda" \
+"ta.youtube.com/schemas/2007/categories.cat'>People\n" \
+" </media:category>\n" \
+" %s\n" \
+" </media:group>\n" \
+" %s\n" \
+" </entry>"
+PublishingYouTubeUploadTransaction* publishing_you_tube_upload_transaction_new (PublishingRESTSupportGoogleSession* session, PublishingYouTubePublishingParameters* parameters, SpitPublishingPublishable* publishable);
+PublishingYouTubeUploadTransaction* publishing_you_tube_upload_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session, PublishingYouTubePublishingParameters* parameters, SpitPublishingPublishable* publishable);
+static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error);
+static void _vala_SoupBuffer_free (SoupBuffer* self);
+static void _vala_SoupMultipart_free (SoupMultipart* self);
+static void publishing_you_tube_upload_transaction_finalize (PublishingRESTSupportTransaction* obj);
+#define PUBLISHING_YOU_TUBE_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploaderPrivate))
+enum {
+ PUBLISHING_YOU_TUBE_UPLOADER_DUMMY_PROPERTY
+};
+static PublishingRESTSupportTransaction* publishing_you_tube_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable);
+static void publishing_you_tube_uploader_finalize (PublishingRESTSupportBatchUploader* 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);
+
+
+YouTubeService* you_tube_service_construct (GType object_type, GFile* resource_directory) {
+ YouTubeService * self = NULL;
+ GdkPixbuf** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = (YouTubeService*) g_object_new (object_type, NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = you_tube_service_icon_pixbuf_set;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0__length1 = you_tube_service_icon_pixbuf_set_length1;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_tmp0_ == NULL) {
+#line 447 "YouTubePublishing.c"
+ gint _tmp1_ = 0;
+ GdkPixbuf** _tmp2_ = NULL;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" YOU_TUBE_SERVICE_ICON_FILENAME, &_tmp1_);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ you_tube_service_icon_pixbuf_set = (_vala_array_free (you_tube_service_icon_pixbuf_set, you_tube_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ you_tube_service_icon_pixbuf_set = _tmp2_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ you_tube_service_icon_pixbuf_set_length1 = _tmp1_;
+#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _you_tube_service_icon_pixbuf_set_size_ = you_tube_service_icon_pixbuf_set_length1;
+#line 460 "YouTubePublishing.c"
+ }
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self;
+#line 464 "YouTubePublishing.c"
+}
+
+
+YouTubeService* you_tube_service_new (GFile* resource_directory) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return you_tube_service_construct (TYPE_YOU_TUBE_SERVICE, resource_directory);
+#line 471 "YouTubePublishing.c"
+}
+
+
+static gint you_tube_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ YouTubeService * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = min_host_interface;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = max_host_interface;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = _tmp2_;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 493 "YouTubePublishing.c"
+}
+
+
+static const gchar* you_tube_service_real_get_id (SpitPluggable* base) {
+ YouTubeService * self;
+ const gchar* result = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = "org.yorba.shotwell.publishing.youtube";
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 506 "YouTubePublishing.c"
+}
+
+
+static const gchar* you_tube_service_real_get_pluggable_name (SpitPluggable* base) {
+ YouTubeService * self;
+ const gchar* result = NULL;
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = "YouTube";
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 519 "YouTubePublishing.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 526 "YouTubePublishing.c"
+}
+
+
+static GdkPixbuf** _vala_array_dup9 (GdkPixbuf** self, int length) {
+ GdkPixbuf** result;
+ int i;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = g_new0 (GdkPixbuf*, length + 1);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ for (i = 0; i < length; i++) {
+#line 537 "YouTubePublishing.c"
+ GdkPixbuf* _tmp0_ = NULL;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result[i] = _tmp0_;
+#line 543 "YouTubePublishing.c"
+ }
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 547 "YouTubePublishing.c"
+}
+
+
+static void you_tube_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ YouTubeService * self;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GdkPixbuf** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GdkPixbuf** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService);
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (info != NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = g_strdup ("Jani Monoses, Lucas Beeler");
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 ((*info).authors);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).authors = _tmp0_;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = _ ("Copyright 2016 Software Freedom Conservancy Inc.");
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 ((*info).copyright);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).copyright = _tmp2_;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 ((*info).translators);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).translators = _tmp3_;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = g_strdup (_VERSION);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 ((*info).version);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).version = _tmp4_;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 ((*info).website_name);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).website_name = _tmp5_;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 ((*info).website_url);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).website_url = _tmp6_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = g_strdup (RESOURCES_LICENSE);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 ((*info).license);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).license = _tmp7_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = you_tube_service_icon_pixbuf_set;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8__length1 = you_tube_service_icon_pixbuf_set_length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup9 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9__length1 = _tmp8__length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).icons = _tmp9_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*info).icons_length1 = _tmp9__length1;
+#line 629 "YouTubePublishing.c"
+}
+
+
+static SpitPublishingPublisher* you_tube_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) {
+ YouTubeService * self;
+ SpitPublishingPublisher* result = NULL;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingYouTubeYouTubePublisher* _tmp1_ = NULL;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = host;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = publishing_you_tube_you_tube_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 650 "YouTubePublishing.c"
+}
+
+
+static SpitPublishingPublisherMediaType you_tube_service_real_get_supported_media (SpitPublishingService* base) {
+ YouTubeService * self;
+ SpitPublishingPublisherMediaType result = 0;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 663 "YouTubePublishing.c"
+}
+
+
+static void you_tube_service_real_activation (SpitPluggable* base, gboolean enabled) {
+ YouTubeService * self;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService);
+#line 671 "YouTubePublishing.c"
+}
+
+
+static void you_tube_service_class_init (YouTubeServiceClass * klass) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ you_tube_service_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = you_tube_service_finalize;
+#line 680 "YouTubePublishing.c"
+}
+
+
+static void you_tube_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ you_tube_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) you_tube_service_real_get_pluggable_interface;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) you_tube_service_real_get_id;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) you_tube_service_real_get_pluggable_name;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) you_tube_service_real_get_info;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) you_tube_service_real_activation;
+#line 697 "YouTubePublishing.c"
+}
+
+
+static void you_tube_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) {
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ you_tube_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->create_publisher = (SpitPublishingPublisher* (*)(SpitPublishingService*, SpitPublishingPluginHost*)) you_tube_service_real_create_publisher;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->get_supported_media = (SpitPublishingPublisherMediaType (*)(SpitPublishingService*)) you_tube_service_real_get_supported_media;
+#line 708 "YouTubePublishing.c"
+}
+
+
+static void you_tube_service_instance_init (YouTubeService * self) {
+}
+
+
+static void you_tube_service_finalize (GObject* obj) {
+ YouTubeService * self;
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_YOU_TUBE_SERVICE, YouTubeService);
+#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ G_OBJECT_CLASS (you_tube_service_parent_class)->finalize (obj);
+#line 722 "YouTubePublishing.c"
+}
+
+
+GType you_tube_service_get_type (void) {
+ static volatile gsize you_tube_service_type_id__volatile = 0;
+ if (g_once_init_enter (&you_tube_service_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (YouTubeServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) you_tube_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (YouTubeService), 0, (GInstanceInitFunc) you_tube_service_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) you_tube_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) you_tube_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType you_tube_service_type_id;
+ you_tube_service_type_id = g_type_register_static (G_TYPE_OBJECT, "YouTubeService", &g_define_type_info, 0);
+ g_type_add_interface_static (you_tube_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (you_tube_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info);
+ g_once_init_leave (&you_tube_service_type_id__volatile, you_tube_service_type_id);
+ }
+ return you_tube_service_type_id__volatile;
+}
+
+
+GType publishing_you_tube_privacy_setting_get_type (void) {
+ static volatile gsize publishing_you_tube_privacy_setting_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_you_tube_privacy_setting_type_id__volatile)) {
+ static const GEnumValue values[] = {{PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC, "PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC", "public"}, {PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED, "PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED", "unlisted"}, {PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE, "PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE", "private"}, {0, NULL, NULL}};
+ GType publishing_you_tube_privacy_setting_type_id;
+ publishing_you_tube_privacy_setting_type_id = g_enum_register_static ("PublishingYouTubePrivacySetting", values);
+ g_once_init_leave (&publishing_you_tube_privacy_setting_type_id__volatile, publishing_you_tube_privacy_setting_type_id);
+ }
+ return publishing_you_tube_privacy_setting_type_id__volatile;
+}
+
+
+PublishingYouTubePublishingParameters* publishing_you_tube_publishing_parameters_construct (GType object_type) {
+ PublishingYouTubePublishingParameters* self = NULL;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = (PublishingYouTubePublishingParameters*) g_type_create_instance (object_type);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->privacy = PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->priv->channel_name);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->channel_name = NULL;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->priv->user_name);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->user_name = NULL;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self;
+#line 770 "YouTubePublishing.c"
+}
+
+
+PublishingYouTubePublishingParameters* publishing_you_tube_publishing_parameters_new (void) {
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return publishing_you_tube_publishing_parameters_construct (PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS);
+#line 777 "YouTubePublishing.c"
+}
+
+
+PublishingYouTubePrivacySetting publishing_you_tube_publishing_parameters_get_privacy (PublishingYouTubePublishingParameters* self) {
+ PublishingYouTubePrivacySetting result = 0;
+ PublishingYouTubePrivacySetting _tmp0_ = 0;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self), 0);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = self->priv->privacy;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = _tmp0_;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 792 "YouTubePublishing.c"
+}
+
+
+void publishing_you_tube_publishing_parameters_set_privacy (PublishingYouTubePublishingParameters* self, PublishingYouTubePrivacySetting privacy) {
+ PublishingYouTubePrivacySetting _tmp0_ = 0;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self));
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = privacy;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->privacy = _tmp0_;
+#line 804 "YouTubePublishing.c"
+}
+
+
+gchar* publishing_you_tube_publishing_parameters_get_channel_name (PublishingYouTubePublishingParameters* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = self->priv->channel_name;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = _tmp1_;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 822 "YouTubePublishing.c"
+}
+
+
+void publishing_you_tube_publishing_parameters_set_channel_name (PublishingYouTubePublishingParameters* self, const gchar* channel_name) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self));
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = channel_name;
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->priv->channel_name);
+#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->channel_name = _tmp1_;
+#line 839 "YouTubePublishing.c"
+}
+
+
+gchar* publishing_you_tube_publishing_parameters_get_user_name (PublishingYouTubePublishingParameters* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self), NULL);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = self->priv->user_name;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = _tmp1_;
+#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 857 "YouTubePublishing.c"
+}
+
+
+void publishing_you_tube_publishing_parameters_set_user_name (PublishingYouTubePublishingParameters* self, const gchar* user_name) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self));
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = user_name;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->priv->user_name);
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->user_name = _tmp1_;
+#line 874 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_value_publishing_parameters_init (GValue* value) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 881 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_value_publishing_parameters_free_value (GValue* value) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_parameters_unref (value->data[0].v_pointer);
+#line 890 "YouTubePublishing.c"
+ }
+}
+
+
+static void publishing_you_tube_value_publishing_parameters_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ dest_value->data[0].v_pointer = publishing_you_tube_publishing_parameters_ref (src_value->data[0].v_pointer);
+#line 900 "YouTubePublishing.c"
+ } else {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 904 "YouTubePublishing.c"
+ }
+}
+
+
+static gpointer publishing_you_tube_value_publishing_parameters_peek_pointer (const GValue* value) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return value->data[0].v_pointer;
+#line 912 "YouTubePublishing.c"
+}
+
+
+static gchar* publishing_you_tube_value_publishing_parameters_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 919 "YouTubePublishing.c"
+ PublishingYouTubePublishingParameters* object;
+ object = collect_values[0].v_pointer;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 926 "YouTubePublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.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 930 "YouTubePublishing.c"
+ }
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = publishing_you_tube_publishing_parameters_ref (object);
+#line 934 "YouTubePublishing.c"
+ } else {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 938 "YouTubePublishing.c"
+ }
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return NULL;
+#line 942 "YouTubePublishing.c"
+}
+
+
+static gchar* publishing_you_tube_value_publishing_parameters_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingYouTubePublishingParameters** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!object_p) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 953 "YouTubePublishing.c"
+ }
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *object_p = NULL;
+#line 959 "YouTubePublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 963 "YouTubePublishing.c"
+ } else {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *object_p = publishing_you_tube_publishing_parameters_ref (value->data[0].v_pointer);
+#line 967 "YouTubePublishing.c"
+ }
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return NULL;
+#line 971 "YouTubePublishing.c"
+}
+
+
+GParamSpec* publishing_you_tube_param_spec_publishing_parameters (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingYouTubeParamSpecPublishingParameters* spec;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 985 "YouTubePublishing.c"
+}
+
+
+gpointer publishing_you_tube_value_get_publishing_parameters (const GValue* value) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS), NULL);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return value->data[0].v_pointer;
+#line 994 "YouTubePublishing.c"
+}
+
+
+void publishing_you_tube_value_set_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingYouTubePublishingParameters* old;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS));
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (v_object) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS));
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_parameters_ref (value->data[0].v_pointer);
+#line 1014 "YouTubePublishing.c"
+ } else {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1018 "YouTubePublishing.c"
+ }
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (old) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_parameters_unref (old);
+#line 1024 "YouTubePublishing.c"
+ }
+}
+
+
+void publishing_you_tube_value_take_publishing_parameters (GValue* value, gpointer v_object) {
+ PublishingYouTubePublishingParameters* old;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS));
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (v_object) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS));
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 1043 "YouTubePublishing.c"
+ } else {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 1047 "YouTubePublishing.c"
+ }
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (old) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_parameters_unref (old);
+#line 1053 "YouTubePublishing.c"
+ }
+}
+
+
+static void publishing_you_tube_publishing_parameters_class_init (PublishingYouTubePublishingParametersClass * klass) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_parameters_parent_class = g_type_class_peek_parent (klass);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingYouTubePublishingParametersClass *) klass)->finalize = publishing_you_tube_publishing_parameters_finalize;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingYouTubePublishingParametersPrivate));
+#line 1065 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_parameters_instance_init (PublishingYouTubePublishingParameters * self) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv = PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_PRIVATE (self);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->ref_count = 1;
+#line 1074 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_parameters_finalize (PublishingYouTubePublishingParameters* obj) {
+ PublishingYouTubePublishingParameters * self;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParameters);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->priv->channel_name);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->priv->user_name);
+#line 1088 "YouTubePublishing.c"
+}
+
+
+GType publishing_you_tube_publishing_parameters_get_type (void) {
+ static volatile gsize publishing_you_tube_publishing_parameters_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_you_tube_publishing_parameters_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_you_tube_value_publishing_parameters_init, publishing_you_tube_value_publishing_parameters_free_value, publishing_you_tube_value_publishing_parameters_copy_value, publishing_you_tube_value_publishing_parameters_peek_pointer, "p", publishing_you_tube_value_publishing_parameters_collect_value, "p", publishing_you_tube_value_publishing_parameters_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubePublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubePublishingParameters), 0, (GInstanceInitFunc) publishing_you_tube_publishing_parameters_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 publishing_you_tube_publishing_parameters_type_id;
+ publishing_you_tube_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingYouTubePublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_you_tube_publishing_parameters_type_id__volatile, publishing_you_tube_publishing_parameters_type_id);
+ }
+ return publishing_you_tube_publishing_parameters_type_id__volatile;
+}
+
+
+gpointer publishing_you_tube_publishing_parameters_ref (gpointer instance) {
+ PublishingYouTubePublishingParameters* self;
+ self = instance;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return instance;
+#line 1113 "YouTubePublishing.c"
+}
+
+
+void publishing_you_tube_publishing_parameters_unref (gpointer instance) {
+ PublishingYouTubePublishingParameters* self;
+ self = instance;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1126 "YouTubePublishing.c"
+ }
+}
+
+
+PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) {
+ PublishingYouTubeYouTubePublisher * self = NULL;
+ SpitPublishingService* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp4_ = NULL;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL);
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = service;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = host;
+#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = (PublishingYouTubeYouTubePublisher*) publishing_rest_support_google_publisher_construct (object_type, _tmp0_, _tmp1_, "https://gdata.youtube.com/");
+#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->running = FALSE;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = host;
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", NULL);
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->priv->refresh_token);
+#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->refresh_token = _tmp3_;
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = publishing_you_tube_publishing_parameters_new ();
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters);
+#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->publishing_parameters = _tmp4_;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self;
+#line 1180 "YouTubePublishing.c"
+}
+
+
+PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) {
+#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return publishing_you_tube_you_tube_publisher_construct (PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, service, host);
+#line 1187 "YouTubePublishing.c"
+}
+
+
+static gboolean publishing_you_tube_you_tube_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base) {
+ PublishingYouTubeYouTubePublisher * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher);
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = self->priv->running;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = _tmp0_;
+#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 1203 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_real_start (PublishingRESTSupportGooglePublisher* base) {
+ PublishingYouTubeYouTubePublisher * self;
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher);
+#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:141: YouTubePublisher: started.");
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_tmp0_) {
+#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 1221 "YouTubePublishing.c"
+ }
+#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->running = TRUE;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = self->priv->refresh_token;
+#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_tmp1_ == NULL) {
+#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_do_show_service_welcome_pane (self);
+#line 1231 "YouTubePublishing.c"
+ } else {
+ const gchar* _tmp2_ = NULL;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = self->priv->refresh_token;
+#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_rest_support_google_publisher_start_oauth_flow (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher), _tmp2_);
+#line 1238 "YouTubePublishing.c"
+ }
+}
+
+
+static void publishing_you_tube_you_tube_publisher_real_stop (PublishingRESTSupportGooglePublisher* base) {
+ PublishingYouTubeYouTubePublisher * self;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher);
+#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:155: YouTubePublisher: stopped.");
+#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->running = FALSE;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = _tmp0_;
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_rest_support_session_stop_transactions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 1261 "YouTubePublishing.c"
+}
+
+
+static gchar* publishing_you_tube_you_tube_publisher_extract_channel_name_helper (PublishingYouTubeYouTubePublisher* self, xmlNode* document_root, GError** error) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ gchar* _tmp0_ = NULL;
+ xmlNode* doc_node_iter = NULL;
+ xmlNode* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp34_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self), NULL);
+#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = g_strdup ("");
+#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _result_ = _tmp0_;
+#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ doc_node_iter = NULL;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = document_root;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = _tmp1_->name;
+#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (g_strcmp0 (_tmp2_, "feed") == 0) {
+#line 1288 "YouTubePublishing.c"
+ xmlNode* _tmp3_ = NULL;
+ xmlNode* _tmp4_ = NULL;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = document_root;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = _tmp3_->children;
+#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ doc_node_iter = _tmp4_;
+#line 1297 "YouTubePublishing.c"
+ } else {
+ xmlNode* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = document_root;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = _tmp5_->name;
+#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (g_strcmp0 (_tmp6_, "entry") == 0) {
+#line 1307 "YouTubePublishing.c"
+ xmlNode* _tmp7_ = NULL;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = document_root;
+#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ doc_node_iter = _tmp7_;
+#line 1313 "YouTubePublishing.c"
+ } else {
+ GError* _tmp8_ = NULL;
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "response root node isn't a <feed> or <entry>");
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _inner_error_ = _tmp8_;
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_result_);
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return NULL;
+#line 1328 "YouTubePublishing.c"
+ } else {
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_result_);
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.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 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return NULL;
+#line 1338 "YouTubePublishing.c"
+ }
+ }
+ }
+ {
+ gboolean _tmp9_ = FALSE;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = TRUE;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ while (TRUE) {
+#line 1348 "YouTubePublishing.c"
+ xmlNode* _tmp12_ = NULL;
+ xmlNode* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ gchar* name_val = NULL;
+ gchar* url_val = NULL;
+ xmlNode* channel_node_iter = NULL;
+ xmlNode* _tmp15_ = NULL;
+ xmlNode* _tmp16_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ gchar* _tmp33_ = NULL;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp9_) {
+#line 1361 "YouTubePublishing.c"
+ xmlNode* _tmp10_ = NULL;
+ xmlNode* _tmp11_ = NULL;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp10_ = doc_node_iter;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp11_ = _tmp10_->next;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ doc_node_iter = _tmp11_;
+#line 1370 "YouTubePublishing.c"
+ }
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = FALSE;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp12_ = doc_node_iter;
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!(_tmp12_ != NULL)) {
+#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ break;
+#line 1380 "YouTubePublishing.c"
+ }
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp13_ = doc_node_iter;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp14_ = _tmp13_->name;
+#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (g_strcmp0 (_tmp14_, "entry") != 0) {
+#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ continue;
+#line 1390 "YouTubePublishing.c"
+ }
+#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ name_val = NULL;
+#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ url_val = NULL;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp15_ = doc_node_iter;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp16_ = _tmp15_->children;
+#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ channel_node_iter = _tmp16_;
+#line 1402 "YouTubePublishing.c"
+ {
+ gboolean _tmp17_ = FALSE;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp17_ = TRUE;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ while (TRUE) {
+#line 1409 "YouTubePublishing.c"
+ xmlNode* _tmp20_ = NULL;
+ xmlNode* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp17_) {
+#line 1415 "YouTubePublishing.c"
+ xmlNode* _tmp18_ = NULL;
+ xmlNode* _tmp19_ = NULL;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp18_ = channel_node_iter;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp19_ = _tmp18_->next;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ channel_node_iter = _tmp19_;
+#line 1424 "YouTubePublishing.c"
+ }
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp17_ = FALSE;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp20_ = channel_node_iter;
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!(_tmp20_ != NULL)) {
+#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ break;
+#line 1434 "YouTubePublishing.c"
+ }
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp21_ = channel_node_iter;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp22_ = _tmp21_->name;
+#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (g_strcmp0 (_tmp22_, "title") == 0) {
+#line 1442 "YouTubePublishing.c"
+ xmlNode* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp23_ = channel_node_iter;
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp24_ = (gchar*) xmlNodeGetContent (_tmp23_);
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (name_val);
+#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ name_val = _tmp24_;
+#line 1453 "YouTubePublishing.c"
+ } else {
+ xmlNode* _tmp25_ = NULL;
+ const gchar* _tmp26_ = NULL;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp25_ = channel_node_iter;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp26_ = _tmp25_->name;
+#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (g_strcmp0 (_tmp26_, "id") == 0) {
+#line 1463 "YouTubePublishing.c"
+ xmlNode* _tmp27_ = NULL;
+ xmlNs* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+ xmlNode* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp27_ = channel_node_iter;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp28_ = _tmp27_->ns;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp29_ = _tmp28_->prefix;
+#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_tmp29_ != NULL) {
+#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ continue;
+#line 1479 "YouTubePublishing.c"
+ }
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp30_ = channel_node_iter;
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp31_ = (gchar*) xmlNodeGetContent (_tmp30_);
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (url_val);
+#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ url_val = _tmp31_;
+#line 1489 "YouTubePublishing.c"
+ }
+ }
+ }
+ }
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp32_ = name_val;
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp33_ = g_strdup (_tmp32_);
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_result_);
+#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _result_ = _tmp33_;
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (url_val);
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (name_val);
+#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ break;
+#line 1508 "YouTubePublishing.c"
+ }
+ }
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp34_ = _result_;
+#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:199: YouTubePublisher: extracted channel name '" \
+"%s' from response XML.", _tmp34_);
+#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = _result_;
+#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 1519 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_on_service_welcome_login (PublishingYouTubeYouTubePublisher* self) {
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:205: EVENT: user clicked 'Login' in welcome pan" \
+"e.");
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp0_) {
+#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 1536 "YouTubePublishing.c"
+ }
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = self->priv->refresh_token;
+#line 210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_rest_support_google_publisher_start_oauth_flow (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher), _tmp1_);
+#line 1542 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base) {
+ PublishingYouTubeYouTubePublisher * self;
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp5_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp6_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher);
+#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:214: EVENT: OAuth login flow complete.");
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = _tmp1_;
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = publishing_rest_support_google_session_get_refresh_token (_tmp2_);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", _tmp4_);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp4_);
+#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp2_);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = self->priv->publishing_parameters;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = publishing_rest_support_google_session_get_user_name (_tmp7_);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_parameters_set_user_name (_tmp5_, _tmp9_);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp9_);
+#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp7_);
+#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_do_fetch_account_information (self);
+#line 1596 "YouTubePublishing.c"
+}
+
+
+static void _publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) {
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_complete ((PublishingYouTubeYouTubePublisher*) self, _sender);
+#line 1603 "YouTubePublishing.c"
+}
+
+
+static void _publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, GError* err, gpointer self) {
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_error ((PublishingYouTubeYouTubePublisher*) self, _sender, err);
+#line 1610 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_complete (PublishingYouTubeYouTubePublisher* self, PublishingRESTSupportTransaction* txn) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ PublishingRESTSupportTransaction* _tmp5_ = NULL;
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn));
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = txn;
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = txn;
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:227: EVENT: finished fetching account and chann" \
+"el information.");
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp4_) {
+#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 1645 "YouTubePublishing.c"
+ }
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = txn;
+#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_do_parse_and_display_account_information (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_TYPE_CHANNEL_DIRECTORY_TRANSACTION, PublishingYouTubeYouTubePublisherChannelDirectoryTransaction));
+#line 1651 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_error (PublishingYouTubeYouTubePublisher* self, PublishingRESTSupportTransaction* bad_txn, GError* err) {
+ PublishingRESTSupportTransaction* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportTransaction* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ PublishingRESTSupportTransaction* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ SpitPublishingPluginHost* _tmp8_ = NULL;
+ GError* _tmp9_ = NULL;
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn));
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = bad_txn;
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE);
+#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_complete_publishing_rest_support_transaction_completed, self);
+#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = bad_txn;
+#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE);
+#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_error_publishing_rest_support_transaction_network_error, self);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = bad_txn;
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = publishing_rest_support_transaction_get_response (_tmp4_);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = _tmp5_;
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:240: EVENT: fetching account and channel inform" \
+"ation failed; response = '%s'.", _tmp6_);
+#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp6_);
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp7_) {
+#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 1698 "YouTubePublishing.c"
+ }
+#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = err;
+#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp8_, _tmp9_);
+#line 1706 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_on_publishing_options_logout (PublishingYouTubeYouTubePublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:250: EVENT: user clicked 'Logout' in the publis" \
+"hing options pane.");
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp0_) {
+#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 1722 "YouTubePublishing.c"
+ }
+#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_rest_support_google_publisher_do_logout (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 1726 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_on_publishing_options_publish (PublishingYouTubeYouTubePublisher* self) {
+ gboolean _tmp0_ = FALSE;
+#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:259: EVENT: user clicked 'Publish' in the publi" \
+"shing options pane.");
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp0_) {
+#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 1742 "YouTubePublishing.c"
+ }
+#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_do_upload (self);
+#line 1746 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_on_upload_status_updated (PublishingYouTubeYouTubePublisher* self, gint file_number, gdouble completed_fraction) {
+ gdouble _tmp0_ = 0.0;
+ SpitPublishingProgressCallback _tmp1_ = NULL;
+ void* _tmp1__target = NULL;
+ gboolean _tmp2_ = FALSE;
+ SpitPublishingProgressCallback _tmp3_ = NULL;
+ void* _tmp3__target = NULL;
+ gint _tmp4_ = 0;
+ gdouble _tmp5_ = 0.0;
+#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = completed_fraction;
+#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:268: EVENT: uploader reports upload %.2f percen" \
+"t complete.", 100.0 * _tmp0_);
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = self->priv->progress_reporter;
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1__target = self->priv->progress_reporter_target;
+#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _vala_assert (_tmp1_ != NULL, "progress_reporter != null");
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp2_) {
+#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 1777 "YouTubePublishing.c"
+ }
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = self->priv->progress_reporter;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3__target = self->priv->progress_reporter_target;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = file_number;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = completed_fraction;
+#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ (_tmp4_, _tmp5_, _tmp3__target);
+#line 1789 "YouTubePublishing.c"
+}
+
+
+static void _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, gint num_photos_published, gpointer self) {
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_on_upload_complete ((PublishingYouTubeYouTubePublisher*) self, _sender, num_photos_published);
+#line 1796 "YouTubePublishing.c"
+}
+
+
+static void _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, GError* err, gpointer self) {
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_on_upload_error ((PublishingYouTubeYouTubePublisher*) self, _sender, err);
+#line 1803 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_on_upload_complete (PublishingYouTubeYouTubePublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) {
+ PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gint _tmp4_ = 0;
+ gboolean _tmp5_ = FALSE;
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = uploader;
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = uploader;
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = num_published;
+#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:283: EVENT: uploader reports upload complete; %" \
+"d items published.", _tmp4_);
+#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp5_) {
+#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 1840 "YouTubePublishing.c"
+ }
+#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_do_show_success_pane (self);
+#line 1844 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_on_upload_error (PublishingYouTubeYouTubePublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err) {
+ PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+ gboolean _tmp4_ = FALSE;
+ GError* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader));
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = uploader;
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE);
+#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self);
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = uploader;
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE);
+#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self);
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp4_) {
+#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 1880 "YouTubePublishing.c"
+ }
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = err;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = _tmp5_->message;
+#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:299: EVENT: uploader reports upload error = '%s" \
+"'.", _tmp6_);
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = err;
+#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
+#line 1894 "YouTubePublishing.c"
+}
+
+
+static void _publishing_you_tube_you_tube_publisher_on_service_welcome_login_spit_publishing_login_callback (gpointer self) {
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_on_service_welcome_login ((PublishingYouTubeYouTubePublisher*) self);
+#line 1901 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_do_show_service_welcome_pane (PublishingYouTubeYouTubePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:305: ACTION: showing service welcome pane.");
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_install_welcome_pane (_tmp0_, PUBLISHING_YOU_TUBE_SERVICE_WELCOME_MESSAGE, _publishing_you_tube_you_tube_publisher_on_service_welcome_login_spit_publishing_login_callback, self);
+#line 1915 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_do_fetch_account_information (PublishingYouTubeYouTubePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* directory_trans = NULL;
+ PublishingRESTSupportGoogleSession* _tmp2_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp3_ = NULL;
+ PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* _tmp4_ = NULL;
+ PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* _tmp5_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:311: ACTION: fetching channel information.");
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp0_);
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = publishing_you_tube_you_tube_publisher_channel_directory_transaction_new (_tmp3_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp3_);
+#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ directory_trans = _tmp5_;
+#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_error_publishing_rest_support_transaction_network_error, self, 0);
+#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_complete_publishing_rest_support_transaction_completed, self, 0);
+#line 1956 "YouTubePublishing.c"
+ {
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 1964 "YouTubePublishing.c"
+ goto __catch27_spit_publishing_publishing_error;
+ }
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (directory_trans);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 1975 "YouTubePublishing.c"
+ }
+ }
+ goto __finally27;
+ __catch27_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ GError* _tmp6_ = NULL;
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ err = _inner_error_;
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _inner_error_ = NULL;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = err;
+#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_on_initial_channel_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp6_);
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_error_free0 (err);
+#line 1993 "YouTubePublishing.c"
+ }
+ __finally27:
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (directory_trans);
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.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 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 2006 "YouTubePublishing.c"
+ }
+#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_transaction_unref0 (directory_trans);
+#line 2010 "YouTubePublishing.c"
+}
+
+
+static gchar* _publishing_you_tube_you_tube_publisher_channel_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, gpointer self) {
+ gchar* result;
+ result = publishing_you_tube_you_tube_publisher_channel_directory_transaction_validate_xml (doc);
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 2019 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_do_parse_and_display_account_information (PublishingYouTubeYouTubePublisher* self, PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* transaction) {
+ PublishingRESTSupportXmlDocument* response_doc = NULL;
+ GError * _inner_error_ = NULL;
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_IS_CHANNEL_DIRECTORY_TRANSACTION (transaction));
+#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:329: ACTION: extracting account and channel inf" \
+"ormation from body of server response");
+#line 2032 "YouTubePublishing.c"
+ {
+ PublishingRESTSupportXmlDocument* _tmp0_ = NULL;
+ PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp4_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp5_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp6_ = NULL;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = transaction;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = _tmp2_;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = publishing_rest_support_xml_document_parse_string (_tmp3_, _publishing_you_tube_you_tube_publisher_channel_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_);
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = _tmp4_;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp3_);
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = _tmp5_;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2059 "YouTubePublishing.c"
+ goto __catch28_spit_publishing_publishing_error;
+ }
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 2070 "YouTubePublishing.c"
+ }
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = _tmp0_;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = NULL;
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ response_doc = _tmp6_;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (_tmp0_);
+#line 2082 "YouTubePublishing.c"
+ }
+ goto __finally28;
+ __catch28_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ GError* _tmp8_ = NULL;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ err = _inner_error_;
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _inner_error_ = NULL;
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = err;
+#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_error_free0 (err);
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 2106 "YouTubePublishing.c"
+ }
+ __finally28:
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.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 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 2119 "YouTubePublishing.c"
+ }
+ {
+ gchar* _tmp9_ = NULL;
+ PublishingRESTSupportXmlDocument* _tmp10_ = NULL;
+ xmlNode* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp13_ = NULL;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp10_ = response_doc;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp11_ = publishing_rest_support_xml_document_get_root_node (_tmp10_);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp12_ = publishing_you_tube_you_tube_publisher_extract_channel_name_helper (self, _tmp11_, &_inner_error_);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = _tmp12_;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 2139 "YouTubePublishing.c"
+ goto __catch29_spit_publishing_publishing_error;
+ }
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 2150 "YouTubePublishing.c"
+ }
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp13_ = self->priv->publishing_parameters;
+#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_parameters_set_channel_name (_tmp13_, _tmp9_);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp9_);
+#line 2158 "YouTubePublishing.c"
+ }
+ goto __finally29;
+ __catch29_spit_publishing_publishing_error:
+ {
+ GError* err = NULL;
+ SpitPublishingPluginHost* _tmp14_ = NULL;
+ GError* _tmp15_ = NULL;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ err = _inner_error_;
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _inner_error_ = NULL;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp14_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp15_ = err;
+#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp14_, _tmp15_);
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_error_free0 (err);
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 2182 "YouTubePublishing.c"
+ }
+ __finally29:
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.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 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 2195 "YouTubePublishing.c"
+ }
+#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_do_show_publishing_options_pane (self);
+#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_xml_document_unref0 (response_doc);
+#line 2201 "YouTubePublishing.c"
+}
+
+
+static void _publishing_you_tube_you_tube_publisher_on_publishing_options_publish_publishing_you_tube_publishing_options_pane_publish (PublishingYouTubePublishingOptionsPane* _sender, gpointer self) {
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_on_publishing_options_publish ((PublishingYouTubeYouTubePublisher*) self);
+#line 2208 "YouTubePublishing.c"
+}
+
+
+static void _publishing_you_tube_you_tube_publisher_on_publishing_options_logout_publishing_you_tube_publishing_options_pane_logout (PublishingYouTubePublishingOptionsPane* _sender, gpointer self) {
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_on_publishing_options_logout ((PublishingYouTubeYouTubePublisher*) self);
+#line 2215 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_do_show_publishing_options_pane (PublishingYouTubeYouTubePublisher* self) {
+ GtkBuilder* builder = NULL;
+ GtkBuilder* _tmp0_ = NULL;
+ PublishingYouTubePublishingOptionsPane* opts_pane = NULL;
+ SpitPublishingPluginHost* _tmp8_ = NULL;
+ GtkBuilder* _tmp9_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp10_ = NULL;
+ PublishingYouTubePublishingOptionsPane* _tmp11_ = NULL;
+ PublishingYouTubePublishingOptionsPane* _tmp12_ = NULL;
+ PublishingYouTubePublishingOptionsPane* _tmp13_ = NULL;
+ SpitPublishingPluginHost* _tmp14_ = NULL;
+ PublishingYouTubePublishingOptionsPane* _tmp15_ = NULL;
+ SpitPublishingPluginHost* _tmp16_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:352: ACTION: showing publishing options pane.");
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = gtk_builder_new ();
+#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ builder = _tmp0_;
+#line 2241 "YouTubePublishing.c"
+ {
+ GtkBuilder* _tmp1_ = NULL;
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = builder;
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/youtube_publishing_options_pane.ui", &_inner_error_);
+#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 2250 "YouTubePublishing.c"
+ goto __catch30_g_error;
+ }
+ }
+ goto __finally30;
+ __catch30_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ SpitPublishingPluginHost* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ GError* _tmp6_ = NULL;
+ GError* _tmp7_ = NULL;
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ e = _inner_error_;
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _inner_error_ = NULL;
+#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = e;
+#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = _tmp2_->message;
+#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_warning ("YouTubePublishing.vala:360: Could not parse UI file! Error: %s.", _tmp3_);
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = _ ("A file required for publishing is unavailable. Publishing to Youtube c" \
+"an't continue.");
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp5_);
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = _tmp6_;
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_post_error (_tmp4_, _tmp7_);
+#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_error_free0 (_tmp7_);
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_error_free0 (e);
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (builder);
+#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 2292 "YouTubePublishing.c"
+ }
+ __finally30:
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (builder);
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.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 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 2305 "YouTubePublishing.c"
+ }
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = builder;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp10_ = self->priv->publishing_parameters;
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp11_ = publishing_you_tube_publishing_options_pane_new (_tmp8_, _tmp9_, _tmp10_);
+#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ opts_pane = _tmp11_;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp12_ = opts_pane;
+#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_connect_object (_tmp12_, "publish", (GCallback) _publishing_you_tube_you_tube_publisher_on_publishing_options_publish_publishing_you_tube_publishing_options_pane_publish, self, 0);
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp13_ = opts_pane;
+#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_connect_object (_tmp13_, "logout", (GCallback) _publishing_you_tube_you_tube_publisher_on_publishing_options_logout_publishing_you_tube_publishing_options_pane_logout, self, 0);
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp14_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp15_ = opts_pane;
+#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_install_dialog_pane (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp16_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp16_, FALSE);
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (opts_pane);
+#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (builder);
+#line 2339 "YouTubePublishing.c"
+}
+
+
+static void _publishing_you_tube_you_tube_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, gdouble fraction_complete, gpointer self) {
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_on_upload_status_updated ((PublishingYouTubeYouTubePublisher*) self, file_number, fraction_complete);
+#line 2346 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_do_upload (PublishingYouTubeYouTubePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+ void* _tmp3_ = NULL;
+ GDestroyNotify _tmp4_ = NULL;
+ SpitPublishingProgressCallback _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ SpitPublishingPublishable** publishables = NULL;
+ SpitPublishingPluginHost* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+ SpitPublishingPublishable** _tmp9_ = NULL;
+ gint publishables_length1 = 0;
+ gint _publishables_size_ = 0;
+ PublishingYouTubeUploader* uploader = NULL;
+ PublishingRESTSupportGoogleSession* _tmp10_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp11_ = NULL;
+ SpitPublishingPublishable** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ PublishingYouTubePublishingParameters* _tmp13_ = NULL;
+ PublishingYouTubeUploader* _tmp14_ = NULL;
+ PublishingYouTubeUploader* _tmp15_ = NULL;
+ PublishingYouTubeUploader* _tmp16_ = NULL;
+ PublishingYouTubeUploader* _tmp17_ = NULL;
+ PublishingYouTubeUploader* _tmp18_ = NULL;
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:377: ACTION: uploading media items to remote se" \
+"rver.");
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE);
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = spit_publishing_plugin_host_serialize_publishables (_tmp2_, -1, FALSE, &_tmp3_, &_tmp4_);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter = _tmp5_;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter_target = _tmp3_;
+#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = _tmp4_;
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!_tmp6_) {
+#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 2411 "YouTubePublishing.c"
+ }
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = spit_publishing_plugin_host_get_publishables (_tmp7_, &_tmp8_);
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishables = _tmp9_;
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishables_length1 = _tmp8_;
+#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishables_size_ = publishables_length1;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp10_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp11_ = _tmp10_;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp12_ = publishables;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp12__length1 = publishables_length1;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp13_ = self->priv->publishing_parameters;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp14_ = publishing_you_tube_uploader_new (_tmp11_, _tmp12_, _tmp12__length1, _tmp13_);
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp15_ = _tmp14_;
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp11_);
+#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ uploader = _tmp15_;
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp16_ = uploader;
+#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0);
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp17_ = uploader;
+#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0);
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp18_ = uploader;
+#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_you_tube_you_tube_publisher_on_upload_status_updated_spit_publishing_progress_callback, self);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_batch_uploader_unref0 (uploader);
+#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 2457 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_do_show_success_pane (PublishingYouTubeYouTubePublisher* self) {
+ SpitPublishingPluginHost* _tmp0_ = NULL;
+ SpitPublishingPluginHost* _tmp1_ = NULL;
+#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self));
+#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:402: ACTION: showing success pane.");
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE);
+#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_publishing_plugin_host_install_success_pane (_tmp1_);
+#line 2476 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base) {
+ PublishingYouTubeYouTubePublisher * self;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp2_ = NULL;
+#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher);
+#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_debug ("YouTubePublishing.vala:409: ACTION: logging out user.");
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = _tmp0_;
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_rest_support_google_session_deauthenticate (_tmp1_);
+#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->priv->refresh_token);
+#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->refresh_token = NULL;
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spit_host_interface_unset_config_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token");
+#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_do_show_service_welcome_pane (self);
+#line 2507 "YouTubePublishing.c"
+}
+
+
+static PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* publishing_you_tube_you_tube_publisher_channel_directory_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session) {
+ PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* self = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL);
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = session;
+#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = (PublishingYouTubeYouTubePublisherChannelDirectoryTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, _tmp0_, PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_CHANNEL_DIRECTORY_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET);
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self;
+#line 2522 "YouTubePublishing.c"
+}
+
+
+static PublishingYouTubeYouTubePublisherChannelDirectoryTransaction* publishing_you_tube_you_tube_publisher_channel_directory_transaction_new (PublishingRESTSupportGoogleSession* session) {
+#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return publishing_you_tube_you_tube_publisher_channel_directory_transaction_construct (PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_TYPE_CHANNEL_DIRECTORY_TRANSACTION, session);
+#line 2529 "YouTubePublishing.c"
+}
+
+
+static gchar* publishing_you_tube_you_tube_publisher_channel_directory_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) {
+ gchar* result = NULL;
+ xmlNode* document_root = NULL;
+ PublishingRESTSupportXmlDocument* _tmp0_ = NULL;
+ xmlNode* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ xmlNode* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = doc;
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = publishing_rest_support_xml_document_get_root_node (_tmp0_);
+#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ document_root = _tmp1_;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = document_root;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = _tmp3_->name;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (g_strcmp0 (_tmp4_, "feed") == 0) {
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = TRUE;
+#line 2557 "YouTubePublishing.c"
+ } else {
+ xmlNode* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = document_root;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = _tmp5_->name;
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = g_strcmp0 (_tmp6_, "entry") == 0;
+#line 2567 "YouTubePublishing.c"
+ }
+#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_tmp2_) {
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = NULL;
+#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 2575 "YouTubePublishing.c"
+ } else {
+ gchar* _tmp7_ = NULL;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = g_strdup ("response root node isn't a <feed> or <entry>");
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = _tmp7_;
+#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 2584 "YouTubePublishing.c"
+ }
+}
+
+
+static void publishing_you_tube_you_tube_publisher_channel_directory_transaction_class_init (PublishingYouTubeYouTubePublisherChannelDirectoryTransactionClass * klass) {
+#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_channel_directory_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 2592 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_channel_directory_transaction_instance_init (PublishingYouTubeYouTubePublisherChannelDirectoryTransaction * self) {
+}
+
+
+static GType publishing_you_tube_you_tube_publisher_channel_directory_transaction_get_type (void) {
+ static volatile gsize publishing_you_tube_you_tube_publisher_channel_directory_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_you_tube_you_tube_publisher_channel_directory_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeYouTubePublisherChannelDirectoryTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_you_tube_publisher_channel_directory_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeYouTubePublisherChannelDirectoryTransaction), 0, (GInstanceInitFunc) publishing_you_tube_you_tube_publisher_channel_directory_transaction_instance_init, NULL };
+ GType publishing_you_tube_you_tube_publisher_channel_directory_transaction_type_id;
+ publishing_you_tube_you_tube_publisher_channel_directory_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingYouTubeYouTubePublisherChannelDirectoryTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_you_tube_you_tube_publisher_channel_directory_transaction_type_id__volatile, publishing_you_tube_you_tube_publisher_channel_directory_transaction_type_id);
+ }
+ return publishing_you_tube_you_tube_publisher_channel_directory_transaction_type_id__volatile;
+}
+
+
+static void publishing_you_tube_you_tube_publisher_class_init (PublishingYouTubeYouTubePublisherClass * klass) {
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_you_tube_publisher_parent_class = g_type_class_peek_parent (klass);
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingYouTubeYouTubePublisherPrivate));
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->is_running = publishing_you_tube_you_tube_publisher_real_is_running;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->start = publishing_you_tube_you_tube_publisher_real_start;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->stop = publishing_you_tube_you_tube_publisher_real_stop;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->on_login_flow_complete = publishing_you_tube_you_tube_publisher_real_on_login_flow_complete;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingRESTSupportGooglePublisherClass *) klass)->do_logout = publishing_you_tube_you_tube_publisher_real_do_logout;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_you_tube_you_tube_publisher_finalize;
+#line 2629 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_instance_init (PublishingYouTubeYouTubePublisher * self) {
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv = PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_GET_PRIVATE (self);
+#line 2636 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_you_tube_publisher_finalize (GObject* obj) {
+ PublishingYouTubeYouTubePublisher * self;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher);
+#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->priv->refresh_token);
+#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL);
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter = NULL;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter_target = NULL;
+#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->progress_reporter_target_destroy_notify = NULL;
+#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ G_OBJECT_CLASS (publishing_you_tube_you_tube_publisher_parent_class)->finalize (obj);
+#line 2658 "YouTubePublishing.c"
+}
+
+
+GType publishing_you_tube_you_tube_publisher_get_type (void) {
+ static volatile gsize publishing_you_tube_you_tube_publisher_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_you_tube_you_tube_publisher_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeYouTubePublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_you_tube_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeYouTubePublisher), 0, (GInstanceInitFunc) publishing_you_tube_you_tube_publisher_instance_init, NULL };
+ GType publishing_you_tube_you_tube_publisher_type_id;
+ publishing_you_tube_you_tube_publisher_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, "PublishingYouTubeYouTubePublisher", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_you_tube_you_tube_publisher_type_id__volatile, publishing_you_tube_you_tube_publisher_type_id);
+ }
+ return publishing_you_tube_you_tube_publisher_type_id__volatile;
+}
+
+
+static gpointer _publishing_you_tube_publishing_parameters_ref0 (gpointer self) {
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self ? publishing_you_tube_publishing_parameters_ref (self) : NULL;
+#line 2677 "YouTubePublishing.c"
+}
+
+
+static gpointer _publishing_you_tube_publishing_options_pane_privacy_description_ref0 (gpointer self) {
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self ? publishing_you_tube_publishing_options_pane_privacy_description_ref (self) : NULL;
+#line 2684 "YouTubePublishing.c"
+}
+
+
+static void _publishing_you_tube_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_options_pane_on_logout_clicked ((PublishingYouTubePublishingOptionsPane*) self);
+#line 2691 "YouTubePublishing.c"
+}
+
+
+static void _publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_options_pane_on_publish_clicked ((PublishingYouTubePublishingOptionsPane*) self);
+#line 2698 "YouTubePublishing.c"
+}
+
+
+PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_pane_construct (GType object_type, SpitPublishingPluginHost* host, GtkBuilder* builder, PublishingYouTubePublishingParameters* publishing_parameters) {
+ PublishingYouTubePublishingOptionsPane * self = NULL;
+ gint _tmp0_ = 0;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp2_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp3_ = NULL;
+ GtkBuilder* _tmp4_ = NULL;
+ GtkBuilder* _tmp5_ = NULL;
+ GtkBuilder* _tmp6_ = NULL;
+ GtkBuilder* _tmp7_ = NULL;
+ GSList* _tmp8_ = NULL;
+ GSList* _tmp9_ = NULL;
+ guint _tmp10_ = 0U;
+ GtkBuilder* _tmp11_ = NULL;
+ GObject* _tmp12_ = NULL;
+ GtkLabel* _tmp13_ = NULL;
+ GtkBuilder* _tmp14_ = NULL;
+ GObject* _tmp15_ = NULL;
+ GtkComboBoxText* _tmp16_ = NULL;
+ GtkBuilder* _tmp17_ = NULL;
+ GObject* _tmp18_ = NULL;
+ GtkLabel* _tmp19_ = NULL;
+ GtkBuilder* _tmp20_ = NULL;
+ GObject* _tmp21_ = NULL;
+ GtkButton* _tmp22_ = NULL;
+ GtkBuilder* _tmp23_ = NULL;
+ GObject* _tmp24_ = NULL;
+ GtkButton* _tmp25_ = NULL;
+ GtkBuilder* _tmp26_ = NULL;
+ GObject* _tmp27_ = NULL;
+ GtkBox* _tmp28_ = NULL;
+ GtkBuilder* _tmp29_ = NULL;
+ GObject* _tmp30_ = NULL;
+ GtkLabel* _tmp31_ = NULL;
+ GtkLabel* _tmp32_ = NULL;
+ const gchar* _tmp33_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+ gchar* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+ gchar* _tmp38_ = NULL;
+ GtkLabel* _tmp39_ = NULL;
+ const gchar* _tmp40_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+ gchar* _tmp43_ = NULL;
+ gchar* _tmp44_ = NULL;
+ gchar* _tmp45_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp46_ = NULL;
+ gint _tmp46__length1 = 0;
+ GtkComboBoxText* _tmp51_ = NULL;
+ GtkLabel* _tmp52_ = NULL;
+ GtkComboBoxText* _tmp53_ = NULL;
+ GtkButton* _tmp54_ = NULL;
+ GtkButton* _tmp55_ = NULL;
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL);
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL);
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (publishing_parameters), NULL);
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = (PublishingYouTubePublishingOptionsPane*) g_object_new (object_type, NULL);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = publishing_you_tube_publishing_options_pane_create_privacy_descriptions (self, &_tmp0_);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_you_tube_publishing_options_pane_privacy_description_unref), NULL);
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->privacy_descriptions = _tmp1_;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->privacy_descriptions_length1 = _tmp0_;
+#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->_privacy_descriptions_size_ = self->priv->privacy_descriptions_length1;
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = publishing_parameters;
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = _publishing_you_tube_publishing_parameters_ref0 (_tmp2_);
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters);
+#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->publishing_parameters = _tmp3_;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = builder;
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = _g_object_ref0 (_tmp4_);
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->builder = _tmp5_;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = builder;
+#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _vala_assert (_tmp6_ != NULL, "builder != null");
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = builder;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = gtk_builder_get_objects (_tmp7_);
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = _tmp8_;
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp10_ = g_slist_length (_tmp9_);
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _vala_assert (_tmp10_ > ((guint) 0), "builder.get_objects().length() > 0");
+#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_slist_free0 (_tmp9_);
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp11_ = self->priv->builder;
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp12_ = gtk_builder_get_object (_tmp11_, "login_identity_label");
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp12_) : NULL);
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->login_identity_label);
+#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->login_identity_label = _tmp13_;
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp14_ = self->priv->builder;
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp15_ = gtk_builder_get_object (_tmp14_, "privacy_combo");
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp15_) : NULL);
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->privacy_combo);
+#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->privacy_combo = _tmp16_;
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp17_ = self->priv->builder;
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp18_ = gtk_builder_get_object (_tmp17_, "publish_to_label");
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp18_) : NULL);
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->publish_to_label);
+#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->publish_to_label = _tmp19_;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp20_ = self->priv->builder;
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp21_ = gtk_builder_get_object (_tmp20_, "publish_button");
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, gtk_button_get_type ()) ? ((GtkButton*) _tmp21_) : NULL);
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->publish_button = _tmp22_;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp23_ = self->priv->builder;
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp24_ = gtk_builder_get_object (_tmp23_, "logout_button");
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, gtk_button_get_type ()) ? ((GtkButton*) _tmp24_) : NULL);
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->logout_button = _tmp25_;
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp26_ = self->priv->builder;
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp27_ = gtk_builder_get_object (_tmp26_, "youtube_pane_widget");
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, gtk_box_get_type ()) ? ((GtkBox*) _tmp27_) : NULL);
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->pane_widget = _tmp28_;
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp29_ = self->priv->builder;
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp30_ = gtk_builder_get_object (_tmp29_, "privacy_label");
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp31_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp30_) : NULL);
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->privacy_label);
+#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->privacy_label = _tmp31_;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp32_ = self->priv->login_identity_label;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp33_ = _ ("You are logged into YouTube as %s.");
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp34_ = publishing_parameters;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp35_ = publishing_you_tube_publishing_parameters_get_user_name (_tmp34_);
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp36_ = _tmp35_;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp37_ = g_strdup_printf (_tmp33_, _tmp36_);
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp38_ = _tmp37_;
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ gtk_label_set_label (_tmp32_, _tmp38_);
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp38_);
+#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp36_);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp39_ = self->priv->publish_to_label;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp40_ = _ ("Videos will appear in '%s'");
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp41_ = publishing_parameters;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp42_ = publishing_you_tube_publishing_parameters_get_channel_name (_tmp41_);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp43_ = _tmp42_;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp44_ = g_strdup_printf (_tmp40_, _tmp43_);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp45_ = _tmp44_;
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ gtk_label_set_label (_tmp39_, _tmp45_);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp45_);
+#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp43_);
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp46_ = self->priv->privacy_descriptions;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp46__length1 = self->priv->privacy_descriptions_length1;
+#line 2921 "YouTubePublishing.c"
+ {
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** desc_collection = NULL;
+ gint desc_collection_length1 = 0;
+ gint _desc_collection_size_ = 0;
+ gint desc_it = 0;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ desc_collection = _tmp46_;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ desc_collection_length1 = _tmp46__length1;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ for (desc_it = 0; desc_it < _tmp46__length1; desc_it = desc_it + 1) {
+#line 2933 "YouTubePublishing.c"
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp47_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* desc = NULL;
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp47_ = _publishing_you_tube_publishing_options_pane_privacy_description_ref0 (desc_collection[desc_it]);
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ desc = _tmp47_;
+#line 2940 "YouTubePublishing.c"
+ {
+ GtkComboBoxText* _tmp48_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp49_ = NULL;
+ const gchar* _tmp50_ = NULL;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp48_ = self->priv->privacy_combo;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp49_ = desc;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp50_ = _tmp49_->description;
+#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ gtk_combo_box_text_append_text (_tmp48_, _tmp50_);
+#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_you_tube_publishing_options_pane_privacy_description_unref0 (desc);
+#line 2955 "YouTubePublishing.c"
+ }
+ }
+ }
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp51_ = self->priv->privacy_combo;
+#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_combo_box_get_type (), GtkComboBox), (gint) PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC);
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp52_ = self->priv->privacy_label;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp53_ = self->priv->privacy_combo;
+#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ gtk_label_set_mnemonic_widget (_tmp52_, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_widget_get_type (), GtkWidget));
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp54_ = self->priv->logout_button;
+#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_connect_object (_tmp54_, "clicked", (GCallback) _publishing_you_tube_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0);
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp55_ = self->priv->publish_button;
+#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_connect_object (_tmp55_, "clicked", (GCallback) _publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0);
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self;
+#line 2979 "YouTubePublishing.c"
+}
+
+
+PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_pane_new (SpitPublishingPluginHost* host, GtkBuilder* builder, PublishingYouTubePublishingParameters* publishing_parameters) {
+#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return publishing_you_tube_publishing_options_pane_construct (PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, host, builder, publishing_parameters);
+#line 2986 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_on_publish_clicked (PublishingYouTubePublishingOptionsPane* self) {
+ PublishingYouTubePublishingParameters* _tmp0_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ GtkComboBoxText* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp4_ = NULL;
+ PublishingYouTubePrivacySetting _tmp5_ = 0;
+#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = self->priv->publishing_parameters;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = self->priv->privacy_descriptions;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1__length1 = self->priv->privacy_descriptions_length1;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = self->priv->privacy_combo;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox));
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = _tmp1_[_tmp3_];
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = _tmp4_->privacy_setting;
+#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_parameters_set_privacy (_tmp0_, _tmp5_);
+#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_emit_by_name (self, "publish");
+#line 3018 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_on_logout_clicked (PublishingYouTubePublishingOptionsPane* self) {
+#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_emit_by_name (self, "logout");
+#line 3027 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_update_publish_button_sensitivity (PublishingYouTubePublishingOptionsPane* self) {
+ GtkButton* _tmp0_ = NULL;
+#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self));
+#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = self->priv->publish_button;
+#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 3039 "YouTubePublishing.c"
+}
+
+
+static void _vala_array_add31 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value) {
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if ((*length) == (*size)) {
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *array = g_renew (PublishingYouTubePublishingOptionsPanePrivacyDescription*, *array, (*size) + 1);
+#line 3050 "YouTubePublishing.c"
+ }
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*array)[*length] = NULL;
+#line 3056 "YouTubePublishing.c"
+}
+
+
+static void _vala_array_add32 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value) {
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if ((*length) == (*size)) {
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *array = g_renew (PublishingYouTubePublishingOptionsPanePrivacyDescription*, *array, (*size) + 1);
+#line 3067 "YouTubePublishing.c"
+ }
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*array)[*length] = NULL;
+#line 3073 "YouTubePublishing.c"
+}
+
+
+static void _vala_array_add33 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value) {
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if ((*length) == (*size)) {
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *array = g_renew (PublishingYouTubePublishingOptionsPanePrivacyDescription*, *array, (*size) + 1);
+#line 3084 "YouTubePublishing.c"
+ }
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*array)[(*length)++] = value;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ (*array)[*length] = NULL;
+#line 3090 "YouTubePublishing.c"
+}
+
+
+static PublishingYouTubePublishingOptionsPanePrivacyDescription** publishing_you_tube_publishing_options_pane_create_privacy_descriptions (PublishingYouTubePublishingOptionsPane* self, int* result_length1) {
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** result = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _result_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ const gchar* _tmp2_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp3_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ const gchar* _tmp5_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp6_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ const gchar* _tmp8_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp9_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self), NULL);
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = g_new0 (PublishingYouTubePublishingOptionsPanePrivacyDescription*, 0 + 1);
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _result_ = _tmp0_;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _result__length1 = 0;
+#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __result__size_ = _result__length1;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = _result_;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1__length1 = _result__length1;
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = _ ("Public listed");
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_tmp2_, PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC);
+#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _vala_array_add31 (&_result_, &_result__length1, &__result__size_, _tmp3_);
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = _result_;
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4__length1 = _result__length1;
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = _ ("Public unlisted");
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_tmp5_, PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED);
+#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _vala_array_add32 (&_result_, &_result__length1, &__result__size_, _tmp6_);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = _result_;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7__length1 = _result__length1;
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = _ ("Private");
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_tmp8_, PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE);
+#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _vala_array_add33 (&_result_, &_result__length1, &__result__size_, _tmp9_);
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp10_ = _result_;
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp10__length1 = _result__length1;
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (result_length1) {
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *result_length1 = _tmp10__length1;
+#line 3162 "YouTubePublishing.c"
+ }
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = _tmp10_;
+#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 3168 "YouTubePublishing.c"
+}
+
+
+static GtkWidget* publishing_you_tube_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) {
+ PublishingYouTubePublishingOptionsPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkBox* _tmp1_ = NULL;
+ GtkWidget* _tmp2_ = NULL;
+#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane);
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _vala_assert (_tmp0_ != NULL, "pane_widget != null");
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = self->priv->pane_widget;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = _tmp2_;
+#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 3192 "YouTubePublishing.c"
+}
+
+
+static SpitPublishingDialogPaneGeometryOptions publishing_you_tube_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) {
+ PublishingYouTubePublishingOptionsPane * self;
+ SpitPublishingDialogPaneGeometryOptions result = 0;
+#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane);
+#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 3205 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) {
+ PublishingYouTubePublishingOptionsPane * self;
+#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane);
+#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_options_pane_update_publish_button_sensitivity (self);
+#line 3215 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) {
+ PublishingYouTubePublishingOptionsPane * self;
+#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane);
+#line 3223 "YouTubePublishing.c"
+}
+
+
+static PublishingYouTubePublishingOptionsPanePrivacyDescription* publishing_you_tube_publishing_options_pane_privacy_description_construct (GType object_type, const gchar* description, PublishingYouTubePrivacySetting privacy_setting) {
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ PublishingYouTubePrivacySetting _tmp2_ = 0;
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (description != NULL, NULL);
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = (PublishingYouTubePublishingOptionsPanePrivacyDescription*) g_type_create_instance (object_type);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = description;
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->description);
+#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->description = _tmp1_;
+#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = privacy_setting;
+#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->privacy_setting = _tmp2_;
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self;
+#line 3250 "YouTubePublishing.c"
+}
+
+
+static PublishingYouTubePublishingOptionsPanePrivacyDescription* publishing_you_tube_publishing_options_pane_privacy_description_new (const gchar* description, PublishingYouTubePrivacySetting privacy_setting) {
+#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return publishing_you_tube_publishing_options_pane_privacy_description_construct (PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, description, privacy_setting);
+#line 3257 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_value_privacy_description_init (GValue* value) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 3264 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_value_privacy_description_free_value (GValue* value) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (value->data[0].v_pointer) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_options_pane_privacy_description_unref (value->data[0].v_pointer);
+#line 3273 "YouTubePublishing.c"
+ }
+}
+
+
+static void publishing_you_tube_publishing_options_pane_value_privacy_description_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (src_value->data[0].v_pointer) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ dest_value->data[0].v_pointer = publishing_you_tube_publishing_options_pane_privacy_description_ref (src_value->data[0].v_pointer);
+#line 3283 "YouTubePublishing.c"
+ } else {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 3287 "YouTubePublishing.c"
+ }
+}
+
+
+static gpointer publishing_you_tube_publishing_options_pane_value_privacy_description_peek_pointer (const GValue* value) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return value->data[0].v_pointer;
+#line 3295 "YouTubePublishing.c"
+}
+
+
+static gchar* publishing_you_tube_publishing_options_pane_value_privacy_description_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (collect_values[0].v_pointer) {
+#line 3302 "YouTubePublishing.c"
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* object;
+ object = collect_values[0].v_pointer;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 3309 "YouTubePublishing.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.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 3313 "YouTubePublishing.c"
+ }
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = publishing_you_tube_publishing_options_pane_privacy_description_ref (object);
+#line 3317 "YouTubePublishing.c"
+ } else {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 3321 "YouTubePublishing.c"
+ }
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return NULL;
+#line 3325 "YouTubePublishing.c"
+}
+
+
+static gchar* publishing_you_tube_publishing_options_pane_value_privacy_description_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!object_p) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 3336 "YouTubePublishing.c"
+ }
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (!value->data[0].v_pointer) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *object_p = NULL;
+#line 3342 "YouTubePublishing.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *object_p = value->data[0].v_pointer;
+#line 3346 "YouTubePublishing.c"
+ } else {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ *object_p = publishing_you_tube_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer);
+#line 3350 "YouTubePublishing.c"
+ }
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return NULL;
+#line 3354 "YouTubePublishing.c"
+}
+
+
+static GParamSpec* publishing_you_tube_publishing_options_pane_param_spec_privacy_description (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription* spec;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return G_PARAM_SPEC (spec);
+#line 3368 "YouTubePublishing.c"
+}
+
+
+static gpointer publishing_you_tube_publishing_options_pane_value_get_privacy_description (const GValue* value) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return value->data[0].v_pointer;
+#line 3377 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_value_set_privacy_description (GValue* value, gpointer v_object) {
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* old;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION));
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (v_object) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION));
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer);
+#line 3397 "YouTubePublishing.c"
+ } else {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 3401 "YouTubePublishing.c"
+ }
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (old) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_options_pane_privacy_description_unref (old);
+#line 3407 "YouTubePublishing.c"
+ }
+}
+
+
+static void publishing_you_tube_publishing_options_pane_value_take_privacy_description (GValue* value, gpointer v_object) {
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* old;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION));
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ old = value->data[0].v_pointer;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (v_object) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION));
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = v_object;
+#line 3426 "YouTubePublishing.c"
+ } else {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ value->data[0].v_pointer = NULL;
+#line 3430 "YouTubePublishing.c"
+ }
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (old) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_options_pane_privacy_description_unref (old);
+#line 3436 "YouTubePublishing.c"
+ }
+}
+
+
+static void publishing_you_tube_publishing_options_pane_privacy_description_class_init (PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass * klass) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_options_pane_privacy_description_parent_class = g_type_class_peek_parent (klass);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass *) klass)->finalize = publishing_you_tube_publishing_options_pane_privacy_description_finalize;
+#line 3446 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_privacy_description_instance_init (PublishingYouTubePublishingOptionsPanePrivacyDescription * self) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->ref_count = 1;
+#line 3453 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_privacy_description_finalize (PublishingYouTubePublishingOptionsPanePrivacyDescription* obj) {
+ PublishingYouTubePublishingOptionsPanePrivacyDescription * self;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescription);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_handlers_destroy (self);
+#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (self->description);
+#line 3465 "YouTubePublishing.c"
+}
+
+
+static GType publishing_you_tube_publishing_options_pane_privacy_description_get_type (void) {
+ static volatile gsize publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { publishing_you_tube_publishing_options_pane_value_privacy_description_init, publishing_you_tube_publishing_options_pane_value_privacy_description_free_value, publishing_you_tube_publishing_options_pane_value_privacy_description_copy_value, publishing_you_tube_publishing_options_pane_value_privacy_description_peek_pointer, "p", publishing_you_tube_publishing_options_pane_value_privacy_description_collect_value, "p", publishing_you_tube_publishing_options_pane_value_privacy_description_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_publishing_options_pane_privacy_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubePublishingOptionsPanePrivacyDescription), 0, (GInstanceInitFunc) publishing_you_tube_publishing_options_pane_privacy_description_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 publishing_you_tube_publishing_options_pane_privacy_description_type_id;
+ publishing_you_tube_publishing_options_pane_privacy_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingYouTubePublishingOptionsPanePrivacyDescription", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile, publishing_you_tube_publishing_options_pane_privacy_description_type_id);
+ }
+ return publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile;
+}
+
+
+static gpointer publishing_you_tube_publishing_options_pane_privacy_description_ref (gpointer instance) {
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* self;
+ self = instance;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return instance;
+#line 3490 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_privacy_description_unref (gpointer instance) {
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* self;
+ self = instance;
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS (self)->finalize (self);
+#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 3503 "YouTubePublishing.c"
+ }
+}
+
+
+static void publishing_you_tube_publishing_options_pane_class_init (PublishingYouTubePublishingOptionsPaneClass * klass) {
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_options_pane_parent_class = g_type_class_peek_parent (klass);
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingYouTubePublishingOptionsPanePrivate));
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = publishing_you_tube_publishing_options_pane_finalize;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_new ("publish", PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_signal_new ("logout", PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 3519 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) {
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitPublishingDialogPane*)) publishing_you_tube_publishing_options_pane_real_get_widget;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*)(SpitPublishingDialogPane*)) publishing_you_tube_publishing_options_pane_real_get_preferred_geometry;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->on_pane_installed = (void (*)(SpitPublishingDialogPane*)) publishing_you_tube_publishing_options_pane_real_on_pane_installed;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitPublishingDialogPane*)) publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled;
+#line 3534 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_instance_init (PublishingYouTubePublishingOptionsPane * self) {
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv = PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self);
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->pane_widget = NULL;
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->privacy_combo = NULL;
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->publish_to_label = NULL;
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->login_identity_label = NULL;
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->publish_button = NULL;
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->logout_button = NULL;
+#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->builder = NULL;
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->privacy_label = NULL;
+#line 3557 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_publishing_options_pane_finalize (GObject* obj) {
+ PublishingYouTubePublishingOptionsPane * self;
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane);
+#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->privacy_combo);
+#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->publish_to_label);
+#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->login_identity_label);
+#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->publish_button);
+#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->logout_button);
+#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->builder);
+#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->privacy_label);
+#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_you_tube_publishing_options_pane_privacy_description_unref), NULL);
+#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters);
+#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ G_OBJECT_CLASS (publishing_you_tube_publishing_options_pane_parent_class)->finalize (obj);
+#line 3587 "YouTubePublishing.c"
+}
+
+
+GType publishing_you_tube_publishing_options_pane_get_type (void) {
+ static volatile gsize publishing_you_tube_publishing_options_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_you_tube_publishing_options_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubePublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubePublishingOptionsPane), 0, (GInstanceInitFunc) publishing_you_tube_publishing_options_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType publishing_you_tube_publishing_options_pane_type_id;
+ publishing_you_tube_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYouTubePublishingOptionsPane", &g_define_type_info, 0);
+ g_type_add_interface_static (publishing_you_tube_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info);
+ g_once_init_leave (&publishing_you_tube_publishing_options_pane_type_id__volatile, publishing_you_tube_publishing_options_pane_type_id);
+ }
+ return publishing_you_tube_publishing_options_pane_type_id__volatile;
+}
+
+
+static gpointer _publishing_rest_support_session_ref0 (gpointer self) {
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self ? publishing_rest_support_session_ref (self) : NULL;
+#line 3608 "YouTubePublishing.c"
+}
+
+
+PublishingYouTubeUploadTransaction* publishing_you_tube_upload_transaction_construct (GType object_type, PublishingRESTSupportGoogleSession* session, PublishingYouTubePublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+ PublishingYouTubeUploadTransaction* self = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ PublishingRESTSupportGoogleSession* _tmp3_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp4_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp5_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp6_ = NULL;
+ SpitPublishingPublishable* _tmp7_ = NULL;
+ SpitPublishingPublishable* _tmp8_ = NULL;
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL);
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = session;
+#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = (PublishingYouTubeUploadTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, _tmp0_, PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST);
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = session;
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession));
+#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _vala_assert (_tmp2_, "session.is_authenticated()");
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = session;
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = _publishing_rest_support_session_ref0 (_tmp3_);
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->session = _tmp4_;
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = parameters;
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = _publishing_you_tube_publishing_parameters_ref0 (_tmp5_);
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters);
+#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->parameters = _tmp6_;
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = publishable;
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = _g_object_ref0 (_tmp7_);
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->publishable);
+#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->publishable = _tmp8_;
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self;
+#line 3665 "YouTubePublishing.c"
+}
+
+
+PublishingYouTubeUploadTransaction* publishing_you_tube_upload_transaction_new (PublishingRESTSupportGoogleSession* session, PublishingYouTubePublishingParameters* parameters, SpitPublishingPublishable* publishable) {
+#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return publishing_you_tube_upload_transaction_construct (PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, session, parameters, publishable);
+#line 3672 "YouTubePublishing.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 3716 "YouTubePublishing.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 3722 "YouTubePublishing.c"
+}
+
+
+static void _vala_SoupBuffer_free (SoupBuffer* self) {
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_boxed_free (soup_buffer_get_type (), self);
+#line 3729 "YouTubePublishing.c"
+}
+
+
+static void _vala_SoupMultipart_free (SoupMultipart* self) {
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_boxed_free (soup_multipart_get_type (), self);
+#line 3736 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) {
+ PublishingYouTubeUploadTransaction * self;
+ SoupMultipart* message_parts = NULL;
+ SoupMultipart* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp2_ = NULL;
+ PublishingYouTubePrivacySetting _tmp3_ = 0;
+ gchar* unlisted_video = NULL;
+ gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp6_ = NULL;
+ PublishingYouTubePrivacySetting _tmp7_ = 0;
+ gchar* private_video = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* title = NULL;
+ SpitPublishingPublishable* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gchar* metadata = NULL;
+ const gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ SoupBuffer* metadata_buffer = NULL;
+ const gchar* _tmp21_ = NULL;
+ guint8* _tmp22_ = NULL;
+ gint _tmp22__length1 = 0;
+ guint8* _tmp23_ = NULL;
+ gint _tmp23__length1 = 0;
+ SoupBuffer* _tmp24_ = NULL;
+ SoupMultipart* _tmp25_ = NULL;
+ SoupBuffer* _tmp26_ = NULL;
+ gchar* video_data = NULL;
+ gsize data_length = 0UL;
+ SoupBuffer* bindable_data = NULL;
+ const gchar* _tmp46_ = NULL;
+ guint8* _tmp47_ = NULL;
+ gint _tmp47__length1 = 0;
+ guint8* _tmp48_ = NULL;
+ gint _tmp48__length1 = 0;
+ gsize _tmp49_ = 0UL;
+ SoupBuffer* _tmp50_ = NULL;
+ SoupMultipart* _tmp51_ = NULL;
+ SpitPublishingPublishable* _tmp52_ = NULL;
+ GFile* _tmp53_ = NULL;
+ GFile* _tmp54_ = NULL;
+ gchar* _tmp55_ = NULL;
+ gchar* _tmp56_ = NULL;
+ SoupMessage* outbound_message = NULL;
+ gchar* _tmp57_ = NULL;
+ gchar* _tmp58_ = NULL;
+ SoupMultipart* _tmp59_ = NULL;
+ SoupMessage* _tmp60_ = NULL;
+ SoupMessage* _tmp61_ = NULL;
+ SoupMessageHeaders* _tmp62_ = NULL;
+ gchar* _tmp63_ = NULL;
+ gchar* _tmp64_ = NULL;
+ SoupMessageHeaders* _tmp65_ = NULL;
+ SpitPublishingPublishable* _tmp66_ = NULL;
+ gchar* _tmp67_ = NULL;
+ gchar* _tmp68_ = NULL;
+ SoupMessageHeaders* _tmp69_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp70_ = NULL;
+ gchar* _tmp71_ = NULL;
+ gchar* _tmp72_ = NULL;
+ gchar* _tmp73_ = NULL;
+ gchar* _tmp74_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransaction);
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = soup_multipart_new ("multipart/related");
+#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ message_parts = _tmp0_;
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = self->priv->parameters;
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = publishing_you_tube_publishing_parameters_get_privacy (_tmp2_);
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_tmp3_ == PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED) {
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_UNLISTED_XML;
+#line 3825 "YouTubePublishing.c"
+ } else {
+#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = "";
+#line 3829 "YouTubePublishing.c"
+ }
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = g_strdup (_tmp1_);
+#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ unlisted_video = _tmp4_;
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = self->priv->parameters;
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp7_ = publishing_you_tube_publishing_parameters_get_privacy (_tmp6_);
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_tmp7_ == PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE) {
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_PRIVATE_XML;
+#line 3843 "YouTubePublishing.c"
+ } else {
+#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = "";
+#line 3847 "YouTubePublishing.c"
+ }
+#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp8_ = g_strdup (_tmp5_);
+#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ private_video = _tmp8_;
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp9_ = self->priv->publishable;
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp10_ = spit_publishing_publishable_get_publishing_name (_tmp9_);
+#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ title = _tmp10_;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp11_ = title;
+#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (g_strcmp0 (_tmp11_, "") == 0) {
+#line 3863 "YouTubePublishing.c"
+ SpitPublishingPublishable* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp12_ = self->priv->publishable;
+#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp13_ = spit_publishing_publishable_get_param_string (_tmp12_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME);
+#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (title);
+#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ title = _tmp13_;
+#line 3874 "YouTubePublishing.c"
+ }
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp14_ = title;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp15_ = publishing_rest_support_decimal_entity_encode (_tmp14_);
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp16_ = _tmp15_;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp17_ = private_video;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp18_ = unlisted_video;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp19_ = g_strdup_printf (PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_METADATA_TEMPLATE, _tmp16_, _tmp17_, _tmp18_);
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp20_ = _tmp19_;
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp16_);
+#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ metadata = _tmp20_;
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp21_ = metadata;
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp22_ = string_get_data (_tmp21_, &_tmp22__length1);
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp23_ = _tmp22_;
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp23__length1 = _tmp22__length1;
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp24_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp23_, _tmp23__length1);
+#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ metadata_buffer = _tmp24_;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp25_ = message_parts;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp26_ = metadata_buffer;
+#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ soup_multipart_append_form_file (_tmp25_, "", "", "application/atom+xml", _tmp26_);
+#line 3912 "YouTubePublishing.c"
+ {
+ SpitPublishingPublishable* _tmp27_ = NULL;
+ GFile* _tmp28_ = NULL;
+ GFile* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+ gsize _tmp33_ = 0UL;
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp27_ = self->priv->publishable;
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp28_ = spit_publishing_publishable_get_serialized_file (_tmp27_);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp29_ = _tmp28_;
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp30_ = g_file_get_path (_tmp29_);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp31_ = _tmp30_;
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_file_get_contents (_tmp31_, &_tmp32_, &_tmp33_, &_inner_error_);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (video_data);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ video_data = _tmp32_;
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ data_length = _tmp33_;
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp31_);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (_tmp29_);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_inner_error_->domain == G_FILE_ERROR) {
+#line 3947 "YouTubePublishing.c"
+ goto __catch31_g_file_error;
+ }
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (video_data);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (metadata);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (title);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (private_video);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (unlisted_video);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 3970 "YouTubePublishing.c"
+ }
+ }
+ goto __finally31;
+ __catch31_g_file_error:
+ {
+ GError* e = NULL;
+ gchar* msg = NULL;
+ SpitPublishingPublishable* _tmp34_ = NULL;
+ GFile* _tmp35_ = NULL;
+ GFile* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+ gchar* _tmp38_ = NULL;
+ GError* _tmp39_ = NULL;
+ const gchar* _tmp40_ = NULL;
+ gchar* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+ const gchar* _tmp43_ = NULL;
+ const gchar* _tmp44_ = NULL;
+ GError* _tmp45_ = NULL;
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ e = _inner_error_;
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _inner_error_ = NULL;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp34_ = self->priv->publishable;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp35_ = spit_publishing_publishable_get_serialized_file (_tmp34_);
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp36_ = _tmp35_;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp37_ = g_file_get_path (_tmp36_);
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp38_ = _tmp37_;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp39_ = e;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp40_ = _tmp39_->message;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp41_ = g_strdup_printf ("YouTube: couldn't read data from %s: %s", _tmp38_, _tmp40_);
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp42_ = _tmp41_;
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp38_);
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (_tmp36_);
+#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ msg = _tmp42_;
+#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp43_ = msg;
+#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_warning ("YouTubePublishing.vala:580: %s", _tmp43_);
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp44_ = msg;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp45_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp44_);
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _inner_error_ = _tmp45_;
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (msg);
+#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_error_free0 (e);
+#line 4032 "YouTubePublishing.c"
+ goto __finally31;
+ }
+ __finally31:
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (video_data);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (metadata);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (title);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (private_video);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (unlisted_video);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 4058 "YouTubePublishing.c"
+ } else {
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (video_data);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (metadata);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (title);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (private_video);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (unlisted_video);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.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 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 4080 "YouTubePublishing.c"
+ }
+ }
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp46_ = video_data;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp47_ = string_get_data (_tmp46_, &_tmp47__length1);
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp48_ = _tmp47_;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp48__length1 = _tmp47__length1;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp49_ = data_length;
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp50_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp48_ + 0, ((gint) _tmp49_) - 0);
+#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ bindable_data = _tmp50_;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp51_ = message_parts;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp52_ = self->priv->publishable;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp53_ = spit_publishing_publishable_get_serialized_file (_tmp52_);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp54_ = _tmp53_;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp55_ = g_file_get_path (_tmp54_);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp56_ = _tmp55_;
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ soup_multipart_append_form_file (_tmp51_, "", _tmp56_, "video/mpeg", bindable_data);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp56_);
+#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (_tmp54_);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp57_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction));
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp58_ = _tmp57_;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp59_ = message_parts;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp60_ = soup_form_request_new_from_multipart (_tmp58_, _tmp59_);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp61_ = _tmp60_;
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp58_);
+#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ outbound_message = _tmp61_;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp62_ = outbound_message->request_headers;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp63_ = g_strdup_printf ("key=%s", PUBLISHING_YOU_TUBE_DEVELOPER_KEY);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp64_ = _tmp63_;
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ soup_message_headers_append (_tmp62_, "X-GData-Key", _tmp64_);
+#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp64_);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp65_ = outbound_message->request_headers;
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp66_ = self->priv->publishable;
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp67_ = spit_publishing_publishable_get_param_string (_tmp66_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp68_ = _tmp67_;
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ soup_message_headers_append (_tmp65_, "Slug", _tmp68_);
+#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp68_);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp69_ = outbound_message->request_headers;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp70_ = self->priv->session;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp71_ = publishing_rest_support_google_session_get_access_token (_tmp70_);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp72_ = _tmp71_;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp73_ = g_strconcat ("Bearer ", _tmp72_, NULL);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp74_ = _tmp73_;
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ soup_message_headers_append (_tmp69_, "Authorization", _tmp74_);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp74_);
+#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (_tmp72_);
+#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), outbound_message);
+#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_rest_support_transaction_send (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) {
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_propagate_error (error, _inner_error_);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (outbound_message);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupBuffer_free0 (bindable_data);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (video_data);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (metadata);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (title);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (private_video);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (unlisted_video);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 4201 "YouTubePublishing.c"
+ } else {
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (outbound_message);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupBuffer_free0 (bindable_data);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (video_data);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (metadata);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (title);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (private_video);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (unlisted_video);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.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 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_clear_error (&_inner_error_);
+#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return;
+#line 4227 "YouTubePublishing.c"
+ }
+ }
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (outbound_message);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupBuffer_free0 (bindable_data);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (video_data);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupBuffer_free0 (metadata_buffer);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (metadata);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (title);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (private_video);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_free0 (unlisted_video);
+#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ __vala_SoupMultipart_free0 (message_parts);
+#line 4248 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_upload_transaction_class_init (PublishingYouTubeUploadTransactionClass * klass) {
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_upload_transaction_parent_class = g_type_class_peek_parent (klass);
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_you_tube_upload_transaction_finalize;
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingYouTubeUploadTransactionPrivate));
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingRESTSupportTransactionClass *) klass)->execute = publishing_you_tube_upload_transaction_real_execute;
+#line 4261 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_upload_transaction_instance_init (PublishingYouTubeUploadTransaction * self) {
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv = PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_GET_PRIVATE (self);
+#line 4268 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_upload_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+ PublishingYouTubeUploadTransaction * self;
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransaction);
+#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters);
+#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_session_unref0 (self->priv->session);
+#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (self->priv->publishable);
+#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_you_tube_upload_transaction_parent_class)->finalize (obj);
+#line 4284 "YouTubePublishing.c"
+}
+
+
+GType publishing_you_tube_upload_transaction_get_type (void) {
+ static volatile gsize publishing_you_tube_upload_transaction_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_you_tube_upload_transaction_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeUploadTransaction), 0, (GInstanceInitFunc) publishing_you_tube_upload_transaction_instance_init, NULL };
+ GType publishing_you_tube_upload_transaction_type_id;
+ publishing_you_tube_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingYouTubeUploadTransaction", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_you_tube_upload_transaction_type_id__volatile, publishing_you_tube_upload_transaction_type_id);
+ }
+ return publishing_you_tube_upload_transaction_type_id__volatile;
+}
+
+
+PublishingYouTubeUploader* publishing_you_tube_uploader_construct (GType object_type, PublishingRESTSupportGoogleSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingYouTubePublishingParameters* parameters) {
+ PublishingYouTubeUploader* self = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
+ SpitPublishingPublishable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ PublishingYouTubePublishingParameters* _tmp2_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp3_ = NULL;
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL);
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (parameters), NULL);
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = session;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = publishables;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1__length1 = publishables_length1;
+#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = (PublishingYouTubeUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, _tmp1__length1);
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = parameters;
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = _publishing_you_tube_publishing_parameters_ref0 (_tmp2_);
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters);
+#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv->parameters = _tmp3_;
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return self;
+#line 4329 "YouTubePublishing.c"
+}
+
+
+PublishingYouTubeUploader* publishing_you_tube_uploader_new (PublishingRESTSupportGoogleSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingYouTubePublishingParameters* parameters) {
+#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return publishing_you_tube_uploader_construct (PUBLISHING_YOU_TUBE_TYPE_UPLOADER, session, publishables, publishables_length1, parameters);
+#line 4336 "YouTubePublishing.c"
+}
+
+
+static PublishingRESTSupportTransaction* publishing_you_tube_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) {
+ PublishingYouTubeUploader * self;
+ PublishingRESTSupportTransaction* result = NULL;
+ PublishingRESTSupportSession* _tmp0_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+ PublishingYouTubePublishingParameters* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp3_ = NULL;
+ SpitPublishingPublishable* _tmp4_ = NULL;
+ PublishingYouTubeUploadTransaction* _tmp5_ = NULL;
+ PublishingRESTSupportTransaction* _tmp6_ = NULL;
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploader);
+#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL);
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession);
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp2_ = self->priv->parameters;
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp3_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader));
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp4_ = _tmp3_;
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp5_ = publishing_you_tube_upload_transaction_new (_tmp1_, _tmp2_, _tmp4_);
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction);
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _g_object_unref0 (_tmp4_);
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_rest_support_session_unref0 (_tmp1_);
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ result = _tmp6_;
+#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ return result;
+#line 4376 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_uploader_class_init (PublishingYouTubeUploaderClass * klass) {
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ publishing_you_tube_uploader_parent_class = g_type_class_peek_parent (klass);
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_you_tube_uploader_finalize;
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ g_type_class_add_private (klass, sizeof (PublishingYouTubeUploaderPrivate));
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = publishing_you_tube_uploader_real_create_transaction;
+#line 4389 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_uploader_instance_init (PublishingYouTubeUploader * self) {
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self->priv = PUBLISHING_YOU_TUBE_UPLOADER_GET_PRIVATE (self);
+#line 4396 "YouTubePublishing.c"
+}
+
+
+static void publishing_you_tube_uploader_finalize (PublishingRESTSupportBatchUploader* obj) {
+ PublishingYouTubeUploader * self;
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploader);
+#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters);
+#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_you_tube_uploader_parent_class)->finalize (obj);
+#line 4408 "YouTubePublishing.c"
+}
+
+
+GType publishing_you_tube_uploader_get_type (void) {
+ static volatile gsize publishing_you_tube_uploader_type_id__volatile = 0;
+ if (g_once_init_enter (&publishing_you_tube_uploader_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeUploader), 0, (GInstanceInitFunc) publishing_you_tube_uploader_instance_init, NULL };
+ GType publishing_you_tube_uploader_type_id;
+ publishing_you_tube_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingYouTubeUploader", &g_define_type_info, 0);
+ g_once_init_leave (&publishing_you_tube_uploader_type_id__volatile, publishing_you_tube_uploader_type_id);
+ }
+ return publishing_you_tube_uploader_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/plugins/shotwell-publishing/YouTubePublishing.vala b/plugins/shotwell-publishing/YouTubePublishing.vala
index 15f283f..7325c32 100644
--- a/plugins/shotwell-publishing/YouTubePublishing.vala
+++ b/plugins/shotwell-publishing/YouTubePublishing.vala
@@ -11,7 +11,8 @@ public class YouTubeService : Object, Spit.Pluggable, Spit.Publishing.Service {
public YouTubeService(GLib.File resource_directory) {
if (icon_pixbuf_set == null)
- icon_pixbuf_set = Resources.load_icon_set(resource_directory.get_child(ICON_FILENAME));
+ icon_pixbuf_set = Resources.load_from_resource
+ (Resources.RESOURCE_PATH + "/" + ICON_FILENAME);
}
public int get_pluggable_interface(int min_host_interface, int max_host_interface) {
@@ -353,8 +354,8 @@ public class YouTubePublisher : Publishing.RESTSupport.GooglePublisher {
Gtk.Builder builder = new Gtk.Builder();
try {
- builder.add_from_file(
- get_host().get_module_file().get_parent().get_child("youtube_publishing_options_pane.glade").get_path());
+ builder.add_from_resource (Resources.RESOURCE_PATH +
+ "/youtube_publishing_options_pane.ui");
} catch (Error e) {
warning("Could not parse UI file! Error: %s.", e.message);
get_host().post_error(
diff --git a/plugins/shotwell-publishing/facebook_publishing_options_pane.glade b/plugins/shotwell-publishing/facebook_publishing_options_pane.ui
index 7eb30f6..674b078 100644
--- a/plugins/shotwell-publishing/facebook_publishing_options_pane.glade
+++ b/plugins/shotwell-publishing/facebook_publishing_options_pane.ui
@@ -18,7 +18,7 @@
<property name="can_focus">False</property>
<property name="xalign">0.30000001192092896</property>
<property name="ypad">16</property>
- <property name="label" translatable="no"> (text depends on fb username and is modified in the app -
+ <property name="label" translatable="no"> (text depends on fb username and is modified in the app -
anything put into this field won't display)</property>
</object>
<packing>
diff --git a/plugins/shotwell-publishing/flickr_pin_entry_pane.glade b/plugins/shotwell-publishing/flickr_pin_entry_pane.ui
index e20fb38..e20fb38 100644
--- a/plugins/shotwell-publishing/flickr_pin_entry_pane.glade
+++ b/plugins/shotwell-publishing/flickr_pin_entry_pane.ui
diff --git a/plugins/shotwell-publishing/flickr_publishing_options_pane.glade b/plugins/shotwell-publishing/flickr_publishing_options_pane.ui
index 995f2c2..7f67438 100644
--- a/plugins/shotwell-publishing/flickr_publishing_options_pane.glade
+++ b/plugins/shotwell-publishing/flickr_publishing_options_pane.ui
@@ -18,7 +18,7 @@
<property name="can_focus">False</property>
<property name="label" translatable="no">You are logged into Flickr as (name).
-(this label's string is populated and set inside the code,
+(this label's string is populated and set inside the code,
so changes made here will not display)</property>
</object>
<packing>
diff --git a/plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml b/plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml
new file mode 100644
index 0000000..53bcc43
--- /dev/null
+++ b/plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/gnome/Shotwell/Publishing">
+ <file>facebook.png</file>
+ <file>flickr.png</file>
+ <file>picasa.png</file>
+ <file>piwigo.png</file>
+ <file>youtube.png</file>
+ <file>facebook_publishing_options_pane.ui</file>
+ <file>flickr_pin_entry_pane.ui</file>
+ <file>flickr_publishing_options_pane.ui</file>
+ <file>picasa_publishing_options_pane.ui</file>
+ <file>piwigo_authentication_pane.ui</file>
+ <file>piwigo_publishing_options_pane.ui</file>
+ <file>youtube_publishing_options_pane.ui</file>
+ </gresource>
+</gresources>
diff --git a/plugins/shotwell-publishing/picasa_publishing_options_pane.glade b/plugins/shotwell-publishing/picasa_publishing_options_pane.ui
index adee4d2..adee4d2 100644
--- a/plugins/shotwell-publishing/picasa_publishing_options_pane.glade
+++ b/plugins/shotwell-publishing/picasa_publishing_options_pane.ui
diff --git a/plugins/shotwell-publishing/piwigo_authentication_pane.glade b/plugins/shotwell-publishing/piwigo_authentication_pane.ui
index 367f957..bd32141 100644
--- a/plugins/shotwell-publishing/piwigo_authentication_pane.glade
+++ b/plugins/shotwell-publishing/piwigo_authentication_pane.ui
@@ -24,7 +24,7 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">label</property>
+ <property name="label" translatable="no">label</property>
<property name="wrap">True</property>
</object>
<packing>
diff --git a/plugins/shotwell-publishing/piwigo_publishing_options_pane.glade b/plugins/shotwell-publishing/piwigo_publishing_options_pane.ui
index 7197603..7197603 100644
--- a/plugins/shotwell-publishing/piwigo_publishing_options_pane.glade
+++ b/plugins/shotwell-publishing/piwigo_publishing_options_pane.ui
diff --git a/plugins/shotwell-publishing/shotwell-publishing.c b/plugins/shotwell-publishing/shotwell-publishing.c
new file mode 100644
index 0000000..c5b6a4b
--- /dev/null
+++ b/plugins/shotwell-publishing/shotwell-publishing.c
@@ -0,0 +1,524 @@
+/* shotwell-publishing.c generated by valac 0.32.1, the Vala compiler
+ * generated from shotwell-publishing.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 <shotwell-plugin-dev-1.0.h>
+#include <gio/gio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib/gi18n-lib.h>
+
+
+#define TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES (shotwell_publishing_core_services_get_type ())
+#define SHOTWELL_PUBLISHING_CORE_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices))
+#define SHOTWELL_PUBLISHING_CORE_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServicesClass))
+#define IS_SHOTWELL_PUBLISHING_CORE_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES))
+#define IS_SHOTWELL_PUBLISHING_CORE_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES))
+#define SHOTWELL_PUBLISHING_CORE_SERVICES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServicesClass))
+
+typedef struct _ShotwellPublishingCoreServices ShotwellPublishingCoreServices;
+typedef struct _ShotwellPublishingCoreServicesClass ShotwellPublishingCoreServicesClass;
+typedef struct _ShotwellPublishingCoreServicesPrivate ShotwellPublishingCoreServicesPrivate;
+
+#define TYPE_FACEBOOK_SERVICE (facebook_service_get_type ())
+#define FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FACEBOOK_SERVICE, FacebookService))
+#define FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FACEBOOK_SERVICE, FacebookServiceClass))
+#define IS_FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FACEBOOK_SERVICE))
+#define IS_FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FACEBOOK_SERVICE))
+#define FACEBOOK_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FACEBOOK_SERVICE, FacebookServiceClass))
+
+typedef struct _FacebookService FacebookService;
+typedef struct _FacebookServiceClass FacebookServiceClass;
+
+#define TYPE_PICASA_SERVICE (picasa_service_get_type ())
+#define PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PICASA_SERVICE, PicasaService))
+#define PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PICASA_SERVICE, PicasaServiceClass))
+#define IS_PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PICASA_SERVICE))
+#define IS_PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PICASA_SERVICE))
+#define PICASA_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PICASA_SERVICE, PicasaServiceClass))
+
+typedef struct _PicasaService PicasaService;
+typedef struct _PicasaServiceClass PicasaServiceClass;
+
+#define TYPE_FLICKR_SERVICE (flickr_service_get_type ())
+#define FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLICKR_SERVICE, FlickrService))
+#define FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLICKR_SERVICE, FlickrServiceClass))
+#define IS_FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLICKR_SERVICE))
+#define IS_FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLICKR_SERVICE))
+#define FLICKR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLICKR_SERVICE, FlickrServiceClass))
+
+typedef struct _FlickrService FlickrService;
+typedef struct _FlickrServiceClass FlickrServiceClass;
+
+#define TYPE_YOU_TUBE_SERVICE (you_tube_service_get_type ())
+#define YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeService))
+#define YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass))
+#define IS_YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_YOU_TUBE_SERVICE))
+#define IS_YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_YOU_TUBE_SERVICE))
+#define YOU_TUBE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass))
+
+typedef struct _YouTubeService YouTubeService;
+typedef struct _YouTubeServiceClass YouTubeServiceClass;
+
+#define TYPE_PIWIGO_SERVICE (piwigo_service_get_type ())
+#define PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIWIGO_SERVICE, PiwigoService))
+#define PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIWIGO_SERVICE, PiwigoServiceClass))
+#define IS_PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIWIGO_SERVICE))
+#define IS_PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIWIGO_SERVICE))
+#define PIWIGO_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIWIGO_SERVICE, PiwigoServiceClass))
+
+typedef struct _PiwigoService PiwigoService;
+typedef struct _PiwigoServiceClass PiwigoServiceClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+struct _ShotwellPublishingCoreServices {
+ GObject parent_instance;
+ ShotwellPublishingCoreServicesPrivate * priv;
+};
+
+struct _ShotwellPublishingCoreServicesClass {
+ GObjectClass parent_class;
+};
+
+struct _ShotwellPublishingCoreServicesPrivate {
+ SpitPluggable** pluggables;
+ gint pluggables_length1;
+ gint _pluggables_size_;
+};
+
+
+static gpointer shotwell_publishing_core_services_parent_class = NULL;
+static SpitModuleIface* shotwell_publishing_core_services_spit_module_parent_iface = NULL;
+
+GType shotwell_publishing_core_services_get_type (void) G_GNUC_CONST;
+#define SHOTWELL_PUBLISHING_CORE_SERVICES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServicesPrivate))
+enum {
+ SHOTWELL_PUBLISHING_CORE_SERVICES_DUMMY_PROPERTY
+};
+ShotwellPublishingCoreServices* shotwell_publishing_core_services_new (GFile* module_file);
+ShotwellPublishingCoreServices* shotwell_publishing_core_services_construct (GType object_type, GFile* module_file);
+FacebookService* facebook_service_new (GFile* resource_directory);
+FacebookService* facebook_service_construct (GType object_type, GFile* resource_directory);
+GType facebook_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add1 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+PicasaService* picasa_service_new (GFile* resource_directory);
+PicasaService* picasa_service_construct (GType object_type, GFile* resource_directory);
+GType picasa_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add2 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+FlickrService* flickr_service_new (GFile* resource_directory);
+FlickrService* flickr_service_construct (GType object_type, GFile* resource_directory);
+GType flickr_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add3 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+YouTubeService* you_tube_service_new (GFile* resource_directory);
+YouTubeService* you_tube_service_construct (GType object_type, GFile* resource_directory);
+GType you_tube_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add4 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+PiwigoService* piwigo_service_new (GFile* resource_directory);
+PiwigoService* piwigo_service_construct (GType object_type, GFile* resource_directory);
+GType piwigo_service_get_type (void) G_GNUC_CONST;
+static void _vala_array_add5 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+static const gchar* shotwell_publishing_core_services_real_get_module_name (SpitModule* base);
+static const gchar* shotwell_publishing_core_services_real_get_version (SpitModule* base);
+static const gchar* shotwell_publishing_core_services_real_get_id (SpitModule* base);
+static SpitPluggable** shotwell_publishing_core_services_real_get_pluggables (SpitModule* base, int* result_length1);
+static void shotwell_publishing_core_services_finalize (GObject* obj);
+SpitModule* spit_entry_point (SpitEntryPointParams* params);
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
+
+
+static void _vala_array_add1 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ if ((*length) == (*size)) {
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 145 "shotwell-publishing.c"
+ }
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*array)[(*length)++] = value;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*array)[*length] = NULL;
+#line 151 "shotwell-publishing.c"
+}
+
+
+static void _vala_array_add2 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ if ((*length) == (*size)) {
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 162 "shotwell-publishing.c"
+ }
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*array)[(*length)++] = value;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*array)[*length] = NULL;
+#line 168 "shotwell-publishing.c"
+}
+
+
+static void _vala_array_add3 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ if ((*length) == (*size)) {
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 179 "shotwell-publishing.c"
+ }
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*array)[(*length)++] = value;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*array)[*length] = NULL;
+#line 185 "shotwell-publishing.c"
+}
+
+
+static void _vala_array_add4 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ if ((*length) == (*size)) {
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 196 "shotwell-publishing.c"
+ }
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*array)[(*length)++] = value;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*array)[*length] = NULL;
+#line 202 "shotwell-publishing.c"
+}
+
+
+static void _vala_array_add5 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ if ((*length) == (*size)) {
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 213 "shotwell-publishing.c"
+ }
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*array)[(*length)++] = value;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*array)[*length] = NULL;
+#line 219 "shotwell-publishing.c"
+}
+
+
+ShotwellPublishingCoreServices* shotwell_publishing_core_services_construct (GType object_type, GFile* module_file) {
+ ShotwellPublishingCoreServices * self = NULL;
+ GFile* resource_directory = NULL;
+ GFile* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ SpitPluggable** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ FacebookService* _tmp3_ = NULL;
+ SpitPluggable** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ PicasaService* _tmp5_ = NULL;
+ SpitPluggable** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ FlickrService* _tmp7_ = NULL;
+ SpitPluggable** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ YouTubeService* _tmp9_ = NULL;
+ SpitPluggable** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+ PiwigoService* _tmp11_ = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ g_return_val_if_fail (G_IS_FILE (module_file), NULL);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self = (ShotwellPublishingCoreServices*) g_object_new (object_type, NULL);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp0_ = module_file;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp1_ = g_file_get_parent (_tmp0_);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ resource_directory = _tmp1_;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp2_ = self->priv->pluggables;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp2__length1 = self->priv->pluggables_length1;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp3_ = facebook_service_new (resource_directory);
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp4_ = self->priv->pluggables;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp4__length1 = self->priv->pluggables_length1;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp5_ = picasa_service_new (resource_directory);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _vala_array_add2 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp6_ = self->priv->pluggables;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp6__length1 = self->priv->pluggables_length1;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp7_ = flickr_service_new (resource_directory);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _vala_array_add3 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp8_ = self->priv->pluggables;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp8__length1 = self->priv->pluggables_length1;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp9_ = you_tube_service_new (resource_directory);
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _vala_array_add4 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp10_ = self->priv->pluggables;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp10__length1 = self->priv->pluggables_length1;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp11_ = piwigo_service_new (resource_directory);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _vala_array_add5 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _g_object_unref0 (resource_directory);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ return self;
+#line 297 "shotwell-publishing.c"
+}
+
+
+ShotwellPublishingCoreServices* shotwell_publishing_core_services_new (GFile* module_file) {
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ return shotwell_publishing_core_services_construct (TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, module_file);
+#line 304 "shotwell-publishing.c"
+}
+
+
+static const gchar* shotwell_publishing_core_services_real_get_module_name (SpitModule* base) {
+ ShotwellPublishingCoreServices * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices);
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp0_ = _ ("Core Publishing Services");
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ result = _tmp0_;
+#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ return result;
+#line 320 "shotwell-publishing.c"
+}
+
+
+static const gchar* shotwell_publishing_core_services_real_get_version (SpitModule* base) {
+ ShotwellPublishingCoreServices * self;
+ const gchar* result = NULL;
+#line 29 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices);
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ result = _VERSION;
+#line 30 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ return result;
+#line 333 "shotwell-publishing.c"
+}
+
+
+static const gchar* shotwell_publishing_core_services_real_get_id (SpitModule* base) {
+ ShotwellPublishingCoreServices * self;
+ const gchar* result = NULL;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ result = "org.yorba.shotwell.publishing.core_services";
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ return result;
+#line 346 "shotwell-publishing.c"
+}
+
+
+static SpitPluggable** shotwell_publishing_core_services_real_get_pluggables (SpitModule* base, int* result_length1) {
+ ShotwellPublishingCoreServices * self;
+ SpitPluggable** result = NULL;
+ SpitPluggable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ SpitPluggable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp0_ = self->priv->pluggables;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp0__length1 = self->priv->pluggables_length1;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp1_ = _tmp0_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ if (result_length1) {
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ *result_length1 = _tmp1__length1;
+#line 371 "shotwell-publishing.c"
+ }
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ result = _tmp1_;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ return result;
+#line 377 "shotwell-publishing.c"
+}
+
+
+static void shotwell_publishing_core_services_class_init (ShotwellPublishingCoreServicesClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ shotwell_publishing_core_services_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ g_type_class_add_private (klass, sizeof (ShotwellPublishingCoreServicesPrivate));
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ G_OBJECT_CLASS (klass)->finalize = shotwell_publishing_core_services_finalize;
+#line 388 "shotwell-publishing.c"
+}
+
+
+static void shotwell_publishing_core_services_spit_module_interface_init (SpitModuleIface * iface) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ shotwell_publishing_core_services_spit_module_parent_iface = g_type_interface_peek_parent (iface);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ iface->get_module_name = (const gchar* (*)(SpitModule*)) shotwell_publishing_core_services_real_get_module_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ iface->get_version = (const gchar* (*)(SpitModule*)) shotwell_publishing_core_services_real_get_version;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ iface->get_id = (const gchar* (*)(SpitModule*)) shotwell_publishing_core_services_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ iface->get_pluggables = (SpitPluggable** (*)(SpitModule*, int*)) shotwell_publishing_core_services_real_get_pluggables;
+#line 403 "shotwell-publishing.c"
+}
+
+
+static void shotwell_publishing_core_services_instance_init (ShotwellPublishingCoreServices * self) {
+ SpitPluggable** _tmp0_ = NULL;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self->priv = SHOTWELL_PUBLISHING_CORE_SERVICES_GET_PRIVATE (self);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp0_ = g_new0 (SpitPluggable*, 0 + 1);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self->priv->pluggables = _tmp0_;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self->priv->pluggables_length1 = 0;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self->priv->_pluggables_size_ = self->priv->pluggables_length1;
+#line 419 "shotwell-publishing.c"
+}
+
+
+static void shotwell_publishing_core_services_finalize (GObject* obj) {
+ ShotwellPublishingCoreServices * self;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ G_OBJECT_CLASS (shotwell_publishing_core_services_parent_class)->finalize (obj);
+#line 431 "shotwell-publishing.c"
+}
+
+
+GType shotwell_publishing_core_services_get_type (void) {
+ static volatile gsize shotwell_publishing_core_services_type_id__volatile = 0;
+ if (g_once_init_enter (&shotwell_publishing_core_services_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (ShotwellPublishingCoreServicesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_publishing_core_services_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPublishingCoreServices), 0, (GInstanceInitFunc) shotwell_publishing_core_services_instance_init, NULL };
+ static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_publishing_core_services_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType shotwell_publishing_core_services_type_id;
+ shotwell_publishing_core_services_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPublishingCoreServices", &g_define_type_info, 0);
+ g_type_add_interface_static (shotwell_publishing_core_services_type_id, SPIT_TYPE_MODULE, &spit_module_info);
+ g_once_init_leave (&shotwell_publishing_core_services_type_id__volatile, shotwell_publishing_core_services_type_id);
+ }
+ return shotwell_publishing_core_services_type_id__volatile;
+}
+
+
+SpitModule* spit_entry_point (SpitEntryPointParams* params) {
+ SpitModule* result = NULL;
+ SpitEntryPointParams* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ SpitEntryPointParams* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+ ShotwellPublishingCoreServices* _tmp5_ = NULL;
+ SpitEntryPointParams* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp0_ = params;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp1_ = (*_tmp0_).host_min_spit_interface;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp2_ = params;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp3_ = (*_tmp2_).host_max_spit_interface;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp4_ = spit_negotiate_interfaces (_tmp1_, _tmp3_, SPIT_CURRENT_INTERFACE);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ (*params).module_spit_interface = _tmp4_;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp6_ = params;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp7_ = (*_tmp6_).module_spit_interface;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ if (_tmp7_ != SPIT_UNSUPPORTED_INTERFACE) {
+#line 477 "shotwell-publishing.c"
+ SpitEntryPointParams* _tmp8_ = NULL;
+ GFile* _tmp9_ = NULL;
+ ShotwellPublishingCoreServices* _tmp10_ = NULL;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp8_ = params;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp9_ = (*_tmp8_).module_file;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp10_ = shotwell_publishing_core_services_new (_tmp9_);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _g_object_unref0 (_tmp5_);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp5_ = _tmp10_;
+#line 491 "shotwell-publishing.c"
+ } else {
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _g_object_unref0 (_tmp5_);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ _tmp5_ = NULL;
+#line 497 "shotwell-publishing.c"
+ }
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_MODULE, SpitModule);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala"
+ return result;
+#line 503 "shotwell-publishing.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/plugins/shotwell-publishing/youtube_publishing_options_pane.glade b/plugins/shotwell-publishing/youtube_publishing_options_pane.ui
index cdf82af..cdf82af 100644
--- a/plugins/shotwell-publishing/youtube_publishing_options_pane.glade
+++ b/plugins/shotwell-publishing/youtube_publishing_options_pane.ui
diff --git a/plugins/shotwell-transitions/BlindsEffect.c b/plugins/shotwell-transitions/BlindsEffect.c
new file mode 100644
index 0000000..a8fa711
--- /dev/null
+++ b/plugins/shotwell-transitions/BlindsEffect.c
@@ -0,0 +1,828 @@
+/* BlindsEffect.c generated by valac 0.32.1, the Vala compiler
+ * generated from BlindsEffect.vala, do not modify */
+
+/* Copyright 2013 Jens Bav
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <cairo.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <math.h>
+#include <float.h>
+#include <gdk/gdk.h>
+
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+
+#define TYPE_BLINDS_EFFECT_DESCRIPTOR (blinds_effect_descriptor_get_type ())
+#define BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor))
+#define BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass))
+#define IS_BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR))
+#define IS_BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR))
+#define BLINDS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass))
+
+typedef struct _BlindsEffectDescriptor BlindsEffectDescriptor;
+typedef struct _BlindsEffectDescriptorClass BlindsEffectDescriptorClass;
+typedef struct _BlindsEffectDescriptorPrivate BlindsEffectDescriptorPrivate;
+
+#define TYPE_BLINDS_EFFECT (blinds_effect_get_type ())
+#define BLINDS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT, BlindsEffect))
+#define BLINDS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT, BlindsEffectClass))
+#define IS_BLINDS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT))
+#define IS_BLINDS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT))
+#define BLINDS_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT, BlindsEffectClass))
+
+typedef struct _BlindsEffect BlindsEffect;
+typedef struct _BlindsEffectClass BlindsEffectClass;
+typedef struct _BlindsEffectPrivate BlindsEffectPrivate;
+#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))
+#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+struct _BlindsEffectDescriptor {
+ ShotwellTransitionDescriptor parent_instance;
+ BlindsEffectDescriptorPrivate * priv;
+};
+
+struct _BlindsEffectDescriptorClass {
+ ShotwellTransitionDescriptorClass parent_class;
+};
+
+struct _BlindsEffect {
+ GObject parent_instance;
+ BlindsEffectPrivate * priv;
+};
+
+struct _BlindsEffectClass {
+ GObjectClass parent_class;
+};
+
+struct _BlindsEffectPrivate {
+ gint current_blind_width;
+ cairo_surface_t** to_blinds;
+ gint to_blinds_length1;
+ gint _to_blinds_size_;
+ gint blind_count;
+};
+
+
+static gpointer blinds_effect_descriptor_parent_class = NULL;
+static gpointer blinds_effect_parent_class = NULL;
+static SpitTransitionsEffectIface* blinds_effect_spit_transitions_effect_parent_iface = NULL;
+
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType blinds_effect_descriptor_get_type (void) G_GNUC_CONST;
+enum {
+ BLINDS_EFFECT_DESCRIPTOR_DUMMY_PROPERTY
+};
+BlindsEffectDescriptor* blinds_effect_descriptor_new (GFile* resource_directory);
+BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static const gchar* blinds_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base);
+static const gchar* blinds_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base);
+static SpitTransitionsEffect* blinds_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host);
+BlindsEffect* blinds_effect_new (void);
+BlindsEffect* blinds_effect_construct (GType object_type);
+GType blinds_effect_get_type (void) G_GNUC_CONST;
+#define BLINDS_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BLINDS_EFFECT, BlindsEffectPrivate))
+enum {
+ BLINDS_EFFECT_DUMMY_PROPERTY
+};
+#define BLINDS_EFFECT_DESIRED_FPS 30
+#define BLINDS_EFFECT_MIN_FPS 15
+#define BLINDS_EFFECT_BLIND_WIDTH 50
+static void blinds_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps);
+static gboolean blinds_effect_real_needs_clear_background (SpitTransitionsEffect* base);
+static void blinds_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+static void blinds_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+static void blinds_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+static void blinds_effect_real_cancel (SpitTransitionsEffect* base);
+static void blinds_effect_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);
+
+
+BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, GFile* resource_directory) {
+ BlindsEffectDescriptor * self = NULL;
+ GFile* _tmp0_ = NULL;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp0_ = resource_directory;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = (BlindsEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ return self;
+#line 147 "BlindsEffect.c"
+}
+
+
+BlindsEffectDescriptor* blinds_effect_descriptor_new (GFile* resource_directory) {
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ return blinds_effect_descriptor_construct (TYPE_BLINDS_EFFECT_DESCRIPTOR, resource_directory);
+#line 154 "BlindsEffect.c"
+}
+
+
+static const gchar* blinds_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) {
+ BlindsEffectDescriptor * self;
+ const gchar* result = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ result = "org.yorba.shotwell.transitions.blinds";
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ return result;
+#line 167 "BlindsEffect.c"
+}
+
+
+static const gchar* blinds_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) {
+ BlindsEffectDescriptor * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp0_ = _ ("Blinds");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ return result;
+#line 183 "BlindsEffect.c"
+}
+
+
+static SpitTransitionsEffect* blinds_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) {
+ BlindsEffectDescriptor * self;
+ SpitTransitionsEffect* result = NULL;
+ BlindsEffect* _tmp0_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp0_ = blinds_effect_new ();
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ return result;
+#line 201 "BlindsEffect.c"
+}
+
+
+static void blinds_effect_descriptor_class_init (BlindsEffectDescriptorClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ blinds_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = blinds_effect_descriptor_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = blinds_effect_descriptor_real_get_pluggable_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = blinds_effect_descriptor_real_create;
+#line 214 "BlindsEffect.c"
+}
+
+
+static void blinds_effect_descriptor_instance_init (BlindsEffectDescriptor * self) {
+}
+
+
+GType blinds_effect_descriptor_get_type (void) {
+ static volatile gsize blinds_effect_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&blinds_effect_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (BlindsEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) blinds_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BlindsEffectDescriptor), 0, (GInstanceInitFunc) blinds_effect_descriptor_instance_init, NULL };
+ GType blinds_effect_descriptor_type_id;
+ blinds_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "BlindsEffectDescriptor", &g_define_type_info, 0);
+ g_once_init_leave (&blinds_effect_descriptor_type_id__volatile, blinds_effect_descriptor_type_id);
+ }
+ return blinds_effect_descriptor_type_id__volatile;
+}
+
+
+BlindsEffect* blinds_effect_construct (GType object_type) {
+ BlindsEffect * self = NULL;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = (BlindsEffect*) g_object_new (object_type, NULL);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ return self;
+#line 240 "BlindsEffect.c"
+}
+
+
+BlindsEffect* blinds_effect_new (void) {
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ return blinds_effect_construct (TYPE_BLINDS_EFFECT);
+#line 247 "BlindsEffect.c"
+}
+
+
+static void blinds_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) {
+ BlindsEffect * self;
+ gint _vala_desired_fps = 0;
+ gint _vala_min_fps = 0;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _vala_desired_fps = BLINDS_EFFECT_DESIRED_FPS;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _vala_min_fps = BLINDS_EFFECT_MIN_FPS;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ if (desired_fps) {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ *desired_fps = _vala_desired_fps;
+#line 265 "BlindsEffect.c"
+ }
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ if (min_fps) {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ *min_fps = _vala_min_fps;
+#line 271 "BlindsEffect.c"
+ }
+}
+
+
+static gboolean blinds_effect_real_needs_clear_background (SpitTransitionsEffect* base) {
+ BlindsEffect * self;
+ gboolean result = FALSE;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ result = TRUE;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ return result;
+#line 285 "BlindsEffect.c"
+}
+
+
+static void blinds_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) {
+ BlindsEffect * self;
+ SpitTransitionsVisuals* _tmp0_ = NULL;
+ GdkPixbuf* _tmp1_ = NULL;
+ GdkPixbuf* _tmp2_ = NULL;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp0_ = visuals;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp1_ = spit_transitions_visuals_get_from_pixbuf (_tmp0_);
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp2_ = _tmp1_;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ if (_tmp2_ != NULL) {
+#line 308 "BlindsEffect.c"
+ SpitTransitionsVisuals* _tmp3_ = NULL;
+ GdkPixbuf* _tmp4_ = NULL;
+ GdkPixbuf* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ gint _tmp7_ = 0;
+ SpitTransitionsVisuals* _tmp8_ = NULL;
+ GdkPixbuf* _tmp9_ = NULL;
+ GdkPixbuf* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ gint _tmp12_ = 0;
+ gint _tmp13_ = 0;
+ gdouble _tmp14_ = 0.0;
+ gint _tmp15_ = 0;
+ cairo_surface_t** _tmp16_ = NULL;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp3_ = visuals;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp4_ = spit_transitions_visuals_get_to_pixbuf (_tmp3_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp5_ = _tmp4_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp6_ = gdk_pixbuf_get_width (_tmp5_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp7_ = _tmp6_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self->priv->blind_count = _tmp7_ / BLINDS_EFFECT_BLIND_WIDTH;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp8_ = visuals;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp9_ = spit_transitions_visuals_get_to_pixbuf (_tmp8_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp10_ = _tmp9_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp11_ = gdk_pixbuf_get_width (_tmp10_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp12_ = _tmp11_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp13_ = self->priv->blind_count;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp14_ = ceil (((gdouble) _tmp12_) / ((gdouble) _tmp13_));
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self->priv->current_blind_width = (gint) _tmp14_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp15_ = self->priv->blind_count;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp16_ = g_new0 (cairo_surface_t*, _tmp15_ + 1);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self->priv->to_blinds = (_vala_array_free (self->priv->to_blinds, self->priv->to_blinds_length1, (GDestroyNotify) cairo_surface_destroy), NULL);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self->priv->to_blinds = _tmp16_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self->priv->to_blinds_length1 = _tmp15_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self->priv->_to_blinds_size_ = self->priv->to_blinds_length1;
+#line 363 "BlindsEffect.c"
+ {
+ gint i = 0;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ i = 0;
+#line 368 "BlindsEffect.c"
+ {
+ gboolean _tmp17_ = FALSE;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp17_ = TRUE;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ while (TRUE) {
+#line 375 "BlindsEffect.c"
+ gint _tmp19_ = 0;
+ gint _tmp20_ = 0;
+ cairo_surface_t** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+ gint _tmp22_ = 0;
+ gint _tmp23_ = 0;
+ SpitTransitionsVisuals* _tmp24_ = NULL;
+ GdkPixbuf* _tmp25_ = NULL;
+ GdkPixbuf* _tmp26_ = NULL;
+ gint _tmp27_ = 0;
+ gint _tmp28_ = 0;
+ cairo_surface_t* _tmp29_ = NULL;
+ cairo_surface_t* _tmp30_ = NULL;
+ cairo_t* ctx = NULL;
+ cairo_surface_t** _tmp31_ = NULL;
+ gint _tmp31__length1 = 0;
+ gint _tmp32_ = 0;
+ cairo_surface_t* _tmp33_ = NULL;
+ cairo_t* _tmp34_ = NULL;
+ cairo_t* _tmp35_ = NULL;
+ SpitTransitionsVisuals* _tmp36_ = NULL;
+ GdkPixbuf* _tmp37_ = NULL;
+ GdkPixbuf* _tmp38_ = NULL;
+ gint _tmp39_ = 0;
+ gint _tmp40_ = 0;
+ cairo_t* _tmp41_ = NULL;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ if (!_tmp17_) {
+#line 404 "BlindsEffect.c"
+ gint _tmp18_ = 0;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp18_ = i;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ i = _tmp18_ + 1;
+#line 410 "BlindsEffect.c"
+ }
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp17_ = FALSE;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp19_ = i;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp20_ = self->priv->blind_count;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ if (!(_tmp19_ < _tmp20_)) {
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ break;
+#line 422 "BlindsEffect.c"
+ }
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp21_ = self->priv->to_blinds;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp21__length1 = self->priv->to_blinds_length1;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp22_ = i;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp23_ = self->priv->current_blind_width;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp24_ = visuals;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp25_ = spit_transitions_visuals_get_to_pixbuf (_tmp24_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp26_ = _tmp25_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp27_ = gdk_pixbuf_get_height (_tmp26_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp28_ = _tmp27_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp29_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, _tmp23_, _tmp28_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _cairo_surface_destroy0 (_tmp21_[_tmp22_]);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp21_[_tmp22_] = _tmp29_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp30_ = _tmp21_[_tmp22_];
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp31_ = self->priv->to_blinds;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp31__length1 = self->priv->to_blinds_length1;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp32_ = i;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp33_ = _tmp31_[_tmp32_];
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp34_ = cairo_create (_tmp33_);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ ctx = _tmp34_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp35_ = ctx;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp36_ = visuals;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp37_ = spit_transitions_visuals_get_to_pixbuf (_tmp36_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp38_ = _tmp37_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp39_ = i;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp40_ = self->priv->current_blind_width;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp35_, _tmp38_, (gdouble) ((-_tmp39_) * _tmp40_), (gdouble) 0);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp41_ = ctx;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ cairo_paint (_tmp41_);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _cairo_destroy0 (ctx);
+#line 482 "BlindsEffect.c"
+ }
+ }
+ }
+ }
+}
+
+
+static void blinds_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) {
+ BlindsEffect * self;
+ gdouble alpha = 0.0;
+ SpitTransitionsMotion* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gdouble _tmp2_ = 0.0;
+ gint y = 0;
+ SpitTransitionsVisuals* _tmp3_ = NULL;
+ GdkRectangle _tmp4_ = {0};
+ GdkRectangle _tmp5_ = {0};
+ gint _tmp6_ = 0;
+ gint x = 0;
+ SpitTransitionsVisuals* _tmp7_ = NULL;
+ GdkRectangle _tmp8_ = {0};
+ GdkRectangle _tmp9_ = {0};
+ gint _tmp10_ = 0;
+ SpitTransitionsVisuals* _tmp11_ = NULL;
+ GdkPixbuf* _tmp12_ = NULL;
+ GdkPixbuf* _tmp13_ = NULL;
+ cairo_t* _tmp53_ = NULL;
+ cairo_t* _tmp54_ = NULL;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ g_return_if_fail (ctx != NULL);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp0_ = motion;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp1_ = frame_number;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ alpha = _tmp2_;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp3_ = visuals;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp3_, &_tmp4_);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp5_ = _tmp4_;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp6_ = _tmp5_.y;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ y = _tmp6_;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp7_ = visuals;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp7_, &_tmp8_);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp9_ = _tmp8_;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp10_ = _tmp9_.x;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ x = _tmp10_;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp11_ = visuals;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp12_ = spit_transitions_visuals_get_from_pixbuf (_tmp11_);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp13_ = _tmp12_;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ if (_tmp13_ != NULL) {
+#line 555 "BlindsEffect.c"
+ cairo_t* _tmp14_ = NULL;
+ SpitTransitionsVisuals* _tmp15_ = NULL;
+ GdkPixbuf* _tmp16_ = NULL;
+ GdkPixbuf* _tmp17_ = NULL;
+ SpitTransitionsVisuals* _tmp18_ = NULL;
+ GdkRectangle _tmp19_ = {0};
+ GdkRectangle _tmp20_ = {0};
+ gint _tmp21_ = 0;
+ SpitTransitionsVisuals* _tmp22_ = NULL;
+ GdkRectangle _tmp23_ = {0};
+ GdkRectangle _tmp24_ = {0};
+ gint _tmp25_ = 0;
+ cairo_t* _tmp26_ = NULL;
+ gdouble _tmp27_ = 0.0;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp14_ = ctx;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp15_ = visuals;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp16_ = spit_transitions_visuals_get_from_pixbuf (_tmp15_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp17_ = _tmp16_;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp18_ = visuals;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp18_, &_tmp19_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp20_ = _tmp19_;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp21_ = _tmp20_.x;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp22_ = visuals;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp22_, &_tmp23_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp24_ = _tmp23_;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp25_ = _tmp24_.y;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp14_, _tmp17_, (gdouble) _tmp21_, (gdouble) _tmp25_);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp26_ = ctx;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp27_ = alpha;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ cairo_paint_with_alpha (_tmp26_, 1 - (_tmp27_ * 2));
+#line 602 "BlindsEffect.c"
+ }
+ {
+ gint i = 0;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ i = 0;
+#line 608 "BlindsEffect.c"
+ {
+ gboolean _tmp28_ = FALSE;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp28_ = TRUE;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ while (TRUE) {
+#line 615 "BlindsEffect.c"
+ gint _tmp30_ = 0;
+ gint _tmp31_ = 0;
+ cairo_t* _tmp32_ = NULL;
+ cairo_surface_t** _tmp33_ = NULL;
+ gint _tmp33__length1 = 0;
+ gint _tmp34_ = 0;
+ cairo_surface_t* _tmp35_ = NULL;
+ gint _tmp36_ = 0;
+ gint _tmp37_ = 0;
+ gint _tmp38_ = 0;
+ gint _tmp39_ = 0;
+ cairo_t* _tmp40_ = NULL;
+ gint _tmp41_ = 0;
+ gint _tmp42_ = 0;
+ gint _tmp43_ = 0;
+ gint _tmp44_ = 0;
+ gint _tmp45_ = 0;
+ gdouble _tmp46_ = 0.0;
+ SpitTransitionsVisuals* _tmp47_ = NULL;
+ GdkPixbuf* _tmp48_ = NULL;
+ GdkPixbuf* _tmp49_ = NULL;
+ gint _tmp50_ = 0;
+ gint _tmp51_ = 0;
+ cairo_t* _tmp52_ = NULL;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ if (!_tmp28_) {
+#line 642 "BlindsEffect.c"
+ gint _tmp29_ = 0;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp29_ = i;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ i = _tmp29_ + 1;
+#line 648 "BlindsEffect.c"
+ }
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp28_ = FALSE;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp30_ = i;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp31_ = self->priv->blind_count;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ if (!(_tmp30_ < _tmp31_)) {
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ break;
+#line 660 "BlindsEffect.c"
+ }
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp32_ = ctx;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp33_ = self->priv->to_blinds;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp33__length1 = self->priv->to_blinds_length1;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp34_ = i;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp35_ = _tmp33_[_tmp34_];
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp36_ = x;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp37_ = i;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp38_ = self->priv->current_blind_width;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp39_ = y;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ cairo_set_source_surface (_tmp32_, _tmp35_, (gdouble) (_tmp36_ + (_tmp37_ * _tmp38_)), (gdouble) _tmp39_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp40_ = ctx;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp41_ = x;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp42_ = i;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp43_ = self->priv->current_blind_width;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp44_ = y;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp45_ = self->priv->current_blind_width;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp46_ = alpha;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp47_ = visuals;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp48_ = spit_transitions_visuals_get_to_pixbuf (_tmp47_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp49_ = _tmp48_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp50_ = gdk_pixbuf_get_height (_tmp49_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp51_ = _tmp50_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ cairo_rectangle (_tmp40_, (gdouble) (_tmp41_ + (_tmp42_ * _tmp43_)), (gdouble) _tmp44_, _tmp45_ * (_tmp46_ + 0.5), (gdouble) _tmp51_);
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp52_ = ctx;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ cairo_fill (_tmp52_);
+#line 712 "BlindsEffect.c"
+ }
+ }
+ }
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp53_ = ctx;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ cairo_clip (_tmp53_);
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ _tmp54_ = ctx;
+#line 88 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ cairo_paint (_tmp54_);
+#line 724 "BlindsEffect.c"
+}
+
+
+static void blinds_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) {
+ BlindsEffect * self;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 736 "BlindsEffect.c"
+}
+
+
+static void blinds_effect_real_cancel (SpitTransitionsEffect* base) {
+ BlindsEffect * self;
+#line 94 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect);
+#line 744 "BlindsEffect.c"
+}
+
+
+static void blinds_effect_class_init (BlindsEffectClass * klass) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ blinds_effect_parent_class = g_type_class_peek_parent (klass);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ g_type_class_add_private (klass, sizeof (BlindsEffectPrivate));
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ G_OBJECT_CLASS (klass)->finalize = blinds_effect_finalize;
+#line 755 "BlindsEffect.c"
+}
+
+
+static void blinds_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ blinds_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ iface->get_fps = (void (*)(SpitTransitionsEffect*, gint*, gint*)) blinds_effect_real_get_fps;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ iface->needs_clear_background = (gboolean (*)(SpitTransitionsEffect*)) blinds_effect_real_needs_clear_background;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ iface->start = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*)) blinds_effect_real_start;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ iface->paint = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) blinds_effect_real_paint;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ iface->advance = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) blinds_effect_real_advance;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ iface->cancel = (void (*)(SpitTransitionsEffect*)) blinds_effect_real_cancel;
+#line 774 "BlindsEffect.c"
+}
+
+
+static void blinds_effect_instance_init (BlindsEffect * self) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self->priv = BLINDS_EFFECT_GET_PRIVATE (self);
+#line 781 "BlindsEffect.c"
+}
+
+
+static void blinds_effect_finalize (GObject* obj) {
+ BlindsEffect * self;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BLINDS_EFFECT, BlindsEffect);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ self->priv->to_blinds = (_vala_array_free (self->priv->to_blinds, self->priv->to_blinds_length1, (GDestroyNotify) cairo_surface_destroy), NULL);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala"
+ G_OBJECT_CLASS (blinds_effect_parent_class)->finalize (obj);
+#line 793 "BlindsEffect.c"
+}
+
+
+GType blinds_effect_get_type (void) {
+ static volatile gsize blinds_effect_type_id__volatile = 0;
+ if (g_once_init_enter (&blinds_effect_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (BlindsEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) blinds_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BlindsEffect), 0, (GInstanceInitFunc) blinds_effect_instance_init, NULL };
+ static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) blinds_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType blinds_effect_type_id;
+ blinds_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "BlindsEffect", &g_define_type_info, 0);
+ g_type_add_interface_static (blinds_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
+ g_once_init_leave (&blinds_effect_type_id__volatile, blinds_effect_type_id);
+ }
+ return blinds_effect_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/plugins/shotwell-transitions/ChessEffect.c b/plugins/shotwell-transitions/ChessEffect.c
new file mode 100644
index 0000000..a59a2e6
--- /dev/null
+++ b/plugins/shotwell-transitions/ChessEffect.c
@@ -0,0 +1,769 @@
+/* ChessEffect.c generated by valac 0.32.1, the Vala compiler
+ * generated from ChessEffect.vala, do not modify */
+
+/* Copyright 2013 Jens Bav
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <float.h>
+#include <math.h>
+#include <cairo.h>
+#include <gdk/gdk.h>
+
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+
+#define TYPE_CHESS_EFFECT_DESCRIPTOR (chess_effect_descriptor_get_type ())
+#define CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor))
+#define CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass))
+#define IS_CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR))
+#define IS_CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR))
+#define CHESS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass))
+
+typedef struct _ChessEffectDescriptor ChessEffectDescriptor;
+typedef struct _ChessEffectDescriptorClass ChessEffectDescriptorClass;
+typedef struct _ChessEffectDescriptorPrivate ChessEffectDescriptorPrivate;
+
+#define TYPE_CHESS_EFFECT (chess_effect_get_type ())
+#define CHESS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT, ChessEffect))
+#define CHESS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT, ChessEffectClass))
+#define IS_CHESS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT))
+#define IS_CHESS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT))
+#define CHESS_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT, ChessEffectClass))
+
+typedef struct _ChessEffect ChessEffect;
+typedef struct _ChessEffectClass ChessEffectClass;
+typedef struct _ChessEffectPrivate ChessEffectPrivate;
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+struct _ChessEffectDescriptor {
+ ShotwellTransitionDescriptor parent_instance;
+ ChessEffectDescriptorPrivate * priv;
+};
+
+struct _ChessEffectDescriptorClass {
+ ShotwellTransitionDescriptorClass parent_class;
+};
+
+struct _ChessEffect {
+ GObject parent_instance;
+ ChessEffectPrivate * priv;
+};
+
+struct _ChessEffectClass {
+ GObjectClass parent_class;
+};
+
+struct _ChessEffectPrivate {
+ gdouble square_count_x;
+ gdouble square_count_y;
+};
+
+
+static gpointer chess_effect_descriptor_parent_class = NULL;
+static gpointer chess_effect_parent_class = NULL;
+static SpitTransitionsEffectIface* chess_effect_spit_transitions_effect_parent_iface = NULL;
+
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType chess_effect_descriptor_get_type (void) G_GNUC_CONST;
+enum {
+ CHESS_EFFECT_DESCRIPTOR_DUMMY_PROPERTY
+};
+ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory);
+ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static const gchar* chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base);
+static const gchar* chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base);
+static SpitTransitionsEffect* chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host);
+ChessEffect* chess_effect_new (void);
+ChessEffect* chess_effect_construct (GType object_type);
+GType chess_effect_get_type (void) G_GNUC_CONST;
+#define CHESS_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHESS_EFFECT, ChessEffectPrivate))
+enum {
+ CHESS_EFFECT_DUMMY_PROPERTY
+};
+#define CHESS_EFFECT_DESIRED_FPS 25
+#define CHESS_EFFECT_MIN_FPS 10
+#define CHESS_EFFECT_SQUARE_SIZE 100
+static void chess_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps);
+static void chess_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+static gboolean chess_effect_real_needs_clear_background (SpitTransitionsEffect* base);
+static void chess_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+static void chess_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+static void chess_effect_real_cancel (SpitTransitionsEffect* base);
+static void chess_effect_finalize (GObject* obj);
+
+
+ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, GFile* resource_directory) {
+ ChessEffectDescriptor * self = NULL;
+ GFile* _tmp0_ = NULL;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp0_ = resource_directory;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = (ChessEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ return self;
+#line 139 "ChessEffect.c"
+}
+
+
+ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory) {
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ return chess_effect_descriptor_construct (TYPE_CHESS_EFFECT_DESCRIPTOR, resource_directory);
+#line 146 "ChessEffect.c"
+}
+
+
+static const gchar* chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) {
+ ChessEffectDescriptor * self;
+ const gchar* result = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ result = "org.yorba.shotwell.transitions.chess";
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ return result;
+#line 159 "ChessEffect.c"
+}
+
+
+static const gchar* chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) {
+ ChessEffectDescriptor * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp0_ = _ ("Chess");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ return result;
+#line 175 "ChessEffect.c"
+}
+
+
+static SpitTransitionsEffect* chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) {
+ ChessEffectDescriptor * self;
+ SpitTransitionsEffect* result = NULL;
+ ChessEffect* _tmp0_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp0_ = chess_effect_new ();
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ return result;
+#line 193 "ChessEffect.c"
+}
+
+
+static void chess_effect_descriptor_class_init (ChessEffectDescriptorClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ chess_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = chess_effect_descriptor_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = chess_effect_descriptor_real_get_pluggable_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = chess_effect_descriptor_real_create;
+#line 206 "ChessEffect.c"
+}
+
+
+static void chess_effect_descriptor_instance_init (ChessEffectDescriptor * self) {
+}
+
+
+GType chess_effect_descriptor_get_type (void) {
+ static volatile gsize chess_effect_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&chess_effect_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (ChessEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) chess_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ChessEffectDescriptor), 0, (GInstanceInitFunc) chess_effect_descriptor_instance_init, NULL };
+ GType chess_effect_descriptor_type_id;
+ chess_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "ChessEffectDescriptor", &g_define_type_info, 0);
+ g_once_init_leave (&chess_effect_descriptor_type_id__volatile, chess_effect_descriptor_type_id);
+ }
+ return chess_effect_descriptor_type_id__volatile;
+}
+
+
+ChessEffect* chess_effect_construct (GType object_type) {
+ ChessEffect * self = NULL;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = (ChessEffect*) g_object_new (object_type, NULL);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ return self;
+#line 232 "ChessEffect.c"
+}
+
+
+ChessEffect* chess_effect_new (void) {
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ return chess_effect_construct (TYPE_CHESS_EFFECT);
+#line 239 "ChessEffect.c"
+}
+
+
+static void chess_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) {
+ ChessEffect * self;
+ gint _vala_desired_fps = 0;
+ gint _vala_min_fps = 0;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _vala_desired_fps = CHESS_EFFECT_DESIRED_FPS;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _vala_min_fps = CHESS_EFFECT_MIN_FPS;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ if (desired_fps) {
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ *desired_fps = _vala_desired_fps;
+#line 257 "ChessEffect.c"
+ }
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ if (min_fps) {
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ *min_fps = _vala_min_fps;
+#line 263 "ChessEffect.c"
+ }
+}
+
+
+static void chess_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) {
+ ChessEffect * self;
+ SpitTransitionsVisuals* _tmp0_ = NULL;
+ GdkRectangle _tmp1_ = {0};
+ GdkRectangle _tmp2_ = {0};
+ gint _tmp3_ = 0;
+ SpitTransitionsVisuals* _tmp4_ = NULL;
+ GdkRectangle _tmp5_ = {0};
+ GdkRectangle _tmp6_ = {0};
+ gint _tmp7_ = 0;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp0_ = visuals;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp0_, &_tmp1_);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp2_ = _tmp1_;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp3_ = _tmp2_.height;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self->priv->square_count_y = (gdouble) ((_tmp3_ / CHESS_EFFECT_SQUARE_SIZE) + 2);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp4_ = visuals;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp4_, &_tmp5_);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp6_ = _tmp5_;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp7_ = _tmp6_.width;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self->priv->square_count_x = (gdouble) ((_tmp7_ / CHESS_EFFECT_SQUARE_SIZE) + 2);
+#line 304 "ChessEffect.c"
+}
+
+
+static gboolean chess_effect_real_needs_clear_background (SpitTransitionsEffect* base) {
+ ChessEffect * self;
+ gboolean result = FALSE;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ result = TRUE;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ return result;
+#line 317 "ChessEffect.c"
+}
+
+
+static void chess_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) {
+ ChessEffect * self;
+ gdouble alpha = 0.0;
+ SpitTransitionsMotion* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gdouble _tmp2_ = 0.0;
+ gdouble size = 0.0;
+ gdouble _tmp3_ = 0.0;
+ SpitTransitionsVisuals* _tmp4_ = NULL;
+ GdkPixbuf* _tmp5_ = NULL;
+ GdkPixbuf* _tmp6_ = NULL;
+ SpitTransitionsVisuals* _tmp21_ = NULL;
+ GdkPixbuf* _tmp22_ = NULL;
+ GdkPixbuf* _tmp23_ = NULL;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ g_return_if_fail (ctx != NULL);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp0_ = motion;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp1_ = frame_number;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ alpha = _tmp2_;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp3_ = alpha;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ size = (2 * _tmp3_) * CHESS_EFFECT_SQUARE_SIZE;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp4_ = visuals;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp5_ = spit_transitions_visuals_get_from_pixbuf (_tmp4_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp6_ = _tmp5_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ if (_tmp6_ != NULL) {
+#line 363 "ChessEffect.c"
+ cairo_t* _tmp7_ = NULL;
+ SpitTransitionsVisuals* _tmp8_ = NULL;
+ GdkPixbuf* _tmp9_ = NULL;
+ GdkPixbuf* _tmp10_ = NULL;
+ SpitTransitionsVisuals* _tmp11_ = NULL;
+ GdkRectangle _tmp12_ = {0};
+ GdkRectangle _tmp13_ = {0};
+ gint _tmp14_ = 0;
+ SpitTransitionsVisuals* _tmp15_ = NULL;
+ GdkRectangle _tmp16_ = {0};
+ GdkRectangle _tmp17_ = {0};
+ gint _tmp18_ = 0;
+ cairo_t* _tmp19_ = NULL;
+ gdouble _tmp20_ = 0.0;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp7_ = ctx;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp8_ = visuals;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp9_ = spit_transitions_visuals_get_from_pixbuf (_tmp8_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp10_ = _tmp9_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp11_ = visuals;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp11_, &_tmp12_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp13_ = _tmp12_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp14_ = _tmp13_.x;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp15_ = visuals;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp15_, &_tmp16_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp17_ = _tmp16_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp18_ = _tmp17_.y;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp7_, _tmp10_, (gdouble) _tmp14_, (gdouble) _tmp18_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp19_ = ctx;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp20_ = alpha;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ cairo_paint_with_alpha (_tmp19_, 1 - _tmp20_);
+#line 410 "ChessEffect.c"
+ }
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp21_ = visuals;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp22_ = spit_transitions_visuals_get_to_pixbuf (_tmp21_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp23_ = _tmp22_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ if (_tmp23_ != NULL) {
+#line 420 "ChessEffect.c"
+ cairo_t* _tmp24_ = NULL;
+ SpitTransitionsVisuals* _tmp25_ = NULL;
+ GdkPixbuf* _tmp26_ = NULL;
+ GdkPixbuf* _tmp27_ = NULL;
+ SpitTransitionsVisuals* _tmp28_ = NULL;
+ GdkRectangle _tmp29_ = {0};
+ GdkRectangle _tmp30_ = {0};
+ gint _tmp31_ = 0;
+ SpitTransitionsVisuals* _tmp32_ = NULL;
+ GdkRectangle _tmp33_ = {0};
+ GdkRectangle _tmp34_ = {0};
+ gint _tmp35_ = 0;
+ cairo_t* _tmp81_ = NULL;
+ cairo_t* _tmp82_ = NULL;
+ gdouble _tmp83_ = 0.0;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp24_ = ctx;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp25_ = visuals;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp26_ = spit_transitions_visuals_get_to_pixbuf (_tmp25_);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp27_ = _tmp26_;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp28_ = visuals;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp28_, &_tmp29_);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp30_ = _tmp29_;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp31_ = _tmp30_.x;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp32_ = visuals;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp32_, &_tmp33_);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp34_ = _tmp33_;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp35_ = _tmp34_.y;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp24_, _tmp27_, (gdouble) _tmp31_, (gdouble) _tmp35_);
+#line 462 "ChessEffect.c"
+ {
+ gdouble y = 0.0;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ y = (gdouble) 0;
+#line 467 "ChessEffect.c"
+ {
+ gboolean _tmp36_ = FALSE;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp36_ = TRUE;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ while (TRUE) {
+#line 474 "ChessEffect.c"
+ gdouble _tmp38_ = 0.0;
+ gdouble _tmp39_ = 0.0;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ if (!_tmp36_) {
+#line 479 "ChessEffect.c"
+ gdouble _tmp37_ = 0.0;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp37_ = y;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ y = _tmp37_ + 1;
+#line 485 "ChessEffect.c"
+ }
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp36_ = FALSE;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp38_ = y;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp39_ = self->priv->square_count_y;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ if (!(_tmp38_ <= _tmp39_)) {
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ break;
+#line 497 "ChessEffect.c"
+ }
+ {
+ gdouble x = 0.0;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ x = (gdouble) 0;
+#line 503 "ChessEffect.c"
+ {
+ gboolean _tmp40_ = FALSE;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp40_ = TRUE;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ while (TRUE) {
+#line 510 "ChessEffect.c"
+ gdouble _tmp42_ = 0.0;
+ gdouble _tmp43_ = 0.0;
+ gdouble _tmp44_ = 0.0;
+ gdouble _tmp45_ = 0.0;
+ gdouble _tmp46_ = 0.0;
+ gdouble translation = 0.0;
+ SpitTransitionsMotion* _tmp47_ = NULL;
+ SpitTransitionsDirection _tmp48_ = 0;
+ SpitTransitionsDirection _tmp49_ = 0;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ if (!_tmp40_) {
+#line 522 "ChessEffect.c"
+ gdouble _tmp41_ = 0.0;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp41_ = x;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ x = _tmp41_ + 1;
+#line 528 "ChessEffect.c"
+ }
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp40_ = FALSE;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp42_ = x;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp43_ = self->priv->square_count_x;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ if (!(_tmp42_ <= _tmp43_)) {
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ break;
+#line 540 "ChessEffect.c"
+ }
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp45_ = x;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp46_ = y;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ if (fmod (_tmp45_ + _tmp46_, 2) == ((gdouble) 0)) {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp44_ = (-1.5) * CHESS_EFFECT_SQUARE_SIZE;
+#line 550 "ChessEffect.c"
+ } else {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp44_ = 1.5 * CHESS_EFFECT_SQUARE_SIZE;
+#line 554 "ChessEffect.c"
+ }
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ translation = _tmp44_;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp47_ = motion;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp48_ = spit_transitions_motion_get_direction (_tmp47_);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp49_ = _tmp48_;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ if (_tmp49_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) {
+#line 566 "ChessEffect.c"
+ cairo_t* _tmp50_ = NULL;
+ SpitTransitionsVisuals* _tmp51_ = NULL;
+ GdkRectangle _tmp52_ = {0};
+ GdkRectangle _tmp53_ = {0};
+ gint _tmp54_ = 0;
+ gdouble _tmp55_ = 0.0;
+ gdouble _tmp56_ = 0.0;
+ SpitTransitionsVisuals* _tmp57_ = NULL;
+ GdkRectangle _tmp58_ = {0};
+ GdkRectangle _tmp59_ = {0};
+ gint _tmp60_ = 0;
+ gdouble _tmp61_ = 0.0;
+ gdouble _tmp62_ = 0.0;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp50_ = ctx;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp51_ = visuals;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp51_, &_tmp52_);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp53_ = _tmp52_;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp54_ = _tmp53_.x;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp55_ = translation;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp56_ = x;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp57_ = visuals;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp57_, &_tmp58_);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp59_ = _tmp58_;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp60_ = _tmp59_.y;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp61_ = y;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp62_ = size;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ cairo_rectangle (_tmp50_, (_tmp54_ + _tmp55_) + (_tmp56_ * CHESS_EFFECT_SQUARE_SIZE), _tmp60_ + (_tmp61_ * CHESS_EFFECT_SQUARE_SIZE), _tmp62_, (gdouble) CHESS_EFFECT_SQUARE_SIZE);
+#line 608 "ChessEffect.c"
+ } else {
+ cairo_t* _tmp63_ = NULL;
+ SpitTransitionsVisuals* _tmp64_ = NULL;
+ GdkRectangle _tmp65_ = {0};
+ GdkRectangle _tmp66_ = {0};
+ gint _tmp67_ = 0;
+ SpitTransitionsVisuals* _tmp68_ = NULL;
+ GdkRectangle _tmp69_ = {0};
+ GdkRectangle _tmp70_ = {0};
+ gint _tmp71_ = 0;
+ gdouble _tmp72_ = 0.0;
+ gdouble _tmp73_ = 0.0;
+ gdouble _tmp74_ = 0.0;
+ SpitTransitionsVisuals* _tmp75_ = NULL;
+ GdkRectangle _tmp76_ = {0};
+ GdkRectangle _tmp77_ = {0};
+ gint _tmp78_ = 0;
+ gdouble _tmp79_ = 0.0;
+ gdouble _tmp80_ = 0.0;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp63_ = ctx;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp64_ = visuals;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp64_, &_tmp65_);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp66_ = _tmp65_;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp67_ = _tmp66_.x;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp68_ = visuals;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp68_, &_tmp69_);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp70_ = _tmp69_;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp71_ = _tmp70_.width;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp72_ = translation;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp73_ = x;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp74_ = size;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp75_ = visuals;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp75_, &_tmp76_);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp77_ = _tmp76_;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp78_ = _tmp77_.y;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp79_ = y;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp80_ = size;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ cairo_rectangle (_tmp63_, (((_tmp67_ + _tmp71_) + _tmp72_) - (_tmp73_ * CHESS_EFFECT_SQUARE_SIZE)) - _tmp74_, _tmp78_ + (_tmp79_ * CHESS_EFFECT_SQUARE_SIZE), _tmp80_, (gdouble) CHESS_EFFECT_SQUARE_SIZE);
+#line 666 "ChessEffect.c"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp81_ = ctx;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ cairo_clip (_tmp81_);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp82_ = ctx;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ _tmp83_ = alpha;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ cairo_paint_with_alpha (_tmp82_, _tmp83_);
+#line 684 "ChessEffect.c"
+ }
+}
+
+
+static void chess_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) {
+ ChessEffect * self;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 697 "ChessEffect.c"
+}
+
+
+static void chess_effect_real_cancel (SpitTransitionsEffect* base) {
+ ChessEffect * self;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect);
+#line 705 "ChessEffect.c"
+}
+
+
+static void chess_effect_class_init (ChessEffectClass * klass) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ chess_effect_parent_class = g_type_class_peek_parent (klass);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ g_type_class_add_private (klass, sizeof (ChessEffectPrivate));
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ G_OBJECT_CLASS (klass)->finalize = chess_effect_finalize;
+#line 716 "ChessEffect.c"
+}
+
+
+static void chess_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ chess_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ iface->get_fps = (void (*)(SpitTransitionsEffect*, gint*, gint*)) chess_effect_real_get_fps;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ iface->start = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*)) chess_effect_real_start;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ iface->needs_clear_background = (gboolean (*)(SpitTransitionsEffect*)) chess_effect_real_needs_clear_background;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ iface->paint = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) chess_effect_real_paint;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ iface->advance = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) chess_effect_real_advance;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ iface->cancel = (void (*)(SpitTransitionsEffect*)) chess_effect_real_cancel;
+#line 735 "ChessEffect.c"
+}
+
+
+static void chess_effect_instance_init (ChessEffect * self) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self->priv = CHESS_EFFECT_GET_PRIVATE (self);
+#line 742 "ChessEffect.c"
+}
+
+
+static void chess_effect_finalize (GObject* obj) {
+ ChessEffect * self;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHESS_EFFECT, ChessEffect);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala"
+ G_OBJECT_CLASS (chess_effect_parent_class)->finalize (obj);
+#line 752 "ChessEffect.c"
+}
+
+
+GType chess_effect_get_type (void) {
+ static volatile gsize chess_effect_type_id__volatile = 0;
+ if (g_once_init_enter (&chess_effect_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (ChessEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) chess_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ChessEffect), 0, (GInstanceInitFunc) chess_effect_instance_init, NULL };
+ static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) chess_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType chess_effect_type_id;
+ chess_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "ChessEffect", &g_define_type_info, 0);
+ g_type_add_interface_static (chess_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
+ g_once_init_leave (&chess_effect_type_id__volatile, chess_effect_type_id);
+ }
+ return chess_effect_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-transitions/CircleEffect.c b/plugins/shotwell-transitions/CircleEffect.c
new file mode 100644
index 0000000..0bd66ef
--- /dev/null
+++ b/plugins/shotwell-transitions/CircleEffect.c
@@ -0,0 +1,524 @@
+/* CircleEffect.c generated by valac 0.32.1, the Vala compiler
+ * generated from CircleEffect.vala, do not modify */
+
+/* Copyright 2013 Jens Bav
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <cairo.h>
+#include <float.h>
+#include <math.h>
+#include <gdk/gdk.h>
+
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+
+#define TYPE_CIRCLE_EFFECT_DESCRIPTOR (circle_effect_descriptor_get_type ())
+#define CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor))
+#define CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass))
+#define IS_CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR))
+#define IS_CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR))
+#define CIRCLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass))
+
+typedef struct _CircleEffectDescriptor CircleEffectDescriptor;
+typedef struct _CircleEffectDescriptorClass CircleEffectDescriptorClass;
+typedef struct _CircleEffectDescriptorPrivate CircleEffectDescriptorPrivate;
+
+#define TYPE_CIRCLE_EFFECT (circle_effect_get_type ())
+#define CIRCLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT, CircleEffect))
+#define CIRCLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT, CircleEffectClass))
+#define IS_CIRCLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT))
+#define IS_CIRCLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT))
+#define CIRCLE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT, CircleEffectClass))
+
+typedef struct _CircleEffect CircleEffect;
+typedef struct _CircleEffectClass CircleEffectClass;
+typedef struct _CircleEffectPrivate CircleEffectPrivate;
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+struct _CircleEffectDescriptor {
+ ShotwellTransitionDescriptor parent_instance;
+ CircleEffectDescriptorPrivate * priv;
+};
+
+struct _CircleEffectDescriptorClass {
+ ShotwellTransitionDescriptorClass parent_class;
+};
+
+struct _CircleEffect {
+ GObject parent_instance;
+ CircleEffectPrivate * priv;
+};
+
+struct _CircleEffectClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer circle_effect_descriptor_parent_class = NULL;
+static gpointer circle_effect_parent_class = NULL;
+static SpitTransitionsEffectIface* circle_effect_spit_transitions_effect_parent_iface = NULL;
+
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType circle_effect_descriptor_get_type (void) G_GNUC_CONST;
+enum {
+ CIRCLE_EFFECT_DESCRIPTOR_DUMMY_PROPERTY
+};
+CircleEffectDescriptor* circle_effect_descriptor_new (GFile* resource_directory);
+CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static const gchar* circle_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base);
+static const gchar* circle_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base);
+static SpitTransitionsEffect* circle_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host);
+CircleEffect* circle_effect_new (void);
+CircleEffect* circle_effect_construct (GType object_type);
+GType circle_effect_get_type (void) G_GNUC_CONST;
+enum {
+ CIRCLE_EFFECT_DUMMY_PROPERTY
+};
+#define CIRCLE_EFFECT_DESIRED_FPS 25
+#define CIRCLE_EFFECT_MIN_FPS 15
+static void circle_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps);
+static void circle_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+static gboolean circle_effect_real_needs_clear_background (SpitTransitionsEffect* base);
+static void circle_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+static void circle_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+static void circle_effect_real_cancel (SpitTransitionsEffect* base);
+
+
+CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, GFile* resource_directory) {
+ CircleEffectDescriptor * self = NULL;
+ GFile* _tmp0_ = NULL;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp0_ = resource_directory;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = (CircleEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ return self;
+#line 131 "CircleEffect.c"
+}
+
+
+CircleEffectDescriptor* circle_effect_descriptor_new (GFile* resource_directory) {
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ return circle_effect_descriptor_construct (TYPE_CIRCLE_EFFECT_DESCRIPTOR, resource_directory);
+#line 138 "CircleEffect.c"
+}
+
+
+static const gchar* circle_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) {
+ CircleEffectDescriptor * self;
+ const gchar* result = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ result = "org.yorba.shotwell.transitions.circle";
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ return result;
+#line 151 "CircleEffect.c"
+}
+
+
+static const gchar* circle_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) {
+ CircleEffectDescriptor * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp0_ = _ ("Circle");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ return result;
+#line 167 "CircleEffect.c"
+}
+
+
+static SpitTransitionsEffect* circle_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) {
+ CircleEffectDescriptor * self;
+ SpitTransitionsEffect* result = NULL;
+ CircleEffect* _tmp0_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp0_ = circle_effect_new ();
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ return result;
+#line 185 "CircleEffect.c"
+}
+
+
+static void circle_effect_descriptor_class_init (CircleEffectDescriptorClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ circle_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = circle_effect_descriptor_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = circle_effect_descriptor_real_get_pluggable_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = circle_effect_descriptor_real_create;
+#line 198 "CircleEffect.c"
+}
+
+
+static void circle_effect_descriptor_instance_init (CircleEffectDescriptor * self) {
+}
+
+
+GType circle_effect_descriptor_get_type (void) {
+ static volatile gsize circle_effect_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&circle_effect_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (CircleEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circle_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CircleEffectDescriptor), 0, (GInstanceInitFunc) circle_effect_descriptor_instance_init, NULL };
+ GType circle_effect_descriptor_type_id;
+ circle_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CircleEffectDescriptor", &g_define_type_info, 0);
+ g_once_init_leave (&circle_effect_descriptor_type_id__volatile, circle_effect_descriptor_type_id);
+ }
+ return circle_effect_descriptor_type_id__volatile;
+}
+
+
+CircleEffect* circle_effect_construct (GType object_type) {
+ CircleEffect * self = NULL;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = (CircleEffect*) g_object_new (object_type, NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ return self;
+#line 224 "CircleEffect.c"
+}
+
+
+CircleEffect* circle_effect_new (void) {
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ return circle_effect_construct (TYPE_CIRCLE_EFFECT);
+#line 231 "CircleEffect.c"
+}
+
+
+static void circle_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) {
+ CircleEffect * self;
+ gint _vala_desired_fps = 0;
+ gint _vala_min_fps = 0;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _vala_desired_fps = CIRCLE_EFFECT_DESIRED_FPS;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _vala_min_fps = CIRCLE_EFFECT_MIN_FPS;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ if (desired_fps) {
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ *desired_fps = _vala_desired_fps;
+#line 249 "CircleEffect.c"
+ }
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ if (min_fps) {
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ *min_fps = _vala_min_fps;
+#line 255 "CircleEffect.c"
+ }
+}
+
+
+static void circle_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) {
+ CircleEffect * self;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 268 "CircleEffect.c"
+}
+
+
+static gboolean circle_effect_real_needs_clear_background (SpitTransitionsEffect* base) {
+ CircleEffect * self;
+ gboolean result = FALSE;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ result = TRUE;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ return result;
+#line 281 "CircleEffect.c"
+}
+
+
+static void circle_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) {
+ CircleEffect * self;
+ gdouble alpha = 0.0;
+ SpitTransitionsMotion* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gdouble _tmp2_ = 0.0;
+ gint radius = 0;
+ gdouble _tmp3_ = 0.0;
+ gint _tmp4_ = 0;
+ gint _tmp5_ = 0;
+ gdouble _tmp6_ = 0.0;
+ SpitTransitionsVisuals* _tmp7_ = NULL;
+ GdkPixbuf* _tmp8_ = NULL;
+ GdkPixbuf* _tmp9_ = NULL;
+ SpitTransitionsVisuals* _tmp24_ = NULL;
+ GdkPixbuf* _tmp25_ = NULL;
+ GdkPixbuf* _tmp26_ = NULL;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ g_return_if_fail (ctx != NULL);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp0_ = motion;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp1_ = frame_number;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ alpha = _tmp2_;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp3_ = alpha;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp4_ = width;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp5_ = height;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp6_ = fmax ((gdouble) _tmp4_, (gdouble) _tmp5_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ radius = (gint) (_tmp3_ * _tmp6_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp7_ = visuals;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp8_ = spit_transitions_visuals_get_from_pixbuf (_tmp7_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp9_ = _tmp8_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ if (_tmp9_ != NULL) {
+#line 336 "CircleEffect.c"
+ cairo_t* _tmp10_ = NULL;
+ SpitTransitionsVisuals* _tmp11_ = NULL;
+ GdkPixbuf* _tmp12_ = NULL;
+ GdkPixbuf* _tmp13_ = NULL;
+ SpitTransitionsVisuals* _tmp14_ = NULL;
+ GdkRectangle _tmp15_ = {0};
+ GdkRectangle _tmp16_ = {0};
+ gint _tmp17_ = 0;
+ SpitTransitionsVisuals* _tmp18_ = NULL;
+ GdkRectangle _tmp19_ = {0};
+ GdkRectangle _tmp20_ = {0};
+ gint _tmp21_ = 0;
+ cairo_t* _tmp22_ = NULL;
+ gdouble _tmp23_ = 0.0;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp10_ = ctx;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp11_ = visuals;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp12_ = spit_transitions_visuals_get_from_pixbuf (_tmp11_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp13_ = _tmp12_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp14_ = visuals;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp14_, &_tmp15_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp16_ = _tmp15_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp17_ = _tmp16_.x;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp18_ = visuals;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp18_, &_tmp19_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp20_ = _tmp19_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp21_ = _tmp20_.y;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp10_, _tmp13_, (gdouble) _tmp17_, (gdouble) _tmp21_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp22_ = ctx;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp23_ = alpha;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ cairo_paint_with_alpha (_tmp22_, 1 - _tmp23_);
+#line 383 "CircleEffect.c"
+ }
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp24_ = visuals;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp25_ = spit_transitions_visuals_get_to_pixbuf (_tmp24_);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp26_ = _tmp25_;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ if (_tmp26_ != NULL) {
+#line 393 "CircleEffect.c"
+ cairo_t* _tmp27_ = NULL;
+ SpitTransitionsVisuals* _tmp28_ = NULL;
+ GdkPixbuf* _tmp29_ = NULL;
+ GdkPixbuf* _tmp30_ = NULL;
+ SpitTransitionsVisuals* _tmp31_ = NULL;
+ GdkRectangle _tmp32_ = {0};
+ GdkRectangle _tmp33_ = {0};
+ gint _tmp34_ = 0;
+ SpitTransitionsVisuals* _tmp35_ = NULL;
+ GdkRectangle _tmp36_ = {0};
+ GdkRectangle _tmp37_ = {0};
+ gint _tmp38_ = 0;
+ cairo_t* _tmp39_ = NULL;
+ gint _tmp40_ = 0;
+ gint _tmp41_ = 0;
+ gint _tmp42_ = 0;
+ cairo_t* _tmp43_ = NULL;
+ cairo_t* _tmp44_ = NULL;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp27_ = ctx;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp28_ = visuals;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp29_ = spit_transitions_visuals_get_to_pixbuf (_tmp28_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp30_ = _tmp29_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp31_ = visuals;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp31_, &_tmp32_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp33_ = _tmp32_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp34_ = _tmp33_.x;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp35_ = visuals;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp35_, &_tmp36_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp37_ = _tmp36_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp38_ = _tmp37_.y;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp27_, _tmp30_, (gdouble) _tmp34_, (gdouble) _tmp38_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp39_ = ctx;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp40_ = width;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp41_ = height;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp42_ = radius;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ cairo_arc (_tmp39_, (gdouble) (((gint) _tmp40_) / 2), (gdouble) (((gint) _tmp41_) / 2), (gdouble) _tmp42_, (gdouble) 0, 2 * G_PI);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp43_ = ctx;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ cairo_clip (_tmp43_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ _tmp44_ = ctx;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ cairo_paint (_tmp44_);
+#line 456 "CircleEffect.c"
+ }
+}
+
+
+static void circle_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) {
+ CircleEffect * self;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 469 "CircleEffect.c"
+}
+
+
+static void circle_effect_real_cancel (SpitTransitionsEffect* base) {
+ CircleEffect * self;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect);
+#line 477 "CircleEffect.c"
+}
+
+
+static void circle_effect_class_init (CircleEffectClass * klass) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ circle_effect_parent_class = g_type_class_peek_parent (klass);
+#line 484 "CircleEffect.c"
+}
+
+
+static void circle_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ circle_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ iface->get_fps = (void (*)(SpitTransitionsEffect*, gint*, gint*)) circle_effect_real_get_fps;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ iface->start = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*)) circle_effect_real_start;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ iface->needs_clear_background = (gboolean (*)(SpitTransitionsEffect*)) circle_effect_real_needs_clear_background;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ iface->paint = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) circle_effect_real_paint;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ iface->advance = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) circle_effect_real_advance;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala"
+ iface->cancel = (void (*)(SpitTransitionsEffect*)) circle_effect_real_cancel;
+#line 503 "CircleEffect.c"
+}
+
+
+static void circle_effect_instance_init (CircleEffect * self) {
+}
+
+
+GType circle_effect_get_type (void) {
+ static volatile gsize circle_effect_type_id__volatile = 0;
+ if (g_once_init_enter (&circle_effect_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (CircleEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circle_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CircleEffect), 0, (GInstanceInitFunc) circle_effect_instance_init, NULL };
+ static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) circle_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType circle_effect_type_id;
+ circle_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CircleEffect", &g_define_type_info, 0);
+ g_type_add_interface_static (circle_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
+ g_once_init_leave (&circle_effect_type_id__volatile, circle_effect_type_id);
+ }
+ return circle_effect_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-transitions/CirclesEffect.c b/plugins/shotwell-transitions/CirclesEffect.c
new file mode 100644
index 0000000..542de61
--- /dev/null
+++ b/plugins/shotwell-transitions/CirclesEffect.c
@@ -0,0 +1,658 @@
+/* CirclesEffect.c generated by valac 0.32.1, the Vala compiler
+ * generated from CirclesEffect.vala, do not modify */
+
+/* Copyright 2013 Jens Bav
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <float.h>
+#include <math.h>
+#include <cairo.h>
+#include <gdk/gdk.h>
+
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+
+#define TYPE_CIRCLES_EFFECT_DESCRIPTOR (circles_effect_descriptor_get_type ())
+#define CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor))
+#define CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass))
+#define IS_CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR))
+#define IS_CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR))
+#define CIRCLES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass))
+
+typedef struct _CirclesEffectDescriptor CirclesEffectDescriptor;
+typedef struct _CirclesEffectDescriptorClass CirclesEffectDescriptorClass;
+typedef struct _CirclesEffectDescriptorPrivate CirclesEffectDescriptorPrivate;
+
+#define TYPE_CIRCLES_EFFECT (circles_effect_get_type ())
+#define CIRCLES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT, CirclesEffect))
+#define CIRCLES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT, CirclesEffectClass))
+#define IS_CIRCLES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT))
+#define IS_CIRCLES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT))
+#define CIRCLES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT, CirclesEffectClass))
+
+typedef struct _CirclesEffect CirclesEffect;
+typedef struct _CirclesEffectClass CirclesEffectClass;
+typedef struct _CirclesEffectPrivate CirclesEffectPrivate;
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+struct _CirclesEffectDescriptor {
+ ShotwellTransitionDescriptor parent_instance;
+ CirclesEffectDescriptorPrivate * priv;
+};
+
+struct _CirclesEffectDescriptorClass {
+ ShotwellTransitionDescriptorClass parent_class;
+};
+
+struct _CirclesEffect {
+ GObject parent_instance;
+ CirclesEffectPrivate * priv;
+};
+
+struct _CirclesEffectClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer circles_effect_descriptor_parent_class = NULL;
+static gpointer circles_effect_parent_class = NULL;
+static SpitTransitionsEffectIface* circles_effect_spit_transitions_effect_parent_iface = NULL;
+
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType circles_effect_descriptor_get_type (void) G_GNUC_CONST;
+enum {
+ CIRCLES_EFFECT_DESCRIPTOR_DUMMY_PROPERTY
+};
+CirclesEffectDescriptor* circles_effect_descriptor_new (GFile* resource_directory);
+CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static const gchar* circles_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base);
+static const gchar* circles_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base);
+static SpitTransitionsEffect* circles_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host);
+CirclesEffect* circles_effect_new (void);
+CirclesEffect* circles_effect_construct (GType object_type);
+GType circles_effect_get_type (void) G_GNUC_CONST;
+enum {
+ CIRCLES_EFFECT_DUMMY_PROPERTY
+};
+#define CIRCLES_EFFECT_DESIRED_FPS 25
+#define CIRCLES_EFFECT_MIN_FPS 15
+#define CIRCLES_EFFECT_SPEED 2.5
+static void circles_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps);
+static void circles_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+static gboolean circles_effect_real_needs_clear_background (SpitTransitionsEffect* base);
+static void circles_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+static void circles_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+static void circles_effect_real_cancel (SpitTransitionsEffect* base);
+
+
+CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, GFile* resource_directory) {
+ CirclesEffectDescriptor * self = NULL;
+ GFile* _tmp0_ = NULL;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp0_ = resource_directory;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = (CirclesEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ return self;
+#line 132 "CirclesEffect.c"
+}
+
+
+CirclesEffectDescriptor* circles_effect_descriptor_new (GFile* resource_directory) {
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ return circles_effect_descriptor_construct (TYPE_CIRCLES_EFFECT_DESCRIPTOR, resource_directory);
+#line 139 "CirclesEffect.c"
+}
+
+
+static const gchar* circles_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) {
+ CirclesEffectDescriptor * self;
+ const gchar* result = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ result = "org.yorba.shotwell.transitions.circles";
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ return result;
+#line 152 "CirclesEffect.c"
+}
+
+
+static const gchar* circles_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) {
+ CirclesEffectDescriptor * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp0_ = _ ("Circles");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ return result;
+#line 168 "CirclesEffect.c"
+}
+
+
+static SpitTransitionsEffect* circles_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) {
+ CirclesEffectDescriptor * self;
+ SpitTransitionsEffect* result = NULL;
+ CirclesEffect* _tmp0_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp0_ = circles_effect_new ();
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ return result;
+#line 186 "CirclesEffect.c"
+}
+
+
+static void circles_effect_descriptor_class_init (CirclesEffectDescriptorClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ circles_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = circles_effect_descriptor_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = circles_effect_descriptor_real_get_pluggable_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = circles_effect_descriptor_real_create;
+#line 199 "CirclesEffect.c"
+}
+
+
+static void circles_effect_descriptor_instance_init (CirclesEffectDescriptor * self) {
+}
+
+
+GType circles_effect_descriptor_get_type (void) {
+ static volatile gsize circles_effect_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&circles_effect_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (CirclesEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circles_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CirclesEffectDescriptor), 0, (GInstanceInitFunc) circles_effect_descriptor_instance_init, NULL };
+ GType circles_effect_descriptor_type_id;
+ circles_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CirclesEffectDescriptor", &g_define_type_info, 0);
+ g_once_init_leave (&circles_effect_descriptor_type_id__volatile, circles_effect_descriptor_type_id);
+ }
+ return circles_effect_descriptor_type_id__volatile;
+}
+
+
+CirclesEffect* circles_effect_construct (GType object_type) {
+ CirclesEffect * self = NULL;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = (CirclesEffect*) g_object_new (object_type, NULL);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ return self;
+#line 225 "CirclesEffect.c"
+}
+
+
+CirclesEffect* circles_effect_new (void) {
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ return circles_effect_construct (TYPE_CIRCLES_EFFECT);
+#line 232 "CirclesEffect.c"
+}
+
+
+static void circles_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) {
+ CirclesEffect * self;
+ gint _vala_desired_fps = 0;
+ gint _vala_min_fps = 0;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _vala_desired_fps = CIRCLES_EFFECT_DESIRED_FPS;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _vala_min_fps = CIRCLES_EFFECT_MIN_FPS;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ if (desired_fps) {
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ *desired_fps = _vala_desired_fps;
+#line 250 "CirclesEffect.c"
+ }
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ if (min_fps) {
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ *min_fps = _vala_min_fps;
+#line 256 "CirclesEffect.c"
+ }
+}
+
+
+static void circles_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) {
+ CirclesEffect * self;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 269 "CirclesEffect.c"
+}
+
+
+static gboolean circles_effect_real_needs_clear_background (SpitTransitionsEffect* base) {
+ CirclesEffect * self;
+ gboolean result = FALSE;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ result = TRUE;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ return result;
+#line 282 "CirclesEffect.c"
+}
+
+
+static void circles_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) {
+ CirclesEffect * self;
+ gdouble alpha = 0.0;
+ SpitTransitionsMotion* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gdouble _tmp2_ = 0.0;
+ gint distance = 0;
+ gint radius = 0;
+ gint circleCountX = 0;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+ gint circleCountY = 0;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ gdouble maxRadius = 0.0;
+ gint _tmp7_ = 0;
+ SpitTransitionsVisuals* _tmp8_ = NULL;
+ GdkPixbuf* _tmp9_ = NULL;
+ GdkPixbuf* _tmp10_ = NULL;
+ SpitTransitionsVisuals* _tmp25_ = NULL;
+ GdkPixbuf* _tmp26_ = NULL;
+ GdkPixbuf* _tmp27_ = NULL;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ g_return_if_fail (ctx != NULL);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp0_ = motion;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp1_ = frame_number;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ alpha = _tmp2_;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ distance = 60;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp3_ = width;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp4_ = distance;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ circleCountX = _tmp3_ / (2 * _tmp4_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp5_ = height;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp6_ = distance;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ circleCountY = _tmp5_ / _tmp6_;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp7_ = distance;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ maxRadius = CIRCLES_EFFECT_SPEED * _tmp7_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp8_ = visuals;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp9_ = spit_transitions_visuals_get_from_pixbuf (_tmp8_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp10_ = _tmp9_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ if (_tmp10_ != NULL) {
+#line 350 "CirclesEffect.c"
+ cairo_t* _tmp11_ = NULL;
+ SpitTransitionsVisuals* _tmp12_ = NULL;
+ GdkPixbuf* _tmp13_ = NULL;
+ GdkPixbuf* _tmp14_ = NULL;
+ SpitTransitionsVisuals* _tmp15_ = NULL;
+ GdkRectangle _tmp16_ = {0};
+ GdkRectangle _tmp17_ = {0};
+ gint _tmp18_ = 0;
+ SpitTransitionsVisuals* _tmp19_ = NULL;
+ GdkRectangle _tmp20_ = {0};
+ GdkRectangle _tmp21_ = {0};
+ gint _tmp22_ = 0;
+ cairo_t* _tmp23_ = NULL;
+ gdouble _tmp24_ = 0.0;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp11_ = ctx;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp12_ = visuals;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp13_ = spit_transitions_visuals_get_from_pixbuf (_tmp12_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp14_ = _tmp13_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp15_ = visuals;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp15_, &_tmp16_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp17_ = _tmp16_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp18_ = _tmp17_.x;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp19_ = visuals;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp19_, &_tmp20_);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp21_ = _tmp20_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp22_ = _tmp21_.y;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp11_, _tmp14_, (gdouble) _tmp18_, (gdouble) _tmp22_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp23_ = ctx;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp24_ = alpha;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ cairo_paint_with_alpha (_tmp23_, 1 - _tmp24_);
+#line 397 "CirclesEffect.c"
+ }
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp25_ = visuals;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp26_ = spit_transitions_visuals_get_to_pixbuf (_tmp25_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp27_ = _tmp26_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ if (_tmp27_ != NULL) {
+#line 407 "CirclesEffect.c"
+ cairo_t* _tmp28_ = NULL;
+ SpitTransitionsVisuals* _tmp29_ = NULL;
+ GdkPixbuf* _tmp30_ = NULL;
+ GdkPixbuf* _tmp31_ = NULL;
+ SpitTransitionsVisuals* _tmp32_ = NULL;
+ GdkRectangle _tmp33_ = {0};
+ GdkRectangle _tmp34_ = {0};
+ gint _tmp35_ = 0;
+ SpitTransitionsVisuals* _tmp36_ = NULL;
+ GdkRectangle _tmp37_ = {0};
+ GdkRectangle _tmp38_ = {0};
+ gint _tmp39_ = 0;
+ cairo_t* _tmp63_ = NULL;
+ cairo_t* _tmp64_ = NULL;
+ gdouble _tmp65_ = 0.0;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp28_ = ctx;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp29_ = visuals;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp30_ = spit_transitions_visuals_get_to_pixbuf (_tmp29_);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp31_ = _tmp30_;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp32_ = visuals;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp32_, &_tmp33_);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp34_ = _tmp33_;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp35_ = _tmp34_.x;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp36_ = visuals;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp36_, &_tmp37_);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp38_ = _tmp37_;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp39_ = _tmp38_.y;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp28_, _tmp31_, (gdouble) _tmp35_, (gdouble) _tmp39_);
+#line 449 "CirclesEffect.c"
+ {
+ gint y = 0;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ y = 0;
+#line 454 "CirclesEffect.c"
+ {
+ gboolean _tmp40_ = FALSE;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp40_ = TRUE;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ while (TRUE) {
+#line 461 "CirclesEffect.c"
+ gint _tmp42_ = 0;
+ gint _tmp43_ = 0;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ if (!_tmp40_) {
+#line 466 "CirclesEffect.c"
+ gint _tmp41_ = 0;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp41_ = y;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ y = _tmp41_ + 1;
+#line 472 "CirclesEffect.c"
+ }
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp40_ = FALSE;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp42_ = y;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp43_ = circleCountY;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ if (!(_tmp42_ <= _tmp43_)) {
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ break;
+#line 484 "CirclesEffect.c"
+ }
+ {
+ gint x = 0;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ x = 0;
+#line 490 "CirclesEffect.c"
+ {
+ gboolean _tmp44_ = FALSE;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp44_ = TRUE;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ while (TRUE) {
+#line 497 "CirclesEffect.c"
+ gint _tmp46_ = 0;
+ gint _tmp47_ = 0;
+ gdouble _tmp48_ = 0.0;
+ gint _tmp49_ = 0;
+ gint _tmp50_ = 0;
+ gint _tmp51_ = 0;
+ gint _tmp52_ = 0;
+ gdouble _tmp53_ = 0.0;
+ gdouble _tmp54_ = 0.0;
+ gdouble _tmp55_ = 0.0;
+ cairo_t* _tmp56_ = NULL;
+ gint _tmp57_ = 0;
+ gint _tmp58_ = 0;
+ gint _tmp59_ = 0;
+ gint _tmp60_ = 0;
+ gint _tmp61_ = 0;
+ cairo_t* _tmp62_ = NULL;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ if (!_tmp44_) {
+#line 517 "CirclesEffect.c"
+ gint _tmp45_ = 0;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp45_ = x;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ x = _tmp45_ + 1;
+#line 523 "CirclesEffect.c"
+ }
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp44_ = FALSE;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp46_ = x;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp47_ = circleCountX;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ if (!(_tmp46_ <= _tmp47_)) {
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ break;
+#line 535 "CirclesEffect.c"
+ }
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp48_ = alpha;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp49_ = x;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp50_ = y;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp51_ = circleCountY;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp52_ = circleCountX;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp53_ = fmin ((gdouble) 1, _tmp48_ - (((gdouble) (_tmp49_ + _tmp50_)) / ((gdouble) ((_tmp51_ + _tmp52_) * CIRCLES_EFFECT_SPEED))));
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp54_ = fmax ((gdouble) 0, _tmp53_);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp55_ = maxRadius;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ radius = (gint) (_tmp54_ * _tmp55_);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp56_ = ctx;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp57_ = distance;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp58_ = x;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp59_ = distance;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp60_ = y;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp61_ = radius;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ cairo_arc (_tmp56_, (gdouble) ((2 * _tmp57_) * _tmp58_), (gdouble) ((2 * _tmp59_) * _tmp60_), (gdouble) _tmp61_, (gdouble) 0, 2 * G_PI);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp62_ = ctx;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ cairo_fill (_tmp62_);
+#line 573 "CirclesEffect.c"
+ }
+ }
+ }
+ }
+ }
+ }
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp63_ = ctx;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ cairo_clip (_tmp63_);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp64_ = ctx;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ _tmp65_ = alpha;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ cairo_paint_with_alpha (_tmp64_, _tmp65_);
+#line 590 "CirclesEffect.c"
+ }
+}
+
+
+static void circles_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) {
+ CirclesEffect * self;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect);
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 603 "CirclesEffect.c"
+}
+
+
+static void circles_effect_real_cancel (SpitTransitionsEffect* base) {
+ CirclesEffect * self;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect);
+#line 611 "CirclesEffect.c"
+}
+
+
+static void circles_effect_class_init (CirclesEffectClass * klass) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ circles_effect_parent_class = g_type_class_peek_parent (klass);
+#line 618 "CirclesEffect.c"
+}
+
+
+static void circles_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ circles_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ iface->get_fps = (void (*)(SpitTransitionsEffect*, gint*, gint*)) circles_effect_real_get_fps;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ iface->start = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*)) circles_effect_real_start;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ iface->needs_clear_background = (gboolean (*)(SpitTransitionsEffect*)) circles_effect_real_needs_clear_background;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ iface->paint = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) circles_effect_real_paint;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ iface->advance = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) circles_effect_real_advance;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala"
+ iface->cancel = (void (*)(SpitTransitionsEffect*)) circles_effect_real_cancel;
+#line 637 "CirclesEffect.c"
+}
+
+
+static void circles_effect_instance_init (CirclesEffect * self) {
+}
+
+
+GType circles_effect_get_type (void) {
+ static volatile gsize circles_effect_type_id__volatile = 0;
+ if (g_once_init_enter (&circles_effect_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (CirclesEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circles_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CirclesEffect), 0, (GInstanceInitFunc) circles_effect_instance_init, NULL };
+ static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) circles_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType circles_effect_type_id;
+ circles_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CirclesEffect", &g_define_type_info, 0);
+ g_type_add_interface_static (circles_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
+ g_once_init_leave (&circles_effect_type_id__volatile, circles_effect_type_id);
+ }
+ return circles_effect_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-transitions/ClockEffect.c b/plugins/shotwell-transitions/ClockEffect.c
new file mode 100644
index 0000000..3074f40
--- /dev/null
+++ b/plugins/shotwell-transitions/ClockEffect.c
@@ -0,0 +1,638 @@
+/* ClockEffect.c generated by valac 0.32.1, the Vala compiler
+ * generated from ClockEffect.vala, do not modify */
+
+/* Copyright 2013 Jens Bav
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <float.h>
+#include <math.h>
+#include <cairo.h>
+#include <gdk/gdk.h>
+
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+
+#define TYPE_CLOCK_EFFECT_DESCRIPTOR (clock_effect_descriptor_get_type ())
+#define CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor))
+#define CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass))
+#define IS_CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR))
+#define IS_CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR))
+#define CLOCK_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass))
+
+typedef struct _ClockEffectDescriptor ClockEffectDescriptor;
+typedef struct _ClockEffectDescriptorClass ClockEffectDescriptorClass;
+typedef struct _ClockEffectDescriptorPrivate ClockEffectDescriptorPrivate;
+
+#define TYPE_CLOCK_EFFECT (clock_effect_get_type ())
+#define CLOCK_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT, ClockEffect))
+#define CLOCK_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT, ClockEffectClass))
+#define IS_CLOCK_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT))
+#define IS_CLOCK_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT))
+#define CLOCK_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT, ClockEffectClass))
+
+typedef struct _ClockEffect ClockEffect;
+typedef struct _ClockEffectClass ClockEffectClass;
+typedef struct _ClockEffectPrivate ClockEffectPrivate;
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+struct _ClockEffectDescriptor {
+ ShotwellTransitionDescriptor parent_instance;
+ ClockEffectDescriptorPrivate * priv;
+};
+
+struct _ClockEffectDescriptorClass {
+ ShotwellTransitionDescriptorClass parent_class;
+};
+
+struct _ClockEffect {
+ GObject parent_instance;
+ ClockEffectPrivate * priv;
+};
+
+struct _ClockEffectClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer clock_effect_descriptor_parent_class = NULL;
+static gpointer clock_effect_parent_class = NULL;
+static SpitTransitionsEffectIface* clock_effect_spit_transitions_effect_parent_iface = NULL;
+
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType clock_effect_descriptor_get_type (void) G_GNUC_CONST;
+enum {
+ CLOCK_EFFECT_DESCRIPTOR_DUMMY_PROPERTY
+};
+ClockEffectDescriptor* clock_effect_descriptor_new (GFile* resource_directory);
+ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static const gchar* clock_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base);
+static const gchar* clock_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base);
+static SpitTransitionsEffect* clock_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host);
+ClockEffect* clock_effect_new (void);
+ClockEffect* clock_effect_construct (GType object_type);
+GType clock_effect_get_type (void) G_GNUC_CONST;
+enum {
+ CLOCK_EFFECT_DUMMY_PROPERTY
+};
+#define CLOCK_EFFECT_DESIRED_FPS 25
+#define CLOCK_EFFECT_MIN_FPS 15
+#define CLOCK_EFFECT_TOP_RADIANT (0.5 * G_PI)
+static void clock_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps);
+static void clock_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+static gboolean clock_effect_real_needs_clear_background (SpitTransitionsEffect* base);
+static void clock_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+static void clock_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+static void clock_effect_real_cancel (SpitTransitionsEffect* base);
+
+
+ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, GFile* resource_directory) {
+ ClockEffectDescriptor * self = NULL;
+ GFile* _tmp0_ = NULL;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp0_ = resource_directory;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = (ClockEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ return self;
+#line 132 "ClockEffect.c"
+}
+
+
+ClockEffectDescriptor* clock_effect_descriptor_new (GFile* resource_directory) {
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ return clock_effect_descriptor_construct (TYPE_CLOCK_EFFECT_DESCRIPTOR, resource_directory);
+#line 139 "ClockEffect.c"
+}
+
+
+static const gchar* clock_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) {
+ ClockEffectDescriptor * self;
+ const gchar* result = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ result = "org.yorba.shotwell.transitions.clock";
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ return result;
+#line 152 "ClockEffect.c"
+}
+
+
+static const gchar* clock_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) {
+ ClockEffectDescriptor * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp0_ = _ ("Clock");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ return result;
+#line 168 "ClockEffect.c"
+}
+
+
+static SpitTransitionsEffect* clock_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) {
+ ClockEffectDescriptor * self;
+ SpitTransitionsEffect* result = NULL;
+ ClockEffect* _tmp0_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp0_ = clock_effect_new ();
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ return result;
+#line 186 "ClockEffect.c"
+}
+
+
+static void clock_effect_descriptor_class_init (ClockEffectDescriptorClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ clock_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = clock_effect_descriptor_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = clock_effect_descriptor_real_get_pluggable_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = clock_effect_descriptor_real_create;
+#line 199 "ClockEffect.c"
+}
+
+
+static void clock_effect_descriptor_instance_init (ClockEffectDescriptor * self) {
+}
+
+
+GType clock_effect_descriptor_get_type (void) {
+ static volatile gsize clock_effect_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&clock_effect_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (ClockEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clock_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClockEffectDescriptor), 0, (GInstanceInitFunc) clock_effect_descriptor_instance_init, NULL };
+ GType clock_effect_descriptor_type_id;
+ clock_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "ClockEffectDescriptor", &g_define_type_info, 0);
+ g_once_init_leave (&clock_effect_descriptor_type_id__volatile, clock_effect_descriptor_type_id);
+ }
+ return clock_effect_descriptor_type_id__volatile;
+}
+
+
+ClockEffect* clock_effect_construct (GType object_type) {
+ ClockEffect * self = NULL;
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = (ClockEffect*) g_object_new (object_type, NULL);
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ return self;
+#line 225 "ClockEffect.c"
+}
+
+
+ClockEffect* clock_effect_new (void) {
+#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ return clock_effect_construct (TYPE_CLOCK_EFFECT);
+#line 232 "ClockEffect.c"
+}
+
+
+static void clock_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) {
+ ClockEffect * self;
+ gint _vala_desired_fps = 0;
+ gint _vala_min_fps = 0;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect);
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _vala_desired_fps = CLOCK_EFFECT_DESIRED_FPS;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _vala_min_fps = CLOCK_EFFECT_MIN_FPS;
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ if (desired_fps) {
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ *desired_fps = _vala_desired_fps;
+#line 250 "ClockEffect.c"
+ }
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ if (min_fps) {
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ *min_fps = _vala_min_fps;
+#line 256 "ClockEffect.c"
+ }
+}
+
+
+static void clock_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) {
+ ClockEffect * self;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect);
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 269 "ClockEffect.c"
+}
+
+
+static gboolean clock_effect_real_needs_clear_background (SpitTransitionsEffect* base) {
+ ClockEffect * self;
+ gboolean result = FALSE;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ result = TRUE;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ return result;
+#line 282 "ClockEffect.c"
+}
+
+
+static void clock_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) {
+ ClockEffect * self;
+ gdouble alpha = 0.0;
+ SpitTransitionsMotion* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gdouble _tmp2_ = 0.0;
+ gdouble start_angle = 0.0;
+ gdouble stop_angle = 0.0;
+ SpitTransitionsMotion* _tmp3_ = NULL;
+ SpitTransitionsDirection _tmp4_ = 0;
+ SpitTransitionsDirection _tmp5_ = 0;
+ gint radius = 0;
+ SpitTransitionsVisuals* _tmp8_ = NULL;
+ GdkRectangle _tmp9_ = {0};
+ GdkRectangle _tmp10_ = {0};
+ gint _tmp11_ = 0;
+ SpitTransitionsVisuals* _tmp12_ = NULL;
+ GdkRectangle _tmp13_ = {0};
+ GdkRectangle _tmp14_ = {0};
+ gint _tmp15_ = 0;
+ gdouble _tmp16_ = 0.0;
+ SpitTransitionsVisuals* _tmp17_ = NULL;
+ GdkPixbuf* _tmp18_ = NULL;
+ GdkPixbuf* _tmp19_ = NULL;
+ SpitTransitionsVisuals* _tmp34_ = NULL;
+ GdkPixbuf* _tmp35_ = NULL;
+ GdkPixbuf* _tmp36_ = NULL;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect);
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ g_return_if_fail (ctx != NULL);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp0_ = motion;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp1_ = frame_number;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ alpha = _tmp2_;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ start_angle = -CLOCK_EFFECT_TOP_RADIANT;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ stop_angle = -CLOCK_EFFECT_TOP_RADIANT;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp3_ = motion;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp4_ = spit_transitions_motion_get_direction (_tmp3_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp5_ = _tmp4_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ if (_tmp5_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) {
+#line 341 "ClockEffect.c"
+ gdouble _tmp6_ = 0.0;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp6_ = alpha;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ stop_angle = ((_tmp6_ * G_PI) * 2) - CLOCK_EFFECT_TOP_RADIANT;
+#line 347 "ClockEffect.c"
+ } else {
+ gdouble _tmp7_ = 0.0;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp7_ = alpha;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ start_angle = ((2 * (1 - _tmp7_)) * G_PI) - CLOCK_EFFECT_TOP_RADIANT;
+#line 354 "ClockEffect.c"
+ }
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp8_ = visuals;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp8_, &_tmp9_);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp10_ = _tmp9_;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp11_ = _tmp10_.width;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp12_ = visuals;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp12_, &_tmp13_);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp14_ = _tmp13_;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp15_ = _tmp14_.height;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp16_ = fmax ((gdouble) _tmp11_, (gdouble) _tmp15_);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ radius = (gint) _tmp16_;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp17_ = visuals;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp18_ = spit_transitions_visuals_get_from_pixbuf (_tmp17_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp19_ = _tmp18_;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ if (_tmp19_ != NULL) {
+#line 384 "ClockEffect.c"
+ cairo_t* _tmp20_ = NULL;
+ SpitTransitionsVisuals* _tmp21_ = NULL;
+ GdkPixbuf* _tmp22_ = NULL;
+ GdkPixbuf* _tmp23_ = NULL;
+ SpitTransitionsVisuals* _tmp24_ = NULL;
+ GdkRectangle _tmp25_ = {0};
+ GdkRectangle _tmp26_ = {0};
+ gint _tmp27_ = 0;
+ SpitTransitionsVisuals* _tmp28_ = NULL;
+ GdkRectangle _tmp29_ = {0};
+ GdkRectangle _tmp30_ = {0};
+ gint _tmp31_ = 0;
+ cairo_t* _tmp32_ = NULL;
+ gdouble _tmp33_ = 0.0;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp20_ = ctx;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp21_ = visuals;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp22_ = spit_transitions_visuals_get_from_pixbuf (_tmp21_);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp23_ = _tmp22_;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp24_ = visuals;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp24_, &_tmp25_);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp26_ = _tmp25_;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp27_ = _tmp26_.x;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp28_ = visuals;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp28_, &_tmp29_);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp30_ = _tmp29_;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp31_ = _tmp30_.y;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp20_, _tmp23_, (gdouble) _tmp27_, (gdouble) _tmp31_);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp32_ = ctx;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp33_ = alpha;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ cairo_paint_with_alpha (_tmp32_, 1 - _tmp33_);
+#line 431 "ClockEffect.c"
+ }
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp34_ = visuals;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp35_ = spit_transitions_visuals_get_to_pixbuf (_tmp34_);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp36_ = _tmp35_;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ if (_tmp36_ != NULL) {
+#line 441 "ClockEffect.c"
+ cairo_t* _tmp37_ = NULL;
+ SpitTransitionsVisuals* _tmp38_ = NULL;
+ GdkPixbuf* _tmp39_ = NULL;
+ GdkPixbuf* _tmp40_ = NULL;
+ SpitTransitionsVisuals* _tmp41_ = NULL;
+ GdkRectangle _tmp42_ = {0};
+ GdkRectangle _tmp43_ = {0};
+ gint _tmp44_ = 0;
+ SpitTransitionsVisuals* _tmp45_ = NULL;
+ GdkRectangle _tmp46_ = {0};
+ GdkRectangle _tmp47_ = {0};
+ gint _tmp48_ = 0;
+ gint x = 0;
+ SpitTransitionsVisuals* _tmp49_ = NULL;
+ GdkRectangle _tmp50_ = {0};
+ GdkRectangle _tmp51_ = {0};
+ gint _tmp52_ = 0;
+ SpitTransitionsVisuals* _tmp53_ = NULL;
+ GdkRectangle _tmp54_ = {0};
+ GdkRectangle _tmp55_ = {0};
+ gint _tmp56_ = 0;
+ gint y = 0;
+ SpitTransitionsVisuals* _tmp57_ = NULL;
+ GdkRectangle _tmp58_ = {0};
+ GdkRectangle _tmp59_ = {0};
+ gint _tmp60_ = 0;
+ SpitTransitionsVisuals* _tmp61_ = NULL;
+ GdkRectangle _tmp62_ = {0};
+ GdkRectangle _tmp63_ = {0};
+ gint _tmp64_ = 0;
+ cairo_t* _tmp65_ = NULL;
+ gint _tmp66_ = 0;
+ gint _tmp67_ = 0;
+ cairo_t* _tmp68_ = NULL;
+ gint _tmp69_ = 0;
+ gint _tmp70_ = 0;
+ gint _tmp71_ = 0;
+ gdouble _tmp72_ = 0.0;
+ gdouble _tmp73_ = 0.0;
+ cairo_t* _tmp74_ = NULL;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp37_ = ctx;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp38_ = visuals;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp39_ = spit_transitions_visuals_get_to_pixbuf (_tmp38_);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp40_ = _tmp39_;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp41_ = visuals;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp41_, &_tmp42_);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp43_ = _tmp42_;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp44_ = _tmp43_.x;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp45_ = visuals;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp45_, &_tmp46_);
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp47_ = _tmp46_;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp48_ = _tmp47_.y;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp37_, _tmp40_, (gdouble) _tmp44_, (gdouble) _tmp48_);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp49_ = visuals;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp49_, &_tmp50_);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp51_ = _tmp50_;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp52_ = _tmp51_.x;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp53_ = visuals;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp53_, &_tmp54_);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp55_ = _tmp54_;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp56_ = _tmp55_.width;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ x = _tmp52_ + (((gint) _tmp56_) / 2);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp57_ = visuals;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp57_, &_tmp58_);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp59_ = _tmp58_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp60_ = _tmp59_.y;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp61_ = visuals;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp61_, &_tmp62_);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp63_ = _tmp62_;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp64_ = _tmp63_.height;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ y = _tmp60_ + (((gint) _tmp64_) / 2);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp65_ = ctx;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp66_ = x;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp67_ = y;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ cairo_move_to (_tmp65_, (gdouble) _tmp66_, (gdouble) _tmp67_);
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp68_ = ctx;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp69_ = x;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp70_ = y;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp71_ = radius;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp72_ = start_angle;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp73_ = stop_angle;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ cairo_arc (_tmp68_, (gdouble) _tmp69_, (gdouble) _tmp70_, (gdouble) _tmp71_, _tmp72_, _tmp73_);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ _tmp74_ = ctx;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ cairo_fill_preserve (_tmp74_);
+#line 570 "ClockEffect.c"
+ }
+}
+
+
+static void clock_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) {
+ ClockEffect * self;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 583 "ClockEffect.c"
+}
+
+
+static void clock_effect_real_cancel (SpitTransitionsEffect* base) {
+ ClockEffect * self;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect);
+#line 591 "ClockEffect.c"
+}
+
+
+static void clock_effect_class_init (ClockEffectClass * klass) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ clock_effect_parent_class = g_type_class_peek_parent (klass);
+#line 598 "ClockEffect.c"
+}
+
+
+static void clock_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ clock_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ iface->get_fps = (void (*)(SpitTransitionsEffect*, gint*, gint*)) clock_effect_real_get_fps;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ iface->start = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*)) clock_effect_real_start;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ iface->needs_clear_background = (gboolean (*)(SpitTransitionsEffect*)) clock_effect_real_needs_clear_background;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ iface->paint = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) clock_effect_real_paint;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ iface->advance = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) clock_effect_real_advance;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala"
+ iface->cancel = (void (*)(SpitTransitionsEffect*)) clock_effect_real_cancel;
+#line 617 "ClockEffect.c"
+}
+
+
+static void clock_effect_instance_init (ClockEffect * self) {
+}
+
+
+GType clock_effect_get_type (void) {
+ static volatile gsize clock_effect_type_id__volatile = 0;
+ if (g_once_init_enter (&clock_effect_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (ClockEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clock_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClockEffect), 0, (GInstanceInitFunc) clock_effect_instance_init, NULL };
+ static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) clock_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType clock_effect_type_id;
+ clock_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "ClockEffect", &g_define_type_info, 0);
+ g_type_add_interface_static (clock_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
+ g_once_init_leave (&clock_effect_type_id__volatile, clock_effect_type_id);
+ }
+ return clock_effect_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-transitions/CrumbleEffect.c b/plugins/shotwell-transitions/CrumbleEffect.c
new file mode 100644
index 0000000..4fab4db
--- /dev/null
+++ b/plugins/shotwell-transitions/CrumbleEffect.c
@@ -0,0 +1,857 @@
+/* CrumbleEffect.c generated by valac 0.32.1, the Vala compiler
+ * generated from CrumbleEffect.vala, do not modify */
+
+/* Copyright 2010 Maxim Kartashev
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <cairo.h>
+#include <float.h>
+#include <math.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <gdk/gdk.h>
+
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+
+#define TYPE_CRUMBLE_EFFECT_DESCRIPTOR (crumble_effect_descriptor_get_type ())
+#define CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor))
+#define CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass))
+#define IS_CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR))
+#define IS_CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR))
+#define CRUMBLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass))
+
+typedef struct _CrumbleEffectDescriptor CrumbleEffectDescriptor;
+typedef struct _CrumbleEffectDescriptorClass CrumbleEffectDescriptorClass;
+typedef struct _CrumbleEffectDescriptorPrivate CrumbleEffectDescriptorPrivate;
+
+#define TYPE_CRUMBLE_EFFECT (crumble_effect_get_type ())
+#define CRUMBLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT, CrumbleEffect))
+#define CRUMBLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT, CrumbleEffectClass))
+#define IS_CRUMBLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT))
+#define IS_CRUMBLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT))
+#define CRUMBLE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT, CrumbleEffectClass))
+
+typedef struct _CrumbleEffect CrumbleEffect;
+typedef struct _CrumbleEffectClass CrumbleEffectClass;
+typedef struct _CrumbleEffectPrivate CrumbleEffectPrivate;
+#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))
+#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
+#define _g_rand_free0(var) ((var == NULL) ? NULL : (var = (g_rand_free (var), NULL)))
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+struct _CrumbleEffectDescriptor {
+ ShotwellTransitionDescriptor parent_instance;
+ CrumbleEffectDescriptorPrivate * priv;
+};
+
+struct _CrumbleEffectDescriptorClass {
+ ShotwellTransitionDescriptorClass parent_class;
+};
+
+struct _CrumbleEffect {
+ GObject parent_instance;
+ CrumbleEffectPrivate * priv;
+};
+
+struct _CrumbleEffectClass {
+ GObjectClass parent_class;
+};
+
+struct _CrumbleEffectPrivate {
+ cairo_surface_t** from_stripes;
+ gint from_stripes_length1;
+ gint _from_stripes_size_;
+ gdouble* accelerations;
+ gint accelerations_length1;
+ gint _accelerations_size_;
+ gint stripes_count;
+};
+
+
+static gpointer crumble_effect_descriptor_parent_class = NULL;
+static gpointer crumble_effect_parent_class = NULL;
+static SpitTransitionsEffectIface* crumble_effect_spit_transitions_effect_parent_iface = NULL;
+
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType crumble_effect_descriptor_get_type (void) G_GNUC_CONST;
+enum {
+ CRUMBLE_EFFECT_DESCRIPTOR_DUMMY_PROPERTY
+};
+CrumbleEffectDescriptor* crumble_effect_descriptor_new (GFile* resource_directory);
+CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static const gchar* crumble_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base);
+static const gchar* crumble_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base);
+static SpitTransitionsEffect* crumble_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host);
+CrumbleEffect* crumble_effect_new (void);
+CrumbleEffect* crumble_effect_construct (GType object_type);
+GType crumble_effect_get_type (void) G_GNUC_CONST;
+#define CRUMBLE_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CRUMBLE_EFFECT, CrumbleEffectPrivate))
+enum {
+ CRUMBLE_EFFECT_DUMMY_PROPERTY
+};
+#define CRUMBLE_EFFECT_DESIRED_FPS 25
+#define CRUMBLE_EFFECT_MIN_FPS 15
+#define CRUMBLE_EFFECT_STRIPE_WIDTH 10
+static void crumble_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps);
+static gboolean crumble_effect_real_needs_clear_background (SpitTransitionsEffect* base);
+static void crumble_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+static void crumble_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+static void crumble_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+static void crumble_effect_real_cancel (SpitTransitionsEffect* base);
+static void crumble_effect_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);
+
+
+CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, GFile* resource_directory) {
+ CrumbleEffectDescriptor * self = NULL;
+ GFile* _tmp0_ = NULL;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp0_ = resource_directory;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = (CrumbleEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ return self;
+#line 150 "CrumbleEffect.c"
+}
+
+
+CrumbleEffectDescriptor* crumble_effect_descriptor_new (GFile* resource_directory) {
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ return crumble_effect_descriptor_construct (TYPE_CRUMBLE_EFFECT_DESCRIPTOR, resource_directory);
+#line 157 "CrumbleEffect.c"
+}
+
+
+static const gchar* crumble_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) {
+ CrumbleEffectDescriptor * self;
+ const gchar* result = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ result = "org.yorba.shotwell.transitions.crumble";
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ return result;
+#line 170 "CrumbleEffect.c"
+}
+
+
+static const gchar* crumble_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) {
+ CrumbleEffectDescriptor * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp0_ = _ ("Crumble");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ return result;
+#line 186 "CrumbleEffect.c"
+}
+
+
+static SpitTransitionsEffect* crumble_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) {
+ CrumbleEffectDescriptor * self;
+ SpitTransitionsEffect* result = NULL;
+ CrumbleEffect* _tmp0_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp0_ = crumble_effect_new ();
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ return result;
+#line 204 "CrumbleEffect.c"
+}
+
+
+static void crumble_effect_descriptor_class_init (CrumbleEffectDescriptorClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ crumble_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = crumble_effect_descriptor_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = crumble_effect_descriptor_real_get_pluggable_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = crumble_effect_descriptor_real_create;
+#line 217 "CrumbleEffect.c"
+}
+
+
+static void crumble_effect_descriptor_instance_init (CrumbleEffectDescriptor * self) {
+}
+
+
+GType crumble_effect_descriptor_get_type (void) {
+ static volatile gsize crumble_effect_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&crumble_effect_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (CrumbleEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crumble_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CrumbleEffectDescriptor), 0, (GInstanceInitFunc) crumble_effect_descriptor_instance_init, NULL };
+ GType crumble_effect_descriptor_type_id;
+ crumble_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CrumbleEffectDescriptor", &g_define_type_info, 0);
+ g_once_init_leave (&crumble_effect_descriptor_type_id__volatile, crumble_effect_descriptor_type_id);
+ }
+ return crumble_effect_descriptor_type_id__volatile;
+}
+
+
+CrumbleEffect* crumble_effect_construct (GType object_type) {
+ CrumbleEffect * self = NULL;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = (CrumbleEffect*) g_object_new (object_type, NULL);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ return self;
+#line 243 "CrumbleEffect.c"
+}
+
+
+CrumbleEffect* crumble_effect_new (void) {
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ return crumble_effect_construct (TYPE_CRUMBLE_EFFECT);
+#line 250 "CrumbleEffect.c"
+}
+
+
+static void crumble_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) {
+ CrumbleEffect * self;
+ gint _vala_desired_fps = 0;
+ gint _vala_min_fps = 0;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _vala_desired_fps = CRUMBLE_EFFECT_DESIRED_FPS;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _vala_min_fps = CRUMBLE_EFFECT_MIN_FPS;
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ if (desired_fps) {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ *desired_fps = _vala_desired_fps;
+#line 268 "CrumbleEffect.c"
+ }
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ if (min_fps) {
+#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ *min_fps = _vala_min_fps;
+#line 274 "CrumbleEffect.c"
+ }
+}
+
+
+static gboolean crumble_effect_real_needs_clear_background (SpitTransitionsEffect* base) {
+ CrumbleEffect * self;
+ gboolean result = FALSE;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ result = TRUE;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ return result;
+#line 288 "CrumbleEffect.c"
+}
+
+
+static void crumble_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) {
+ CrumbleEffect * self;
+ GRand* rand = NULL;
+ GRand* _tmp0_ = NULL;
+ SpitTransitionsVisuals* _tmp1_ = NULL;
+ GdkPixbuf* _tmp2_ = NULL;
+ GdkPixbuf* _tmp3_ = NULL;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp0_ = g_rand_new ();
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ rand = _tmp0_;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp1_ = visuals;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp2_ = spit_transitions_visuals_get_from_pixbuf (_tmp1_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp3_ = _tmp2_;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ if (_tmp3_ != NULL) {
+#line 317 "CrumbleEffect.c"
+ SpitTransitionsVisuals* _tmp4_ = NULL;
+ GdkPixbuf* _tmp5_ = NULL;
+ GdkPixbuf* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+ gint _tmp9_ = 0;
+ cairo_surface_t** _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ gdouble* _tmp12_ = NULL;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp4_ = visuals;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp5_ = spit_transitions_visuals_get_from_pixbuf (_tmp4_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp6_ = _tmp5_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp7_ = gdk_pixbuf_get_width (_tmp6_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp8_ = _tmp7_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->stripes_count = _tmp8_ / CRUMBLE_EFFECT_STRIPE_WIDTH;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp9_ = self->priv->stripes_count;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp10_ = g_new0 (cairo_surface_t*, _tmp9_ + 1);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->from_stripes = (_vala_array_free (self->priv->from_stripes, self->priv->from_stripes_length1, (GDestroyNotify) cairo_surface_destroy), NULL);
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->from_stripes = _tmp10_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->from_stripes_length1 = _tmp9_;
+#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->_from_stripes_size_ = self->priv->from_stripes_length1;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp11_ = self->priv->stripes_count;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp12_ = g_new0 (gdouble, _tmp11_);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->accelerations = (g_free (self->priv->accelerations), NULL);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->accelerations = _tmp12_;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->accelerations_length1 = _tmp11_;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->_accelerations_size_ = self->priv->accelerations_length1;
+#line 363 "CrumbleEffect.c"
+ {
+ gint i = 0;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ i = 0;
+#line 368 "CrumbleEffect.c"
+ {
+ gboolean _tmp13_ = FALSE;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp13_ = TRUE;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ while (TRUE) {
+#line 375 "CrumbleEffect.c"
+ gint _tmp15_ = 0;
+ gint _tmp16_ = 0;
+ cairo_surface_t** _tmp17_ = NULL;
+ gint _tmp17__length1 = 0;
+ gint _tmp18_ = 0;
+ SpitTransitionsVisuals* _tmp19_ = NULL;
+ GdkPixbuf* _tmp20_ = NULL;
+ GdkPixbuf* _tmp21_ = NULL;
+ gint _tmp22_ = 0;
+ gint _tmp23_ = 0;
+ cairo_surface_t* _tmp24_ = NULL;
+ cairo_surface_t* _tmp25_ = NULL;
+ cairo_t* ctx = NULL;
+ cairo_surface_t** _tmp26_ = NULL;
+ gint _tmp26__length1 = 0;
+ gint _tmp27_ = 0;
+ cairo_surface_t* _tmp28_ = NULL;
+ cairo_t* _tmp29_ = NULL;
+ cairo_t* _tmp30_ = NULL;
+ SpitTransitionsVisuals* _tmp31_ = NULL;
+ GdkPixbuf* _tmp32_ = NULL;
+ GdkPixbuf* _tmp33_ = NULL;
+ gint _tmp34_ = 0;
+ cairo_t* _tmp35_ = NULL;
+ gdouble* _tmp36_ = NULL;
+ gint _tmp36__length1 = 0;
+ gint _tmp37_ = 0;
+ GRand* _tmp38_ = NULL;
+ gdouble _tmp39_ = 0.0;
+ gdouble _tmp40_ = 0.0;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ if (!_tmp13_) {
+#line 408 "CrumbleEffect.c"
+ gint _tmp14_ = 0;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp14_ = i;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ i = _tmp14_ + 1;
+#line 414 "CrumbleEffect.c"
+ }
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp13_ = FALSE;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp15_ = i;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp16_ = self->priv->stripes_count;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ if (!(_tmp15_ < _tmp16_)) {
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ break;
+#line 426 "CrumbleEffect.c"
+ }
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp17_ = self->priv->from_stripes;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp17__length1 = self->priv->from_stripes_length1;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp18_ = i;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp19_ = visuals;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp20_ = spit_transitions_visuals_get_from_pixbuf (_tmp19_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp21_ = _tmp20_;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp22_ = gdk_pixbuf_get_height (_tmp21_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp23_ = _tmp22_;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp24_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, CRUMBLE_EFFECT_STRIPE_WIDTH, _tmp23_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _cairo_surface_destroy0 (_tmp17_[_tmp18_]);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp17_[_tmp18_] = _tmp24_;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp25_ = _tmp17_[_tmp18_];
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp26_ = self->priv->from_stripes;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp26__length1 = self->priv->from_stripes_length1;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp27_ = i;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp28_ = _tmp26_[_tmp27_];
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp29_ = cairo_create (_tmp28_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ ctx = _tmp29_;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp30_ = ctx;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp31_ = visuals;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp32_ = spit_transitions_visuals_get_from_pixbuf (_tmp31_);
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp33_ = _tmp32_;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp34_ = i;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp30_, _tmp33_, (gdouble) ((-_tmp34_) * CRUMBLE_EFFECT_STRIPE_WIDTH), (gdouble) 0);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp35_ = ctx;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ cairo_paint (_tmp35_);
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp36_ = self->priv->accelerations;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp36__length1 = self->priv->accelerations_length1;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp37_ = i;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp38_ = rand;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp39_ = g_rand_double (_tmp38_);
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp36_[_tmp37_] = _tmp39_;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp40_ = _tmp36_[_tmp37_];
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _cairo_destroy0 (ctx);
+#line 496 "CrumbleEffect.c"
+ }
+ }
+ }
+ }
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _g_rand_free0 (rand);
+#line 503 "CrumbleEffect.c"
+}
+
+
+static void crumble_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) {
+ CrumbleEffect * self;
+ gdouble alpha = 0.0;
+ SpitTransitionsMotion* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gdouble _tmp2_ = 0.0;
+ gdouble _tmp3_ = 0.0;
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ g_return_if_fail (ctx != NULL);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp0_ = motion;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp1_ = frame_number;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ alpha = _tmp2_;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp3_ = alpha;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ if (_tmp3_ < 0.5) {
+#line 534 "CrumbleEffect.c"
+ gdouble _tmp4_ = 0.0;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp4_ = alpha;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ alpha = _tmp4_ * 2;
+#line 540 "CrumbleEffect.c"
+ {
+ gint i = 0;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ i = 0;
+#line 545 "CrumbleEffect.c"
+ {
+ gboolean _tmp5_ = FALSE;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp5_ = TRUE;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ while (TRUE) {
+#line 552 "CrumbleEffect.c"
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+ gint x = 0;
+ SpitTransitionsVisuals* _tmp9_ = NULL;
+ GdkRectangle _tmp10_ = {0};
+ GdkRectangle _tmp11_ = {0};
+ gint _tmp12_ = 0;
+ gint _tmp13_ = 0;
+ gdouble a = 0.0;
+ gdouble _tmp14_ = 0.0;
+ gdouble _tmp15_ = 0.0;
+ gdouble* _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+ gint _tmp17_ = 0;
+ gdouble _tmp18_ = 0.0;
+ gint y = 0;
+ SpitTransitionsVisuals* _tmp19_ = NULL;
+ GdkRectangle _tmp20_ = {0};
+ GdkRectangle _tmp21_ = {0};
+ gint _tmp22_ = 0;
+ SpitTransitionsVisuals* _tmp23_ = NULL;
+ GdkPixbuf* _tmp24_ = NULL;
+ GdkPixbuf* _tmp25_ = NULL;
+ gint _tmp26_ = 0;
+ gint _tmp27_ = 0;
+ gdouble _tmp28_ = 0.0;
+ gdouble _tmp29_ = 0.0;
+ cairo_t* _tmp30_ = NULL;
+ cairo_surface_t** _tmp31_ = NULL;
+ gint _tmp31__length1 = 0;
+ gint _tmp32_ = 0;
+ cairo_surface_t* _tmp33_ = NULL;
+ gint _tmp34_ = 0;
+ gint _tmp35_ = 0;
+ cairo_t* _tmp36_ = NULL;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ if (!_tmp5_) {
+#line 590 "CrumbleEffect.c"
+ gint _tmp6_ = 0;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp6_ = i;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ i = _tmp6_ + 1;
+#line 596 "CrumbleEffect.c"
+ }
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp5_ = FALSE;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp7_ = i;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp8_ = self->priv->stripes_count;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ if (!(_tmp7_ < _tmp8_)) {
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ break;
+#line 608 "CrumbleEffect.c"
+ }
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp9_ = visuals;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp9_, &_tmp10_);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp11_ = _tmp10_;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp12_ = _tmp11_.x;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp13_ = i;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ x = _tmp12_ + (_tmp13_ * CRUMBLE_EFFECT_STRIPE_WIDTH);
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp14_ = alpha;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp15_ = alpha;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp16_ = self->priv->accelerations;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp16__length1 = self->priv->accelerations_length1;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp17_ = i;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp18_ = _tmp16_[_tmp17_];
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ a = _tmp14_ + (_tmp15_ * _tmp18_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp19_ = visuals;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp19_, &_tmp20_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp21_ = _tmp20_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp22_ = _tmp21_.y;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp23_ = visuals;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp24_ = spit_transitions_visuals_get_from_pixbuf (_tmp23_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp25_ = _tmp24_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp26_ = gdk_pixbuf_get_height (_tmp25_);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp27_ = _tmp26_;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp28_ = a;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp29_ = a;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ y = _tmp22_ + ((gint) ((_tmp27_ * _tmp28_) * _tmp29_));
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp30_ = ctx;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp31_ = self->priv->from_stripes;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp31__length1 = self->priv->from_stripes_length1;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp32_ = i;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp33_ = _tmp31_[_tmp32_];
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp34_ = x;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp35_ = y;
+#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ cairo_set_source_surface (_tmp30_, _tmp33_, (gdouble) _tmp34_, (gdouble) _tmp35_);
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp36_ = ctx;
+#line 85 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ cairo_paint (_tmp36_);
+#line 680 "CrumbleEffect.c"
+ }
+ }
+ }
+ } else {
+ SpitTransitionsVisuals* _tmp37_ = NULL;
+ GdkPixbuf* _tmp38_ = NULL;
+ GdkPixbuf* _tmp39_ = NULL;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp37_ = visuals;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp38_ = spit_transitions_visuals_get_to_pixbuf (_tmp37_);
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp39_ = _tmp38_;
+#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ if (_tmp39_ != NULL) {
+#line 696 "CrumbleEffect.c"
+ gdouble _tmp40_ = 0.0;
+ cairo_t* _tmp41_ = NULL;
+ SpitTransitionsVisuals* _tmp42_ = NULL;
+ GdkPixbuf* _tmp43_ = NULL;
+ GdkPixbuf* _tmp44_ = NULL;
+ SpitTransitionsVisuals* _tmp45_ = NULL;
+ GdkRectangle _tmp46_ = {0};
+ GdkRectangle _tmp47_ = {0};
+ gint _tmp48_ = 0;
+ SpitTransitionsVisuals* _tmp49_ = NULL;
+ GdkRectangle _tmp50_ = {0};
+ GdkRectangle _tmp51_ = {0};
+ gint _tmp52_ = 0;
+ cairo_t* _tmp53_ = NULL;
+ gdouble _tmp54_ = 0.0;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp40_ = alpha;
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ alpha = (_tmp40_ - 0.5) * 2;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp41_ = ctx;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp42_ = visuals;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp43_ = spit_transitions_visuals_get_to_pixbuf (_tmp42_);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp44_ = _tmp43_;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp45_ = visuals;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp45_, &_tmp46_);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp47_ = _tmp46_;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp48_ = _tmp47_.x;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp49_ = visuals;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp49_, &_tmp50_);
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp51_ = _tmp50_;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp52_ = _tmp51_.y;
+#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp41_, _tmp44_, (gdouble) _tmp48_, (gdouble) _tmp52_);
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp53_ = ctx;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ _tmp54_ = alpha;
+#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ cairo_paint_with_alpha (_tmp53_, _tmp54_);
+#line 748 "CrumbleEffect.c"
+ } else {
+ }
+ }
+}
+
+
+static void crumble_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) {
+ CrumbleEffect * self;
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect);
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 763 "CrumbleEffect.c"
+}
+
+
+static void crumble_effect_real_cancel (SpitTransitionsEffect* base) {
+ CrumbleEffect * self;
+#line 100 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect);
+#line 771 "CrumbleEffect.c"
+}
+
+
+static void crumble_effect_class_init (CrumbleEffectClass * klass) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ crumble_effect_parent_class = g_type_class_peek_parent (klass);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ g_type_class_add_private (klass, sizeof (CrumbleEffectPrivate));
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ G_OBJECT_CLASS (klass)->finalize = crumble_effect_finalize;
+#line 782 "CrumbleEffect.c"
+}
+
+
+static void crumble_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ crumble_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ iface->get_fps = (void (*)(SpitTransitionsEffect*, gint*, gint*)) crumble_effect_real_get_fps;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ iface->needs_clear_background = (gboolean (*)(SpitTransitionsEffect*)) crumble_effect_real_needs_clear_background;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ iface->start = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*)) crumble_effect_real_start;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ iface->paint = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) crumble_effect_real_paint;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ iface->advance = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) crumble_effect_real_advance;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ iface->cancel = (void (*)(SpitTransitionsEffect*)) crumble_effect_real_cancel;
+#line 801 "CrumbleEffect.c"
+}
+
+
+static void crumble_effect_instance_init (CrumbleEffect * self) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv = CRUMBLE_EFFECT_GET_PRIVATE (self);
+#line 808 "CrumbleEffect.c"
+}
+
+
+static void crumble_effect_finalize (GObject* obj) {
+ CrumbleEffect * self;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CRUMBLE_EFFECT, CrumbleEffect);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->from_stripes = (_vala_array_free (self->priv->from_stripes, self->priv->from_stripes_length1, (GDestroyNotify) cairo_surface_destroy), NULL);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ self->priv->accelerations = (g_free (self->priv->accelerations), NULL);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala"
+ G_OBJECT_CLASS (crumble_effect_parent_class)->finalize (obj);
+#line 822 "CrumbleEffect.c"
+}
+
+
+GType crumble_effect_get_type (void) {
+ static volatile gsize crumble_effect_type_id__volatile = 0;
+ if (g_once_init_enter (&crumble_effect_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (CrumbleEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crumble_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CrumbleEffect), 0, (GInstanceInitFunc) crumble_effect_instance_init, NULL };
+ static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) crumble_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType crumble_effect_type_id;
+ crumble_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CrumbleEffect", &g_define_type_info, 0);
+ g_type_add_interface_static (crumble_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
+ g_once_init_leave (&crumble_effect_type_id__volatile, crumble_effect_type_id);
+ }
+ return crumble_effect_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/plugins/shotwell-transitions/FadeEffect.c b/plugins/shotwell-transitions/FadeEffect.c
new file mode 100644
index 0000000..132f3d6
--- /dev/null
+++ b/plugins/shotwell-transitions/FadeEffect.c
@@ -0,0 +1,493 @@
+/* FadeEffect.c generated by valac 0.32.1, the Vala compiler
+ * generated from FadeEffect.vala, do not modify */
+
+/* Copyright 2010 Maxim Kartashev
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <cairo.h>
+#include <float.h>
+#include <math.h>
+#include <gdk/gdk.h>
+
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+
+#define TYPE_FADE_EFFECT_DESCRIPTOR (fade_effect_descriptor_get_type ())
+#define FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor))
+#define FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass))
+#define IS_FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT_DESCRIPTOR))
+#define IS_FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT_DESCRIPTOR))
+#define FADE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass))
+
+typedef struct _FadeEffectDescriptor FadeEffectDescriptor;
+typedef struct _FadeEffectDescriptorClass FadeEffectDescriptorClass;
+typedef struct _FadeEffectDescriptorPrivate FadeEffectDescriptorPrivate;
+
+#define TYPE_FADE_EFFECT (fade_effect_get_type ())
+#define FADE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT, FadeEffect))
+#define FADE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT, FadeEffectClass))
+#define IS_FADE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT))
+#define IS_FADE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT))
+#define FADE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT, FadeEffectClass))
+
+typedef struct _FadeEffect FadeEffect;
+typedef struct _FadeEffectClass FadeEffectClass;
+typedef struct _FadeEffectPrivate FadeEffectPrivate;
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+struct _FadeEffectDescriptor {
+ ShotwellTransitionDescriptor parent_instance;
+ FadeEffectDescriptorPrivate * priv;
+};
+
+struct _FadeEffectDescriptorClass {
+ ShotwellTransitionDescriptorClass parent_class;
+};
+
+struct _FadeEffect {
+ GObject parent_instance;
+ FadeEffectPrivate * priv;
+};
+
+struct _FadeEffectClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer fade_effect_descriptor_parent_class = NULL;
+static gpointer fade_effect_parent_class = NULL;
+static SpitTransitionsEffectIface* fade_effect_spit_transitions_effect_parent_iface = NULL;
+
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType fade_effect_descriptor_get_type (void) G_GNUC_CONST;
+enum {
+ FADE_EFFECT_DESCRIPTOR_DUMMY_PROPERTY
+};
+FadeEffectDescriptor* fade_effect_descriptor_new (GFile* resource_directory);
+FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static const gchar* fade_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base);
+static const gchar* fade_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base);
+static SpitTransitionsEffect* fade_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host);
+FadeEffect* fade_effect_new (void);
+FadeEffect* fade_effect_construct (GType object_type);
+GType fade_effect_get_type (void) G_GNUC_CONST;
+enum {
+ FADE_EFFECT_DUMMY_PROPERTY
+};
+#define FADE_EFFECT_DESIRED_FPS 30
+#define FADE_EFFECT_MIN_FPS 20
+static void fade_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps);
+static void fade_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+static gboolean fade_effect_real_needs_clear_background (SpitTransitionsEffect* base);
+static void fade_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+static void fade_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+static void fade_effect_real_cancel (SpitTransitionsEffect* base);
+
+
+FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, GFile* resource_directory) {
+ FadeEffectDescriptor * self = NULL;
+ GFile* _tmp0_ = NULL;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp0_ = resource_directory;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = (FadeEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ return self;
+#line 131 "FadeEffect.c"
+}
+
+
+FadeEffectDescriptor* fade_effect_descriptor_new (GFile* resource_directory) {
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ return fade_effect_descriptor_construct (TYPE_FADE_EFFECT_DESCRIPTOR, resource_directory);
+#line 138 "FadeEffect.c"
+}
+
+
+static const gchar* fade_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) {
+ FadeEffectDescriptor * self;
+ const gchar* result = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ result = "org.yorba.shotwell.transitions.fade";
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ return result;
+#line 151 "FadeEffect.c"
+}
+
+
+static const gchar* fade_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) {
+ FadeEffectDescriptor * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp0_ = _ ("Fade");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ return result;
+#line 167 "FadeEffect.c"
+}
+
+
+static SpitTransitionsEffect* fade_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) {
+ FadeEffectDescriptor * self;
+ SpitTransitionsEffect* result = NULL;
+ FadeEffect* _tmp0_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp0_ = fade_effect_new ();
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ return result;
+#line 185 "FadeEffect.c"
+}
+
+
+static void fade_effect_descriptor_class_init (FadeEffectDescriptorClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ fade_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = fade_effect_descriptor_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = fade_effect_descriptor_real_get_pluggable_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = fade_effect_descriptor_real_create;
+#line 198 "FadeEffect.c"
+}
+
+
+static void fade_effect_descriptor_instance_init (FadeEffectDescriptor * self) {
+}
+
+
+GType fade_effect_descriptor_get_type (void) {
+ static volatile gsize fade_effect_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&fade_effect_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (FadeEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fade_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FadeEffectDescriptor), 0, (GInstanceInitFunc) fade_effect_descriptor_instance_init, NULL };
+ GType fade_effect_descriptor_type_id;
+ fade_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "FadeEffectDescriptor", &g_define_type_info, 0);
+ g_once_init_leave (&fade_effect_descriptor_type_id__volatile, fade_effect_descriptor_type_id);
+ }
+ return fade_effect_descriptor_type_id__volatile;
+}
+
+
+FadeEffect* fade_effect_construct (GType object_type) {
+ FadeEffect * self = NULL;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = (FadeEffect*) g_object_new (object_type, NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ return self;
+#line 224 "FadeEffect.c"
+}
+
+
+FadeEffect* fade_effect_new (void) {
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ return fade_effect_construct (TYPE_FADE_EFFECT);
+#line 231 "FadeEffect.c"
+}
+
+
+static void fade_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) {
+ FadeEffect * self;
+ gint _vala_desired_fps = 0;
+ gint _vala_min_fps = 0;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _vala_desired_fps = FADE_EFFECT_DESIRED_FPS;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _vala_min_fps = FADE_EFFECT_MIN_FPS;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ if (desired_fps) {
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ *desired_fps = _vala_desired_fps;
+#line 249 "FadeEffect.c"
+ }
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ if (min_fps) {
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ *min_fps = _vala_min_fps;
+#line 255 "FadeEffect.c"
+ }
+}
+
+
+static void fade_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) {
+ FadeEffect * self;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 268 "FadeEffect.c"
+}
+
+
+static gboolean fade_effect_real_needs_clear_background (SpitTransitionsEffect* base) {
+ FadeEffect * self;
+ gboolean result = FALSE;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ result = TRUE;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ return result;
+#line 281 "FadeEffect.c"
+}
+
+
+static void fade_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) {
+ FadeEffect * self;
+ gdouble alpha = 0.0;
+ SpitTransitionsMotion* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gdouble _tmp2_ = 0.0;
+ SpitTransitionsVisuals* _tmp3_ = NULL;
+ GdkPixbuf* _tmp4_ = NULL;
+ GdkPixbuf* _tmp5_ = NULL;
+ SpitTransitionsVisuals* _tmp20_ = NULL;
+ GdkPixbuf* _tmp21_ = NULL;
+ GdkPixbuf* _tmp22_ = NULL;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ g_return_if_fail (ctx != NULL);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp0_ = motion;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp1_ = frame_number;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ alpha = _tmp2_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp3_ = visuals;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp4_ = spit_transitions_visuals_get_from_pixbuf (_tmp3_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp5_ = _tmp4_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ if (_tmp5_ != NULL) {
+#line 321 "FadeEffect.c"
+ cairo_t* _tmp6_ = NULL;
+ SpitTransitionsVisuals* _tmp7_ = NULL;
+ GdkPixbuf* _tmp8_ = NULL;
+ GdkPixbuf* _tmp9_ = NULL;
+ SpitTransitionsVisuals* _tmp10_ = NULL;
+ GdkRectangle _tmp11_ = {0};
+ GdkRectangle _tmp12_ = {0};
+ gint _tmp13_ = 0;
+ SpitTransitionsVisuals* _tmp14_ = NULL;
+ GdkRectangle _tmp15_ = {0};
+ GdkRectangle _tmp16_ = {0};
+ gint _tmp17_ = 0;
+ cairo_t* _tmp18_ = NULL;
+ gdouble _tmp19_ = 0.0;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp6_ = ctx;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp7_ = visuals;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp8_ = spit_transitions_visuals_get_from_pixbuf (_tmp7_);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp9_ = _tmp8_;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp10_ = visuals;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp10_, &_tmp11_);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp12_ = _tmp11_;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp13_ = _tmp12_.x;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp14_ = visuals;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp14_, &_tmp15_);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp16_ = _tmp15_;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp17_ = _tmp16_.y;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp6_, _tmp9_, (gdouble) _tmp13_, (gdouble) _tmp17_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp18_ = ctx;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp19_ = alpha;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ cairo_paint_with_alpha (_tmp18_, 1.0 - _tmp19_);
+#line 368 "FadeEffect.c"
+ }
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp20_ = visuals;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp21_ = spit_transitions_visuals_get_to_pixbuf (_tmp20_);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp22_ = _tmp21_;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ if (_tmp22_ != NULL) {
+#line 378 "FadeEffect.c"
+ cairo_t* _tmp23_ = NULL;
+ SpitTransitionsVisuals* _tmp24_ = NULL;
+ GdkPixbuf* _tmp25_ = NULL;
+ GdkPixbuf* _tmp26_ = NULL;
+ SpitTransitionsVisuals* _tmp27_ = NULL;
+ GdkRectangle _tmp28_ = {0};
+ GdkRectangle _tmp29_ = {0};
+ gint _tmp30_ = 0;
+ SpitTransitionsVisuals* _tmp31_ = NULL;
+ GdkRectangle _tmp32_ = {0};
+ GdkRectangle _tmp33_ = {0};
+ gint _tmp34_ = 0;
+ cairo_t* _tmp35_ = NULL;
+ gdouble _tmp36_ = 0.0;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp23_ = ctx;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp24_ = visuals;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp25_ = spit_transitions_visuals_get_to_pixbuf (_tmp24_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp26_ = _tmp25_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp27_ = visuals;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp27_, &_tmp28_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp29_ = _tmp28_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp30_ = _tmp29_.x;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp31_ = visuals;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp31_, &_tmp32_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp33_ = _tmp32_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp34_ = _tmp33_.y;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp23_, _tmp26_, (gdouble) _tmp30_, (gdouble) _tmp34_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp35_ = ctx;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ _tmp36_ = alpha;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ cairo_paint_with_alpha (_tmp35_, _tmp36_);
+#line 425 "FadeEffect.c"
+ }
+}
+
+
+static void fade_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) {
+ FadeEffect * self;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 438 "FadeEffect.c"
+}
+
+
+static void fade_effect_real_cancel (SpitTransitionsEffect* base) {
+ FadeEffect * self;
+#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect);
+#line 446 "FadeEffect.c"
+}
+
+
+static void fade_effect_class_init (FadeEffectClass * klass) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ fade_effect_parent_class = g_type_class_peek_parent (klass);
+#line 453 "FadeEffect.c"
+}
+
+
+static void fade_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ fade_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ iface->get_fps = (void (*)(SpitTransitionsEffect*, gint*, gint*)) fade_effect_real_get_fps;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ iface->start = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*)) fade_effect_real_start;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ iface->needs_clear_background = (gboolean (*)(SpitTransitionsEffect*)) fade_effect_real_needs_clear_background;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ iface->paint = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) fade_effect_real_paint;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ iface->advance = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) fade_effect_real_advance;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala"
+ iface->cancel = (void (*)(SpitTransitionsEffect*)) fade_effect_real_cancel;
+#line 472 "FadeEffect.c"
+}
+
+
+static void fade_effect_instance_init (FadeEffect * self) {
+}
+
+
+GType fade_effect_get_type (void) {
+ static volatile gsize fade_effect_type_id__volatile = 0;
+ if (g_once_init_enter (&fade_effect_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (FadeEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fade_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FadeEffect), 0, (GInstanceInitFunc) fade_effect_instance_init, NULL };
+ static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) fade_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType fade_effect_type_id;
+ fade_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "FadeEffect", &g_define_type_info, 0);
+ g_type_add_interface_static (fade_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
+ g_once_init_leave (&fade_effect_type_id__volatile, fade_effect_type_id);
+ }
+ return fade_effect_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-transitions/Makefile b/plugins/shotwell-transitions/Makefile
deleted file mode 100644
index 9044011..0000000
--- a/plugins/shotwell-transitions/Makefile
+++ /dev/null
@@ -1,25 +0,0 @@
-
-PLUGIN := shotwell-transitions
-
-PLUGIN_PKGS := \
- libxml-2.0 \
- libsoup-2.4
-
-SRC_FILES := \
- shotwell-transitions.vala \
- FadeEffect.vala \
- SlideEffect.vala \
- CrumbleEffect.vala \
- BlindsEffect.vala \
- CircleEffect.vala \
- CirclesEffect.vala \
- SquaresEffect.vala \
- StripesEffect.vala \
- ChessEffect.vala \
- ClockEffect.vala
-
-RC_FILES := \
- slideshow-plugin.png
-
-include ../Makefile.plugin.mk
-
diff --git a/plugins/shotwell-transitions/SlideEffect.c b/plugins/shotwell-transitions/SlideEffect.c
new file mode 100644
index 0000000..1fa1cd3
--- /dev/null
+++ b/plugins/shotwell-transitions/SlideEffect.c
@@ -0,0 +1,614 @@
+/* SlideEffect.c generated by valac 0.32.1, the Vala compiler
+ * generated from SlideEffect.vala, do not modify */
+
+/* Copyright 2010 Maxim Kartashev
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <cairo.h>
+#include <float.h>
+#include <math.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <gdk/gdk.h>
+
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+
+#define TYPE_SLIDE_EFFECT_DESCRIPTOR (slide_effect_descriptor_get_type ())
+#define SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor))
+#define SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass))
+#define IS_SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR))
+#define IS_SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR))
+#define SLIDE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass))
+
+typedef struct _SlideEffectDescriptor SlideEffectDescriptor;
+typedef struct _SlideEffectDescriptorClass SlideEffectDescriptorClass;
+typedef struct _SlideEffectDescriptorPrivate SlideEffectDescriptorPrivate;
+
+#define TYPE_SLIDE_EFFECT (slide_effect_get_type ())
+#define SLIDE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT, SlideEffect))
+#define SLIDE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT, SlideEffectClass))
+#define IS_SLIDE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT))
+#define IS_SLIDE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT))
+#define SLIDE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT, SlideEffectClass))
+
+typedef struct _SlideEffect SlideEffect;
+typedef struct _SlideEffectClass SlideEffectClass;
+typedef struct _SlideEffectPrivate SlideEffectPrivate;
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+struct _SlideEffectDescriptor {
+ ShotwellTransitionDescriptor parent_instance;
+ SlideEffectDescriptorPrivate * priv;
+};
+
+struct _SlideEffectDescriptorClass {
+ ShotwellTransitionDescriptorClass parent_class;
+};
+
+struct _SlideEffect {
+ GObject parent_instance;
+ SlideEffectPrivate * priv;
+};
+
+struct _SlideEffectClass {
+ GObjectClass parent_class;
+};
+
+
+static gpointer slide_effect_descriptor_parent_class = NULL;
+static gpointer slide_effect_parent_class = NULL;
+static SpitTransitionsEffectIface* slide_effect_spit_transitions_effect_parent_iface = NULL;
+
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType slide_effect_descriptor_get_type (void) G_GNUC_CONST;
+enum {
+ SLIDE_EFFECT_DESCRIPTOR_DUMMY_PROPERTY
+};
+SlideEffectDescriptor* slide_effect_descriptor_new (GFile* resource_directory);
+SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static const gchar* slide_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base);
+static const gchar* slide_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base);
+static SpitTransitionsEffect* slide_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host);
+SlideEffect* slide_effect_new (void);
+SlideEffect* slide_effect_construct (GType object_type);
+GType slide_effect_get_type (void) G_GNUC_CONST;
+enum {
+ SLIDE_EFFECT_DUMMY_PROPERTY
+};
+#define SLIDE_EFFECT_DESIRED_FPS 25
+#define SLIDE_EFFECT_MIN_FPS 15
+static void slide_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps);
+static void slide_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+static gboolean slide_effect_real_needs_clear_background (SpitTransitionsEffect* base);
+static void slide_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+static void slide_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+static void slide_effect_real_cancel (SpitTransitionsEffect* base);
+
+
+SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, GFile* resource_directory) {
+ SlideEffectDescriptor * self = NULL;
+ GFile* _tmp0_ = NULL;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp0_ = resource_directory;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = (SlideEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ return self;
+#line 132 "SlideEffect.c"
+}
+
+
+SlideEffectDescriptor* slide_effect_descriptor_new (GFile* resource_directory) {
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ return slide_effect_descriptor_construct (TYPE_SLIDE_EFFECT_DESCRIPTOR, resource_directory);
+#line 139 "SlideEffect.c"
+}
+
+
+static const gchar* slide_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) {
+ SlideEffectDescriptor * self;
+ const gchar* result = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ result = "org.yorba.shotwell.transitions.slide";
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ return result;
+#line 152 "SlideEffect.c"
+}
+
+
+static const gchar* slide_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) {
+ SlideEffectDescriptor * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp0_ = _ ("Slide");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ return result;
+#line 168 "SlideEffect.c"
+}
+
+
+static SpitTransitionsEffect* slide_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) {
+ SlideEffectDescriptor * self;
+ SpitTransitionsEffect* result = NULL;
+ SlideEffect* _tmp0_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp0_ = slide_effect_new ();
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ return result;
+#line 186 "SlideEffect.c"
+}
+
+
+static void slide_effect_descriptor_class_init (SlideEffectDescriptorClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ slide_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = slide_effect_descriptor_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = slide_effect_descriptor_real_get_pluggable_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = slide_effect_descriptor_real_create;
+#line 199 "SlideEffect.c"
+}
+
+
+static void slide_effect_descriptor_instance_init (SlideEffectDescriptor * self) {
+}
+
+
+GType slide_effect_descriptor_get_type (void) {
+ static volatile gsize slide_effect_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&slide_effect_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (SlideEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slide_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideEffectDescriptor), 0, (GInstanceInitFunc) slide_effect_descriptor_instance_init, NULL };
+ GType slide_effect_descriptor_type_id;
+ slide_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "SlideEffectDescriptor", &g_define_type_info, 0);
+ g_once_init_leave (&slide_effect_descriptor_type_id__volatile, slide_effect_descriptor_type_id);
+ }
+ return slide_effect_descriptor_type_id__volatile;
+}
+
+
+SlideEffect* slide_effect_construct (GType object_type) {
+ SlideEffect * self = NULL;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = (SlideEffect*) g_object_new (object_type, NULL);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ return self;
+#line 225 "SlideEffect.c"
+}
+
+
+SlideEffect* slide_effect_new (void) {
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ return slide_effect_construct (TYPE_SLIDE_EFFECT);
+#line 232 "SlideEffect.c"
+}
+
+
+static void slide_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) {
+ SlideEffect * self;
+ gint _vala_desired_fps = 0;
+ gint _vala_min_fps = 0;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _vala_desired_fps = SLIDE_EFFECT_DESIRED_FPS;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _vala_min_fps = SLIDE_EFFECT_MIN_FPS;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ if (desired_fps) {
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ *desired_fps = _vala_desired_fps;
+#line 250 "SlideEffect.c"
+ }
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ if (min_fps) {
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ *min_fps = _vala_min_fps;
+#line 256 "SlideEffect.c"
+ }
+}
+
+
+static void slide_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) {
+ SlideEffect * self;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 269 "SlideEffect.c"
+}
+
+
+static gboolean slide_effect_real_needs_clear_background (SpitTransitionsEffect* base) {
+ SlideEffect * self;
+ gboolean result = FALSE;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ result = TRUE;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ return result;
+#line 282 "SlideEffect.c"
+}
+
+
+static void slide_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) {
+ SlideEffect * self;
+ gdouble alpha = 0.0;
+ SpitTransitionsMotion* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gdouble _tmp2_ = 0.0;
+ SpitTransitionsVisuals* _tmp3_ = NULL;
+ GdkPixbuf* _tmp4_ = NULL;
+ GdkPixbuf* _tmp5_ = NULL;
+ SpitTransitionsVisuals* _tmp33_ = NULL;
+ GdkPixbuf* _tmp34_ = NULL;
+ GdkPixbuf* _tmp35_ = NULL;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ g_return_if_fail (ctx != NULL);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp0_ = motion;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp1_ = frame_number;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ alpha = _tmp2_;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp3_ = visuals;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp4_ = spit_transitions_visuals_get_from_pixbuf (_tmp3_);
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp5_ = _tmp4_;
+#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ if (_tmp5_ != NULL) {
+#line 322 "SlideEffect.c"
+ gint _tmp6_ = 0;
+ SpitTransitionsMotion* _tmp7_ = NULL;
+ SpitTransitionsDirection _tmp8_ = 0;
+ SpitTransitionsDirection _tmp9_ = 0;
+ gint from_target_x = 0;
+ gint from_current_x = 0;
+ SpitTransitionsVisuals* _tmp16_ = NULL;
+ GdkRectangle _tmp17_ = {0};
+ GdkRectangle _tmp18_ = {0};
+ gint _tmp19_ = 0;
+ gdouble _tmp20_ = 0.0;
+ gint _tmp21_ = 0;
+ gdouble _tmp22_ = 0.0;
+ cairo_t* _tmp23_ = NULL;
+ SpitTransitionsVisuals* _tmp24_ = NULL;
+ GdkPixbuf* _tmp25_ = NULL;
+ GdkPixbuf* _tmp26_ = NULL;
+ gint _tmp27_ = 0;
+ SpitTransitionsVisuals* _tmp28_ = NULL;
+ GdkRectangle _tmp29_ = {0};
+ GdkRectangle _tmp30_ = {0};
+ gint _tmp31_ = 0;
+ cairo_t* _tmp32_ = NULL;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp7_ = motion;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp8_ = spit_transitions_motion_get_direction (_tmp7_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp9_ = _tmp8_;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ if (_tmp9_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) {
+#line 354 "SlideEffect.c"
+ SpitTransitionsVisuals* _tmp10_ = NULL;
+ GdkPixbuf* _tmp11_ = NULL;
+ GdkPixbuf* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ gint _tmp14_ = 0;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp10_ = visuals;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp11_ = spit_transitions_visuals_get_from_pixbuf (_tmp10_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp12_ = _tmp11_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp13_ = gdk_pixbuf_get_width (_tmp12_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp14_ = _tmp13_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp6_ = -_tmp14_;
+#line 372 "SlideEffect.c"
+ } else {
+ gint _tmp15_ = 0;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp15_ = width;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp6_ = _tmp15_;
+#line 379 "SlideEffect.c"
+ }
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ from_target_x = _tmp6_;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp16_ = visuals;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp16_, &_tmp17_);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp18_ = _tmp17_;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp19_ = _tmp18_.x;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp20_ = alpha;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp21_ = from_target_x;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp22_ = alpha;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ from_current_x = (gint) ((_tmp19_ * (1 - _tmp20_)) + (_tmp21_ * _tmp22_));
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp23_ = ctx;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp24_ = visuals;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp25_ = spit_transitions_visuals_get_from_pixbuf (_tmp24_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp26_ = _tmp25_;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp27_ = from_current_x;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp28_ = visuals;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp28_, &_tmp29_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp30_ = _tmp29_;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp31_ = _tmp30_.y;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp23_, _tmp26_, (gdouble) _tmp27_, (gdouble) _tmp31_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp32_ = ctx;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ cairo_paint (_tmp32_);
+#line 423 "SlideEffect.c"
+ }
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp33_ = visuals;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp34_ = spit_transitions_visuals_get_to_pixbuf (_tmp33_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp35_ = _tmp34_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ if (_tmp35_ != NULL) {
+#line 433 "SlideEffect.c"
+ gint to_target_x = 0;
+ gint _tmp36_ = 0;
+ SpitTransitionsVisuals* _tmp37_ = NULL;
+ GdkPixbuf* _tmp38_ = NULL;
+ GdkPixbuf* _tmp39_ = NULL;
+ gint _tmp40_ = 0;
+ gint _tmp41_ = 0;
+ gint _tmp42_ = 0;
+ SpitTransitionsMotion* _tmp43_ = NULL;
+ SpitTransitionsDirection _tmp44_ = 0;
+ SpitTransitionsDirection _tmp45_ = 0;
+ gint from_x = 0;
+ gint to_current_x = 0;
+ gint _tmp52_ = 0;
+ gdouble _tmp53_ = 0.0;
+ gint _tmp54_ = 0;
+ gdouble _tmp55_ = 0.0;
+ cairo_t* _tmp56_ = NULL;
+ SpitTransitionsVisuals* _tmp57_ = NULL;
+ GdkPixbuf* _tmp58_ = NULL;
+ GdkPixbuf* _tmp59_ = NULL;
+ gint _tmp60_ = 0;
+ SpitTransitionsVisuals* _tmp61_ = NULL;
+ GdkRectangle _tmp62_ = {0};
+ GdkRectangle _tmp63_ = {0};
+ gint _tmp64_ = 0;
+ cairo_t* _tmp65_ = NULL;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp36_ = width;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp37_ = visuals;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp38_ = spit_transitions_visuals_get_to_pixbuf (_tmp37_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp39_ = _tmp38_;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp40_ = gdk_pixbuf_get_width (_tmp39_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp41_ = _tmp40_;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ to_target_x = (_tmp36_ - _tmp41_) / 2;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp43_ = motion;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp44_ = spit_transitions_motion_get_direction (_tmp43_);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp45_ = _tmp44_;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ if (_tmp45_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) {
+#line 483 "SlideEffect.c"
+ gint _tmp46_ = 0;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp46_ = width;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp42_ = _tmp46_;
+#line 489 "SlideEffect.c"
+ } else {
+ SpitTransitionsVisuals* _tmp47_ = NULL;
+ GdkPixbuf* _tmp48_ = NULL;
+ GdkPixbuf* _tmp49_ = NULL;
+ gint _tmp50_ = 0;
+ gint _tmp51_ = 0;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp47_ = visuals;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp48_ = spit_transitions_visuals_get_to_pixbuf (_tmp47_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp49_ = _tmp48_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp50_ = gdk_pixbuf_get_width (_tmp49_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp51_ = _tmp50_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp42_ = -_tmp51_;
+#line 508 "SlideEffect.c"
+ }
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ from_x = _tmp42_;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp52_ = from_x;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp53_ = alpha;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp54_ = to_target_x;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp55_ = alpha;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ to_current_x = (gint) ((_tmp52_ * (1 - _tmp53_)) + (_tmp54_ * _tmp55_));
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp56_ = ctx;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp57_ = visuals;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp58_ = spit_transitions_visuals_get_to_pixbuf (_tmp57_);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp59_ = _tmp58_;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp60_ = to_current_x;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp61_ = visuals;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp61_, &_tmp62_);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp63_ = _tmp62_;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp64_ = _tmp63_.y;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp56_, _tmp59_, (gdouble) _tmp60_, (gdouble) _tmp64_);
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ _tmp65_ = ctx;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ cairo_paint (_tmp65_);
+#line 546 "SlideEffect.c"
+ }
+}
+
+
+static void slide_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) {
+ SlideEffect * self;
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect);
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 559 "SlideEffect.c"
+}
+
+
+static void slide_effect_real_cancel (SpitTransitionsEffect* base) {
+ SlideEffect * self;
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect);
+#line 567 "SlideEffect.c"
+}
+
+
+static void slide_effect_class_init (SlideEffectClass * klass) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ slide_effect_parent_class = g_type_class_peek_parent (klass);
+#line 574 "SlideEffect.c"
+}
+
+
+static void slide_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ slide_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ iface->get_fps = (void (*)(SpitTransitionsEffect*, gint*, gint*)) slide_effect_real_get_fps;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ iface->start = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*)) slide_effect_real_start;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ iface->needs_clear_background = (gboolean (*)(SpitTransitionsEffect*)) slide_effect_real_needs_clear_background;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ iface->paint = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) slide_effect_real_paint;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ iface->advance = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) slide_effect_real_advance;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala"
+ iface->cancel = (void (*)(SpitTransitionsEffect*)) slide_effect_real_cancel;
+#line 593 "SlideEffect.c"
+}
+
+
+static void slide_effect_instance_init (SlideEffect * self) {
+}
+
+
+GType slide_effect_get_type (void) {
+ static volatile gsize slide_effect_type_id__volatile = 0;
+ if (g_once_init_enter (&slide_effect_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (SlideEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slide_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideEffect), 0, (GInstanceInitFunc) slide_effect_instance_init, NULL };
+ static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) slide_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType slide_effect_type_id;
+ slide_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "SlideEffect", &g_define_type_info, 0);
+ g_type_add_interface_static (slide_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
+ g_once_init_leave (&slide_effect_type_id__volatile, slide_effect_type_id);
+ }
+ return slide_effect_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-transitions/SquaresEffect.c b/plugins/shotwell-transitions/SquaresEffect.c
new file mode 100644
index 0000000..29fab0c
--- /dev/null
+++ b/plugins/shotwell-transitions/SquaresEffect.c
@@ -0,0 +1,704 @@
+/* SquaresEffect.c generated by valac 0.32.1, the Vala compiler
+ * generated from SquaresEffect.vala, do not modify */
+
+/* Copyright 2013 Jens Bav
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <float.h>
+#include <math.h>
+#include <cairo.h>
+#include <gdk/gdk.h>
+
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+
+#define TYPE_SQUARES_EFFECT_DESCRIPTOR (squares_effect_descriptor_get_type ())
+#define SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor))
+#define SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass))
+#define IS_SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR))
+#define IS_SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR))
+#define SQUARES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass))
+
+typedef struct _SquaresEffectDescriptor SquaresEffectDescriptor;
+typedef struct _SquaresEffectDescriptorClass SquaresEffectDescriptorClass;
+typedef struct _SquaresEffectDescriptorPrivate SquaresEffectDescriptorPrivate;
+
+#define TYPE_SQUARES_EFFECT (squares_effect_get_type ())
+#define SQUARES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT, SquaresEffect))
+#define SQUARES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT, SquaresEffectClass))
+#define IS_SQUARES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT))
+#define IS_SQUARES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT))
+#define SQUARES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT, SquaresEffectClass))
+
+typedef struct _SquaresEffect SquaresEffect;
+typedef struct _SquaresEffectClass SquaresEffectClass;
+typedef struct _SquaresEffectPrivate SquaresEffectPrivate;
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+struct _SquaresEffectDescriptor {
+ ShotwellTransitionDescriptor parent_instance;
+ SquaresEffectDescriptorPrivate * priv;
+};
+
+struct _SquaresEffectDescriptorClass {
+ ShotwellTransitionDescriptorClass parent_class;
+};
+
+struct _SquaresEffect {
+ GObject parent_instance;
+ SquaresEffectPrivate * priv;
+};
+
+struct _SquaresEffectClass {
+ GObjectClass parent_class;
+};
+
+struct _SquaresEffectPrivate {
+ gdouble square_count_x;
+ gdouble square_count_y;
+};
+
+
+static gpointer squares_effect_descriptor_parent_class = NULL;
+static gpointer squares_effect_parent_class = NULL;
+static SpitTransitionsEffectIface* squares_effect_spit_transitions_effect_parent_iface = NULL;
+
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType squares_effect_descriptor_get_type (void) G_GNUC_CONST;
+enum {
+ SQUARES_EFFECT_DESCRIPTOR_DUMMY_PROPERTY
+};
+SquaresEffectDescriptor* squares_effect_descriptor_new (GFile* resource_directory);
+SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static const gchar* squares_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base);
+static const gchar* squares_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base);
+static SpitTransitionsEffect* squares_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host);
+SquaresEffect* squares_effect_new (void);
+SquaresEffect* squares_effect_construct (GType object_type);
+GType squares_effect_get_type (void) G_GNUC_CONST;
+#define SQUARES_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SQUARES_EFFECT, SquaresEffectPrivate))
+enum {
+ SQUARES_EFFECT_DUMMY_PROPERTY
+};
+#define SQUARES_EFFECT_DESIRED_FPS 25
+#define SQUARES_EFFECT_MIN_FPS 10
+#define SQUARES_EFFECT_SQUARE_SIZE 100
+static void squares_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps);
+static void squares_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+static gboolean squares_effect_real_needs_clear_background (SpitTransitionsEffect* base);
+static void squares_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+static void squares_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+static void squares_effect_real_cancel (SpitTransitionsEffect* base);
+static void squares_effect_finalize (GObject* obj);
+
+
+SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, GFile* resource_directory) {
+ SquaresEffectDescriptor * self = NULL;
+ GFile* _tmp0_ = NULL;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp0_ = resource_directory;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = (SquaresEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ return self;
+#line 139 "SquaresEffect.c"
+}
+
+
+SquaresEffectDescriptor* squares_effect_descriptor_new (GFile* resource_directory) {
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ return squares_effect_descriptor_construct (TYPE_SQUARES_EFFECT_DESCRIPTOR, resource_directory);
+#line 146 "SquaresEffect.c"
+}
+
+
+static const gchar* squares_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) {
+ SquaresEffectDescriptor * self;
+ const gchar* result = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ result = "org.yorba.shotwell.transitions.squares";
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ return result;
+#line 159 "SquaresEffect.c"
+}
+
+
+static const gchar* squares_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) {
+ SquaresEffectDescriptor * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp0_ = _ ("Squares");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ return result;
+#line 175 "SquaresEffect.c"
+}
+
+
+static SpitTransitionsEffect* squares_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) {
+ SquaresEffectDescriptor * self;
+ SpitTransitionsEffect* result = NULL;
+ SquaresEffect* _tmp0_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp0_ = squares_effect_new ();
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ return result;
+#line 193 "SquaresEffect.c"
+}
+
+
+static void squares_effect_descriptor_class_init (SquaresEffectDescriptorClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ squares_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = squares_effect_descriptor_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = squares_effect_descriptor_real_get_pluggable_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = squares_effect_descriptor_real_create;
+#line 206 "SquaresEffect.c"
+}
+
+
+static void squares_effect_descriptor_instance_init (SquaresEffectDescriptor * self) {
+}
+
+
+GType squares_effect_descriptor_get_type (void) {
+ static volatile gsize squares_effect_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&squares_effect_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (SquaresEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) squares_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SquaresEffectDescriptor), 0, (GInstanceInitFunc) squares_effect_descriptor_instance_init, NULL };
+ GType squares_effect_descriptor_type_id;
+ squares_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "SquaresEffectDescriptor", &g_define_type_info, 0);
+ g_once_init_leave (&squares_effect_descriptor_type_id__volatile, squares_effect_descriptor_type_id);
+ }
+ return squares_effect_descriptor_type_id__volatile;
+}
+
+
+SquaresEffect* squares_effect_construct (GType object_type) {
+ SquaresEffect * self = NULL;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = (SquaresEffect*) g_object_new (object_type, NULL);
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ return self;
+#line 232 "SquaresEffect.c"
+}
+
+
+SquaresEffect* squares_effect_new (void) {
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ return squares_effect_construct (TYPE_SQUARES_EFFECT);
+#line 239 "SquaresEffect.c"
+}
+
+
+static void squares_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) {
+ SquaresEffect * self;
+ gint _vala_desired_fps = 0;
+ gint _vala_min_fps = 0;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect);
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _vala_desired_fps = SQUARES_EFFECT_DESIRED_FPS;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _vala_min_fps = SQUARES_EFFECT_MIN_FPS;
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ if (desired_fps) {
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ *desired_fps = _vala_desired_fps;
+#line 257 "SquaresEffect.c"
+ }
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ if (min_fps) {
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ *min_fps = _vala_min_fps;
+#line 263 "SquaresEffect.c"
+ }
+}
+
+
+static void squares_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) {
+ SquaresEffect * self;
+ SpitTransitionsVisuals* _tmp0_ = NULL;
+ GdkRectangle _tmp1_ = {0};
+ GdkRectangle _tmp2_ = {0};
+ gint _tmp3_ = 0;
+ SpitTransitionsVisuals* _tmp4_ = NULL;
+ GdkRectangle _tmp5_ = {0};
+ GdkRectangle _tmp6_ = {0};
+ gint _tmp7_ = 0;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp0_ = visuals;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp0_, &_tmp1_);
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp2_ = _tmp1_;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp3_ = _tmp2_.width;
+#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self->priv->square_count_x = (gdouble) ((_tmp3_ / SQUARES_EFFECT_SQUARE_SIZE) + 1);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp4_ = visuals;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp4_, &_tmp5_);
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp6_ = _tmp5_;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp7_ = _tmp6_.height;
+#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self->priv->square_count_y = (gdouble) ((_tmp7_ / SQUARES_EFFECT_SQUARE_SIZE) + 1);
+#line 304 "SquaresEffect.c"
+}
+
+
+static gboolean squares_effect_real_needs_clear_background (SpitTransitionsEffect* base) {
+ SquaresEffect * self;
+ gboolean result = FALSE;
+#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ result = TRUE;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ return result;
+#line 317 "SquaresEffect.c"
+}
+
+
+static void squares_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) {
+ SquaresEffect * self;
+ gdouble alpha = 0.0;
+ SpitTransitionsMotion* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gdouble _tmp2_ = 0.0;
+ SpitTransitionsVisuals* _tmp3_ = NULL;
+ GdkPixbuf* _tmp4_ = NULL;
+ GdkPixbuf* _tmp5_ = NULL;
+ SpitTransitionsVisuals* _tmp20_ = NULL;
+ GdkPixbuf* _tmp21_ = NULL;
+ GdkPixbuf* _tmp22_ = NULL;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ g_return_if_fail (ctx != NULL);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp0_ = motion;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp1_ = frame_number;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ alpha = _tmp2_;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp3_ = visuals;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp4_ = spit_transitions_visuals_get_from_pixbuf (_tmp3_);
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp5_ = _tmp4_;
+#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ if (_tmp5_ != NULL) {
+#line 357 "SquaresEffect.c"
+ cairo_t* _tmp6_ = NULL;
+ SpitTransitionsVisuals* _tmp7_ = NULL;
+ GdkPixbuf* _tmp8_ = NULL;
+ GdkPixbuf* _tmp9_ = NULL;
+ SpitTransitionsVisuals* _tmp10_ = NULL;
+ GdkRectangle _tmp11_ = {0};
+ GdkRectangle _tmp12_ = {0};
+ gint _tmp13_ = 0;
+ SpitTransitionsVisuals* _tmp14_ = NULL;
+ GdkRectangle _tmp15_ = {0};
+ GdkRectangle _tmp16_ = {0};
+ gint _tmp17_ = 0;
+ cairo_t* _tmp18_ = NULL;
+ gdouble _tmp19_ = 0.0;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp6_ = ctx;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp7_ = visuals;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp8_ = spit_transitions_visuals_get_from_pixbuf (_tmp7_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp9_ = _tmp8_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp10_ = visuals;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp10_, &_tmp11_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp12_ = _tmp11_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp13_ = _tmp12_.x;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp14_ = visuals;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp14_, &_tmp15_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp16_ = _tmp15_;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp17_ = _tmp16_.y;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp6_, _tmp9_, (gdouble) _tmp13_, (gdouble) _tmp17_);
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp18_ = ctx;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp19_ = alpha;
+#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ cairo_paint_with_alpha (_tmp18_, 1 - _tmp19_);
+#line 404 "SquaresEffect.c"
+ }
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp20_ = visuals;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp21_ = spit_transitions_visuals_get_to_pixbuf (_tmp20_);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp22_ = _tmp21_;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ if (_tmp22_ != NULL) {
+#line 414 "SquaresEffect.c"
+ cairo_t* _tmp23_ = NULL;
+ SpitTransitionsVisuals* _tmp24_ = NULL;
+ GdkPixbuf* _tmp25_ = NULL;
+ GdkPixbuf* _tmp26_ = NULL;
+ SpitTransitionsVisuals* _tmp27_ = NULL;
+ GdkRectangle _tmp28_ = {0};
+ GdkRectangle _tmp29_ = {0};
+ gint _tmp30_ = 0;
+ SpitTransitionsVisuals* _tmp31_ = NULL;
+ GdkRectangle _tmp32_ = {0};
+ GdkRectangle _tmp33_ = {0};
+ gint _tmp34_ = 0;
+ cairo_t* _tmp65_ = NULL;
+ cairo_t* _tmp66_ = NULL;
+ gdouble _tmp67_ = 0.0;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp23_ = ctx;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp24_ = visuals;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp25_ = spit_transitions_visuals_get_to_pixbuf (_tmp24_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp26_ = _tmp25_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp27_ = visuals;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp27_, &_tmp28_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp29_ = _tmp28_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp30_ = _tmp29_.x;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp31_ = visuals;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp31_, &_tmp32_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp33_ = _tmp32_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp34_ = _tmp33_.y;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp23_, _tmp26_, (gdouble) _tmp30_, (gdouble) _tmp34_);
+#line 456 "SquaresEffect.c"
+ {
+ gdouble y = 0.0;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ y = (gdouble) 0;
+#line 461 "SquaresEffect.c"
+ {
+ gboolean _tmp35_ = FALSE;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp35_ = TRUE;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ while (TRUE) {
+#line 468 "SquaresEffect.c"
+ gdouble _tmp37_ = 0.0;
+ gdouble _tmp38_ = 0.0;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ if (!_tmp35_) {
+#line 473 "SquaresEffect.c"
+ gdouble _tmp36_ = 0.0;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp36_ = y;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ y = _tmp36_ + 1;
+#line 479 "SquaresEffect.c"
+ }
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp35_ = FALSE;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp37_ = y;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp38_ = self->priv->square_count_y;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ if (!(_tmp37_ <= _tmp38_)) {
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ break;
+#line 491 "SquaresEffect.c"
+ }
+ {
+ gdouble x = 0.0;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ x = (gdouble) 0;
+#line 497 "SquaresEffect.c"
+ {
+ gboolean _tmp39_ = FALSE;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp39_ = TRUE;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ while (TRUE) {
+#line 504 "SquaresEffect.c"
+ gdouble _tmp41_ = 0.0;
+ gdouble _tmp42_ = 0.0;
+ gdouble size = 0.0;
+ gdouble _tmp43_ = 0.0;
+ gdouble _tmp44_ = 0.0;
+ gdouble _tmp45_ = 0.0;
+ gdouble _tmp46_ = 0.0;
+ gdouble _tmp47_ = 0.0;
+ gdouble _tmp48_ = 0.0;
+ gdouble _tmp49_ = 0.0;
+ gdouble _tmp50_ = 0.0;
+ cairo_t* _tmp51_ = NULL;
+ SpitTransitionsVisuals* _tmp52_ = NULL;
+ GdkRectangle _tmp53_ = {0};
+ GdkRectangle _tmp54_ = {0};
+ gint _tmp55_ = 0;
+ gdouble _tmp56_ = 0.0;
+ SpitTransitionsVisuals* _tmp57_ = NULL;
+ GdkRectangle _tmp58_ = {0};
+ GdkRectangle _tmp59_ = {0};
+ gint _tmp60_ = 0;
+ gdouble _tmp61_ = 0.0;
+ gdouble _tmp62_ = 0.0;
+ gdouble _tmp63_ = 0.0;
+ cairo_t* _tmp64_ = NULL;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ if (!_tmp39_) {
+#line 532 "SquaresEffect.c"
+ gdouble _tmp40_ = 0.0;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp40_ = x;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ x = _tmp40_ + 1;
+#line 538 "SquaresEffect.c"
+ }
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp39_ = FALSE;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp41_ = x;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp42_ = self->priv->square_count_x;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ if (!(_tmp41_ <= _tmp42_)) {
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ break;
+#line 550 "SquaresEffect.c"
+ }
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp43_ = alpha;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp44_ = self->priv->square_count_x;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp45_ = x;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp46_ = self->priv->square_count_x;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp47_ = self->priv->square_count_y;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp48_ = y;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp49_ = self->priv->square_count_y;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp50_ = fmin ((gdouble) 1, _tmp43_ + ((((_tmp44_ - _tmp45_) / _tmp46_) + ((_tmp47_ - _tmp48_) / _tmp49_)) / 2.5));
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ size = SQUARES_EFFECT_SQUARE_SIZE * _tmp50_;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp51_ = ctx;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp52_ = visuals;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp52_, &_tmp53_);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp54_ = _tmp53_;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp55_ = _tmp54_.x;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp56_ = x;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp57_ = visuals;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp57_, &_tmp58_);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp59_ = _tmp58_;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp60_ = _tmp59_.y;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp61_ = y;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp62_ = size;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp63_ = size;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ cairo_rectangle (_tmp51_, _tmp55_ + (_tmp56_ * SQUARES_EFFECT_SQUARE_SIZE), _tmp60_ + (_tmp61_ * SQUARES_EFFECT_SQUARE_SIZE), _tmp62_, _tmp63_);
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp64_ = ctx;
+#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ cairo_fill (_tmp64_);
+#line 602 "SquaresEffect.c"
+ }
+ }
+ }
+ }
+ }
+ }
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp65_ = ctx;
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ cairo_clip (_tmp65_);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp66_ = ctx;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ _tmp67_ = alpha;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ cairo_paint_with_alpha (_tmp66_, _tmp67_);
+#line 619 "SquaresEffect.c"
+ }
+}
+
+
+static void squares_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) {
+ SquaresEffect * self;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 632 "SquaresEffect.c"
+}
+
+
+static void squares_effect_real_cancel (SpitTransitionsEffect* base) {
+ SquaresEffect * self;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect);
+#line 640 "SquaresEffect.c"
+}
+
+
+static void squares_effect_class_init (SquaresEffectClass * klass) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ squares_effect_parent_class = g_type_class_peek_parent (klass);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ g_type_class_add_private (klass, sizeof (SquaresEffectPrivate));
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ G_OBJECT_CLASS (klass)->finalize = squares_effect_finalize;
+#line 651 "SquaresEffect.c"
+}
+
+
+static void squares_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ squares_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ iface->get_fps = (void (*)(SpitTransitionsEffect*, gint*, gint*)) squares_effect_real_get_fps;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ iface->start = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*)) squares_effect_real_start;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ iface->needs_clear_background = (gboolean (*)(SpitTransitionsEffect*)) squares_effect_real_needs_clear_background;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ iface->paint = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) squares_effect_real_paint;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ iface->advance = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) squares_effect_real_advance;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ iface->cancel = (void (*)(SpitTransitionsEffect*)) squares_effect_real_cancel;
+#line 670 "SquaresEffect.c"
+}
+
+
+static void squares_effect_instance_init (SquaresEffect * self) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self->priv = SQUARES_EFFECT_GET_PRIVATE (self);
+#line 677 "SquaresEffect.c"
+}
+
+
+static void squares_effect_finalize (GObject* obj) {
+ SquaresEffect * self;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SQUARES_EFFECT, SquaresEffect);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala"
+ G_OBJECT_CLASS (squares_effect_parent_class)->finalize (obj);
+#line 687 "SquaresEffect.c"
+}
+
+
+GType squares_effect_get_type (void) {
+ static volatile gsize squares_effect_type_id__volatile = 0;
+ if (g_once_init_enter (&squares_effect_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (SquaresEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) squares_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SquaresEffect), 0, (GInstanceInitFunc) squares_effect_instance_init, NULL };
+ static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) squares_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType squares_effect_type_id;
+ squares_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "SquaresEffect", &g_define_type_info, 0);
+ g_type_add_interface_static (squares_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
+ g_once_init_leave (&squares_effect_type_id__volatile, squares_effect_type_id);
+ }
+ return squares_effect_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-transitions/StripesEffect.c b/plugins/shotwell-transitions/StripesEffect.c
new file mode 100644
index 0000000..c6e802d
--- /dev/null
+++ b/plugins/shotwell-transitions/StripesEffect.c
@@ -0,0 +1,713 @@
+/* StripesEffect.c generated by valac 0.32.1, the Vala compiler
+ * generated from StripesEffect.vala, do not modify */
+
+/* Copyright 2013 Jens Bav
+ * 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 <shotwell-plugin-dev-1.0.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <glib/gi18n-lib.h>
+#include <cairo.h>
+#include <float.h>
+#include <math.h>
+#include <gdk/gdk.h>
+
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+
+#define TYPE_STRIPES_EFFECT_DESCRIPTOR (stripes_effect_descriptor_get_type ())
+#define STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor))
+#define STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass))
+#define IS_STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR))
+#define IS_STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR))
+#define STRIPES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass))
+
+typedef struct _StripesEffectDescriptor StripesEffectDescriptor;
+typedef struct _StripesEffectDescriptorClass StripesEffectDescriptorClass;
+typedef struct _StripesEffectDescriptorPrivate StripesEffectDescriptorPrivate;
+
+#define TYPE_STRIPES_EFFECT (stripes_effect_get_type ())
+#define STRIPES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT, StripesEffect))
+#define STRIPES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT, StripesEffectClass))
+#define IS_STRIPES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT))
+#define IS_STRIPES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT))
+#define STRIPES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT, StripesEffectClass))
+
+typedef struct _StripesEffect StripesEffect;
+typedef struct _StripesEffectClass StripesEffectClass;
+typedef struct _StripesEffectPrivate StripesEffectPrivate;
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+struct _StripesEffectDescriptor {
+ ShotwellTransitionDescriptor parent_instance;
+ StripesEffectDescriptorPrivate * priv;
+};
+
+struct _StripesEffectDescriptorClass {
+ ShotwellTransitionDescriptorClass parent_class;
+};
+
+struct _StripesEffect {
+ GObject parent_instance;
+ StripesEffectPrivate * priv;
+};
+
+struct _StripesEffectClass {
+ GObjectClass parent_class;
+};
+
+struct _StripesEffectPrivate {
+ gint stripe_count;
+};
+
+
+static gpointer stripes_effect_descriptor_parent_class = NULL;
+static gpointer stripes_effect_parent_class = NULL;
+static SpitTransitionsEffectIface* stripes_effect_spit_transitions_effect_parent_iface = NULL;
+
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType stripes_effect_descriptor_get_type (void) G_GNUC_CONST;
+enum {
+ STRIPES_EFFECT_DESCRIPTOR_DUMMY_PROPERTY
+};
+StripesEffectDescriptor* stripes_effect_descriptor_new (GFile* resource_directory);
+StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static const gchar* stripes_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base);
+static const gchar* stripes_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base);
+static SpitTransitionsEffect* stripes_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host);
+StripesEffect* stripes_effect_new (void);
+StripesEffect* stripes_effect_construct (GType object_type);
+GType stripes_effect_get_type (void) G_GNUC_CONST;
+#define STRIPES_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_STRIPES_EFFECT, StripesEffectPrivate))
+enum {
+ STRIPES_EFFECT_DUMMY_PROPERTY
+};
+#define STRIPES_EFFECT_DESIRED_FPS 25
+#define STRIPES_EFFECT_MIN_FPS 10
+#define STRIPES_EFFECT_STRIPE_HEIGHT 100
+static void stripes_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps);
+static void stripes_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion);
+static gboolean stripes_effect_real_needs_clear_background (SpitTransitionsEffect* base);
+static void stripes_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number);
+static void stripes_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number);
+static void stripes_effect_real_cancel (SpitTransitionsEffect* base);
+static void stripes_effect_finalize (GObject* obj);
+
+
+StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, GFile* resource_directory) {
+ StripesEffectDescriptor * self = NULL;
+ GFile* _tmp0_ = NULL;
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp0_ = resource_directory;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = (StripesEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_);
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ return self;
+#line 138 "StripesEffect.c"
+}
+
+
+StripesEffectDescriptor* stripes_effect_descriptor_new (GFile* resource_directory) {
+#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ return stripes_effect_descriptor_construct (TYPE_STRIPES_EFFECT_DESCRIPTOR, resource_directory);
+#line 145 "StripesEffect.c"
+}
+
+
+static const gchar* stripes_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) {
+ StripesEffectDescriptor * self;
+ const gchar* result = NULL;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ result = "org.yorba.shotwell.transitions.stripes";
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ return result;
+#line 158 "StripesEffect.c"
+}
+
+
+static const gchar* stripes_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) {
+ StripesEffectDescriptor * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp0_ = _ ("Stripes");
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ result = _tmp0_;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ return result;
+#line 174 "StripesEffect.c"
+}
+
+
+static SpitTransitionsEffect* stripes_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) {
+ StripesEffectDescriptor * self;
+ SpitTransitionsEffect* result = NULL;
+ StripesEffect* _tmp0_ = NULL;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp0_ = stripes_effect_new ();
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ return result;
+#line 192 "StripesEffect.c"
+}
+
+
+static void stripes_effect_descriptor_class_init (StripesEffectDescriptorClass * klass) {
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ stripes_effect_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = stripes_effect_descriptor_real_get_id;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = stripes_effect_descriptor_real_get_pluggable_name;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = stripes_effect_descriptor_real_create;
+#line 205 "StripesEffect.c"
+}
+
+
+static void stripes_effect_descriptor_instance_init (StripesEffectDescriptor * self) {
+}
+
+
+GType stripes_effect_descriptor_get_type (void) {
+ static volatile gsize stripes_effect_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&stripes_effect_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (StripesEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) stripes_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StripesEffectDescriptor), 0, (GInstanceInitFunc) stripes_effect_descriptor_instance_init, NULL };
+ GType stripes_effect_descriptor_type_id;
+ stripes_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "StripesEffectDescriptor", &g_define_type_info, 0);
+ g_once_init_leave (&stripes_effect_descriptor_type_id__volatile, stripes_effect_descriptor_type_id);
+ }
+ return stripes_effect_descriptor_type_id__volatile;
+}
+
+
+StripesEffect* stripes_effect_construct (GType object_type) {
+ StripesEffect * self = NULL;
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = (StripesEffect*) g_object_new (object_type, NULL);
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ return self;
+#line 231 "StripesEffect.c"
+}
+
+
+StripesEffect* stripes_effect_new (void) {
+#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ return stripes_effect_construct (TYPE_STRIPES_EFFECT);
+#line 238 "StripesEffect.c"
+}
+
+
+static void stripes_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) {
+ StripesEffect * self;
+ gint _vala_desired_fps = 0;
+ gint _vala_min_fps = 0;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect);
+#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _vala_desired_fps = STRIPES_EFFECT_DESIRED_FPS;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _vala_min_fps = STRIPES_EFFECT_MIN_FPS;
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ if (desired_fps) {
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ *desired_fps = _vala_desired_fps;
+#line 256 "StripesEffect.c"
+ }
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ if (min_fps) {
+#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ *min_fps = _vala_min_fps;
+#line 262 "StripesEffect.c"
+ }
+}
+
+
+static void stripes_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) {
+ StripesEffect * self;
+ SpitTransitionsVisuals* _tmp0_ = NULL;
+ GdkRectangle _tmp1_ = {0};
+ GdkRectangle _tmp2_ = {0};
+ gint _tmp3_ = 0;
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect);
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp0_ = visuals;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp0_, &_tmp1_);
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp2_ = _tmp1_;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp3_ = _tmp2_.height;
+#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self->priv->stripe_count = (_tmp3_ / STRIPES_EFFECT_STRIPE_HEIGHT) + 1;
+#line 289 "StripesEffect.c"
+}
+
+
+static gboolean stripes_effect_real_needs_clear_background (SpitTransitionsEffect* base) {
+ StripesEffect * self;
+ gboolean result = FALSE;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect);
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ result = TRUE;
+#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ return result;
+#line 302 "StripesEffect.c"
+}
+
+
+static void stripes_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) {
+ StripesEffect * self;
+ gdouble alpha = 0.0;
+ SpitTransitionsMotion* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gdouble _tmp2_ = 0.0;
+ SpitTransitionsVisuals* _tmp3_ = NULL;
+ GdkPixbuf* _tmp4_ = NULL;
+ GdkPixbuf* _tmp5_ = NULL;
+ SpitTransitionsVisuals* _tmp21_ = NULL;
+ GdkPixbuf* _tmp22_ = NULL;
+ GdkPixbuf* _tmp23_ = NULL;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ g_return_if_fail (ctx != NULL);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp0_ = motion;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp1_ = frame_number;
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_);
+#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ alpha = _tmp2_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp3_ = visuals;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp4_ = spit_transitions_visuals_get_from_pixbuf (_tmp3_);
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp5_ = _tmp4_;
+#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ if (_tmp5_ != NULL) {
+#line 342 "StripesEffect.c"
+ cairo_t* _tmp6_ = NULL;
+ SpitTransitionsVisuals* _tmp7_ = NULL;
+ GdkPixbuf* _tmp8_ = NULL;
+ GdkPixbuf* _tmp9_ = NULL;
+ SpitTransitionsVisuals* _tmp10_ = NULL;
+ GdkRectangle _tmp11_ = {0};
+ GdkRectangle _tmp12_ = {0};
+ gint _tmp13_ = 0;
+ SpitTransitionsVisuals* _tmp14_ = NULL;
+ GdkRectangle _tmp15_ = {0};
+ GdkRectangle _tmp16_ = {0};
+ gint _tmp17_ = 0;
+ cairo_t* _tmp18_ = NULL;
+ gdouble _tmp19_ = 0.0;
+ gdouble _tmp20_ = 0.0;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp6_ = ctx;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp7_ = visuals;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp8_ = spit_transitions_visuals_get_from_pixbuf (_tmp7_);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp9_ = _tmp8_;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp10_ = visuals;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp10_, &_tmp11_);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp12_ = _tmp11_;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp13_ = _tmp12_.x;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp14_ = visuals;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_from_pos (_tmp14_, &_tmp15_);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp16_ = _tmp15_;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp17_ = _tmp16_.y;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp6_, _tmp9_, (gdouble) _tmp13_, (gdouble) _tmp17_);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp18_ = ctx;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp19_ = alpha;
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp20_ = fmin ((gdouble) 1, _tmp19_ * 2);
+#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ cairo_paint_with_alpha (_tmp18_, 1 - _tmp20_);
+#line 392 "StripesEffect.c"
+ }
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp21_ = visuals;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp22_ = spit_transitions_visuals_get_to_pixbuf (_tmp21_);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp23_ = _tmp22_;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ if (_tmp23_ != NULL) {
+#line 402 "StripesEffect.c"
+ cairo_t* _tmp24_ = NULL;
+ SpitTransitionsVisuals* _tmp25_ = NULL;
+ GdkPixbuf* _tmp26_ = NULL;
+ GdkPixbuf* _tmp27_ = NULL;
+ SpitTransitionsVisuals* _tmp28_ = NULL;
+ GdkRectangle _tmp29_ = {0};
+ GdkRectangle _tmp30_ = {0};
+ gint _tmp31_ = 0;
+ SpitTransitionsVisuals* _tmp32_ = NULL;
+ GdkRectangle _tmp33_ = {0};
+ GdkRectangle _tmp34_ = {0};
+ gint _tmp35_ = 0;
+ gint x = 0;
+ SpitTransitionsVisuals* _tmp36_ = NULL;
+ GdkRectangle _tmp37_ = {0};
+ GdkRectangle _tmp38_ = {0};
+ gint _tmp39_ = 0;
+ gint y = 0;
+ SpitTransitionsVisuals* _tmp40_ = NULL;
+ GdkRectangle _tmp41_ = {0};
+ GdkRectangle _tmp42_ = {0};
+ gint _tmp43_ = 0;
+ cairo_t* _tmp79_ = NULL;
+ cairo_t* _tmp80_ = NULL;
+ gdouble _tmp81_ = 0.0;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp24_ = ctx;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp25_ = visuals;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp26_ = spit_transitions_visuals_get_to_pixbuf (_tmp25_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp27_ = _tmp26_;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp28_ = visuals;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp28_, &_tmp29_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp30_ = _tmp29_;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp31_ = _tmp30_.x;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp32_ = visuals;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp32_, &_tmp33_);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp34_ = _tmp33_;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp35_ = _tmp34_.y;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ gdk_cairo_set_source_pixbuf (_tmp24_, _tmp27_, (gdouble) _tmp31_, (gdouble) _tmp35_);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp36_ = visuals;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp36_, &_tmp37_);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp38_ = _tmp37_;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp39_ = _tmp38_.x;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ x = _tmp39_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp40_ = visuals;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp40_, &_tmp41_);
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp42_ = _tmp41_;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp43_ = _tmp42_.y;
+#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ y = _tmp43_;
+#line 474 "StripesEffect.c"
+ {
+ gint i = 0;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ i = 0;
+#line 479 "StripesEffect.c"
+ {
+ gboolean _tmp44_ = FALSE;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp44_ = TRUE;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ while (TRUE) {
+#line 486 "StripesEffect.c"
+ gint _tmp46_ = 0;
+ gint _tmp47_ = 0;
+ gint _tmp48_ = 0;
+ SpitTransitionsMotion* _tmp49_ = NULL;
+ SpitTransitionsDirection _tmp50_ = 0;
+ SpitTransitionsDirection _tmp51_ = 0;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ if (!_tmp44_) {
+#line 495 "StripesEffect.c"
+ gint _tmp45_ = 0;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp45_ = i;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ i = _tmp45_ + 1;
+#line 501 "StripesEffect.c"
+ }
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp44_ = FALSE;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp46_ = i;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp47_ = self->priv->stripe_count;
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ if (!(_tmp46_ <= _tmp47_)) {
+#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ break;
+#line 513 "StripesEffect.c"
+ }
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp48_ = i;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp49_ = motion;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp50_ = spit_transitions_motion_get_direction (_tmp49_);
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp51_ = _tmp50_;
+#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ if ((_tmp48_ % 2) == ((gint) _tmp51_)) {
+#line 525 "StripesEffect.c"
+ cairo_t* _tmp52_ = NULL;
+ gint _tmp53_ = 0;
+ SpitTransitionsVisuals* _tmp54_ = NULL;
+ GdkRectangle _tmp55_ = {0};
+ GdkRectangle _tmp56_ = {0};
+ gint _tmp57_ = 0;
+ gdouble _tmp58_ = 0.0;
+ SpitTransitionsVisuals* _tmp59_ = NULL;
+ GdkRectangle _tmp60_ = {0};
+ GdkRectangle _tmp61_ = {0};
+ gint _tmp62_ = 0;
+ gint _tmp63_ = 0;
+ gint _tmp64_ = 0;
+ gint _tmp65_ = 0;
+ SpitTransitionsVisuals* _tmp66_ = NULL;
+ GdkRectangle _tmp67_ = {0};
+ GdkRectangle _tmp68_ = {0};
+ gint _tmp69_ = 0;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp52_ = ctx;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp53_ = x;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp54_ = visuals;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp54_, &_tmp55_);
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp56_ = _tmp55_;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp57_ = _tmp56_.width;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp58_ = alpha;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp59_ = visuals;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp59_, &_tmp60_);
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp61_ = _tmp60_;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp62_ = _tmp61_.width;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp63_ = y;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp64_ = i;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp65_ = x;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp66_ = visuals;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp66_, &_tmp67_);
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp68_ = _tmp67_;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp69_ = _tmp68_.width;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ cairo_rectangle (_tmp52_, (_tmp53_ + _tmp57_) - (_tmp58_ * _tmp62_), (gdouble) (_tmp63_ + (_tmp64_ * STRIPES_EFFECT_STRIPE_HEIGHT)), (gdouble) (_tmp65_ + _tmp69_), (gdouble) STRIPES_EFFECT_STRIPE_HEIGHT);
+#line 582 "StripesEffect.c"
+ } else {
+ cairo_t* _tmp70_ = NULL;
+ gint _tmp71_ = 0;
+ gint _tmp72_ = 0;
+ gint _tmp73_ = 0;
+ SpitTransitionsVisuals* _tmp74_ = NULL;
+ GdkRectangle _tmp75_ = {0};
+ GdkRectangle _tmp76_ = {0};
+ gint _tmp77_ = 0;
+ gdouble _tmp78_ = 0.0;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp70_ = ctx;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp71_ = x;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp72_ = y;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp73_ = i;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp74_ = visuals;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ spit_transitions_visuals_get_to_pos (_tmp74_, &_tmp75_);
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp76_ = _tmp75_;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp77_ = _tmp76_.width;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp78_ = alpha;
+#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ cairo_rectangle (_tmp70_, (gdouble) _tmp71_, (gdouble) (_tmp72_ + (STRIPES_EFFECT_STRIPE_HEIGHT * _tmp73_)), _tmp77_ * _tmp78_, (gdouble) STRIPES_EFFECT_STRIPE_HEIGHT);
+#line 613 "StripesEffect.c"
+ }
+ }
+ }
+ }
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp79_ = ctx;
+#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ cairo_clip (_tmp79_);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp80_ = ctx;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ _tmp81_ = alpha;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ cairo_paint_with_alpha (_tmp80_, _tmp81_);
+#line 628 "StripesEffect.c"
+ }
+}
+
+
+static void stripes_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) {
+ StripesEffect * self;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals));
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion));
+#line 641 "StripesEffect.c"
+}
+
+
+static void stripes_effect_real_cancel (SpitTransitionsEffect* base) {
+ StripesEffect * self;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect);
+#line 649 "StripesEffect.c"
+}
+
+
+static void stripes_effect_class_init (StripesEffectClass * klass) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ stripes_effect_parent_class = g_type_class_peek_parent (klass);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ g_type_class_add_private (klass, sizeof (StripesEffectPrivate));
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ G_OBJECT_CLASS (klass)->finalize = stripes_effect_finalize;
+#line 660 "StripesEffect.c"
+}
+
+
+static void stripes_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ stripes_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ iface->get_fps = (void (*)(SpitTransitionsEffect*, gint*, gint*)) stripes_effect_real_get_fps;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ iface->start = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*)) stripes_effect_real_start;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ iface->needs_clear_background = (gboolean (*)(SpitTransitionsEffect*)) stripes_effect_real_needs_clear_background;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ iface->paint = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) stripes_effect_real_paint;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ iface->advance = (void (*)(SpitTransitionsEffect*, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) stripes_effect_real_advance;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ iface->cancel = (void (*)(SpitTransitionsEffect*)) stripes_effect_real_cancel;
+#line 679 "StripesEffect.c"
+}
+
+
+static void stripes_effect_instance_init (StripesEffect * self) {
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self->priv = STRIPES_EFFECT_GET_PRIVATE (self);
+#line 686 "StripesEffect.c"
+}
+
+
+static void stripes_effect_finalize (GObject* obj) {
+ StripesEffect * self;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_STRIPES_EFFECT, StripesEffect);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala"
+ G_OBJECT_CLASS (stripes_effect_parent_class)->finalize (obj);
+#line 696 "StripesEffect.c"
+}
+
+
+GType stripes_effect_get_type (void) {
+ static volatile gsize stripes_effect_type_id__volatile = 0;
+ if (g_once_init_enter (&stripes_effect_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (StripesEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) stripes_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StripesEffect), 0, (GInstanceInitFunc) stripes_effect_instance_init, NULL };
+ static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) stripes_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType stripes_effect_type_id;
+ stripes_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "StripesEffect", &g_define_type_info, 0);
+ g_type_add_interface_static (stripes_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info);
+ g_once_init_leave (&stripes_effect_type_id__volatile, stripes_effect_type_id);
+ }
+ return stripes_effect_type_id__volatile;
+}
+
+
+
diff --git a/plugins/shotwell-transitions/org.gnome.Shotwell.Transitions.gresource.xml b/plugins/shotwell-transitions/org.gnome.Shotwell.Transitions.gresource.xml
new file mode 100644
index 0000000..7545683
--- /dev/null
+++ b/plugins/shotwell-transitions/org.gnome.Shotwell.Transitions.gresource.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/gnome/Shotwell/Transitions">
+ <file>slideshow-plugin.png</file>
+ </gresource>
+</gresources>
diff --git a/plugins/shotwell-transitions/shotwell-transitions.c b/plugins/shotwell-transitions/shotwell-transitions.c
new file mode 100644
index 0000000..7e6d981
--- /dev/null
+++ b/plugins/shotwell-transitions/shotwell-transitions.c
@@ -0,0 +1,1086 @@
+/* shotwell-transitions.c generated by valac 0.32.1, the Vala compiler
+ * generated from shotwell-transitions.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 <shotwell-plugin-dev-1.0.h>
+#include <gio/gio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib/gi18n-lib.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include "shotwell-plugin-common.h"
+
+
+#define TYPE_SHOTWELL_TRANSITIONS (shotwell_transitions_get_type ())
+#define SHOTWELL_TRANSITIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions))
+#define SHOTWELL_TRANSITIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsClass))
+#define IS_SHOTWELL_TRANSITIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITIONS))
+#define IS_SHOTWELL_TRANSITIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITIONS))
+#define SHOTWELL_TRANSITIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsClass))
+
+typedef struct _ShotwellTransitions ShotwellTransitions;
+typedef struct _ShotwellTransitionsClass ShotwellTransitionsClass;
+typedef struct _ShotwellTransitionsPrivate ShotwellTransitionsPrivate;
+
+#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ())
+#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR))
+#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass))
+
+typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor;
+typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass;
+
+#define TYPE_FADE_EFFECT_DESCRIPTOR (fade_effect_descriptor_get_type ())
+#define FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor))
+#define FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass))
+#define IS_FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT_DESCRIPTOR))
+#define IS_FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT_DESCRIPTOR))
+#define FADE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass))
+
+typedef struct _FadeEffectDescriptor FadeEffectDescriptor;
+typedef struct _FadeEffectDescriptorClass FadeEffectDescriptorClass;
+
+#define TYPE_SLIDE_EFFECT_DESCRIPTOR (slide_effect_descriptor_get_type ())
+#define SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor))
+#define SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass))
+#define IS_SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR))
+#define IS_SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR))
+#define SLIDE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass))
+
+typedef struct _SlideEffectDescriptor SlideEffectDescriptor;
+typedef struct _SlideEffectDescriptorClass SlideEffectDescriptorClass;
+
+#define TYPE_CRUMBLE_EFFECT_DESCRIPTOR (crumble_effect_descriptor_get_type ())
+#define CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor))
+#define CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass))
+#define IS_CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR))
+#define IS_CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR))
+#define CRUMBLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass))
+
+typedef struct _CrumbleEffectDescriptor CrumbleEffectDescriptor;
+typedef struct _CrumbleEffectDescriptorClass CrumbleEffectDescriptorClass;
+
+#define TYPE_BLINDS_EFFECT_DESCRIPTOR (blinds_effect_descriptor_get_type ())
+#define BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor))
+#define BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass))
+#define IS_BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR))
+#define IS_BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR))
+#define BLINDS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass))
+
+typedef struct _BlindsEffectDescriptor BlindsEffectDescriptor;
+typedef struct _BlindsEffectDescriptorClass BlindsEffectDescriptorClass;
+
+#define TYPE_CIRCLE_EFFECT_DESCRIPTOR (circle_effect_descriptor_get_type ())
+#define CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor))
+#define CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass))
+#define IS_CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR))
+#define IS_CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR))
+#define CIRCLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass))
+
+typedef struct _CircleEffectDescriptor CircleEffectDescriptor;
+typedef struct _CircleEffectDescriptorClass CircleEffectDescriptorClass;
+
+#define TYPE_CIRCLES_EFFECT_DESCRIPTOR (circles_effect_descriptor_get_type ())
+#define CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor))
+#define CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass))
+#define IS_CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR))
+#define IS_CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR))
+#define CIRCLES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass))
+
+typedef struct _CirclesEffectDescriptor CirclesEffectDescriptor;
+typedef struct _CirclesEffectDescriptorClass CirclesEffectDescriptorClass;
+
+#define TYPE_CLOCK_EFFECT_DESCRIPTOR (clock_effect_descriptor_get_type ())
+#define CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor))
+#define CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass))
+#define IS_CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR))
+#define IS_CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR))
+#define CLOCK_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass))
+
+typedef struct _ClockEffectDescriptor ClockEffectDescriptor;
+typedef struct _ClockEffectDescriptorClass ClockEffectDescriptorClass;
+
+#define TYPE_SQUARES_EFFECT_DESCRIPTOR (squares_effect_descriptor_get_type ())
+#define SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor))
+#define SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass))
+#define IS_SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR))
+#define IS_SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR))
+#define SQUARES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass))
+
+typedef struct _SquaresEffectDescriptor SquaresEffectDescriptor;
+typedef struct _SquaresEffectDescriptorClass SquaresEffectDescriptorClass;
+
+#define TYPE_CHESS_EFFECT_DESCRIPTOR (chess_effect_descriptor_get_type ())
+#define CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor))
+#define CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass))
+#define IS_CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR))
+#define IS_CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR))
+#define CHESS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass))
+
+typedef struct _ChessEffectDescriptor ChessEffectDescriptor;
+typedef struct _ChessEffectDescriptorClass ChessEffectDescriptorClass;
+
+#define TYPE_STRIPES_EFFECT_DESCRIPTOR (stripes_effect_descriptor_get_type ())
+#define STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor))
+#define STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass))
+#define IS_STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR))
+#define IS_STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR))
+#define STRIPES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass))
+
+typedef struct _StripesEffectDescriptor StripesEffectDescriptor;
+typedef struct _StripesEffectDescriptorClass StripesEffectDescriptorClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+struct _ShotwellTransitions {
+ GObject parent_instance;
+ ShotwellTransitionsPrivate * priv;
+};
+
+struct _ShotwellTransitionsClass {
+ GObjectClass parent_class;
+};
+
+struct _ShotwellTransitionsPrivate {
+ SpitPluggable** pluggables;
+ gint pluggables_length1;
+ gint _pluggables_size_;
+};
+
+struct _ShotwellTransitionDescriptor {
+ GObject parent_instance;
+ ShotwellTransitionDescriptorPrivate * priv;
+};
+
+struct _ShotwellTransitionDescriptorClass {
+ GObjectClass parent_class;
+ const gchar* (*get_id) (ShotwellTransitionDescriptor* self);
+ const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self);
+ SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+};
+
+
+static gpointer shotwell_transitions_parent_class = NULL;
+static SpitModuleIface* shotwell_transitions_spit_module_parent_iface = NULL;
+static gpointer shotwell_transition_descriptor_parent_class = NULL;
+static GdkPixbuf** shotwell_transition_descriptor_icon_pixbuf_set;
+static gint shotwell_transition_descriptor_icon_pixbuf_set_length1;
+static GdkPixbuf** shotwell_transition_descriptor_icon_pixbuf_set = NULL;
+static gint shotwell_transition_descriptor_icon_pixbuf_set_length1 = 0;
+static gint _shotwell_transition_descriptor_icon_pixbuf_set_size_ = 0;
+static SpitPluggableIface* shotwell_transition_descriptor_spit_pluggable_parent_iface = NULL;
+static SpitTransitionsDescriptorIface* shotwell_transition_descriptor_spit_transitions_descriptor_parent_iface = NULL;
+
+GType shotwell_transitions_get_type (void) G_GNUC_CONST;
+#define SHOTWELL_TRANSITIONS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsPrivate))
+enum {
+ SHOTWELL_TRANSITIONS_DUMMY_PROPERTY
+};
+ShotwellTransitions* shotwell_transitions_new (GFile* module_file);
+ShotwellTransitions* shotwell_transitions_construct (GType object_type, GFile* module_file);
+FadeEffectDescriptor* fade_effect_descriptor_new (GFile* resource_directory);
+FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST;
+GType fade_effect_descriptor_get_type (void) G_GNUC_CONST;
+static void _vala_array_add1 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+SlideEffectDescriptor* slide_effect_descriptor_new (GFile* resource_directory);
+SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+GType slide_effect_descriptor_get_type (void) G_GNUC_CONST;
+static void _vala_array_add2 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+CrumbleEffectDescriptor* crumble_effect_descriptor_new (GFile* resource_directory);
+CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+GType crumble_effect_descriptor_get_type (void) G_GNUC_CONST;
+static void _vala_array_add3 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+BlindsEffectDescriptor* blinds_effect_descriptor_new (GFile* resource_directory);
+BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+GType blinds_effect_descriptor_get_type (void) G_GNUC_CONST;
+static void _vala_array_add4 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+CircleEffectDescriptor* circle_effect_descriptor_new (GFile* resource_directory);
+CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+GType circle_effect_descriptor_get_type (void) G_GNUC_CONST;
+static void _vala_array_add5 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+CirclesEffectDescriptor* circles_effect_descriptor_new (GFile* resource_directory);
+CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+GType circles_effect_descriptor_get_type (void) G_GNUC_CONST;
+static void _vala_array_add6 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+ClockEffectDescriptor* clock_effect_descriptor_new (GFile* resource_directory);
+ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+GType clock_effect_descriptor_get_type (void) G_GNUC_CONST;
+static void _vala_array_add7 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+SquaresEffectDescriptor* squares_effect_descriptor_new (GFile* resource_directory);
+SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+GType squares_effect_descriptor_get_type (void) G_GNUC_CONST;
+static void _vala_array_add8 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory);
+ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+GType chess_effect_descriptor_get_type (void) G_GNUC_CONST;
+static void _vala_array_add9 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+StripesEffectDescriptor* stripes_effect_descriptor_new (GFile* resource_directory);
+StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, GFile* resource_directory);
+GType stripes_effect_descriptor_get_type (void) G_GNUC_CONST;
+static void _vala_array_add10 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value);
+static const gchar* shotwell_transitions_real_get_module_name (SpitModule* base);
+static const gchar* shotwell_transitions_real_get_version (SpitModule* base);
+static const gchar* shotwell_transitions_real_get_id (SpitModule* base);
+static SpitPluggable** shotwell_transitions_real_get_pluggables (SpitModule* base, int* result_length1);
+static void shotwell_transitions_finalize (GObject* obj);
+SpitModule* spit_entry_point (SpitEntryPointParams* params);
+enum {
+ SHOTWELL_TRANSITION_DESCRIPTOR_DUMMY_PROPERTY
+};
+#define SHOTWELL_TRANSITION_DESCRIPTOR_ICON_FILENAME "slideshow-plugin.png"
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory);
+static gint shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
+const gchar* shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self);
+static const gchar* shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self);
+const gchar* shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self);
+static const gchar* shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self);
+static void shotwell_transition_descriptor_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
+static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length);
+static void shotwell_transition_descriptor_real_activation (SpitPluggable* base, gboolean enabled);
+SpitTransitionsEffect* shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+static SpitTransitionsEffect* shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host);
+static void shotwell_transition_descriptor_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 _vala_array_add1 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if ((*length) == (*size)) {
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 266 "shotwell-transitions.c"
+ }
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[(*length)++] = value;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[*length] = NULL;
+#line 272 "shotwell-transitions.c"
+}
+
+
+static void _vala_array_add2 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if ((*length) == (*size)) {
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 283 "shotwell-transitions.c"
+ }
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[(*length)++] = value;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[*length] = NULL;
+#line 289 "shotwell-transitions.c"
+}
+
+
+static void _vala_array_add3 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if ((*length) == (*size)) {
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 300 "shotwell-transitions.c"
+ }
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[(*length)++] = value;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[*length] = NULL;
+#line 306 "shotwell-transitions.c"
+}
+
+
+static void _vala_array_add4 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if ((*length) == (*size)) {
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 317 "shotwell-transitions.c"
+ }
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[(*length)++] = value;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[*length] = NULL;
+#line 323 "shotwell-transitions.c"
+}
+
+
+static void _vala_array_add5 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if ((*length) == (*size)) {
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 334 "shotwell-transitions.c"
+ }
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[(*length)++] = value;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[*length] = NULL;
+#line 340 "shotwell-transitions.c"
+}
+
+
+static void _vala_array_add6 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if ((*length) == (*size)) {
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 351 "shotwell-transitions.c"
+ }
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[(*length)++] = value;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[*length] = NULL;
+#line 357 "shotwell-transitions.c"
+}
+
+
+static void _vala_array_add7 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if ((*length) == (*size)) {
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 368 "shotwell-transitions.c"
+ }
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[(*length)++] = value;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[*length] = NULL;
+#line 374 "shotwell-transitions.c"
+}
+
+
+static void _vala_array_add8 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if ((*length) == (*size)) {
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 385 "shotwell-transitions.c"
+ }
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[(*length)++] = value;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[*length] = NULL;
+#line 391 "shotwell-transitions.c"
+}
+
+
+static void _vala_array_add9 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if ((*length) == (*size)) {
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 402 "shotwell-transitions.c"
+ }
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[(*length)++] = value;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[*length] = NULL;
+#line 408 "shotwell-transitions.c"
+}
+
+
+static void _vala_array_add10 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) {
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if ((*length) == (*size)) {
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *array = g_renew (SpitPluggable*, *array, (*size) + 1);
+#line 419 "shotwell-transitions.c"
+ }
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[(*length)++] = value;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*array)[*length] = NULL;
+#line 425 "shotwell-transitions.c"
+}
+
+
+ShotwellTransitions* shotwell_transitions_construct (GType object_type, GFile* module_file) {
+ ShotwellTransitions * self = NULL;
+ GFile* resource_directory = NULL;
+ GFile* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ SpitPluggable** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ FadeEffectDescriptor* _tmp3_ = NULL;
+ SpitPluggable** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ SlideEffectDescriptor* _tmp5_ = NULL;
+ SpitPluggable** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ CrumbleEffectDescriptor* _tmp7_ = NULL;
+ SpitPluggable** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ BlindsEffectDescriptor* _tmp9_ = NULL;
+ SpitPluggable** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+ CircleEffectDescriptor* _tmp11_ = NULL;
+ SpitPluggable** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ CirclesEffectDescriptor* _tmp13_ = NULL;
+ SpitPluggable** _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ ClockEffectDescriptor* _tmp15_ = NULL;
+ SpitPluggable** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+ SquaresEffectDescriptor* _tmp17_ = NULL;
+ SpitPluggable** _tmp18_ = NULL;
+ gint _tmp18__length1 = 0;
+ ChessEffectDescriptor* _tmp19_ = NULL;
+ SpitPluggable** _tmp20_ = NULL;
+ gint _tmp20__length1 = 0;
+ StripesEffectDescriptor* _tmp21_ = NULL;
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ g_return_val_if_fail (G_IS_FILE (module_file), NULL);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = (ShotwellTransitions*) g_object_new (object_type, NULL);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0_ = module_file;
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp1_ = g_file_get_parent (_tmp0_);
+#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ resource_directory = _tmp1_;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp2_ = self->priv->pluggables;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp2__length1 = self->priv->pluggables_length1;
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp3_ = fade_effect_descriptor_new (resource_directory);
+#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp4_ = self->priv->pluggables;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp4__length1 = self->priv->pluggables_length1;
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp5_ = slide_effect_descriptor_new (resource_directory);
+#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _vala_array_add2 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp6_ = self->priv->pluggables;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp6__length1 = self->priv->pluggables_length1;
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp7_ = crumble_effect_descriptor_new (resource_directory);
+#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _vala_array_add3 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp8_ = self->priv->pluggables;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp8__length1 = self->priv->pluggables_length1;
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp9_ = blinds_effect_descriptor_new (resource_directory);
+#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _vala_array_add4 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp10_ = self->priv->pluggables;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp10__length1 = self->priv->pluggables_length1;
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp11_ = circle_effect_descriptor_new (resource_directory);
+#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _vala_array_add5 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp12_ = self->priv->pluggables;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp12__length1 = self->priv->pluggables_length1;
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp13_ = circles_effect_descriptor_new (resource_directory);
+#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _vala_array_add6 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp14_ = self->priv->pluggables;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp14__length1 = self->priv->pluggables_length1;
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp15_ = clock_effect_descriptor_new (resource_directory);
+#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _vala_array_add7 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp16_ = self->priv->pluggables;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp16__length1 = self->priv->pluggables_length1;
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp17_ = squares_effect_descriptor_new (resource_directory);
+#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _vala_array_add8 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp18_ = self->priv->pluggables;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp18__length1 = self->priv->pluggables_length1;
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp19_ = chess_effect_descriptor_new (resource_directory);
+#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _vala_array_add9 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp20_ = self->priv->pluggables;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp20__length1 = self->priv->pluggables_length1;
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp21_ = stripes_effect_descriptor_new (resource_directory);
+#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _vala_array_add10 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _g_object_unref0 (resource_directory);
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return self;
+#line 558 "shotwell-transitions.c"
+}
+
+
+ShotwellTransitions* shotwell_transitions_new (GFile* module_file) {
+#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return shotwell_transitions_construct (TYPE_SHOTWELL_TRANSITIONS, module_file);
+#line 565 "shotwell-transitions.c"
+}
+
+
+static const gchar* shotwell_transitions_real_get_module_name (SpitModule* base) {
+ ShotwellTransitions * self;
+ const gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 27 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions);
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0_ = _ ("Core Slideshow Transitions");
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ result = _tmp0_;
+#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return result;
+#line 581 "shotwell-transitions.c"
+}
+
+
+static const gchar* shotwell_transitions_real_get_version (SpitModule* base) {
+ ShotwellTransitions * self;
+ const gchar* result = NULL;
+#line 31 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions);
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ result = _VERSION;
+#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return result;
+#line 594 "shotwell-transitions.c"
+}
+
+
+static const gchar* shotwell_transitions_real_get_id (SpitModule* base) {
+ ShotwellTransitions * self;
+ const gchar* result = NULL;
+#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions);
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ result = "org.yorba.shotwell.transitions";
+#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return result;
+#line 607 "shotwell-transitions.c"
+}
+
+
+static SpitPluggable** shotwell_transitions_real_get_pluggables (SpitModule* base, int* result_length1) {
+ ShotwellTransitions * self;
+ SpitPluggable** result = NULL;
+ SpitPluggable** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ SpitPluggable** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions);
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0_ = self->priv->pluggables;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0__length1 = self->priv->pluggables_length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp1_ = _tmp0_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if (result_length1) {
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ *result_length1 = _tmp1__length1;
+#line 632 "shotwell-transitions.c"
+ }
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ result = _tmp1_;
+#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return result;
+#line 638 "shotwell-transitions.c"
+}
+
+
+static void shotwell_transitions_class_init (ShotwellTransitionsClass * klass) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ shotwell_transitions_parent_class = g_type_class_peek_parent (klass);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ g_type_class_add_private (klass, sizeof (ShotwellTransitionsPrivate));
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ G_OBJECT_CLASS (klass)->finalize = shotwell_transitions_finalize;
+#line 649 "shotwell-transitions.c"
+}
+
+
+static void shotwell_transitions_spit_module_interface_init (SpitModuleIface * iface) {
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ shotwell_transitions_spit_module_parent_iface = g_type_interface_peek_parent (iface);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ iface->get_module_name = (const gchar* (*)(SpitModule*)) shotwell_transitions_real_get_module_name;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ iface->get_version = (const gchar* (*)(SpitModule*)) shotwell_transitions_real_get_version;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ iface->get_id = (const gchar* (*)(SpitModule*)) shotwell_transitions_real_get_id;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ iface->get_pluggables = (SpitPluggable** (*)(SpitModule*, int*)) shotwell_transitions_real_get_pluggables;
+#line 664 "shotwell-transitions.c"
+}
+
+
+static void shotwell_transitions_instance_init (ShotwellTransitions * self) {
+ SpitPluggable** _tmp0_ = NULL;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self->priv = SHOTWELL_TRANSITIONS_GET_PRIVATE (self);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0_ = g_new0 (SpitPluggable*, 0 + 1);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self->priv->pluggables = _tmp0_;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self->priv->pluggables_length1 = 0;
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self->priv->_pluggables_size_ = self->priv->pluggables_length1;
+#line 680 "shotwell-transitions.c"
+}
+
+
+static void shotwell_transitions_finalize (GObject* obj) {
+ ShotwellTransitions * self;
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions);
+#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ G_OBJECT_CLASS (shotwell_transitions_parent_class)->finalize (obj);
+#line 692 "shotwell-transitions.c"
+}
+
+
+GType shotwell_transitions_get_type (void) {
+ static volatile gsize shotwell_transitions_type_id__volatile = 0;
+ if (g_once_init_enter (&shotwell_transitions_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (ShotwellTransitionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_transitions_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellTransitions), 0, (GInstanceInitFunc) shotwell_transitions_instance_init, NULL };
+ static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_transitions_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType shotwell_transitions_type_id;
+ shotwell_transitions_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellTransitions", &g_define_type_info, 0);
+ g_type_add_interface_static (shotwell_transitions_type_id, SPIT_TYPE_MODULE, &spit_module_info);
+ g_once_init_leave (&shotwell_transitions_type_id__volatile, shotwell_transitions_type_id);
+ }
+ return shotwell_transitions_type_id__volatile;
+}
+
+
+SpitModule* spit_entry_point (SpitEntryPointParams* params) {
+ SpitModule* result = NULL;
+ SpitEntryPointParams* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ SpitEntryPointParams* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+ ShotwellTransitions* _tmp5_ = NULL;
+ SpitEntryPointParams* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0_ = params;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp1_ = (*_tmp0_).host_min_spit_interface;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp2_ = params;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp3_ = (*_tmp2_).host_max_spit_interface;
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp4_ = spit_negotiate_interfaces (_tmp1_, _tmp3_, SPIT_CURRENT_INTERFACE);
+#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*params).module_spit_interface = _tmp4_;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp6_ = params;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp7_ = (*_tmp6_).module_spit_interface;
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if (_tmp7_ != SPIT_UNSUPPORTED_INTERFACE) {
+#line 738 "shotwell-transitions.c"
+ SpitEntryPointParams* _tmp8_ = NULL;
+ GFile* _tmp9_ = NULL;
+ ShotwellTransitions* _tmp10_ = NULL;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp8_ = params;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp9_ = (*_tmp8_).module_file;
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp10_ = shotwell_transitions_new (_tmp9_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _g_object_unref0 (_tmp5_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp5_ = _tmp10_;
+#line 752 "shotwell-transitions.c"
+ } else {
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _g_object_unref0 (_tmp5_);
+#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp5_ = NULL;
+#line 758 "shotwell-transitions.c"
+ }
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_MODULE, SpitModule);
+#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return result;
+#line 764 "shotwell-transitions.c"
+}
+
+
+ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory) {
+ ShotwellTransitionDescriptor * self = NULL;
+ GdkPixbuf** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = (ShotwellTransitionDescriptor*) g_object_new (object_type, NULL);
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0_ = shotwell_transition_descriptor_icon_pixbuf_set;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0__length1 = shotwell_transition_descriptor_icon_pixbuf_set_length1;
+#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ if (_tmp0_ == NULL) {
+#line 782 "shotwell-transitions.c"
+ gint _tmp1_ = 0;
+ GdkPixbuf** _tmp2_ = NULL;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" SHOTWELL_TRANSITION_DESCRIPTOR_ICON_FILENAME, &_tmp1_);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ shotwell_transition_descriptor_icon_pixbuf_set = (_vala_array_free (shotwell_transition_descriptor_icon_pixbuf_set, shotwell_transition_descriptor_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ shotwell_transition_descriptor_icon_pixbuf_set = _tmp2_;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ shotwell_transition_descriptor_icon_pixbuf_set_length1 = _tmp1_;
+#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _shotwell_transition_descriptor_icon_pixbuf_set_size_ = shotwell_transition_descriptor_icon_pixbuf_set_length1;
+#line 795 "shotwell-transitions.c"
+ }
+#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return self;
+#line 799 "shotwell-transitions.c"
+}
+
+
+static gint shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
+ ShotwellTransitionDescriptor * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0_ = min_host_interface;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp1_ = max_host_interface;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_TRANSITIONS_CURRENT_INTERFACE);
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ result = _tmp2_;
+#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return result;
+#line 821 "shotwell-transitions.c"
+}
+
+
+static const gchar* shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_get_id'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return NULL;
+#line 830 "shotwell-transitions.c"
+}
+
+
+const gchar* shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self) {
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL);
+#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->get_id (self);
+#line 839 "shotwell-transitions.c"
+}
+
+
+static const gchar* shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self) {
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_get_pluggable_name'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return NULL;
+#line 848 "shotwell-transitions.c"
+}
+
+
+const gchar* shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self) {
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL);
+#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->get_pluggable_name (self);
+#line 857 "shotwell-transitions.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 864 "shotwell-transitions.c"
+}
+
+
+static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length) {
+ GdkPixbuf** result;
+ int i;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ result = g_new0 (GdkPixbuf*, length + 1);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ for (i = 0; i < length; i++) {
+#line 875 "shotwell-transitions.c"
+ GdkPixbuf* _tmp0_ = NULL;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ result[i] = _tmp0_;
+#line 881 "shotwell-transitions.c"
+ }
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return result;
+#line 885 "shotwell-transitions.c"
+}
+
+
+static void shotwell_transition_descriptor_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
+ ShotwellTransitionDescriptor * self;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ GdkPixbuf** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ GdkPixbuf** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor);
+#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ g_return_if_fail (info != NULL);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp0_ = g_strdup ("Maxim Kartashev");
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _g_free0 ((*info).authors);
+#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).authors = _tmp0_;
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp1_ = _ ("Copyright 2010 Maxim Kartashev, Copyright 2016 Software Freedom Conser" \
+"vancy Inc.");
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp2_ = g_strdup (_tmp1_);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _g_free0 ((*info).copyright);
+#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).copyright = _tmp2_;
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _g_free0 ((*info).translators);
+#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).translators = _tmp3_;
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp4_ = g_strdup (_VERSION);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _g_free0 ((*info).version);
+#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).version = _tmp4_;
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _g_free0 ((*info).website_name);
+#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).website_name = _tmp5_;
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _g_free0 ((*info).website_url);
+#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).website_url = _tmp6_;
+#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).is_license_wordwrapped = FALSE;
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp7_ = g_strdup (RESOURCES_LICENSE);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _g_free0 ((*info).license);
+#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).license = _tmp7_;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp8_ = shotwell_transition_descriptor_icon_pixbuf_set;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp8__length1 = shotwell_transition_descriptor_icon_pixbuf_set_length1;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup1 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ _tmp9__length1 = _tmp8__length1;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).icons = _tmp9_;
+#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ (*info).icons_length1 = _tmp9__length1;
+#line 967 "shotwell-transitions.c"
+}
+
+
+static void shotwell_transition_descriptor_real_activation (SpitPluggable* base, gboolean enabled) {
+ ShotwellTransitionDescriptor * self;
+#line 86 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor);
+#line 975 "shotwell-transitions.c"
+}
+
+
+static SpitTransitionsEffect* shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host) {
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_create'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return NULL;
+#line 984 "shotwell-transitions.c"
+}
+
+
+SpitTransitionsEffect* shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host) {
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL);
+#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->create (self, host);
+#line 993 "shotwell-transitions.c"
+}
+
+
+static void shotwell_transition_descriptor_class_init (ShotwellTransitionDescriptorClass * klass) {
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ shotwell_transition_descriptor_parent_class = g_type_class_peek_parent (klass);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_id = shotwell_transition_descriptor_real_get_id;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = shotwell_transition_descriptor_real_get_pluggable_name;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ ((ShotwellTransitionDescriptorClass *) klass)->create = shotwell_transition_descriptor_real_create;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ G_OBJECT_CLASS (klass)->finalize = shotwell_transition_descriptor_finalize;
+#line 1008 "shotwell-transitions.c"
+}
+
+
+static void shotwell_transition_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) {
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ shotwell_transition_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) shotwell_transition_descriptor_real_get_pluggable_interface;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ iface->get_id = (const gchar* (*)(SpitPluggable*)) shotwell_transition_descriptor_get_id;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) shotwell_transition_descriptor_get_pluggable_name;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) shotwell_transition_descriptor_real_get_info;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ iface->activation = (void (*)(SpitPluggable*, gboolean)) shotwell_transition_descriptor_real_activation;
+#line 1025 "shotwell-transitions.c"
+}
+
+
+static void shotwell_transition_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) {
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ shotwell_transition_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ iface->create = (SpitTransitionsEffect* (*)(SpitTransitionsDescriptor*, SpitHostInterface*)) shotwell_transition_descriptor_create;
+#line 1034 "shotwell-transitions.c"
+}
+
+
+static void shotwell_transition_descriptor_instance_init (ShotwellTransitionDescriptor * self) {
+}
+
+
+static void shotwell_transition_descriptor_finalize (GObject* obj) {
+ ShotwellTransitionDescriptor * self;
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor);
+#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala"
+ G_OBJECT_CLASS (shotwell_transition_descriptor_parent_class)->finalize (obj);
+#line 1048 "shotwell-transitions.c"
+}
+
+
+GType shotwell_transition_descriptor_get_type (void) {
+ static volatile gsize shotwell_transition_descriptor_type_id__volatile = 0;
+ if (g_once_init_enter (&shotwell_transition_descriptor_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (ShotwellTransitionDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_transition_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellTransitionDescriptor), 0, (GInstanceInitFunc) shotwell_transition_descriptor_instance_init, NULL };
+ static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) shotwell_transition_descriptor_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo spit_transitions_descriptor_info = { (GInterfaceInitFunc) shotwell_transition_descriptor_spit_transitions_descriptor_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType shotwell_transition_descriptor_type_id;
+ shotwell_transition_descriptor_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellTransitionDescriptor", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
+ g_type_add_interface_static (shotwell_transition_descriptor_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
+ g_type_add_interface_static (shotwell_transition_descriptor_type_id, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, &spit_transitions_descriptor_info);
+ g_once_init_leave (&shotwell_transition_descriptor_type_id__volatile, shotwell_transition_descriptor_type_id);
+ }
+ return shotwell_transition_descriptor_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/plugins/shotwell-transitions/shotwell-transitions.vala b/plugins/shotwell-transitions/shotwell-transitions.vala
index 2b1fe40..7673414 100644
--- a/plugins/shotwell-transitions/shotwell-transitions.vala
+++ b/plugins/shotwell-transitions/shotwell-transitions.vala
@@ -58,7 +58,8 @@ public abstract class ShotwellTransitionDescriptor : Object, Spit.Pluggable, Spi
public ShotwellTransitionDescriptor(GLib.File resource_directory) {
if (icon_pixbuf_set == null)
- icon_pixbuf_set = Resources.load_icon_set(resource_directory.get_child(ICON_FILENAME));
+ icon_pixbuf_set =
+ Resources.load_from_resource(Resources.RESOURCE_PATH + "/" + ICON_FILENAME);
}
public int get_pluggable_interface(int min_host_interface, int max_host_interface) {